In: Computer Science
I am working on routing path and subnet. The question is I am given with source 10.1.240.240 and the destinations is 10.2.240.240. How is the packet traveling?
Topology:
Given:
Source: 10.1.240.240
Destination: 10.2.240.240
The source and destination are both from class A. The class range is from 0 to 127 and all other address are from class B and class C.
Possible path can be selected from the given paths:
192.168.0.0/24
10.1.0.0/16
192.168.1.0/26
172.16.100.0/24
192.168.1.64/26
10.2.1.0/16
The source address is contained in the network 10.1.0.0/16
For the Network Address 10.1.0.0/16:
Hosts = (2^(32-16))-2 = 65534
Network: 10.1.0.0/16 Broadcast: 10.1.255.255 First usable address: 10.1.0.1 Last usable address : 10.1.255.254
So, the source address lies in the usable address range.
The destination address is contained in the network 10.2.1.0/16
For the Network Address 10.2.1.0/16:
Hosts/Net: (2^(16))-2 = 65534
Network: 10.2.0.0/16
Broadcast: 10.2.255.255 First usable address: 10.2.0.1 Last usable address : 10.2.255.254
So, the destination address lies in the usable address range.
Now as per the considered topology the possible path will be
Source Address -> Intermediate Address (Network)-> Destination Address
10.1.0.0/16 -> 172.16.100.0/24 -> 10.2.1.0/16.
So, the path choosen will be from 10.1.0.0/16 -> 10.2.1.0/16.