Page 165 - Computer_Science_F5
P. 165

Computer Science  1.  (a)  How would you determine the   3.  (a)  How  would  you  determine
                                                          (e)  01000111    00110110
                Exercise 3.6

                                                              10110011   00011111
                    class for a given IP address in
                                                             Network ID and Host ID parts
                    dotted decimal notation?
          FOR ONLINE READING ONLY
                                                             for a given IP   address?
                (b)  Identify class for the following
                    IP addresses in dotted decimal        (b) Identify Network ID and Host
                                                              ID parts for the following IP
                    notation:                                 addresses:
                     (i)   100.31.21.11                       (i) 125.100.90.10
                     (ii)  165.10.11.1                        (ii) 201.198.168.72
                     (iii) 242.12.13.14                       (iii) 165.19.20.6

                     (iv) 200.200.200.200            4. Calculate the number of Network
                     (v)  230.13.56.100                 IDs and Host IDs for each IP address
                                                        class. Then, pick one network ID
             2.  How would you determine the class      from each class and list all possible
                for a given IP address in binary        IP addresses that can be assigned
                notation? Identify class for the        within that network.
                following IP addresses in binary
                notation:                            Network masks
                (a)  11110001    11111000            A network mask, also known as an
                    10110011  00011001
                                                     default mask, is a 32-bit value used to
                (b)  11100111    00001111            differentiate  the network ID from the
                    01110000  11110001               host ID in  any given  IP address.  The
                                                     network mask is defined as follows:
                (c)  11000111    00111110
                    00110011  00000000                (a) All bits that correspond to the network
                                                         ID are set to 1.
                (d)  10110011    10111110             (b) All bits that correspond to the host
                    00110011    11111111                 ID are set to 0.


           Network masks are typically shown in binary or dotted decimal notation, as seen
           in Table 3.5.

           Table 3.5: Binary and dotted decimal representation of default network masks

            Address class Bits for network mask                          Network mask

            Class A         11111111 00000000  00000000  00000000        255.0.0.0
            Class B         11111111  11111111  00000000  00000000       255.255.0.0
            Class C         11111111  11111111  11111111   00000000      255.255.255.0


                                                 156
                                                                for Advanced Secondary Schools



     Computer Science Form 5.indd   156                                                     23/07/2024   12:33
   160   161   162   163   164   165   166   167   168   169   170