SlideShare ist ein Scribd-Unternehmen logo
Computer Networks
IP addressing
Course Title: Computer Networks
Instructor: Tahira Malik (Lecturer)
Email Address: tahira@uosahiwal.edu.pk
Department of Computer Science
Term (Semester): Fall 2020
1
IP ADDRESSING
1
Binary
2
◻ All digital electronics use a binary method for
communication.
◻ Binary can be expressed using only two values: 0
or 1.
Converting Binary to Decimal
3
◻ First, moving from right to left, create a chart that
starts at the decimal number 1 and then double it 7
times.
128 64 32 16 8 4 2 1
Converting Binary to Decimal
4
◻ Given a binary number, place the number under the
chart (right justified).
128 64 32 16 8 4 2 1
1 0 1 1 0 0 1 1
•Add the numbers together to arrive at a final
decimal amount.
•128 + 32 + 16 + 2 + 1 = 179
Converting Decimal to Binary
5
◻ Find the largest number that is equal to or less than
the number you are converting to binary. If our
example number is 220, the largest number that is
equal to or less than 220 is 128. Place a 1 under
that space on the chart.
128 64 32 16 8 4 2 1
Converting Decimal to Binary
6
◻ Next, subtract that number from the original
decimal number. Subtracting 128 from 220 gives
us 92.
◻ Repeat this process until we have a subtracted
result of 0.
128 64 32 16 8 4 2 1
1 1 0 1 1 1 0 0
Counting in Binary
7
◻ 0 + 1 = 1
◻ 1 + 1 = 10 (carry the 1)
◻ 10 + 1 = 11
◻ 11 + 1 = 100
◻ 100 + 1 = 101
◻ 101 + 1 = 110
◻ 110 + 1 = 111
Binary Counting Chart
8
1 1
2 10
3 11
4 100
5 101
6 110
7 111
8 1000
9 1001
10 1010
11 1011
12 1100
13 1101
14 1110
15 1111
16 10000
17 10001
18 10010
19 10011
20 10100
Addressing Principles
9
◻ Logical addresses in TCP/IP are 32 bits in length.
◻ To make addressing more humanly manageable,
the 32 bits are broken into four 8 bit octets.
◻ We separate the octets by using a period symbol –
135.87.252.57. This is referred to as dotted
decimal notation.
Dotted-decimal notation
10
TCP/IP Host
11
◻ A host is a device that has a network interface card
connected to a network.
◻ If a device has two network interfaces, it should be
considered two separate hosts.
◻ Each host that is attached to a TCP/IP network
must have a unique TCP/IP address.
TCP/IPAddresses
12
.
133.120.75.8
8
6
131.10
7.0.0
131.107.3.27
133.12
0.0.0
129.102.12.7
129.102.0.0
129.102.16
.2
9
0
9
4
MARIA
AVE
TCP/IPAddresses
13
◻ IP Addresses divided into two parts
(network address and host address) :
□ Network ID or Net ID
■ Analogous to a street address.
□ Host ID
■ Analogous to a house or building number.
□ TCP/IPAddresses are hierarchical addresses (combination
of location ID and host ID) as opposed to flat addresses
(e.g. MAC address).
Example 1
Change the following IP addresses from binary notation to
dotted-decimal notation.
a. 10000001 00001011 00001011 11101111
b. 11111001 10011011 11111011 00001111
Solution
We replace each group of 8 bits with its equivalent
decimal number and add dots for separation:
a. 129.11.11.239
b. 249.155.251.15
14
Example 2
Change the following IP addresses from dotted-decimal
notation to binary notation.
a. 111.56.45.78
b. 75.45.34.78
Solution
We replace each decimal number with its binary
equivalent
a. 01101111 00111000 00101101 01001110
b. 01001011 00101101 00100010 01001110
15
In classful addressing, the address
space is divided into five classes: A, B,
C, D, and E.
Note:
16
Finding the class in binary
notation
17
Finding the address class
18
Example 3
Find the class of each address:
a. 00000001 00001011 00001011 11101111
b. 11110011 10011011 11111011 00001111
Solution
a. The first bit is 0; this is a class A address.
b. The first 4 bits are 1s; this is a class E address.
19
Finding the Class in decimal
Notation
20
Questions
Any Question Please?
You can contact me at: tahira@uosahiwal.edu.pk
Your Query will be answered within one working day.
22
Thanks
23

Weitere ähnliche Inhalte

Ähnlich wie CN word documentary lec 8 (Ip addressing).pptx

Unit 4.docx
Unit 4.docxUnit 4.docx
Unit 4.docx
T Srihari
 
