SlideShare a Scribd company logo
Chapter 5
Link Layer
Computer Networking: A
Top Down Approach
4th edition.
Jim Kurose, Keith Ross
Addison-Wesley, July
2007.
Last Lecture

Link Layer Switches
Todays’ Lecture

Address Resolution Protocol
(ARP)
Switch
 Link-layer Device

Store, forward Ethernet frames
 Examine incoming frame’s MAC address
 Selectively forward frame to the outgoing link
 Switch itself is transparent to the nodes
 Nodes are unaware of presence of switches
 Plug-and-Play
 Switches do not need to be configured
 Two important functions:
 Filtering


• Determines whether a frame should be forwarded to
some interface or should be dropped.


Forwarding
• Determine the interface to which a frame should be
directed
Switch Table


Q: How does switch know that
A’ reachable via interface 4,
B’ reachable via interface 5?

A

C’

B

 A: Each switch has a switch

table, each entry:
 MAC address of a host
 Interface that leads
towards the host
 Time at which the entry
for the node as placed in
the table

 How is the table created?

6

1
5

2

3

4
C

B’

A’
switch with six interfaces
(1,2,3,4,5,6)
Switch: self-learning
 switch

learns which hosts

can be reached through
which interfaces




Source: A
Dest: A’

A A A’

C’

when frame received,
switch “learns” location of
sender: incoming LAN
segment
records sender/location
pair in switch table

B
1

6

5

2

3

4
C

B’

A’

MAC addr interface TTL
A

1

60

Switch table
(initially empty)
Self-Learning,Forwarding:Example

Source: A
Dest: A’

A A A’

C’

B

 frame destination
unknown: flood

6
A A’

1

2
4

5

 destination A

location known:
selective send

C

A’ A
B’

3

A’

MAC addr interface TTL
A
A’

1
4

60
60

Switch table
(initially empty)
Interconnecting Switches
 switches can be connected together
S4

S1

S2

A
B

S3

C

F

D
E

I
G

H

 Q: sending from A to G - how does S1 know to

forward frame destined to G via S4 and S3?
 A: self learning! (works exactly the same as in
single-switch case!)
Switch: Advantages

 Elimination of Collisions:
 Switches

buffer frames and never transmit
more than one frame on any segment at one
time
 Modern switches are Full Duplex
 Heterogeneous Links
 Switch isolates one link from another
 Different links can operate at different
speeds and over different media
Difference between Hubs and Switches?
Difference between Switches and Routers?
(Home Assignment)
MAC Addresses
 32-bit IP address:


network-layer address

used to get datagram to destination IP subnet
 MAC (or LAN or physical or Ethernet) address:
 A node also has a link layer address


• Nodes adapter


6 Bytes (48 bit) MAC address (for most LANs)
• Expressed in Hexadecimal notation

 No two adapters have the same MAC address
 IEEE manages the MAC address space
 MAC address does not change no matter where the adapter
goes
 MAC address: like NIC number

IP address: like postal address
MAC Addresses
Each adapter on LAN has unique LAN address

1A-2F-BB-76-09-AD

71-65-F7-2B-08-53

LAN
(wired or
wireless)

Broadcast address =
FF-FF-FF-FF-FF-FF

= adapter
58-23-D7-FA-20-B0

0C-C4-11-6F-E3-98
ARP: Address Resolution Protocol
 How does the sending node A with IP

222.222.222.220 determine the MAC address for the
destination node B with IP address say
222.222.222.222?
 Job of Address Resolution Protocol (ARP)
 ARP module in the sending node
• Takes IP address on the same LAN as input
• Return corresponding MAC address
 Each node has an ARP table



Contains mapping of IP addresses to MAC addresses
The ARP table contains a time-to-live (TTL) value
• Indicates when each mapping will be deleted from the table
• Typical expiration time is 20 minutes
ARP: 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
 Destination MAC
address = FF-FF-FF-FFFF-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)

 ARP is “plug-and-play”:
 nodes create their ARP
tables without
intervention from
network administrator
Addressing: Routing to another LAN
Send datagram from A to B via Router (R)
assume A knows B’s IP address
88-B2-2F-54-1A-0F

74-29-9C-E8-FF-55

A

111.111.111.111

E6-E9-00-17-BB-4B
1A-23-F9-CD-06-9B

222.222.222.220
111.111.111.110
111.111.111.112

R

222.222.222.221

222.222.222.222

B

49-BD-D2-C7-56-2A

CC-49-DE-D0-AB-7D

 Router has two interfaces, two IP addresses, two ARP

modules and two adapters
 A creates IP datagram with destination IP of B
 A uses ARP to get MAC address of R (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 adapter sends frame
R’s adapter receives frame
R removes IP datagram from frame, sees its destined to B
R uses ARP to get B’s MAC address
R creates frame containing A-to-B IP datagram and sends to
B
88-B2-2F-54-1A-0F

74-29-9C-E8-FF-55

A

E6-E9-00-17-BB-4B

111.111.111.111

222.222.222.220
111.111.111.110
111.111.111.112

CC-49-DE-D0-AB-7D

222.222.222.221

1A-23-F9-CD-06-9B

R

222.222.222.222

B

49-BD-D2-C7-56-2A
Announcements
 Lab Final on Wednesday, 1st January 2014
Every

one has to be present at 2pm
Objective paper: 25 min at 2pm
Hands-on Exam: 45 min
For Hands-on Exam: Class divided into
two groups
On the Spot Marking of Hands-on
Exam
Announcements
 Research Presentations/Demos
 Thursday

2nd January, 2014
• 12pm-1pm and 3pm-5pm
 Friday 3rd January, 2014
• 11am-1pm and 2pm- 4pm
 Bring hardcopy of your allocated Paper and
report


Viva/Report for programming project

 Paper Showing on 15th January, 2014 after

exam of Software Engineering at 1pm.


Venue will be notified via email

More Related Content

What's hot

Routing
RoutingRouting
Routing
Amit Pandey
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithm
Bushra M
 
Distance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing AlgorithmDistance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing Algorithm
MOHIT AGARWAL
 
Routing
RoutingRouting
Network layer
Network layerNetwork layer
Network layer
sbkbca
 
Ch22
Ch22Ch22
Lecture 3 network layer
Lecture 3 network layerLecture 3 network layer
Lecture 3 network layer
Ronoh Kennedy
 
Routing Technique Table Type by Umar danjuma maiwada.ppt
Routing Technique Table Type by Umar danjuma maiwada.pptRouting Technique Table Type by Umar danjuma maiwada.ppt
Routing Technique Table Type by Umar danjuma maiwada.ppt
umardanjumamaiwada
 
Notes
NotesNotes
Network layer ip address assignment and routing
Network layer ip address assignment and routingNetwork layer ip address assignment and routing
Network layer ip address assignment and routing
HamzahMohammed4
 
OSPF - Routing Protocol
OSPF - Routing ProtocolOSPF - Routing Protocol
OSPF - Routing Protocol
selvakumar_b1985
 
Routing table and routing algorithms
Routing table and routing algorithmsRouting table and routing algorithms
Routing table and routing algorithms
lavanyapathy
 
Routing protocols
Routing protocolsRouting protocols
Routing protocols
N.Jagadish Kumar
 
Network Layer
Network LayerNetwork Layer
Network Layer
Dr Shashikant Athawale
 
Computer Network - Network Layer
Computer Network - Network LayerComputer Network - Network Layer
Computer Network - Network Layer
Manoj Kumar
 
Chapter 5 : Link Layer
Chapter 5 : Link LayerChapter 5 : Link Layer
Chapter 5 : Link Layer
Amin Omi
 
Aodv slide final
Aodv slide finalAodv slide final
Aodv slide final
guest53dedc9
 
Evolution of Routing Techniques
Evolution of  Routing TechniquesEvolution of  Routing Techniques
Evolution of Routing Techniques
Tusharadri Sarkar
 
Unit 3 - Data Link Layer - Part B
Unit 3 - Data Link Layer - Part BUnit 3 - Data Link Layer - Part B
Unit 3 - Data Link Layer - Part B
Chandan Gupta Bhagat
 
Pathlet routing_Demo2
Pathlet routing_Demo2Pathlet routing_Demo2
Pathlet routing_Demo2
asrivas2
 

What's hot (20)

Routing
RoutingRouting
Routing
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithm
 
Distance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing AlgorithmDistance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing Algorithm
 
Routing
RoutingRouting
Routing
 
Network layer
Network layerNetwork layer
Network layer
 
Ch22
Ch22Ch22
Ch22
 
Lecture 3 network layer
Lecture 3 network layerLecture 3 network layer
Lecture 3 network layer
 
Routing Technique Table Type by Umar danjuma maiwada.ppt
Routing Technique Table Type by Umar danjuma maiwada.pptRouting Technique Table Type by Umar danjuma maiwada.ppt
Routing Technique Table Type by Umar danjuma maiwada.ppt
 
Notes
NotesNotes
Notes
 
Network layer ip address assignment and routing
Network layer ip address assignment and routingNetwork layer ip address assignment and routing
Network layer ip address assignment and routing
 
OSPF - Routing Protocol
OSPF - Routing ProtocolOSPF - Routing Protocol
OSPF - Routing Protocol
 
Routing table and routing algorithms
Routing table and routing algorithmsRouting table and routing algorithms
Routing table and routing algorithms
 
Routing protocols
Routing protocolsRouting protocols
Routing protocols
 
Network Layer
Network LayerNetwork Layer
Network Layer
 
Computer Network - Network Layer
Computer Network - Network LayerComputer Network - Network Layer
Computer Network - Network Layer
 
Chapter 5 : Link Layer
Chapter 5 : Link LayerChapter 5 : Link Layer
Chapter 5 : Link Layer
 
Aodv slide final
Aodv slide finalAodv slide final
Aodv slide final
 
Evolution of Routing Techniques
Evolution of  Routing TechniquesEvolution of  Routing Techniques
Evolution of Routing Techniques
 
Unit 3 - Data Link Layer - Part B
Unit 3 - Data Link Layer - Part BUnit 3 - Data Link Layer - Part B
Unit 3 - Data Link Layer - Part B
 
Pathlet routing_Demo2
Pathlet routing_Demo2Pathlet routing_Demo2
Pathlet routing_Demo2
 

Viewers also liked

Fusf presentation to share 11.20
Fusf presentation to share 11.20Fusf presentation to share 11.20
Fusf presentation to share 11.20
fusfpresent
 
Russell Drake Miami
Russell Drake MiamiRussell Drake Miami
Russell Drake Miami
russelldrake01
 
Ledelse i det digitale landskapet - Foredrag Social Media Days 2016
Ledelse i det digitale landskapet - Foredrag Social Media Days 2016Ledelse i det digitale landskapet - Foredrag Social Media Days 2016
Ledelse i det digitale landskapet - Foredrag Social Media Days 2016
Tora Elisabeth Mellbye
 
Sweater for women by geoffrey kachale banda
Sweater for women by geoffrey kachale bandaSweater for women by geoffrey kachale banda
Sweater for women by geoffrey kachale banda
kabmebanda1
 
2014 PEPSG(2Jan2015 ver)
2014 PEPSG(2Jan2015 ver)2014 PEPSG(2Jan2015 ver)
2014 PEPSG(2Jan2015 ver)
Medz Ron Macasaet
 
Amar s olar energy-prezentare generala
Amar s olar energy-prezentare generalaAmar s olar energy-prezentare generala
Amar s olar energy-prezentare generala
Amar Solar Energy Invest
 
TRABAJO
TRABAJOTRABAJO
TRABAJO
Davidns
 
Fot qué fotografías
Fot qué fotografíasFot qué fotografías
Fot qué fotografías
Nader BnNader
 
Bullying
BullyingBullying
Bullying
diane1424
 
2.5 fractions w
2.5 fractions w2.5 fractions w
2.5 fractions w
Tzenma
 
Revolutionary 7-day Weight Loss Plan to Shed Pounds
Revolutionary 7-day Weight Loss Plan to Shed PoundsRevolutionary 7-day Weight Loss Plan to Shed Pounds
Revolutionary 7-day Weight Loss Plan to Shed Pounds
Diet Plan
 
Questionnaire analysis
Questionnaire analysisQuestionnaire analysis
Questionnaire analysis
laura-illing
 
Analysing magazines
Analysing magazinesAnalysing magazines
Analysing magazines
laura-illing
 
Your_ideal_pet
Your_ideal_petYour_ideal_pet
Your_ideal_pet
new-rus
 
Cara Hosting di 0fees
Cara Hosting di 0feesCara Hosting di 0fees
Cara Hosting di 0fees
vanradhinal
 
Style sheet
Style sheetStyle sheet
Style sheet
laura-illing
 

Viewers also liked (16)

Fusf presentation to share 11.20
Fusf presentation to share 11.20Fusf presentation to share 11.20
Fusf presentation to share 11.20
 
Russell Drake Miami
Russell Drake MiamiRussell Drake Miami
Russell Drake Miami
 
Ledelse i det digitale landskapet - Foredrag Social Media Days 2016
Ledelse i det digitale landskapet - Foredrag Social Media Days 2016Ledelse i det digitale landskapet - Foredrag Social Media Days 2016
Ledelse i det digitale landskapet - Foredrag Social Media Days 2016
 
Sweater for women by geoffrey kachale banda
Sweater for women by geoffrey kachale bandaSweater for women by geoffrey kachale banda
Sweater for women by geoffrey kachale banda
 
2014 PEPSG(2Jan2015 ver)
2014 PEPSG(2Jan2015 ver)2014 PEPSG(2Jan2015 ver)
2014 PEPSG(2Jan2015 ver)
 
Amar s olar energy-prezentare generala
Amar s olar energy-prezentare generalaAmar s olar energy-prezentare generala
Amar s olar energy-prezentare generala
 
TRABAJO
TRABAJOTRABAJO
TRABAJO
 
Fot qué fotografías
Fot qué fotografíasFot qué fotografías
Fot qué fotografías
 
Bullying
BullyingBullying
Bullying
 
2.5 fractions w
2.5 fractions w2.5 fractions w
2.5 fractions w
 
Revolutionary 7-day Weight Loss Plan to Shed Pounds
Revolutionary 7-day Weight Loss Plan to Shed PoundsRevolutionary 7-day Weight Loss Plan to Shed Pounds
Revolutionary 7-day Weight Loss Plan to Shed Pounds
 
Questionnaire analysis
Questionnaire analysisQuestionnaire analysis
Questionnaire analysis
 
Analysing magazines
Analysing magazinesAnalysing magazines
Analysing magazines
 
Your_ideal_pet
Your_ideal_petYour_ideal_pet
Your_ideal_pet
 
Cara Hosting di 0fees
Cara Hosting di 0feesCara Hosting di 0fees
Cara Hosting di 0fees
 
Style sheet
Style sheetStyle sheet
Style sheet
 

Similar to Week16 lec1

Lecture 26 Link Layer .pptx
Lecture 26 Link Layer .pptxLecture 26 Link Layer .pptx
Lecture 26 Link Layer .pptx
HanzlaNaveed1
 
link layer
link layerlink layer
link layer
GS Kosta
 
routerrouterrouterrouterrouterrouterrouter
routerrouterrouterrouterrouterrouterrouterrouterrouterrouterrouterrouterrouterrouter
routerrouterrouterrouterrouterrouterrouter
Ganesan368890
 
Lecture2 mac learning
Lecture2 mac learningLecture2 mac learning
Lecture2 mac learning
denizgurkan_UH
 
Network adpater,cabel,cards ,types, network devices
Network adpater,cabel,cards ,types, network devicesNetwork adpater,cabel,cards ,types, network devices
Network adpater,cabel,cards ,types, network devices
Jafar Nesargi
 
TINA showcase: MOOSE Scalable Ethernet
TINA showcase: MOOSE Scalable EthernetTINA showcase: MOOSE Scalable Ethernet
TINA showcase: MOOSE Scalable Ethernet
mas90
 
Intro to Ethernet
Intro to EthernetIntro to Ethernet
Intro to Ethernet
Belden Incorporated
 
CCNA 1 Chapter 5 v5.0 2014
CCNA 1 Chapter 5 v5.0 2014CCNA 1 Chapter 5 v5.0 2014
CCNA 1 Chapter 5 v5.0 2014
Đồng Quốc Vương
 
Introduction to the OSI 7 layer model and Data Link Layer
Introduction to the OSI 7 layer model and Data Link LayerIntroduction to the OSI 7 layer model and Data Link Layer
Introduction to the OSI 7 layer model and Data Link Layer
VNIT-ACM Student Chapter
 
Clase 4. Routing IP.pdf
Clase 4. Routing IP.pdfClase 4. Routing IP.pdf
Clase 4. Routing IP.pdf
FERNANDOBONILLA43
 
Ethernet_Networking2.ppt
Ethernet_Networking2.pptEthernet_Networking2.ppt
Ethernet_Networking2.ppt
KowsalyaJayakumar2
 
Logisim Ethernet MAC Address Reader(Final)
Logisim Ethernet MAC Address Reader(Final)Logisim Ethernet MAC Address Reader(Final)
Logisim Ethernet MAC Address Reader(Final)
Old Dominion University
 
Networking HMT-2
Networking HMT-2Networking HMT-2
Networking HMT-2
ImranulHasan6
 
Medium Access PROTOCOL b yENGR. FAWAD KHAN UET BANNU KP PAKISTAN
Medium Access PROTOCOL b yENGR.  FAWAD KHAN UET BANNU KP PAKISTANMedium Access PROTOCOL b yENGR.  FAWAD KHAN UET BANNU KP PAKISTAN
Medium Access PROTOCOL b yENGR. FAWAD KHAN UET BANNU KP PAKISTAN
irfan sami
 
Answer sheet of switching & routing
Answer sheet of switching & routingAnswer sheet of switching & routing
Answer sheet of switching & routing
Md. Mashiur Rahman
 
Basic networking course
Basic networking courseBasic networking course
Basic networking course
LuxoftTraining
 
Networking basics
Networking basicsNetworking basics
Networking basics
Sridhar Baithi
 
Lan switching technologies
Lan switching technologiesLan switching technologies
Lan switching technologies
Mohammedseleim
 
Communication networks_ARP
Communication networks_ARPCommunication networks_ARP
Communication networks_ARP
GouravSalla
 
CCNA_ITN_Chp5.pptx
CCNA_ITN_Chp5.pptxCCNA_ITN_Chp5.pptx
CCNA_ITN_Chp5.pptx
NguyenLe340487
 

Similar to Week16 lec1 (20)

Lecture 26 Link Layer .pptx
Lecture 26 Link Layer .pptxLecture 26 Link Layer .pptx
Lecture 26 Link Layer .pptx
 
link layer
link layerlink layer
link layer
 
routerrouterrouterrouterrouterrouterrouter
routerrouterrouterrouterrouterrouterrouterrouterrouterrouterrouterrouterrouterrouter
routerrouterrouterrouterrouterrouterrouter
 
Lecture2 mac learning
Lecture2 mac learningLecture2 mac learning
Lecture2 mac learning
 
Network adpater,cabel,cards ,types, network devices
Network adpater,cabel,cards ,types, network devicesNetwork adpater,cabel,cards ,types, network devices
Network adpater,cabel,cards ,types, network devices
 
TINA showcase: MOOSE Scalable Ethernet
TINA showcase: MOOSE Scalable EthernetTINA showcase: MOOSE Scalable Ethernet
TINA showcase: MOOSE Scalable Ethernet
 
Intro to Ethernet
Intro to EthernetIntro to Ethernet
Intro to Ethernet
 
CCNA 1 Chapter 5 v5.0 2014
CCNA 1 Chapter 5 v5.0 2014CCNA 1 Chapter 5 v5.0 2014
CCNA 1 Chapter 5 v5.0 2014
 
Introduction to the OSI 7 layer model and Data Link Layer
Introduction to the OSI 7 layer model and Data Link LayerIntroduction to the OSI 7 layer model and Data Link Layer
Introduction to the OSI 7 layer model and Data Link Layer
 
Clase 4. Routing IP.pdf
Clase 4. Routing IP.pdfClase 4. Routing IP.pdf
Clase 4. Routing IP.pdf
 
Ethernet_Networking2.ppt
Ethernet_Networking2.pptEthernet_Networking2.ppt
Ethernet_Networking2.ppt
 
Logisim Ethernet MAC Address Reader(Final)
Logisim Ethernet MAC Address Reader(Final)Logisim Ethernet MAC Address Reader(Final)
Logisim Ethernet MAC Address Reader(Final)
 
Networking HMT-2
Networking HMT-2Networking HMT-2
Networking HMT-2
 
Medium Access PROTOCOL b yENGR. FAWAD KHAN UET BANNU KP PAKISTAN
Medium Access PROTOCOL b yENGR.  FAWAD KHAN UET BANNU KP PAKISTANMedium Access PROTOCOL b yENGR.  FAWAD KHAN UET BANNU KP PAKISTAN
Medium Access PROTOCOL b yENGR. FAWAD KHAN UET BANNU KP PAKISTAN
 
Answer sheet of switching & routing
Answer sheet of switching & routingAnswer sheet of switching & routing
Answer sheet of switching & routing
 
Basic networking course
Basic networking courseBasic networking course
Basic networking course
 
Networking basics
Networking basicsNetworking basics
Networking basics
 
Lan switching technologies
Lan switching technologiesLan switching technologies
Lan switching technologies
 
Communication networks_ARP
Communication networks_ARPCommunication networks_ARP
Communication networks_ARP
 
CCNA_ITN_Chp5.pptx
CCNA_ITN_Chp5.pptxCCNA_ITN_Chp5.pptx
CCNA_ITN_Chp5.pptx
 

More from syedhaiderraza

Week14 lec1
Week14 lec1Week14 lec1
Week14 lec1
syedhaiderraza
 
Week11 lec2
Week11 lec2Week11 lec2
Week11 lec2
syedhaiderraza
 
Week11 lec1
Week11 lec1Week11 lec1
Week11 lec1
syedhaiderraza
 
Week10 lec1
Week10 lec1Week10 lec1
Week10 lec1
syedhaiderraza
 
Week9 lec1
Week9 lec1Week9 lec1
Week9 lec1
syedhaiderraza
 
Week8 lec2-bscs1
Week8 lec2-bscs1Week8 lec2-bscs1
Week8 lec2-bscs1
syedhaiderraza
 
Week8 lec1-bscs1
Week8 lec1-bscs1Week8 lec1-bscs1
Week8 lec1-bscs1
syedhaiderraza
 
Week5 lec3-bscs1
Week5 lec3-bscs1Week5 lec3-bscs1
Week5 lec3-bscs1
syedhaiderraza
 
Week5 lec2-bscs1
Week5 lec2-bscs1Week5 lec2-bscs1
Week5 lec2-bscs1
syedhaiderraza
 
Week5 lec1-bscs1
Week5 lec1-bscs1Week5 lec1-bscs1
Week5 lec1-bscs1
syedhaiderraza
 
Week4 lec2-bscs1
Week4 lec2-bscs1Week4 lec2-bscs1
Week4 lec2-bscs1
syedhaiderraza
 
Week4 lec1-bscs1
Week4 lec1-bscs1Week4 lec1-bscs1
Week4 lec1-bscs1
syedhaiderraza
 
Week3 lec3-bscs1
Week3 lec3-bscs1Week3 lec3-bscs1
Week3 lec3-bscs1
syedhaiderraza
 
Week3 lec 2
Week3 lec 2Week3 lec 2
Week3 lec 2
syedhaiderraza
 
Week3 lec 1
Week3 lec 1Week3 lec 1
Week3 lec 1
syedhaiderraza
 
Week2 lec3-bscs1
Week2 lec3-bscs1Week2 lec3-bscs1
Week2 lec3-bscs1
syedhaiderraza
 
Week2 lec2-bscs1
Week2 lec2-bscs1Week2 lec2-bscs1
Week2 lec2-bscs1
syedhaiderraza
 
Week2 lec1-bscs1
Week2 lec1-bscs1Week2 lec1-bscs1
Week2 lec1-bscs1
syedhaiderraza
 
Week1 lec2-bscs1
Week1 lec2-bscs1Week1 lec2-bscs1
Week1 lec2-bscs1
syedhaiderraza
 
Week1 lec1-bscs1
Week1 lec1-bscs1Week1 lec1-bscs1
Week1 lec1-bscs1
syedhaiderraza
 

More from syedhaiderraza (20)

Week14 lec1
Week14 lec1Week14 lec1
Week14 lec1
 
Week11 lec2
Week11 lec2Week11 lec2
Week11 lec2
 
Week11 lec1
Week11 lec1Week11 lec1
Week11 lec1
 
Week10 lec1
Week10 lec1Week10 lec1
Week10 lec1
 
Week9 lec1
Week9 lec1Week9 lec1
Week9 lec1
 
Week8 lec2-bscs1
Week8 lec2-bscs1Week8 lec2-bscs1
Week8 lec2-bscs1
 
Week8 lec1-bscs1
Week8 lec1-bscs1Week8 lec1-bscs1
Week8 lec1-bscs1
 
Week5 lec3-bscs1
Week5 lec3-bscs1Week5 lec3-bscs1
Week5 lec3-bscs1
 
Week5 lec2-bscs1
Week5 lec2-bscs1Week5 lec2-bscs1
Week5 lec2-bscs1
 
Week5 lec1-bscs1
Week5 lec1-bscs1Week5 lec1-bscs1
Week5 lec1-bscs1
 
Week4 lec2-bscs1
Week4 lec2-bscs1Week4 lec2-bscs1
Week4 lec2-bscs1
 
Week4 lec1-bscs1
Week4 lec1-bscs1Week4 lec1-bscs1
Week4 lec1-bscs1
 
Week3 lec3-bscs1
Week3 lec3-bscs1Week3 lec3-bscs1
Week3 lec3-bscs1
 
Week3 lec 2
Week3 lec 2Week3 lec 2
Week3 lec 2
 
Week3 lec 1
Week3 lec 1Week3 lec 1
Week3 lec 1
 
Week2 lec3-bscs1
Week2 lec3-bscs1Week2 lec3-bscs1
Week2 lec3-bscs1
 
Week2 lec2-bscs1
Week2 lec2-bscs1Week2 lec2-bscs1
Week2 lec2-bscs1
 
Week2 lec1-bscs1
Week2 lec1-bscs1Week2 lec1-bscs1
Week2 lec1-bscs1
 
Week1 lec2-bscs1
Week1 lec2-bscs1Week1 lec2-bscs1
Week1 lec2-bscs1
 
Week1 lec1-bscs1
Week1 lec1-bscs1Week1 lec1-bscs1
Week1 lec1-bscs1
 

Recently uploaded

ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
sayalidalavi006
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 

Recently uploaded (20)

ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 

Week16 lec1

  • 1. Chapter 5 Link Layer Computer Networking: A Top Down Approach 4th edition. Jim Kurose, Keith Ross Addison-Wesley, July 2007.
  • 4. Switch  Link-layer Device Store, forward Ethernet frames  Examine incoming frame’s MAC address  Selectively forward frame to the outgoing link  Switch itself is transparent to the nodes  Nodes are unaware of presence of switches  Plug-and-Play  Switches do not need to be configured  Two important functions:  Filtering  • Determines whether a frame should be forwarded to some interface or should be dropped.  Forwarding • Determine the interface to which a frame should be directed
  • 5. Switch Table  Q: How does switch know that A’ reachable via interface 4, B’ reachable via interface 5? A C’ B  A: Each switch has a switch table, each entry:  MAC address of a host  Interface that leads towards the host  Time at which the entry for the node as placed in the table  How is the table created? 6 1 5 2 3 4 C B’ A’ switch with six interfaces (1,2,3,4,5,6)
  • 6. Switch: self-learning  switch learns which hosts can be reached through which interfaces   Source: A Dest: A’ A A A’ C’ when frame received, switch “learns” location of sender: incoming LAN segment records sender/location pair in switch table B 1 6 5 2 3 4 C B’ A’ MAC addr interface TTL A 1 60 Switch table (initially empty)
  • 7. Self-Learning,Forwarding:Example Source: A Dest: A’ A A A’ C’ B  frame destination unknown: flood 6 A A’ 1 2 4 5  destination A location known: selective send C A’ A B’ 3 A’ MAC addr interface TTL A A’ 1 4 60 60 Switch table (initially empty)
  • 8. Interconnecting Switches  switches can be connected together S4 S1 S2 A B S3 C F D E I G H  Q: sending from A to G - how does S1 know to forward frame destined to G via S4 and S3?  A: self learning! (works exactly the same as in single-switch case!)
  • 9. Switch: Advantages  Elimination of Collisions:  Switches buffer frames and never transmit more than one frame on any segment at one time  Modern switches are Full Duplex  Heterogeneous Links  Switch isolates one link from another  Different links can operate at different speeds and over different media Difference between Hubs and Switches? Difference between Switches and Routers? (Home Assignment)
  • 10. MAC Addresses  32-bit IP address:  network-layer address used to get datagram to destination IP subnet  MAC (or LAN or physical or Ethernet) address:  A node also has a link layer address  • Nodes adapter  6 Bytes (48 bit) MAC address (for most LANs) • Expressed in Hexadecimal notation  No two adapters have the same MAC address  IEEE manages the MAC address space  MAC address does not change no matter where the adapter goes  MAC address: like NIC number IP address: like postal address
  • 11. MAC Addresses Each adapter on LAN has unique LAN address 1A-2F-BB-76-09-AD 71-65-F7-2B-08-53 LAN (wired or wireless) Broadcast address = FF-FF-FF-FF-FF-FF = adapter 58-23-D7-FA-20-B0 0C-C4-11-6F-E3-98
  • 12. ARP: Address Resolution Protocol  How does the sending node A with IP 222.222.222.220 determine the MAC address for the destination node B with IP address say 222.222.222.222?  Job of Address Resolution Protocol (ARP)  ARP module in the sending node • Takes IP address on the same LAN as input • Return corresponding MAC address  Each node has an ARP table   Contains mapping of IP addresses to MAC addresses The ARP table contains a time-to-live (TTL) value • Indicates when each mapping will be deleted from the table • Typical expiration time is 20 minutes
  • 13. ARP: 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  Destination MAC address = FF-FF-FF-FFFF-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)  ARP is “plug-and-play”:  nodes create their ARP tables without intervention from network administrator
  • 14. Addressing: Routing to another LAN Send datagram from A to B via Router (R) assume A knows B’s IP address 88-B2-2F-54-1A-0F 74-29-9C-E8-FF-55 A 111.111.111.111 E6-E9-00-17-BB-4B 1A-23-F9-CD-06-9B 222.222.222.220 111.111.111.110 111.111.111.112 R 222.222.222.221 222.222.222.222 B 49-BD-D2-C7-56-2A CC-49-DE-D0-AB-7D  Router has two interfaces, two IP addresses, two ARP modules and two adapters
  • 15.  A creates IP datagram with destination IP of B  A uses ARP to get MAC address of R (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 adapter sends frame R’s adapter receives frame R removes IP datagram from frame, sees its destined to B R uses ARP to get B’s MAC address R creates frame containing A-to-B IP datagram and sends to B 88-B2-2F-54-1A-0F 74-29-9C-E8-FF-55 A E6-E9-00-17-BB-4B 111.111.111.111 222.222.222.220 111.111.111.110 111.111.111.112 CC-49-DE-D0-AB-7D 222.222.222.221 1A-23-F9-CD-06-9B R 222.222.222.222 B 49-BD-D2-C7-56-2A
  • 16. Announcements  Lab Final on Wednesday, 1st January 2014 Every one has to be present at 2pm Objective paper: 25 min at 2pm Hands-on Exam: 45 min For Hands-on Exam: Class divided into two groups On the Spot Marking of Hands-on Exam
  • 17. Announcements  Research Presentations/Demos  Thursday 2nd January, 2014 • 12pm-1pm and 3pm-5pm  Friday 3rd January, 2014 • 11am-1pm and 2pm- 4pm  Bring hardcopy of your allocated Paper and report  Viva/Report for programming project  Paper Showing on 15th January, 2014 after exam of Software Engineering at 1pm.  Venue will be notified via email