eitf25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · network layer •...

45
Internet Protocols -1- Network Layer 2015, Lecture 04 Kaan Bür EITF25 – Internet: Technology and Applications

Upload: others

Post on 07-May-2020

4 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

InternetProtocols-1-

NetworkLayer

2015,Lecture04Kaan Bür

EITF25– Internet:TechnologyandApplications

Page 2: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

PreviouslyonEITF25

• Accessmethods– SlottedALOHA,CSMA/CD

• Ethernet– Evolutionoflocalareanetworks

• WirelessLAN– Hiddenterminalproblem– CSMA/CA

2015-11-16 EITF25– Internet:TechnologyandApplications

MediumAccessControlSublayer

2

Page 3: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Network layer

• Principlesofdigitalcommunications– Fromelectricalsignalstobitstopackets

• Usingthephysicalinfrastructure– Networkaccess

• Findingyourway– Addressing,routing

• Makinguseofitall– Applications

2015-11-16 EITF25– Internet:TechnologyandApplications 3

Page 4: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Today:InternetProtocols (1)

• Internetworking,routing[S1.5,S19.1][F18.1-2]

• InternetProtocol,v4&v6[S14.1-4][F18.4-5,F19.1,F22.1-2]

*[Kihl&Andersson:6.1-3,7.1-5,7.8,8.2]2015-11-16 EITF25– Internet:TechnologyandApplications

NetworkLayer

4

Page 5: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Internetadministration

Source:http://www.hill2dot0.com2015-11-16 EITF25– Internet:TechnologyandApplications 5

Page 6: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Internethierarchy

2015-11-16 EITF25– Internet:TechnologyandApplications 6

Page 7: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Networkarchitecture

• TwotypesofnetworksinInternet– Backbonenetworks– Accessnetworks

• InternetServiceProviders(ISP)– Today,theaccessnetworksandsomeofthebackbonenetworksareownedbyprivateISP.

• NetworkAccessPoints(NAP)– Switchingstationsprovidingconnectionbetweenbackbonenetworks

2015-11-16 EITF25– Internet:TechnologyandApplications 7

Page 8: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

OrganisationofInternet

2015-11-16 EITF25– Internet:TechnologyandApplications 8

Page 9: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Host-to-hostdelivery

• Multipleapplicationsevenonthesamehost

2015-11-16 EITF25– Internet:TechnologyandApplications 9

Page 10: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Networklayer

• L3– end-to-end

• L2– hop-by-hop

2015-11-16 EITF25– Internet:TechnologyandApplications 10

Page 11: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Networklayer:Routing

• L3isend-to-end

Twofunctions:❶ Addressing❷ Feedback2015-11-16 EITF25– Internet:TechnologyandApplications 11

Page 12: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Routing

• Choosingtheoptimalpath– Usingacostmetric

• Sharinginformation– Central– Distributed

• Algorithms– Rulesandprocedures– Updates

2015-11-16 EITF25– Internet:TechnologyandApplications 12

Page 13: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

• Choosingtheoptimalpath– Usingacostmetric

Packet-switchedrouting

2015-11-16 EITF25– Internet:TechnologyandApplications 13

Page 14: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

SA DA Data SA DA Data

Router

• Internetworkingdevice– Passesdatapacketsbetweennetworks– ChecksNetworkLayeraddresses– UsesRouting/forwardingtables

Twofunctions:❶ Routing❷ Forwarding

2015-11-16 EITF25– Internet:TechnologyandApplications 14

Page 15: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Routingalgorithm

• Findroutewithleastcostbetweensourceanddestination.

• Updateroutingtables

2015-11-16 EITF25– Internet:TechnologyandApplications 15

Page 16: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Networklayerprotocols

• Weneedauniversaladdresssystem.Thisiscalledthenetworkaddress.

• Weneedrulesfordataforwarding.Thisiscalledrouting.

• Weneedentitiesconnectingseveralnetworkstogetherandforwardingdatabetweenthem.Thesearecalledrouters.

2015-11-16 EITF25– Internet:TechnologyandApplications 16

Page 17: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

InternetProtocol

IPv4• Addressingscheme

– Hierarchy– Configuration– Lookup

• Datagramformat

IPv6• Largeraddressspace• Betterheaderformat

– Extendible– Moresecure

• Support forQoS

2015-11-16 EITF25– Internet:TechnologyandApplications 17

Page 18: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Internet

• AllnetworksthatarepartofInternethaveonethingincommon:Theyallusethesamenetworkprotocol,InternetProtocol(IP)!

• Theydonotneedtousethesamelinkprotocols,whichmeansthatallkindsofnetworkscanbepartofInternet.

• TheprotocolframeworkforInternetiscalledtheTCP/IPmodel.

2015-11-16 EITF25– Internet:TechnologyandApplications 18

Page 19: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

TCP/IPmodel

• Sometimesillustratedwithahourglass.

• IPcanbeusedonalltypesofnetworks

• ThishasmadeInternetwhatitistoday.

2015-11-16 EITF25– Internet:TechnologyandApplications 19

Page 20: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

IPv4addresses

• 32bits=4bytes• 232 =(28)4 =2564 =4294967296• Classfulvs.classlesshierarchy

• Notations– Dotteddecimal– Slash(CIDR)

2015-11-16 EITF25– Internet:TechnologyandApplications 20

Page 21: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Classfuladdressing

• Fiveaddressclassesdefined:A,B,C,(DandE)

2015-11-16 EITF25– Internet:TechnologyandApplications 21

Page 22: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Classfuladdressing

• Organizationscanonlygetaddressesinoneofthepredefinedblocks.

2015-11-16 EITF25– Internet:TechnologyandApplications 22

Page 23: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Addressdepletion

• ClassfuladdressingdefinedastherewereveryfewnetworksconnectedtotheInternet.

• WiththegrowthofInternet,theaddressclassesdidn’tmatchthereality.

• Subnettingandsupernettingwasintroduced.– ClassAandBaddressblocksdividedintosubnets.– SeveralClassCaddressblockscombinedintolargerblockscalledsupernets.

2015-11-16 EITF25– Internet:TechnologyandApplications 23

Page 24: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Classlessaddressing

• Addressesinblocks– Blocksizepowerof2– N =232-n

– FirstaddressdivisiblebyN

2015-11-16 EITF25– Internet:TechnologyandApplications

NETID HOSTID

24

Page 25: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Exercise: Classlessaddressing

• CIDR=slashnotationwithmask/n• 205.16.37.39/28

2015-11-16 EITF25– Internet:TechnologyandApplications 25

Page 26: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Seeyouin15’:)

• Afterthebreak– IPv6– Fragmentation– Forwarding,ARP

2015-11-16 EITF25– Internet:TechnologyandApplications 26

Page 27: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

ProblemswithIPv4

• Addressspacetoosmall• Notdesignedforreal-timeapplications• Nosupportforencryptionandauthentication

2015-11-16 EITF25– Internet:TechnologyandApplications

IPv627

Page 28: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

SomeadvantageswithIPv6

• Largeraddressspace:128bit-longaddresses.• Betterheaderformat:baseheaderhasconstantlength(40bytes).Optionscanbeinsertedwhenneeded.

• Supportformoresecurity:Encryptionandauthenticationoptions.

• Supportforreal-timeapplications:Specialhandlingofdatagramcanberequested.

2015-11-16 EITF25– Internet:TechnologyandApplications 28

Page 29: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

IPv6addresses

• 128bits=16bytes• 2128 =232 ·296 >3·1035

• Notations

2015-11-16 EITF25– Internet:TechnologyandApplications 29

Page 30: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Globalunicastaddresses

• Identifyindividualcomputers

2015-11-16 EITF25– Internet:TechnologyandApplications

TYPEAREA

ISPORGANISATION

30

Page 31: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

IPv4datagram

2015-11-16 EITF25– Internet:TechnologyandApplications 31

Page 32: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

• Simplerbaseheader,flexibleforextensions

IPv6datagram

2015-11-16 EITF25– Internet:TechnologyandApplications 32

Page 33: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

IPv6extensionheaders

2015-11-16 EITF25– Internet:TechnologyandApplications 33

Page 34: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

TrafficClassesà Packetpriorities

• 0..7– Congestioncontrolled

• 8..15– Non-congestioncontrolled

2015-11-16 EITF25– Internet:TechnologyandApplications 34

Page 35: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

IPv6andQoS

Flowlabel• Identificationofastream

– TCPsessions– Virtualconnections

• Processing– Flowlabeltable– Forwardingtable

• Routing– Algorithmsstillnecessary– Butnotrunforeverypacket!

Trafficclass• Classificationofpackets

– Queueingschemes– Relationtodelay

• TCPvs.UDP– Congestion-controlled– Non-congestion-controlled

• Otherprotocols– RTP– RSVP

2015-11-16 EITF25– Internet:TechnologyandApplications

CROSS-LAYER?

35

Page 36: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Transition:IPv4à IPv6

• Cannothappenovernight– Toomanyindependentsystems– Economiccost– IPv4addressspacelastedlongerthanexpected

• Coexisenceneeded

2015-11-16 EITF25– Internet:TechnologyandApplications 36

Page 37: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Maximumdatagramsize

2015-11-16 EITF25– Internet:TechnologyandApplications 37

Page 38: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Fragmentation

• NeededwhenIPdatagramsize>MTU• IPv4– Performedbytheroutermeetingtheproblem

• IPv6– Performedbythesourcerouteronly

• Defragmentationbydestinationhost

2015-11-16 EITF25– Internet:TechnologyandApplications 38

Page 39: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Fragmentationfield

2015-11-16 EITF25– Internet:TechnologyandApplications 39

Page 40: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Fragmentationoffset

• Relativelocationoffragments• 13bits<16bitsà /8

2015-11-16 EITF25– Internet:TechnologyandApplications 40

Page 41: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Fragmentationexample

2015-11-16 EITF25– Internet:TechnologyandApplications 41

Page 42: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Forwarding:Addressaggregation

2015-11-16 EITF25– Internet:TechnologyandApplications 42

Page 43: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Forwarding:Longestmaskmatching

2015-11-16 EITF25– Internet:TechnologyandApplications 43

Page 44: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Forwarding:Hierarchicalrouting

2015-11-16

ISP

EITF25– Internet:TechnologyandApplications 44

Page 45: EITF25 -20151116-04 internet protocols -1- network layer · 2015-11-16 · Network layer • Principles of digital communications – From electrical signals to bits to packets •

Summary: InternetProtocols (1)

• Internetarchitecture,internetworking– End-to-endprinciple,routing

• InternetProtocol– Addressing,datagramformat– IPv4vsIPv6– Fragmentation– Forwarding

2015-11-16 EITF25– Internet:TechnologyandApplications 45