Professional Documents
Culture Documents
TCP / IP Protocol Suite: Prof. Dr. MD Zahidul Islam
TCP / IP Protocol Suite: Prof. Dr. MD Zahidul Islam
Chapter 1 2
Protocols
• Syntax
• Semantics
• Timing
Chapter 1 3
Standards
• De facto: e.g., TCP/IP
• De jure: e.g., ISO OSI
Chapter 1 4
1.3
STANDARDS
ORGANIZATIONS
Chapter 1 5
Standards Creation Committees
International Standards Organization (ISO)
Chapter 1 6
Forums
Frame Relay Forum
ATM Forum
Regulatory Agencies
Federal Communications Commission (FCC)
Chapter 1 7
The websites for the
above organizations
are given in Appendix G.
Chapter 1 8
1.4
INTERNET
STANDARDS
Chapter 1 9
Figure 1-2
Chapter 1 10
Figure 1-3
Chapter 1 11
1.5
INTERNET
ADMINISTRATION
Chapter 1 12
Figure 1-4
Internet Administration
SG: Steering
Group
Chapter 1 13
Internet Numbers
• IP addresses
• Protocol numbers
• Domain names
• …
• IANA (Internet Assigned Numbers Authority)
• ICANN (Internet Corporation for Assigned Names and
Numbers)
Chapter 1 14
Chapter 2
16
Chapter 1 16
2.1
THE
OSI
MODEL
17
Chapter 1 17
ISO is the organization.
OSI is the model.
18
Chapter 1 18
Headers are added
to the data at layers
6, 5, 4, 3, and 2.
Trailers are usually
added only at layer 2.
19
Chapter 1 19
Figure 2-3
An exchange using the OSI model
20
Chapter 1 20
Figure 2-8
End-to-end delivery
21
Chapter 1 21
Figure 2-10
22
Chapter 1 22
Figure 2-14
Summary of layers
23
Chapter 1 23
2.3
TCP/IP
PROTOCOL
SUITE
24
Chapter 1 24
Figure 2-15
TCP/IP and OSI model
25
Chapter 1 25
2.4
ADDRESSING
26
Chapter 1 26
Figure 2-16
Addresses in TCP/IP
27
Chapter 1 27
Figure 2-17
Relation-
ship
of
layers
and
addresses
in TCP/IP
28
Chapter 1 28
Example 1
29
Chapter 1 29
Figure 2-18
Physical addresses
30
Chapter 1 30
Example 2
07-01-02-01-2C-4B
A 6-byte (12 hexadecimal digits) physical address
31
Chapter 1 31
Example 3
32
Chapter 1 32
Figure 2-19
IP addresses
33
Chapter 1 33
Example 4
34
Chapter 1 34
Example 5
35
Chapter 1 35
Figure 2-20
Port addresses
36
Chapter 1 36
Example 6
37
Chapter 1 37
2.5
TCP/IP
VERSIONS
38
Chapter 1 38
Versions:
• Version 4 (current): 32-bit IP
address
• Version 5
• Version 6 (in promotion): 128-bit
IP address
39
Chapter 1 39
Chapter 4
IP Addresses:
Classful Addressing
Chapter 1 40
CONTENTS
• INTRODUCTION
• CLASSFUL ADDRESSING
• OTHER ISSUES
• A SAMPLE INTERNET
Chapter 1 41
4.1
INTRODUCTION
Chapter 1 42
An IP address is a
32-bit
address.
Chapter 1 43
The IP addresses
are
unique.
One IP address points to one computer.
But a computer may have many IP addresses.
Chapter 1 44
Address Space
…………..
addr1 …………..
addr15
addr2 ………….. …………..
…………..
addr41 addr226
addr31
………….. …………..
Chapter 1 45
RULE:
…………..
addr1 …………..
If a protocol uses N bits to
addr15
define an…………..
addr2 address, …………..
the address space is 2N
…………..
because each bitaddr41
can haveaddr226
two
addr31
different values (0 and
………….. 1)
…………..
and N bits can have 2N values.
Chapter 1 46
The address space of IPv4 is
232
or
4,294,967,296.
Chapter 1 47
Binary Notation
Chapter 1 48
Figure 4-1
Dotted-decimal notation
Chapter 1 49
Hexadecimal Notation
75 95 1D EA
0x75951DEA
Chapter 1 50
The binary, decimal, and
hexadecimal number
systems are reviewed in
Appendix B.
Chapter 1 51
Example 1
Solution
129.11.11.239
Chapter 1 52
Example 2
Solution
Chapter 1 53
Example 3
Solution
Solution
In dotted-decimal notation,
each number is less than or
equal to 255; 301 is outside this range.
Chapter 1 55
Example 4
Solution
0X810B0BEF or 810B0BEF16
Chapter 1 56
4.2
CLASSFUL
ADDRESSING
Chapter 1 57
Figure 4-2
Occupation of the address space
231(50%)
230(25%)
229(12.5%) 228(6.25%)
Chapter 1 58
In classful addressing,
the address space is
divided into five classes:
A, B, C, D, and E.
Chapter 1 59
Figure 4-3
Chapter 1 60
Figure 4-4
Finding the address class
Chapter 1 61
Example 5
Solution
Chapter 1 63
Example 6 (Continued)
Solution
Chapter 1 64
Figure 4-5
Chapter 1 65
Example 7
Solution
Chapter 1 66
Example 7 (Continued)
Solution
Chapter 1 67
Example 8
Chapter 1 70
Figure 4-6
Netid and hostid
Chapter 1 71
Figure 4-7
Blocks in class A
Chapter 1 72
Millions of class A addresses
are wasted.
Chapter 1 73
Figure 4-8
Blocks in class B
Chapter 1 74
Many class B addresses
are wasted.
Chapter 1 75
Figure 4-9
Blocks in class C
Chapter 1 76
The number of addresses in
a class C block
is smaller than
the needs of most organizations.
Chapter 1 77
Class D addresses
are used for multicasting;
there is only
one block in this class.
Chapter 1 78
Class E addresses are reserved
for special purposes;
most of the block is wasted.
Chapter 1 79
Network Addresses
The network address is the first address.
Chapter 1 80
In classful addressing,
the network address
(the first address in the block)
is the one that is assigned
to the organization.
Chapter 1 81
Example 9
Solution
Solution
Solution
Chapter 1 85
Figure 4-10
Masking concept
Chapter 1 86
Figure 4-11
AND operation
Chapter 1 87
The network address is the
beginning address of each block.
It can be found by applying
the default mask to
any of the addresses in the block
(including itself).
It retains the netid of the block
and sets the hostid to zero.
Chapter 1 88
Default Masks
Class Mask in Binary Mask in dotted-
decimal
Chapter 1 89
Example 12
Solution
Solution
Solution
Chapter 1 93
CIDR (Classless Inter-Domain Routing) Notation
18.46.74.10/8
141.24.74.69/16
200.14.70.22/24
Number of 1’s in the mask
Address Depletion
We have run out of class A and B addresses, and a class C block is too
small for most middle-sized organizations.
Chapter 1 94
4.13
OTHER
ISSUES
Chapter 1 95
Figure 4-12
Multihomed devices
Chapter 1 96
Location, Not Names
• An internet address defines the network location of a
device, not its identify.
• Movement of computer from one network to another
means that its IP address must be changed.
• Flat addressing vs. hierarchical addressing
Chapter 1 97
Special Addresses
Special Address Netid Hostid Source or
Destination
Network address Specific All 0s None
Direct broadcast address Specific All 1s Destination
Chapter 1 98
Figure 4-13
Network addresses
Chapter 1 99
Figure 4-14
Chapter 1 100
Figure 4-15
Example of limited broadcast address
Chapter 1 101
Figure 4-16
Example of this host on this address
Chapter 1 102
Figure 4-17
Example of specific host on this network
Chapter 1 103
Figure 4-18
Example of loopback address
Chapter 1 104
Private Addresses
A number of blocks in each class are assigned
for private use. They are not recognized
globally. These blocks are depicted in Table 4.4
Chapter 1 105
Unicast, Multicast, and
Broadcast Addresses
Unicast communication is one-to-one.
Chapter 1 106
Multicast delivery will be
discussed in depth in
Chapter 15.
Chapter 1 107