Professional Documents
Culture Documents
Interconnection Scheme:
Interconnection Application-level Interconnection
{ Goal of interconnection { Features
z Hide the details of underlying network z Application level program deals with the
hardware network connection for the computer,
z Provide universal communication services z Interoperates with application program
on other computers
{ Interconnection approaches { Disadvantages
z Application-level interconnection z Add / modify functionality Æ build a new
z Network-level interconnection application program on every computer
z Add new network hardware Æ modify
existing program for each possible
application
Notes-3 CMPT 471 • 2003-3 3 Notes-3 CMPT 471 • 2003-3 4
1
Interconnection Scheme:
Network-level Interconnection Interconnection Scheme: Internet
{ Features { Desirable interconnection scheme
z Deliver small packets of data without using z Computer uses underlying technology-
intermediate application programs
dependent communication facilities
{ Advantages z Between technology-dependent
z Maps directly onto the underlying network communication mechanisms and
hardware Æ efficient
application programs, new software is
z Intermediate host handles network traffic without
understanding the application
inserted to hide the low-level details
z Keep the entire system flexible
z When adding new network technologies, network ==Î internet
level software will be modified instead of
application programs
2
Internet Addressing Internet Addressing (cont.)
{ Universal host identifier { IP address space
z Make communication system universal z IPv4 uses 32-bit addresses
z A global accepted method of identifying each z Address space is 232 = 4,294,967,296
computer that attaches to a communication
system
{ IP address notations
z Binary notation
z Successively lower level representations of host
32-bits, or, 4 bytes
identifier: name, address, route {
Class B 10
Class C 110
10000000 00001011 00000011 00011111
Class D 1110
Class E 1111
start 1 1 1 1
128.11.3.31 1st bits? 2nd bits? 3rd bits? 4th bits?
0 0 0 0
Class: A Class: B Class: C Class: D Class: E
3
Classful Internet Addresses (cont.) Classful Internet Addresses (cont.)
{ Address classes: in decimal notation { Netid & hostid
1st byte 2nd byte 3rd byte 4th byte z Netid: identify a network
Class A 0~127 z Hostid: identify a host on that network
z The boundary of netid and hostid can be
Class B 128~191 computed from the address, without reference
to external information
Class C 192~223
1st byte 2nd byte 3rd byte 4th byte
Class D 224~239
Class A 0 Netid Hostid
Each number is within the range 0~255 Class C 110 Netid Hostid
4
Classful Internet Addresses (cont.) Special Address Conventions
{ Strengths Special addresses Netid Hostid Used in IP
z Easy to extract the hostid and netid of the packet as
address Æ efficient routing Network address Specific All 0s None
{ Weakness Direct broadcast address Specific All 1s Destination
z IP address does not specify an individual Limited broadcast address All 1s All 1s Destination
computer, but a connection to a network: moving
computer from one network to another will lead This host on this network All 0s All 0s Source
to IP address’ change Specific host on this All 0s Specific Destination
z Address class puts limitation on network’s size network
z The path taken by packets traveling to a host Loopback address 127 Any Destination
with multiple IP addresses depends on the
address used Field consisting of 1s: “all”
Field consisting of 0s: “this”
….. ….. ……
123.51.15.90 123.51.61.6 221.45.70.22 221.45.70.62
221.45.70.0 R
221.45.70.112
Destination IP address:
221.45.70.255
Notes-3 CMPT 471 • 2003-3 19 Notes-3 CMPT 471 • 2003-3 20
5
Special Address Conventions (cont.) Special Address Conventions (cont.)
{ Limited (local network) broadcast { This host on this network (0.0.0.0)
address z Used by a host at bootstrap time when it
z Used by a host to send a message to every does not know its IP address
other host on the same network
z Router will block a packet destined for this Netid & Hostid
address to confine broadcasting to the local All 0s
network
221.45.70.22 221.45.70.112 221.45.70.65 ?.?.?.? Source address: 221.45.70.65
Router blocks the 0.0.0.0
limited broadcast Bootstrap
packet server
…… TCP or UDP
221.45.70.81 IP
221.45.70.0
221.45.70.0
Destination IP address: Destination address:
0.0.0.112 127.X.Y.Z
Notes-3 CMPT 471 • 2003-3 23 Notes-3 CMPT 471 • 2003-3 24