ipv4/ipv6 - arp/ndp - eit.lth.se · • global frame format. network protocol network protocol link...
TRANSCRIPT
![Page 1: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/1.jpg)
ETSF15: Lecture 5- Routing- Network protocols
- IPv4/IPv6- ARP/NDP
Jens A Andersson
![Page 2: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/2.jpg)
2
Link topologiesBus
Ring
Star
![Page 3: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/3.jpg)
3
Generic multiplexing
Allocate channels in the available transmission medium
![Page 4: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/4.jpg)
4
Synchronous time division multiplex
Forwards one frame per channel in round robin If channel has nothing to send, corresponding time slot is i empty.
Multiplexor
![Page 5: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/5.jpg)
5
Statistical time division multiplexing
Frames are transmitted as they arrive. Need buffering if outgoing link is occupied.Need ‘address’ for channel identification
5
237
468
1
Multiplexor12345
![Page 6: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/6.jpg)
Access methods
Multiple access requires ordered access!
6
![Page 7: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/7.jpg)
ALOHA
University of Hawaii (1971)7
Yellow=Broadcast channel (from central node)Blue=Common channel (to central node)
![Page 8: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/8.jpg)
Carrier Sense Multiple Access (CSMA)
CS: Listen before transmit If busy, wait and try
again
CSMA/CD CD: Collision Detection Listen for collision while
transmitting Works only in wired
environment
CSMA/CA CA: Collision avoidance Request channel before
sending RTS/CTS (master/slave)
8
![Page 9: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/9.jpg)
9
The need for addresses
All stations must have a unique address.All stations receives frame.Only addressed station handle the frame
A B C D
Frame to C Frame to C
![Page 10: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/10.jpg)
Domains
Collision domainEvery station are effected by the same collisionNumber of (busy) stations in a domain affects throughput
Broadcast domainEvery station receives the same broadcast messageAlas: there exists a broadcast address!Number of stations/broadcasts in a domain affects
throughput
10
![Page 11: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/11.jpg)
Circuit switching
![Page 12: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/12.jpg)
Packet Switching
![Page 13: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/13.jpg)
13
Ethernet, wiredEthernet developed by Xerox, Intel and DEC 1976.IEEE 802.3 is based on Ethernet.Ethernet version II is included in IEEE802.3Differences in the frame format but can co-exist on same
link as 802.3.
Preamble SFD DA SA Type CRC
7 1 6 6 2
Data
46-1500 4
SFD=Start frame delimiter DA=Destination address SA=Source address
![Page 14: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/14.jpg)
14
Protocol structure so far
interface interfaceMAC MAC
frame transfer
Bridge
application
LLC
interfaceMAC
Sender
application
LLC
interfaceMAC
Receiver
Link 1 Link 2
A bridge recognises frames!
![Page 15: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/15.jpg)
15
Extended Networks
All layer 2 networks have limitations in reach.There is a demand for connecting networks.
![Page 16: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/16.jpg)
16
Layer 2 networks for long reach
SONET/SDH encapsulates several telephone calls (64kbps) in a hierarki of flows flows can be added or dropped
ATM for telephony and data cells, small equal sized frames ”packet switching” over virtual circuits (label switching)
Ethernet based networks for long distancesWDM – Wavelength Division Multiplexing
![Page 17: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/17.jpg)
17
Switches selects routes?
In networks there might (preferable) exist mutliple paths. Switches must keep track of all stations!
![Page 18: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/18.jpg)
The objective of a switch?
Connects networks with same L2 protocol Selects next network for incoming frames depending on destination address.
![Page 19: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/19.jpg)
19
Routing
Routing = selection of best path to destination Router generic name for a best path selector on layer 3 Some layer 2 protocols include some form of routing
Adapt best path to dynamics in the network Based on Graph theoryE.g. Dijkstra Shortest Path First
Switching/Forwarding = select output interface and next hop based on best path
![Page 20: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/20.jpg)
Routing (cont …)
Principles Centralised
Remote switching/forwarding nodes send networkinformation to central node that finds best paths and pushes those to switching/forwarding nodes
DistributedAll nodes share network information and find best paths
20
![Page 21: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/21.jpg)
21
Flooding
Incoming frames are copied out on all other ports. To break loops: All frames must have a hop counter.
Switch
![Page 22: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/22.jpg)
22
Network graphs
A graph has nodes and edges (sv noder och bågar)
A
D
B
E
C
![Page 23: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/23.jpg)
23
Network graphs (cont …)
Each edge is assigned a cost In network cost to use a link
A
D
B
E
C2 3
11
3
11
![Page 24: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/24.jpg)
24
Link cost metrics
Capacity/Bit rateLoadType of networkFixedMobileWifi
LatencyEtc …
![Page 25: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/25.jpg)
25
Least-hop path
Least-hop path assumes link/edge cost is equal for all links/edgesPath with least hop is preferred
A
D
B
E
C
![Page 26: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/26.jpg)
26
Least-cost path
Adapt to different link/edge costPath with least cumulative cost is preferred
A
D
B
E
C2 3
11
3
11
![Page 27: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/27.jpg)
Problem!
If LANs don’t have same L2 protocol?Different propagation mediaDifferent signalingDifferent frame structureDifferent MAC layer address formats
![Page 28: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/28.jpg)
Solution: Network Layer Protocol
• Rides on top of any layer 2 network• Encapsulation (a frame as payload of another frame)
• Global address structure• Network ID requirement
• Flat structure impossible; requires all addresses known to all switches
• Host ID is address to individual host on a network
• Global frame format
![Page 29: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/29.jpg)
Network Protocol
networkprotocol
link
interface
network
application
link
interface
network
application
link
interface
network
interface
link
Sender Receiver
routernetworkprotocol
![Page 30: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/30.jpg)
One Network Protocol: IP
IP = Internet ProtocolIP used on what is called Internet.IP defines IP addresses.Data transfered in IP packets/datagrams.Connection Free datatransfer. No error detection or control.This is called ”best-effort”.
![Page 31: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/31.jpg)
31
Connection Oriented data transfer
New connectionConnection approved
Data transfer
End connectionConnection ended
![Page 32: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/32.jpg)
32
Connection Free data transfer
Data transfer
![Page 33: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/33.jpg)
Internet Protocol• Two versions in parallel: version 4 (IPv4) och version 6
(IPv6). • Incompatible• Translation needed
• IPv4 developed during 1970s. • All IPv4 addresses are allocated!
• IPv6 supports • More addresses• Realtime media transfer (built in)• Encryption and autentication (built in)
![Page 34: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/34.jpg)
34
IPv4 datagram
header data/payload20-60 bytes 0-65.515 bytes
![Page 35: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/35.jpg)
35
IPv4 header format
sequence number frg. fragment positiontime to live protocol check sum
source addressdestination address
vers. hl. type datagram length0 4 8 16 31
options padding
![Page 36: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/36.jpg)
IPv4 address structure
IPv4 addresses are 32 bits long. 4.3 109 idividual addressesOnly 3.8 109 can be used
Printed as 4 decimal numbers; full stop as delimiterDot decimal notation4 bytes/octets
10000010 11101011 00010010 100111102
130.235.18.15810
=
![Page 37: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/37.jpg)
37
IPv4 address structure (2)
Two parts: Network identity (net id)Host identity (host id)
One EIT IP address = 130.235.202.173
EIT network id = 130.235.200????
![Page 38: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/38.jpg)
38
IPv4 address structure (3)Classful adddressing
0 net id host id7 24
A:
10 net id host id14 16
B:
110 net id host id21 8
C:
![Page 39: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/39.jpg)
IPv4 address structure (4)Subnetting
Split network into subnets: Add a subnet mask 32 bit vector
Ones identify bits in net id Always consecutive from the left
Zeros identify bits in host id
255.255.255.128Splits one C net into two subnetsSplits one B net into 512 subnets
39
![Page 40: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/40.jpg)
40
IPv4 address structure (3)Classless adddressing (CIDR)
Skip classes Use only (sub)net mask
Address: 11011110 00010111 01000011 01000100Mask: 11111111 11111111 11000000 00000000Net id: 11011110 00010111 01000000 00000000Host id: 00000000 00000000 00000011 01000100
![Page 41: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/41.jpg)
IPv6 datagram
41
header data40 bytes 0-65.535 bytes
![Page 42: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/42.jpg)
42
IPv6 header format
Payload length Next header Hop limit
Source address (16 bytes)
Destination address (16 bytes)
Vers. Traffic class Flow label0 4 2416 3112
![Page 43: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/43.jpg)
IPv6 address structure
IPv6 addresses are 128 bits long 3.4 1038 individual addresses
010A : 1234 : E4F5 : 1003 : 4567 : BC98 : 0000 : 234116
![Page 44: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/44.jpg)
IPv6 address structure (2)
• Address space divided into blocks• Each block idetified by its block prefix
• 001 = global unicast ; host to host)• 1111 110 = unique local unicast ; corresponds to IPv4
private adresses, rfc 1918• 1111 1110 11 = link local ; used in combination with
MAC address for auto configuration
44
![Page 45: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/45.jpg)
IPv6 address structure (3)Printed as eight hexadecimal numbers; colon delimiterColon-hexadecimal notation
• Leading zeros in a group kan be omitted• Consecutive groups with zeros only
• Can be printed as : : • Only allowed once per address
45
![Page 46: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/46.jpg)
IPv6 address structure (4)
FDEC : 0102 : 0000 : 0000 : 0000 : EB82 : 0013 : 14A5
can be shortened to
FDEC : 102 : : EB82 : 13 : 14A5
46
![Page 47: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/47.jpg)
IPv6 address structure (5)
• Net id or host id?• Compare IPv4 (sub)net mask• Printed as number of consecutive ones• Exempel prefix: FDEC::BBFF:0:FFFF/60
• The first 60 bits gives the net id
47
![Page 48: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/48.jpg)
48
Check Sum (Hash Sum)
Split the bit vector into equal sized segments Calculate sum over all the segments Remove carry bits and add to the sum
Before transmissionCalculate the sum’s one complement
Send segments and the one complemented sum
![Page 49: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/49.jpg)
49
Check Sum (Hash Sum) (2)
Receiver side:Split the bit vector into equal sized segments
same segments size as the sending end
Calculate sum over all the segments Remove carry bits and add to the sum
Calculate the sum’s one complement If complement of sum = 0 then segments are received
without error
![Page 50: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/50.jpg)
From IP address to MAC-adress
• Hosts have to know MAC addresses to be able tocommunicate on one LAN
• Find out the MAC/IP address mapping• IPv6 uses sub protocol of Neighbor Discovery Protocol
(NDP)• IPv4 uses Address Resolution Protocol (ARP)
![Page 51: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/51.jpg)
51
From IPv4 address to MAC address
ARP:Before transmitting an IP datagram sender must know of the corresponding MAC address on the same LANARP caches known IP/MAC address pairFirst look in ARP cache; if not found ask for it on the LAN
![Page 52: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/52.jpg)
52
From IPv4 address to MAC address (2)
A B C D
A B C D
ARP reply MAC a:b:c:d:e:f
C’s IP =v.x.y.zARP request IP v.x.y.z (broadcast)
![Page 53: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/53.jpg)
53
From IPv4 address to MAC address (3)
If the IPv4 address is to another network the default gateway’s MAC address has to be used
A B C D E F G H
![Page 54: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/54.jpg)
”Routing” in a host
• Sending host must know• Is destination on same network?• If not, which is the path to the outside world?
• Compare own net id with destinations net id:• If the same: ARP request for destination’s MAC address• If different: ARP request for default gateway’s MAC
address
54
![Page 55: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/55.jpg)
55
ARP (1)
![Page 56: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/56.jpg)
56
ARP (2)
![Page 57: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/57.jpg)
From IPv6 address to MAC address
• NDP ion stead of ARP• NDP is part of ICMPv6
• Internet Control Message Protocol• Supporting protocol for IPv6
• Neighbor-Solicitation Message corresponds to ARP request
• Neighbor-Advertisement Message corresponds toARP reply
![Page 58: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/58.jpg)
58
NDP (1)
![Page 59: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/59.jpg)
59
NDP (2)
![Page 60: IPv4/IPv6 - ARP/NDP - eit.lth.se · • Global frame format. Network Protocol network protocol link interface network application link interface network application link interface](https://reader030.vdocuments.site/reader030/viewer/2022021706/5b86b9bc7f8b9a212e8cc8ff/html5/thumbnails/60.jpg)
NDP (3)
Also Automatic Configuration• Network Discovery• Host ”invents” own address• Ask all stations on the LAN if there is a conflict• Requests net id and default gateway’s address