Recent Changes - Search:

Network Programming

This website demonstrates using wikis as teaching and learning tool.

The course instructor is happy to share the teaching materials here with those who find it readable.

Tutorial - IP Addressing and Subnetting


Questions

  • Question 1: Describe the two main function of Internet Protocol in TCP/IP.
  • Question 2: Give maximum number of hosts in a network with a Class A IP address.
  • Question 3: Give maximum number of hosts in a network with a Class B IP address.
  • Question 4: What is the netmask for a non-subnetted Class C network?
    An IP address has two components, the network address and the host address. A subnet mask separates the IP address into the network and host addresses (<network><host>).
    A Subnet mask is a 32-bit number that masks an IP address, and divides the IP address into network address and host address. Subnet Mask is made by setting network bits to all "1"s and setting host bits to all "0"s.
    Within a given network, two host addresses are reserved for special purpose. The "0" address is assigned a network address and "255" is assigned to a broadcast address, and they cannot be assigned to a host.
    Reference: What is netmask?
  • Question 5: Given the IP address and the net/subnet mask of a host are 207.89.147.54 and 255.255.255.240 respectively, identify which of the following IP addresses are on the same network: 207.89.147.61, 207.89.147.65, 207.89.147.57, 207.89.147.45.
This tool may be useful to you: Network and IP address calculator
  • Question 6: In the following four addresses, two of them are on the same network. Find out the two IP addresses that are part of the same network.
      10.102.4.56/255.252.0.0		10.104.100.12/255.252.0.0
      10.106.4.57/255.252.0.0		10.108.100.13/255.252.0.0
  • Question 7: Given the following IP addresses and subnet masks, complete the missing data.
      IP Address: 205.173.45.9/255.255.255.0

      Address Class:
      Bits Borrowed for Subnet:
      Number of Usable Subnets:
      Network Address:
      Broadcast Address:
      Bits for Host:
      Number of Usable Hosts per Subnet:
      Usable Address Range:

      IP Address: 204.167.98.45/255.255.255.240

      Address Class:
      Bits Borrowed for Subnet:
      Number of Usable Subnets:
      Network Address:
      Broadcast Address:
      Bits for Host:
      Number of Usable Hosts per Subnet:
      Usable Address Range:
Reading that may be useful: IP subnetting made easy
  • Question 8: The following shows you a frame of 54 bytes captured by a network protocol analyzer. The first 14 bytes are about Ethernet II, while the rest are for Internet Protocol and Transmission Control Protocol. Based on the data captured, find out the following information: Source address, destination address, source port, destination port, and sequence number.
      0000  00 00 5e 00 01 2a 00 1e  37 27 66 bc 08 00 45 00
      0010  00 28 d5 f1 40 00 80 06  7f 7c c0 a8 0e cf cb 7c
      0020  0a 6e 11 76 00 50 eb f7  81 94 e7 bf ad df 50 10
      0030  f8 5d a5 7c 00 00
  • Activity: If you have adequate time after tutorial questions, try to install and experiment with Wireshark (http://www.wireshark.org/) yourself.
"Wireshark is the world's foremost network protocol analyzer, and is the de facto (and often de jure) standard across many industries and educational institutions."

Submission

  • Please submit your work to Steven by email: sochoy@ouhk.edu.hk.
  • Please use SXXXXXXX - NP Tutorial 03 Submission as the email subject.
Edit - History - Print - Recent Changes - Search
Page last modified on September 23, 2011, at 11:26 AM