Communication and Computer Networks the Lecturer: Ahmed Badri

Communication and Computer Networks the Lecturer: Ahmed Badri

<p>Communication and Computer Networks The Lecturer: Ahmed Badri</p><p>5.3 Dividing the networks (Actual Network Address) Dividing large networks so that hosts who need to communicate are grouped together reduces the unnecessary overhead of all hosts needing to know all addresses. To be able to divide networks, we need hierarchical addressing. A hierarchical address uniquely identifies each host. It also has levels that assist in forwarding packets across internetworks, which enables a network to be divided based on those levels. To support data communications between networks over internetworks, Network layer addressing schemes are hierarchical. The logical 32-bit IPv4 address is hierarchical and is made up of two parts. The first part identifies the network and the second part identifies a host on that network. Both parts are required for a complete IP address. For convenience IPv4 addresses are divided in four groups of eight bits (octets). Each octet is converted to its decimal value and the complete address written as the four decimal values separated by a dot (period). For example - 192.168.18.57 In this example, as the figure shows, the first three octets, (192.168.18), can identify the network portion of the address, and the last octet, (57) identifies the host. This is hierarchical addressing because the network portion indicates the network on which each unique host address is located. Routers only need to know how to reach each network, rather than needing to know the location of each individual host. Given that an IPv4 address is 32 bits, when host bits are used to divide a network the more subnetworks created results in fewer hosts for each subnetwork. Regardless of the number of subnetworks created however, all 32 bits are required to identify an individual host. </p><p>1 Communication and Computer Networks The Lecturer: Ahmed Badri</p><p>The number of bits of an address used as the network portion is called the prefix length. For example if a network uses 24 bits to express the network portion of an address the prefix is said to be /24. In the devices in an IPv4 network, a separate 32-bit number called a subnet mask indicates the prefix. Extending the prefix length or subnet mask enables the creation of these subnetworks. In this way network administrators have the flexibility to divide networks to meet different needs, such as location, managing network performance, and security, while ensuring each host has a unique address.</p><p>5-3-1 Types of Addresses in IPv4 : Within the address range of each IPv4 network, we have three types of addresses: 1-Network address - The address by which we refer to the network 2-Broadcast address - A special address used to send data to all hosts in the network To send data to all hosts in a network, a host can send a single packet that is addressed to the broadcast address of the network. 3-Host addresses - The addresses assigned to the end devices in the network</p><p>2 Communication and Computer Networks The Lecturer: Ahmed Badri</p><p>EX : If we have the IP 192.168.18.57/27 to Know how determines the network ,broadcast and hosts addresses in this net,we must follow these steps : 1- convert address of each portion of IP in range 0..255 to binary 11000000 . 10101000 . 00010010 . 00111001 2- determine the prefix for 27 bits is network portion and the rest for hosts in this network and one for broadcast address . 11000000 . 10101000 . 00010010 . 001 11001 Network portion host portion 3-the network address here by replacing all bits of host portion by 0’s .then the network address is 11000000 . 10101000 . 00010010 . 0010000 in binary and 192.168.18.32 in decimal . 4- the broadcast is the IP address will all bits in host portion with 1’s that is 11000000 . 10101000 . 00010010 . 00111111 in binary 192.168.18.63 in decimal 5- the hosts address it is all remaining address that is in range : 11000000. 10101000. 00010010 . 00100001 to 11000000.10101000 . 00010010 . 00111110 Then , 192 . 168 .18.33 to 192.168.18.62 in decimal </p><p>Note : there is another way to determine the network ,broadcast ,hosts address instead of prefix is subnet mask , if we have the IP 10.148.100.54 and subnet mask is 255.255.255.240 . the network address for this IP is by replacing the last 0’s bits from subnet mask with last equal number of bits for IP as in this figure :</p><p>3 Communication and Computer Networks The Lecturer: Ahmed Badri</p><p>00001010 10010100 01100100 00110000</p><p>10 148 100 48</p><p>In router and destination end devices calculating network address by implementing logical And between this bits . H.W 1-Determine the network, broadcast and host addresses for a given address and prefix combination 183.26.103.215/30 2-calculat :</p><p>4</p>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    4 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us