uyuyuy.pdf
uyuyuy.pdfuyuyuy.pdf
uyuyuy.pdf
MariaJoseph591921
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
Ch02_Number_system_decimal_octal_Binary_hex.ppt
Ch02_Number_system_decimal_octal_Binary_hex.pptCh02_Number_system_decimal_octal_Binary_hex.ppt
Ch02_Number_system_decimal_octal_Binary_hex.ppt
gprtpo
 
digital%20electronics.pptx
digital%20electronics.pptxdigital%20electronics.pptx
digital%20electronics.pptx
ansariparveen06
 
Number system
Number systemNumber system
Number system
Darpan Chelani
 
Number system
Number systemNumber system
Number system
Mohit Saini
 
Digital Electronics Notes
Digital Electronics Notes Digital Electronics Notes
Digital Electronics Notes
Srikrishna Thota
 
Internet Protocol
Internet ProtocolInternet Protocol
Internet Protocol
Jayesh Chauhan
 
Part#1_Logic_Design.pptx LOGIC Circuit Course
Part#1_Logic_Design.pptx  LOGIC Circuit CoursePart#1_Logic_Design.pptx  LOGIC Circuit Course
Part#1_Logic_Design.pptx LOGIC Circuit Course
EhabRushdy1
 
Okkkkk
OkkkkkOkkkkk
Number system
Number systemNumber system
Number system
Iqra Yasin
 
data representation
 data representation data representation
data representation
Haroon_007
 
Number_Systems (2).ppt
Number_Systems (2).pptNumber_Systems (2).ppt
Number_Systems (2).ppt
nivedita murugan
 
Chapter 1
Chapter   1Chapter   1
Chapter 1
sougataghosh1984
 
subnet.ppt
subnet.pptsubnet.ppt
subnet.ppt
monujangir2
 
As Level Computer Science Book -1
As Level Computer Science  Book -1As Level Computer Science  Book -1
As Level Computer Science Book -1
DIGDARSHAN KUNWAR
 
ADE UNIT-III (Digital Fundamentals).pptx
ADE UNIT-III (Digital Fundamentals).pptxADE UNIT-III (Digital Fundamentals).pptx
ADE UNIT-III (Digital Fundamentals).pptx
KUMARS641064
 
I Paddress
I PaddressI Paddress
I Paddress
amit_monty
 
Expl net fund_chapter_06_i_pv4_part_1
Expl net fund_chapter_06_i_pv4_part_1Expl net fund_chapter_06_i_pv4_part_1
Expl net fund_chapter_06_i_pv4_part_1
kurtmctaggart
 

Ähnlich wie CN word documentary lec 8 (Ip addressing).pptx (20)

Unit 4.docx
Unit 4.docxUnit 4.docx
Unit 4.docx
 
uyuyuy.pdf
uyuyuy.pdfuyuyuy.pdf
uyuyuy.pdf
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Ch02_Number_system_decimal_octal_Binary_hex.ppt
Ch02_Number_system_decimal_octal_Binary_hex.pptCh02_Number_system_decimal_octal_Binary_hex.ppt
Ch02_Number_system_decimal_octal_Binary_hex.ppt
 
digital%20electronics.pptx
digital%20electronics.pptxdigital%20electronics.pptx
digital%20electronics.pptx
 
Number system
Number systemNumber system
Number system
 
Number system
Number systemNumber system
Number system
 
Digital Electronics Notes
Digital Electronics Notes Digital Electronics Notes
Digital Electronics Notes
 
Internet Protocol
Internet ProtocolInternet Protocol
Internet Protocol
 
Part#1_Logic_Design.pptx LOGIC Circuit Course
Part#1_Logic_Design.pptx  LOGIC Circuit CoursePart#1_Logic_Design.pptx  LOGIC Circuit Course
Part#1_Logic_Design.pptx LOGIC Circuit Course
 
Okkkkk
OkkkkkOkkkkk
Okkkkk
 
Number system
Number systemNumber system
Number system
 
data representation
 data representation data representation
data representation
 
Number_Systems (2).ppt
Number_Systems (2).pptNumber_Systems (2).ppt
Number_Systems (2).ppt
 
Chapter 1
Chapter   1Chapter   1
Chapter 1
 
subnet.ppt
subnet.pptsubnet.ppt
subnet.ppt
 
As Level Computer Science Book -1
As Level Computer Science  Book -1As Level Computer Science  Book -1
As Level Computer Science Book -1
 
ADE UNIT-III (Digital Fundamentals).pptx
ADE UNIT-III (Digital Fundamentals).pptxADE UNIT-III (Digital Fundamentals).pptx
ADE UNIT-III (Digital Fundamentals).pptx
 
I Paddress
I PaddressI Paddress
I Paddress
 
Expl net fund_chapter_06_i_pv4_part_1
Expl net fund_chapter_06_i_pv4_part_1Expl net fund_chapter_06_i_pv4_part_1
Expl net fund_chapter_06_i_pv4_part_1
 

Kürzlich hochgeladen

Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
Nguyen Thanh Tu Collection
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 

Kürzlich hochgeladen (20)

Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 

CN word documentary lec 8 (Ip addressing).pptx

  • 1. Computer Networks IP addressing Course Title: Computer Networks Instructor: Tahira Malik (Lecturer) Email Address: tahira@uosahiwal.edu.pk Department of Computer Science Term (Semester): Fall 2020 1
  • 3. Binary 2 ◻ All digital electronics use a binary method for communication. ◻ Binary can be expressed using only two values: 0 or 1.
  • 4. Converting Binary to Decimal 3 ◻ First, moving from right to left, create a chart that starts at the decimal number 1 and then double it 7 times. 128 64 32 16 8 4 2 1
  • 5. Converting Binary to Decimal 4 ◻ Given a binary number, place the number under the chart (right justified). 128 64 32 16 8 4 2 1 1 0 1 1 0 0 1 1 •Add the numbers together to arrive at a final decimal amount. •128 + 32 + 16 + 2 + 1 = 179
  • 6. Converting Decimal to Binary 5 ◻ Find the largest number that is equal to or less than the number you are converting to binary. If our example number is 220, the largest number that is equal to or less than 220 is 128. Place a 1 under that space on the chart. 128 64 32 16 8 4 2 1
  • 7. Converting Decimal to Binary 6 ◻ Next, subtract that number from the original decimal number. Subtracting 128 from 220 gives us 92. ◻ Repeat this process until we have a subtracted result of 0. 128 64 32 16 8 4 2 1 1 1 0 1 1 1 0 0
  • 8. Counting in Binary 7 ◻ 0 + 1 = 1 ◻ 1 + 1 = 10 (carry the 1) ◻ 10 + 1 = 11 ◻ 11 + 1 = 100 ◻ 100 + 1 = 101 ◻ 101 + 1 = 110 ◻ 110 + 1 = 111
  • 9. Binary Counting Chart 8 1 1 2 10 3 11 4 100 5 101 6 110 7 111 8 1000 9 1001 10 1010 11 1011 12 1100 13 1101 14 1110 15 1111 16 10000 17 10001 18 10010 19 10011 20 10100
  • 10. Addressing Principles 9 ◻ Logical addresses in TCP/IP are 32 bits in length. ◻ To make addressing more humanly manageable, the 32 bits are broken into four 8 bit octets. ◻ We separate the octets by using a period symbol – 135.87.252.57. This is referred to as dotted decimal notation.
  • 12. TCP/IP Host 11 ◻ A host is a device that has a network interface card connected to a network. ◻ If a device has two network interfaces, it should be considered two separate hosts. ◻ Each host that is attached to a TCP/IP network must have a unique TCP/IP address.
  • 14. TCP/IPAddresses 13 ◻ IP Addresses divided into two parts (network address and host address) : □ Network ID or Net ID ■ Analogous to a street address. □ Host ID ■ Analogous to a house or building number. □ TCP/IPAddresses are hierarchical addresses (combination of location ID and host ID) as opposed to flat addresses (e.g. MAC address).
  • 15. Example 1 Change the following IP addresses from binary notation to dotted-decimal notation. a. 10000001 00001011 00001011 11101111 b. 11111001 10011011 11111011 00001111 Solution We replace each group of 8 bits with its equivalent decimal number and add dots for separation: a. 129.11.11.239 b. 249.155.251.15 14
  • 16. Example 2 Change the following IP addresses from dotted-decimal notation to binary notation. a. 111.56.45.78 b. 75.45.34.78 Solution We replace each decimal number with its binary equivalent a. 01101111 00111000 00101101 01001110 b. 01001011 00101101 00100010 01001110 15
  • 17. In classful addressing, the address space is divided into five classes: A, B, C, D, and E. Note: 16
  • 18. Finding the class in binary notation 17
  • 20. Example 3 Find the class of each address: a. 00000001 00001011 00001011 11101111 b. 11110011 10011011 11111011 00001111 Solution a. The first bit is 0; this is a class A address. b. The first 4 bits are 1s; this is a class E address. 19
  • 21. Finding the Class in decimal Notation 20
  • 22. Questions Any Question Please? You can contact me at: tahira@uosahiwal.edu.pk Your Query will be answered within one working day. 22