Question

In: Computer Science

A host (computer) with networking capabilities is assigned a MAC address AB1CD22EF33 and a public IP...

A host (computer) with networking capabilities is assigned a MAC address AB1CD22EF33 and a public IP address 192.92.21.5/24. The gate way is connected to your ISP with optic cables. The ISP public address is 16.12.11.253/30. The MAC address of your ISP is 112233ABCDEF.
a. Explain why both a MAC and an IP address are assigned to a host in the network.
b. Clearly differentiate between public & private Internet address.
c. Explain the meaning of the CIDR address 196.92.21.5/24.
d. Which other public IP address are assigned to the router?
e. Explain how the host knows the IP address of the router.
f. Explain how the host will use ARP to get the MAC address of the gateway.
g. Draw diagrams to show an IP packet is sent from layer 3 on the host to layer 3 at the ISP.

Solutions

Expert Solution

Answer :

a) MAC address uniquely identifies a system and doesn't change because it's hard coded into the Random Access Memory (ROM) of NIC (Network Interface Card). While IP address of a host may change depending on the connection. But it is necessary to allot both MAC and IP addresses to a host because both operate on different layers of OSI Model (MAC - Data Link Layer and IP - Network Layer) and different protocols may utilize either MAC or IP or both. Ex. IPX (Internet Packet Exchange Protocol) uses MAC address of host whereas TCP/IP protocol uses IP address only.

b) As the name suggests, public IP address is globally unique and can be accessed publicly whereas private IP address are private to a user and can't be accessed by other people and not exposed on the internet. Ex. If you have many hosts in your home and you have a router which connects all your computer devices. In this case, your devices would get private addresses and your router will be allotted a public IP address by DHCP protocol. Internet Assigned Numbers Authority (IANA) is responsible for providing a range a public and private IP addresses.

c) CIDR address : 196.92.21.5/24 - CIDR stands for Classless Inter domain Routing

Here 24 means that 24 bits are present in network ID and rest (32-24) = 8 bits are present in host ID which means = 256 IP addresses can be allotted this network ID.  And this address is private IP address as the 192.x.x.x addresses are not registered publicly.

d) Internet Assigned Numbers Authority (IANA) defines the range below under private IPv4 addresses:

  • 10.0.0.0 to 10.255.255.255
  • 172.16.0.0 to 172.31.255.255
  • 192.168.0.0 to 192.168.255.255

The IP addresses excluding the above addresses can be assigned to a public router.

e) Open Command Prompt

  • When the command window opens type: ipconfig and hit enter.

  • This will show your local network information. The IP address listed as Default Gateway is your router's IP.

f) Address Resolution Protocol (ARP) maps dynamic IP address to a permanent physical machine address (or MAC address) in a LAN. It translates 32 bit IP address to 48 bit MAC address and vice versa.

A new computer is assigned a unique IP address to use for identification when it joins a LAN. When an incoming packet on a particular LAN arrives at a gateway, the gateway asks the ARP program to find a MAC address that matches the IP address. A table called the ARP cache maintains a record of each IP address and its corresponding MAC address. An ARP cache is maintained. When a packet is sent, first it sees in cache whether it's IP to MAC translation is present or not. If not present, ARP function is called.

g) As can be seen from the diagram below, The packets from network layer of host first move through the layer 2 and then layer 1 and then transmitted as bits. Similarly, at ISP , the bits are first framed in layer 2 and then converted to packets in layer 3 at ISP.


Related Solutions

What is the subnet address for a host with the IP address 200.0.0.26 /29 200.0.0.8 200.0.0.12...
What is the subnet address for a host with the IP address 200.0.0.26 /29 200.0.0.8 200.0.0.12 200.0.0.20 200.0.0.24 20.0.0.16
Your ISP has assigned you the following public IP address 196.92.16.64/28. Your router's address is 196.92.16.65/28....
Your ISP has assigned you the following public IP address 196.92.16.64/28. Your router's address is 196.92.16.65/28. (a) How many hosts can you assign a public address? (b) What will be the range of public addresses? (c) If you have 200 hosts of your network. Explain how you would provide Internet Access to all the host concurrently using NAT. (d) You have 26 hosts divided into 2 groups in your network. Explain how you would provide Internet access to all the...
IP Address: 37.124.67.99 Subnet Mask: 255.240.0.0 find Network address, Broadcast address, first valid host address, last...
IP Address: 37.124.67.99 Subnet Mask: 255.240.0.0 find Network address, Broadcast address, first valid host address, last valid host address and number of valid hosts in the network. show very clear steps for all the calculations.
What is the difference between IP and MAC address on a PC? What command would you...
What is the difference between IP and MAC address on a PC? What command would you type that will give you both IP and MAC information.
You are currently troubleshooting a networking issue. You have narrowed down the IP address that is...
You are currently troubleshooting a networking issue. You have narrowed down the IP address that is causing the issue, but you need to know the host name of the computer. What command would give you this information? The internet browser is unable to find the host you are trying to reach. What command(s) should you use to try to rectify the situation?
What are IP address ports and IP address classes?
What are IP address ports and IP address classes?
For the following two network interfaces, identify their IP address, host name, subnet id, prefix, and...
For the following two network interfaces, identify their IP address, host name, subnet id, prefix, and subnet mask. en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500      ether 6c:96:cf:d9:3f:0f      inet6 fe80::cb3:7b1b:362f:48bc%en0 prefixlen 64 secured scopeid 0x5      inet 10.21.136.95 netmask 0xffff0000 broadcast 10.21.255.255      nd6 options=201<PERFORMNUD,DAD>      media: autoselect      status: active awdl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1484      ether 26:db:01:45:50:73      inet6 fe80::24db:1ff:fe45:5073%awdl0 prefixlen 64 scopeid 0x7      nd6 options=201<PERFORMNUD,DAD>      media: autoselect      status: active
1) Windows Powershell: Maps IP addresses to MAC addresses. Maps IP addresses to MAC addresses. Run...
1) Windows Powershell: Maps IP addresses to MAC addresses. Maps IP addresses to MAC addresses. Run arp /? What does the command show? 2) Ping is used to test the ability of one network host to communicate with another. Run: ping cnn.com or ping yahoo.com or ping facebook.com write down the results
What is the form of an IP address? What protocol is used by all computer connections...
What is the form of an IP address? What protocol is used by all computer connections to the Internet? 1.5 What is the task of a DNS name server?
The TCP/IP Networking Model is called a "de facto" standard, while the OSI Networking Model is...
The TCP/IP Networking Model is called a "de facto" standard, while the OSI Networking Model is called a "training standard." What does this mean and why do we have both? Support your rationale.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT