Question

In: Computer Science

Using a 23 bit network prefix, what network would the IPv4 address 123.154.89.114 be forwarded to?  Use...

Using a 23 bit network prefix, what network would the IPv4 address 123.154.89.114 be forwarded to?  Use dotted decimal format and do not include the mask in your answer.

Solutions

Expert Solution

123.154.88.0

Explanation:
-------------
IP Address: 123.154.89.114
----------------------------------------
Let's first convert this into binary format
123.154.89.114
Let's convert all octets to binary separately
Converting 123 to binary
Divide 123 successively by 2 until the quotient is 0
   > 123/2 = 61, remainder is 1
   > 61/2 = 30, remainder is 1
   > 30/2 = 15, remainder is 0
   > 15/2 = 7, remainder is 1
   > 7/2 = 3, remainder is 1
   > 3/2 = 1, remainder is 1
   > 1/2 = 0, remainder is 1
Read remainders from the bottom to top as 1111011
So, 123 of decimal is 1111011 in binary
123 in binary is 01111011

Converting 154 to binary
Divide 154 successively by 2 until the quotient is 0
   > 154/2 = 77, remainder is 0
   > 77/2 = 38, remainder is 1
   > 38/2 = 19, remainder is 0
   > 19/2 = 9, remainder is 1
   > 9/2 = 4, remainder is 1
   > 4/2 = 2, remainder is 0
   > 2/2 = 1, remainder is 0
   > 1/2 = 0, remainder is 1
Read remainders from the bottom to top as 10011010
So, 154 of decimal is 10011010 in binary
154 in binary is 10011010

Converting 89 to binary
Divide 89 successively by 2 until the quotient is 0
   > 89/2 = 44, remainder is 1
   > 44/2 = 22, remainder is 0
   > 22/2 = 11, remainder is 0
   > 11/2 = 5, remainder is 1
   > 5/2 = 2, remainder is 1
   > 2/2 = 1, remainder is 0
   > 1/2 = 0, remainder is 1
Read remainders from the bottom to top as 1011001
So, 89 of decimal is 1011001 in binary
89 in binary is 01011001

Converting 114 to binary
Divide 114 successively by 2 until the quotient is 0
   > 114/2 = 57, remainder is 0
   > 57/2 = 28, remainder is 1
   > 28/2 = 14, remainder is 0
   > 14/2 = 7, remainder is 0
   > 7/2 = 3, remainder is 1
   > 3/2 = 1, remainder is 1
   > 1/2 = 0, remainder is 1
Read remainders from the bottom to top as 1110010
So, 114 of decimal is 1110010 in binary
114 in binary is 01110010

=====================================================================================
||    123.154.89.114 in binary notation is 01111011.10011010.01011001.01110010    ||
=====================================================================================

Subnet mask is /23

For Calculating network ID, keep first 23 bits of 01111011.10011010.01011001.01110010 and set all remaining bits to 0.
so, network ID in binary is 01111011.10011010.01011000.00000000
01111011.10011010.01011000.00000000:
----------------------------------------
01111011.10011010.01011000.00000000
Let's convert all octets to decimal separately
Converting 01111011 to decimal
Converting 01111011 to decimal
01111011
=> 0x2^7+1x2^6+1x2^5+1x2^4+1x2^3+0x2^2+1x2^1+1x2^0
=> 0x128+1x64+1x32+1x16+1x8+0x4+1x2+1x1
=> 0+64+32+16+8+0+2+1
=> 123
01111011 in decimal is 123

Converting 10011010 to decimal
Converting 10011010 to decimal
10011010
=> 1x2^7+0x2^6+0x2^5+1x2^4+1x2^3+0x2^2+1x2^1+0x2^0
=> 1x128+0x64+0x32+1x16+1x8+0x4+1x2+0x1
=> 128+0+0+16+8+0+2+0
=> 154
10011010 in decimal is 154

Converting 01011000 to decimal
Converting 01011000 to decimal
01011000
=> 0x2^7+1x2^6+0x2^5+1x2^4+1x2^3+0x2^2+0x2^1+0x2^0
=> 0x128+1x64+0x32+1x16+1x8+0x4+0x2+0x1
=> 0+64+0+16+8+0+0+0
=> 88
01011000 in decimal is 88

Converting 00000000 to decimal
Converting 00000000 to decimal
00000000
=> 0x2^7+0x2^6+0x2^5+0x2^4+0x2^3+0x2^2+0x2^1+0x2^0
=> 0x128+0x64+0x32+0x16+0x8+0x4+0x2+0x1
=> 0+0+0+0+0+0+0+0
=> 0
00000000 in decimal is 0

====================================================================================
||    01111011.10011010.01011000.00000000 in decimal notation is 123.154.88.0    ||
====================================================================================
===========================================
||    So, Network ID is 123.154.88.0    ||
===========================================

so, IP address 123.154.89.114 is forwarded to network 123.154.88.0

Related Solutions

What are the differences between IPv4 and IPv6? What is the format of an IPv4 address?  
What are the differences between IPv4 and IPv6? What is the format of an IPv4 address?  
Assignment Write a network diagnostics bash script that does the following: Finds the IPv4 address of...
Assignment Write a network diagnostics bash script that does the following: Finds the IPv4 address of the default gateway on your machine (one way to get this is the 'default' entry, also shown as 0.0.0.0, in the output of 'ip route') and runs a ping (with a count of 5 pings) to it. Runs another count of 5 pings to the site example.com. Outputs a 1-line summary of interfaces on your machine, not including the loopback address (lo). Outputs a...
Using an example explain why network design using IPv6 is simpler compared to IPv4 network design....
Using an example explain why network design using IPv6 is simpler compared to IPv4 network design.
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
Why are the Class D and Class E IPv4 address ranges not available for general use?...
Why are the Class D and Class E IPv4 address ranges not available for general use? What is the difference between a port and a socket?
Problem 1. Network Address Suppose an ISP has the following IP address block: 130.12.128.0/23 a. Assume...
Problem 1. Network Address Suppose an ISP has the following IP address block: 130.12.128.0/23 a. Assume that the ISP wants to divide its address block (130.12.128.0/23) into two equal-sized contiguous address blocks, and give one of these address blocks to its customers (C1 and C2). Provide network addresses (of the form a.b.c.d/x) for C1 and C2. b. Now let’s assume that the ISP wants to divide its address block (130.12.128.0/23) into four equal-sized contiguous address blocks, and give one of...
Design and Test an 8-bit Adder using 4-bit adder. Use 4-bit adder coded in class using...
Design and Test an 8-bit Adder using 4-bit adder. Use 4-bit adder coded in class using full adder that is coded using data flow model. Use test bench to test 8-bit adder and consider at least five different test vectors to test it.
What is the network address if given this IP address and the following subnet mask?  Please note...
What is the network address if given this IP address and the following subnet mask?  Please note that the network may be different if the subnet mask is different. IP address 178.47.188.176 How many network bits if the following subnet masks? 255.254.0.0 255.255.252.0 255.255.255.248    4. 255.128.0.0     
Using the three-bit exponent field and four-bit significand, what is the bit pattern for the -2.5?...
Using the three-bit exponent field and four-bit significand, what is the bit pattern for the -2.5? (show work)
What role does an IP address and a domain name play on a network? What are...
What role does an IP address and a domain name play on a network? What are the advantages of using private IP addresses as opposed to public ones? How do IP addresses and the DNS work together to enable network communication?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT