Docsity

Understanding Internet Structure & Functioning: Addressing, Routing & Packets, Slides of Computer Science

Partial preview of the text

Download Understanding Internet Structure & Functioning: Addressing, Routing & Packets and more Slides Computer Science in PDF only on Docsity!

The Internet

An Engineering Approach to Computer NetworkingAn Engineering Approach to Computer Networking

nn My how you’ve grown!

The Internet has doubled in size every year since 1969The Internet has doubled in size every year since 1969

nn

In 1996, 10 million computers joined the InternetIn 1996, 10 million computers joined the Internet

nn

By July 1997, 10 million more will join!By July 1997, 10 million more will join!

nn

uu accountaccountSoon, everyone who has a phone is likely to also have an emailSoon, everyone who has a phone is likely to also have an email

already nearly true for Ithacaalready nearly true for Ithaca

uu

addresses in white pagesaddresses in white pagesPacTel telephone directories are planning to include emailPacTel telephone directories are planning to include email

# Example of message routing

traceroute

(^) henna.iitd.ernet.in

traceroute

(^) henna.iitd.ernet.in

traceroute

(^) to (^) henna.iitd.ernet.in

(^) hops

(^) max,

(^40) (^) byte

(^) packets

traceroute

(^) to (^) henna.iitd.ernet.in

(^) hops

(^) max,

(^40) (^) byte

(^) packets

UPSONUPSON2-NP.CIT.CORNELL.EDU

ms (^1) ms (^1) ms

2-NP.CIT.CORNELL.EDU

ms (^1) ms (^1) ms

HOLHOL1-MSS.CIT.CORNELL.EDU

ms 3 ms

ms

1-MSS.CIT.CORNELL.EDU

ms 3 ms

ms

CORE1-MSS.CITCORE1-MSS.CIT.CORNELL.EDU

2 ms

ms 2 ms

.CORNELL.EDU

2 ms

ms 2 ms

CORNELLNET1.CITCORNELLNET1.CIT.CORNELL.EDU (132.236.100.10)

ms (^3) ms (^4) ms

.CORNELL.EDU (132.236.100.10)

ms (^3) ms (^4) ms

ny-

ny-ith ith-1-H1/0-T3. -1-H1/0-T3.nysernet

nysernet.net

ms (^5) ms (^4) ms

.net (^) (169.130.61.9)

ms (^5) ms (^4) ms

ny-

ny-ith ith-2-F0/0. -2-F0/0.nysernet

nysernet.net

4 ms

ms 3 ms

.net (^) (169.130.60.2)

4 ms

ms 3 ms

ny-

ny-pen pen-1-H3/0-T3. -1-H3/0-T3.nysernet

nysernet.net

(^) ms

19 ms

16 ms

.net (^) (169.130.1.121)

(^) ms

19 ms

16 ms

sl-

sl-pen pen-21-F6/0/0. -21-F6/0/0.sprintlink

sprintlink.net

16 ms

(^) ms

36 (^) ms

.net (^) (144.228.60.21)

16 ms

(^) ms

36 (^) ms

core4-hssi5-0.

core4-hssi5-0.WestOrange.mci

WestOrange.mci.net (206.157.77.105)

(^) ms

20 (^) ms

24 (^) ms

.net (206.157.77.105)

(^) ms

20 (^) ms

24 (^) ms

core2.

core2.WestOrange.mci

WestOrange.mci.net

(^) ms

34 (^) ms

26 (^) ms

.net (^) (204.70.4.185)

(^) ms

34 (^) ms

26 (^) ms

border7border7-fddi-0.WestOrange.mci.net

(^) ms

21 (^) ms

21 (^) ms

-fddi-0.WestOrange.mci.net

(^) ms

21 (^) ms

21 (^) ms

vsnl-poone-512k.WestOrange.mci.netvsnl-poone-512k.WestOrange.mci.net

(^) ms

639 (^) ms

621 (^) ms

(^) ms

639 (^) ms

621 (^) ms

(^) ms

629 (^) ms

628 (^) ms

(^) ms

629 (^) ms

628 (^) ms

(^) ms

1349 (^) ms

1343 (^) ms

(^) ms

1349 (^) ms

1343 (^) ms

henna.iitd.ernet.in

(^) ms

1405

(^) ms

1368

(^) ms

henna.iitd.ernet.in

(^) ms

1405 (^) ms

1368 (^) ms

nn Intranet, Internet, and Extranet

uu Intranets are administered by a single entityIntranets are administered by a single entity

e.g. Cornell campus networke.g. Cornell campus network

nn

uu Internet is administered by a coalition of entitiesInternet is administered by a coalition of entities

name services, backbone services, routing services etc.name services, backbone services, routing services etc.

nn

uu Extranet is a marketing termExtranet is a marketing term

servicesservicesrefers to exterior customers who can access privileged Intranetrefers to exterior customers who can access privileged Intranet

uu

e.g. Cornell could provide ‘extranet’ services to Ithaca collegee.g. Cornell could provide ‘extranet’ services to Ithaca college

nn Example: joining the Internet

uu How can people talk to you?How can people talk to you?

get an IPget an IP address

address from your administrator

from your administrator

nn

uu How do you know where to send your data?How do you know where to send your data?

if you only have a single external connection, then no problemif you only have a single external connection, then no problem

uu

otherwise, need to speak aotherwise, need to speak a routing protocol

routing protocol to decide next hop

to decide next hop

nn

uu How to format data?How to format data?

destination addressdestination addressuse the IP format so that intermediate routers can understand theuse the IP format so that intermediate routers can understand the

nn

If you meet these criteria--you’re on the Internet!If you meet these criteria--you’re on the Internet!

nn

uu Decentralized, distributed, and chaoticDecentralized, distributed, and chaotic

but it scales (why?)but it scales (why?)

nn What lies at the heart?

uu Two key technical innovationsTwo key technical innovations

packetspackets

uu

store and forwardstore and forward

nn Store and forward

Metadata allows us to forward packets when we wantMetadata allows us to forward packets when we want

nn

uu E.g. letters at a post office headed for main post officeE.g. letters at a post office headed for main post office

address labels allow us to forward them in batchesaddress labels allow us to forward them in batches

nn

Efficient use of critical resourcesEfficient use of critical resources

nn

uu Three problemsThree problems

hard to control delay within networkhard to control delay within network

uu

switches need memory for buffersswitches need memory for buffers

uu

convergence of flows can lead to congestionconvergence of flows can lead to congestion

nn Key features of the Internet

AddressingAddressing

nn

RoutingRouting

nn

Endpoint controlEndpoint control

nn An interesting problem

network number?network number?How many bits to assign to host number and how many toHow many bits to assign to host number and how many to

nn

network numbernetwork numberIf many networks, each with a few hosts, then more bits toIf many networks, each with a few hosts, then more bits to

nn

AndAnd

vice versavice versa

nn

But designer’s couldn’t predict the futureBut designer’s couldn’t predict the future

nn

uu Decided three sets of partitions of bitsDecided three sets of partitions of bits

class A: 8 bits network, 24 bits hostclass A: 8 bits network, 24 bits host

uu

class B: 16 bits eachclass B: 16 bits each

uu

class C: 24 bits network, 8 bits hostclass C: 24 bits network, 8 bits host

nn Addressing (contd.)

uu To distinguish among themTo distinguish among them

use leading bituse leading bit

uu

first bit = 0=> class Afirst bit = 0=> class A

uu

first bits 10 => class Bfirst bits 10 => class B

uu

first bits 110 => class Cfirst bits 110 => class C

uu

(what class address is 135.104.53.100?)(what class address is 135.104.53.100?)

nn

uu ProblemProblem

class B, which allows 64K hosts => wasted address spaceclass B, which allows 64K hosts => wasted address spaceif you want more than 256 hosts in your network, need to get aif you want more than 256 hosts in your network, need to get a

nn

uu SolutionSolution

associateassociate

everyevery address with a

address with a

maskmask that indicates partition point

that indicates partition point

uu

CIDRCIDR

nn Default routes

uu the Internetthe InternetStrictly speaking, need next hop information for every network inStrictly speaking, need next hop information for every network in

80,000 now> 80,000 now

nn

Instead, keep detailed routes only for local neighborhoodInstead, keep detailed routes only for local neighborhood

nn

For unknown destinations, use aFor unknown destinations, use a

defaultdefault router

router

nn

pathspathsReduces size of routing tables at the expense of non-optimalReduces size of routing tables at the expense of non-optimal

nn Endpoint control

uu Key design philosophyKey design philosophy

do as much as possible at the endpointdo as much as possible at the endpoint

uu

dumb networkdumb network

uu

exactly the opposite philosophy of telephone networkexactly the opposite philosophy of telephone network

nn

uu Layer above IP compensates for network defectsLayer above IP compensates for network defects

Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)

nn

Can run over any available link technologyCan run over any available link technology

FF

but no quality of servicebut no quality of service

FF

modification to TCP requires a change at every endpointmodification to TCP requires a change at every endpoint

FF

(how does this differ from telephone network?)(how does this differ from telephone network?)

nn Challenges (contd.)

uu Decentralization (contd.)Decentralization (contd.)

no uniform solution for accounting and billingno uniform solution for accounting and billing FF can’t even reliably identify individual userscan’t even reliably identify individual users

uu

no equivalent of white or yellow pagesno equivalent of white or yellow pages FF hard to reliably discover a user’s email addresshard to reliably discover a user’s email address

uu

nonoptimal routingnonoptimal routing FF each administrative makes a locally optimal decisioneach administrative makes a locally optimal decision

nn Challenges (contd).

uu MultimediaMultimedia

requires network to support quality of service of some sortrequires network to support quality of service of some sort FF hard to integrate into current architecturehard to integrate into current architecture

FF

hard to provide service qualityhard to provide service qualitystore-and-forward => shared buffers => traffic interaction =>store-and-forward => shared buffers => traffic interaction =>

uu

requires endpoint to signal to the network what it wantsrequires endpoint to signal to the network what it wants FF packetspacketsbut Internet does not have a simple way to identify streams ofbut Internet does not have a simple way to identify streams of

FF

nor are are routers required to cooperate in providing qualitynor are are routers required to cooperate in providing quality

FF

and what about pricing!and what about pricing!