Computer Networks: Homework 2 Chapter 19: –Problem 18 a. netid: 114 hostid: 34.2.8 b. netid: 132.56 hostid: 8.6 c. netid: 208.34.54 hostid: 12 –Problem.

Slides:



Advertisements
Similar presentations
Chapter 5 IPv4 Addresses TCP/IP Protocol Suite
Advertisements

19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 19 Network Layer: Logical Addressing Stephen Kim.
1 Computer Communication & Networks Lecture 17 & 18 Network Layer: Logical Addressing Waleed Ejaz.
Network Layer: Logical Addressing. 4-1 IPv4 ADDRESSES An IPv4 address is a 32-bit address that uniquely and universally defines the connection of a device.
A supernetwork.
TCP/IP Protocol Suite 1 Chapter 5 Objectives Upon completion you will be able to: IP Addresses: Classless Addressing Understand the concept of classless.
TCP/IP Protocol Suite 1 Chapter 5 Objectives Upon completion you will be able to: IP Addresses: Classless Addressing Understand the concept of classless.
1 Subnetting and Supernetting Oleh: Abdul Kholiq,S.Kom
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 4 IP Addresses: Classful Addressing.
NETE0510 Presented by Dr.Apichan Kanjanavapastit
IP Addresses: Classful Addressing An IP address is a 32-bit address.
Chapter 19 Network Layer: Logical Addressing
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 19 Network Layer Logical Addressing © 2012 by McGraw-Hill Education. This is proprietary material.
How to ? Subnetting. Scenario How Many Networks? 2 How Many Network addresses are required? 2 Addresses Used: subnet mask
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 5 Subnetting/Supernetting and Classless Addressing.
21-IP addressing Dr. John P. Abraham Professor UTPA.
1 1- What is the fundamental difference between network layer and data-link layer? Data-link layer only deals with efficient transmission of information.
1 Kyung Hee University Part 4 : Network Layer. 2 Kyung Hee University Role and Position of Network Layer o Network layer in the Internet model is responsible.
Chapter 5 IP addresses Classless Addressing
CSISCSIS Dr. ClincyLecture1 SUPERNETTING Although class A and B addresses are dwindling – there are plenty of class C addresses The problem with C addresses.
1 Kyung Hee University Chapter 5 IP addresses Classless Addressing.
Copyright © Lopamudra Roychoudhuri
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 4 Network Layer.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 IP Addresses: Classful Addressing Teeratorn Saneeyeng, KMUTNB.
Network Layer: Logical Addressing. Address Space Notations Classful Addressing Classless Addressing Network Address Translation (NAT) Topics Discussed.
21-IP addressing Dr. John P. Abraham Professor UTPA.
HANNAM UNIVERSITY TCP/IP Protocol Suite 1 Chapter 5 Objectives Upon completion you will be able to: IP Addresses: Classless Addressing.
1 Kyung Hee University Prof. Choong Seon HONG Subnetting/ Supernetting and Classless Addressing.
Computer Networks: Homework 1 Chapter 15: –Problem 14 –Problem 16.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 5 IPv4 Addresses.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 5 IPv4 Address.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer PART IV.
21-IP addressing Dr. John P. Abraham Professor UTPA.
IP ADDRESSING Lecture 2: IP addressing Networks and Communication Department 1.
Assignment 3 CSIT 220 Assigned: 9/19/2006 Due: 10/3/2006.
21-IP addressing Dr. John P. Abraham Professor UTPA.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 5 IPv4 Addresses.
TCP/IP Protocol Suite 1 Chapter 4 Objectives Upon completion you will be able to: IP Addresses: Classful Addressing Understand IPv4 addresses and classes.
Introduction to Internetworking. 2 The IP Addressing Scheme (IPv4) (psu.edu) Dotted Decimal Notation: A notation more convenient for humans.
Network Layer/IP Protocols 1. Outline IP Datagram (IPv4) NAT Connection less and connection oriented service 2.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Behrouz A. Forouzan TCP/IP Protocol Suite, 3 rd Ed. IP Addressing.
Chapters 4 & 5 Addressing Part 2 of 2
Subnetting and Supernetting
NET 221D:Computer Networks Fundamentals
IP Addresses: Classful Addressing IP Addresses. CONTENTS INTRODUCTION CLASSFUL ADDRESSING Different Network Classes Subnetting Classless Addressing Supernetting.
Subnetting Problems.
Chapter 5 IPv4 Addresses TCP/IP Protocol Suite
Chapter-5 TCP/IP Suite.
PART IV Network Layer.
4 Network Layer Part I Computer Networks Tutun Juhana
IPV4.
An IPv4 address is a 32-bit address that uniquely and universally defines the connection of a device (for example, a computer or a router) to the Internet.
Lec 9 Subnet 3.1 Computer Networks Al-Mustansiryah University
Chapter 5 Addressing Dr. Clincy Lecture.
Chapter 26 IPv6 Addressing
Chapter 19 Network Layer: Logical Addressing
Subnetting/Supernetting and Classless Addressing
Network Layer: Logical Addressing
Dr. John P. Abraham Professor UTPA
Creating Subnets – Network Requirements
Dr. John P. Abraham Professor UTRGV
Dr. John P. Abraham Professor UTRGV
Chapter 5 IP addresses Classless Addressing
Dr. John P. Abraham Professor UTPA
Introduction to Network
Presentation transcript:

Computer Networks: Homework 2 Chapter 19: –Problem 18 a. netid: 114 hostid: b. netid: hostid: 8.6 c. netid: hostid: 12 –Problem 22 a. log = 10 Extra 1s = 10 Possible subnets: 1024 Mask: /26 b − 26 = 64 Addresses per subnet

Computer Networks: Homework 2 Chapter 19: –Problem 22 (Cont’d) c. Subnet 1: The first address is the beginning address of the block or To find the last address, we need to write 63 (one less than the number of addresses in each subnet) in base 256 ( ) and add it to the first address (in base 256). First address in subnet 1: Number of addresses: Last address in subnet 1: d. Subnet 1024: To find the first address in subnet 1024, we need to add 65,472 (1023 × 64) in base 256 ( ) to the first address in subnet 1. We have = Now we can calculate the last address in subnet 500 as we did for the first address. First address in subnet 1024: Number of addresses: Last address in subnet 1024:

Computer Networks: Homework 2 Chapter 19: –Problem 26 The total number of addresses in this block is = The ISP can divide this large block in several ways depending on the predicted needs of its customers in the future. We assume that the future needs follow the present pattern. In other words, we assume that the ISP will have customers that belong to one of the present groups. We design four ranges: group 1, group 2, group 3, and one reserved range of addresses as shown in Figure.

Computer Networks: Homework 2 Chapter 19: –Problem 26 (Cont’d) Group 1 In the first group, we have 200 businesses. We augment this number to 256 (the next number after 200 that is a power of 2) to let 56 more customers of this kind in the future. The total number of addresses is 256 × 128 = For this group, each customer needs 128 addresses. This means the suffix length is log = 7. The prefix length is then 32 − 7 = 25. The addresses are: 1st customer: /25 to /25 2nd customer: /25 to / th customer: /25 to /25 Unused addresses to Total Addresses in group 1 = 256 × 128 = Used = 200 × 128 = Reserved: 7168, which can be assigned to 56 businesses of this size. Group 2 In the second group, we have 400 business. We augment this number to 512 (the next number after 400 that is a power of 2) to let 112 more customer of this kind in the future. The total number of addresses is = 512 × 16 = For this group, each customer needs 16 addresses. This means the suffix length is 4 log 2 16 = 4. The prefix length is then 32 − 4 = 28. The addresses are: 1st customer: /28 to /28 2nd customer: /28 to / th customer: /28 to /28 Unused addresses to Total Addresses in group 2 = 512 × 16 = 8192 Used = 400 × 16 = 6400 Reserved: 1792, which can be assigned to 112 businesses of this size.

Computer Networks: Homework 2 Chapter 19: –Problem 26 (Cont’d) Group 3 In the third group, we have 2000 households. We augment this number to 2048 (the next number after 2000 that is a power of 2) to let 48 more customer of this kind in the future. The total number of addresses is = 2048 × 4 = For this group, each customer needs 4 addresses. This means the suffix length is 2 log 2 4 = 2. The prefix length is then 32 − 2 = 30. The addresses are: 1st customer: /30 to /30 2nd customer: /30 to / th customer: /30 to /30 Unused addresses to Total Addresses in group 3 = 2048 × 4 = 8192 Used = 2000 × 4 = 8000 Reserved: 192, which can be assigned to 48 households. Reserved Range In the reserved range, we have address that are totally unused. Note that we have unused addresses in each group and a large range of unused addresses in the reserved range. Summary: The following shows the summary of used and unused addresses:

Computer Networks: Homework 2 Chapter 20: –Problem 14 The first byte number can be calculated from the offset itself. If the offset is 120, that means that 120  8 or 960 bytes (bytes 0 through 959) were sent before this fragment. The first byte number is therefore 960. The last byte number can be calculated by adding the total length field and subtracting one. –Problem 18 The datagram must contain 16 bytes of data: 36 byte total length – (5 HLEN field  4) = 36 – 20 = 16 bytes –Problem 20 The identification field is incremented for each non-fragmented datagram. If the first is 1024, then the last is = 1123

Computer Networks: Homework 2 Chapter 21: –Problem 18 The checksum is 0xD399 or as calculated below:

Computer Networks: Homework 2 Chapter 21: –Problem 24