Host A (with IP address 172.16.2.4) wants to communicate with Host B (with IP ad
ID: 3846192 • Letter: H
Question
Host A (with IP address 172.16.2.4) wants to communicate with Host B (with IP address 172.16.3.5).
If the subnet mask for Host A is 255.255.0.0, will the hosts communicate using local transmissions or will they send information to the default gateway?
Show the workings for the ANDing process below.
Source IP
Source Subnet Mask
=
AND Result
Destination IP
Source Subnet Mask
=
AND Result
Question 2
Host A (with IP address 192.168.0.10) wants to communicate with Host B (with IP address 192.168.20.2).
If the subnet mask for Host A is 255.255.255.0, will the hosts communicate using local transmissions or will they send information to the default gateway?
Show the workings for the ANDing process below.
Source IP
Source Subnet Mask
=
AND Result
Destination IP
Source Subnet Mask
=
AND Result
Source IP
Source Subnet Mask
=
AND Result
Destination IP
Source Subnet Mask
=
AND Result
Explanation / Answer
1.Explanation:
At the point when a source have endeavors to speak with a goal host the source have utilizes its subnet veil to decide if the goal host is on the neighborhood arrange or a remote system.this is known as the ANDing procedure.
the AND work has the accompanying properties:
in the event that the two analyzed esteems are both 1 the outcome is 1.
on the off chance that one of the qualities is 0 and the other is 1 the outcome is 0.
on the off chance that both of the thought about qualities are 0 the outcome is 0.
The source and goal IP locations are contrasted with the sources subnet veil utilizing the ANDing procedure.an AND result is made for each of the locations.in the event that the outcome is the same the hosts are on a similar system.on the off chance that the outcome is distinctive the goal host is on a remote system.all movement bound for that remote host ought to be coordinated to the switch shown in the source hosts directing table.on the off chance that no express course is characterized in the steering table the movement is coordinated to the source hosts default passage.
Given Problem:
Solution:
When we do conversion to binary of th given address 172.16.2.4 is
10101100 00010000 00000010 00000100
When we do conversion to binary the address 172.16.3.5 is
10101100 00010000 00000011 00000101
if we perform ANDing process the result for host A using its subnet mask of 255.255.0.0 is
host A's IP address : 10101100 00010000 00000010 00000100
host A's subnet mask :11111111 11111111 00000000 00000000
ANDING result : 10101100 00010000 00000000 00000000
The result for host B is:
host B's IP address :10101100 00010000 00000011 00000101
host A's subnet Mask :11111111 11111111 00000000 00000000
ANDing result : 10101100 00010000 00000000 00000000
as should be obvious the two outcomes match.
this demonstrates that to the extent have An is concerned the two hosts are on the same physical system.correspondence can happen specifically between the two hosts.truth be told similar remains constant since host B would have the same subnet veil since the hosts are on a similar system.
2.
The subnet cover is likewise used to decide if the goal host is on the neighborhood subnet or a remote subnet.the subnet cover of the nearby host is looked at against the IP address of the goal have and through a procedure known as anding it is resolved whether the goal IP address is the neighborhood or a remote system. On the off chance that the goal IP address inside a parcel is on a remote system the bundle is sent to the default passage.
essentially the quantity of 1's in the paired address of the subnet cover are veiled against the IP deliver to decide whether the address is on the neighborhood organize or a remote system. At the point when the bits of the subnet veil are thought about against the bits in the IP address all mixes of 1's and 0's outcome in an estimation of 0, with the exception of 1 and 1, which brings about an estimation of 1.
Given Problem:
Solution:
given that
The source host having contain an an IP address of 192.168.0.10 and a the given subnet mask of 255.255.255.0.the destination host has an IP address of 192.168.20.2.
IP address 11000000 10101000 00000000 00001010 (192.168.0.10)
subnet mask 11111111 11111111 11111111 00000000 (255.255.255.0)
results 11000000 10101000 00000000 00000000
IP address 11000000 10101000 00010010 00000010 (192.168.20.20)
subnet mask 11111111 11111111 11111111 00000000 (255.255.255.0)
results 11000000 10101000 00010010 00000000
the source IP address is anded against the subnet mask.the goal address is anded against the subnet veil doled out to the source have.on the off chance that the outcomes are not the same the goal host is on an alternate system or subnet.alternately if the outcomes are the same,it is resolved that the goal host is on the nearby system.
the first IP definitions set five classes of IP locations from A through E .A, B, and C are for broadly useful utilize D is utilized for multicasting and E is saved. These classes made it conceivable to utilize one part of the 32-bit IP address conspire for the system address and the rest of the bit for hubs on the system.
before a few systems required a bigger number of locations for frameworks than the 254 a Class C address supplies.this was a noteworthy commitment to the lack of IP locations.associations regularly asked for a class B go that offered 65,534 accessible addresses as opposed to a couple Class C goes that may have suited their needs.the outcome was that many addresses inside their designated Class B pieces went unused.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.