Professional Documents
Culture Documents
Work Sheet
Work Sheet
LAN
1 to 10 Gbps
4. What are the three steps that are required for data communication using circuit
switching?
Packet switching.
6. Among virtual circuits and datagrams, which approach requires less Information in
the packet header?
Virtual circuit.
7. Which of virtual circuit and datagram makes better utilization of the links?
Datagram.
8. Which virtual circuit and datagram will guarantee the ordered delivery of packets
in the absence of any errors?
Virtual circuit.
9. Under what circumstances will the datagram method of packet delivery prove
useful?
Datagram.
11. for a 5 Kbytes packets sent over a 10 Mbps transmission link, what is the transmission
time of the packet?
12. A 600-byte packet is sent over a 20 Kbps point-to-point link whose propagation delay is
10 msec. After how much delay will the packet reach its destination?
14. What is the responsibility of the network layer in the OSI model?
To route packets from one node to another on its way to the final destination.
15. What is the responsibility of the data link layer in the OSI model?
Bridge connects LANs, while router connects WANs (with LANs or WANs).
Bridge works at datalink layer level, while router works at network layer level.
LECTURE 2
QUIZE and ANWER
1. An IP packet arrives at a router with the first eight bits as 01000011. The router
discards the packet. Why?
The packet is erroneous. The first four bits 0100=4 shows the version, which is correct.
The next four bits 0011=3 shows the header length, which is wrong. Because 3x4=12
bytes, but an IP header must be minimum 20 bytes.
2. An IP packet arrives at a router with the first eight bits as 01001000. How many
bytes of options are there in the packet?
The header length is 1000=8, which indicates 8x4=32 bytes of header. So the number of
bytes in the options field are 32-20=12.
3. In an IP packet, the value of HLEN is 5, and the value of the total length field is
1000. How many bytes of data the packet is carrying?
The size of the header is 5x4=20 bytes. So the size of the data is 1000-20=980 bytes.
4. A packet has arrived at the destination with the M bit as zero. What can you say
about the packet?
Since M=0, if the packet was fragmented, then this is the last fragment. But we cannot
say whether the packet was at all fragmented or not.
5. A packet has arrived at the destination with the M bit as one. What can you say
about the packet?
Since M=1, the first thing we can say is that the packet has been definitely fragmented.
And moreover, this is not the last fragment.
6. A packet has arrived at the destination with the M bit as one, and also the fragment
offset field as zero. What can you say about the packet?
7. A packet has arrived at the destination with the fragment offset field as 500. What
can you say about the packet?
This is certainly a fragmented packet. With respect to the original packet, the starting
byte number of this fragment is 500x8=4000.
8. A packet has arrived at the destination with the HLEN value as 5, the fragment
offset field as 150, and the total length field as 2000. What can you say about the
packet?
The first byte number is 150x8=1200. Number of data bytes in the packet is 2000-
20=1980. So the first byte number in the packet is 1200, and the last byte is 3179.
196.143.48.129
Since the first byte lies between 224 and 239, this is a class D address.
12. Given the network address 135.75.0.0, find the class, the network id, and the
range of the addresses.
13. Given the network address 216.12.20.0, find the class, the network id, and the
range of the addresses.
15. An IP packet with 2500 bytes of data (plus header) passes through an IP
network with MTU=500. How many additional bytes will be delivered at the
destination?
An IP address identifies the host computer. The port number identifies a running process
in the host computer.
4. Both UDP and IP transmit datagrams. In what ways are they different?
UDP carries the port numbers of the source and destination, and an optional checksum, in
addition.
Port numbers that are assigned to standard programs and known publicly are called well-
known port numbers. They lie in the range 1 and 1023.
They are temporary and short-lived port numbers assigned by the client on a per-
connection basis. They range from 1024 to 65535.
10. Suppose that 5000 bytes are transferred over TCP. The first byte is numbered 20050.
What are the sequence numbers for each segment if data is sent in four segments with the
first two segments carrying 1000 bytes and the last two segments carrying 1500 bytes?
12. What is the purpose of the ACK flag in the TCP header?
13. If you are developing a network application on a reliable LAN environment, which of
TCP or UDP would you prefer, and why?
UDP, because the reliability of transmission need not be worried about. And UDP is
faster than TCP.
LECTURE 4
QUIZE and ANWER
1. For the subnet mask 255.255.192.0, how many hosts per subnet are possible?
2. In classful addressing, if we are using the subnet mask 255.255.192.0, which address
class does it correspond to?
Either Class A or Class B.
3. What is the subnet address if the destination IP address is 144.16.34.124 and the
subnet mask is 255.255.240.0 ?
34 :: 0010 0010
240:: 1111 0000
AND:: 0010 0000
Subnet address will be
144.16.32.0
4. What is the natural mask for a class C network?
255.255.255.0
5. Using simple subnets, is it possible to divide a network into unequal sized subnets?
No. Simple subnets can only divide a network into equal-sized subnets.
6. For an IP address 10.17.5.122 and subnet mask 255.255.128.0, what is the subnet
address? How many hosts per subnet are possible?
7. Among multiple network classes and subnets, which alternative imposes more burden on
the external router?
Multiple network classes.
8. Using VLSM, give a scheme to split a class C address into four subnets where the number
of hosts required are: 100, 55, 20, 30
9. If the number of hosts required are 100, 50, 50 and 20, can VLSM be used?
10. Can the following be the beginning addresses in CIDR based addressing?
12. Which of the following can be the starting address of a CIDR block that contains 512
addresses?
144.16.24.128 --- NO
144.16.75.0 --- NO
144.16.24.0 --- YES
144.16.0.0 --- YES