Professional Documents
Culture Documents
Computer Networks CT 1 Solutions
Computer Networks CT 1 Solutions
Computer Networks CT 1 Solutions
Question: How many point-to-point WANs are needed to connect n LANs if each LAN should be able
to directly communicate with any other LAN?
Answer:
To connect n LANs where each LAN can communicate directly with any other LAN, you need a fully
meshed network topology. This means there's a direct point-to-point WAN connection between
every pair of LANs.
The number of point-to-point WANs required can be calculated using the following formula:
n * (n - 1) / 2
Where:
Example:
5 * (5 - 1) / 2 = 10 point-to-point WANs.
Answer: The size of an ARP packet when the protocol is IPv4 and the hardware is Ethernet is 28
bytes.
However, it's important to note that when an ARP packet is transmitted over Ethernet, it's
encapsulated within an Ethernet frame. Due to the minimum Ethernet frame size requirement, the
ARP packet will be padded to 46 bytes, and with the Ethernet header and trailer, the total frame size
becomes 64 bytes.
Question: In a block code, a dataword is 20 bits and the corresponding codeword is 25 bits. What
are the values of k, r, and n according to the definitions in the text? How many redundant bits are
added to each dataword?
• r represents the number of redundant bits (the number of error-correcting bits added).
• n represents the total number of bits in the codeword (the size of the codeword).
In this case:
n=k+r
Therefore:
r = n - k = 25 - 20 = 5
So:
• r=5
Answer:
• k = 20
• r=5
• n = 25
Answer: Here's a representation of protocol layering in air travel, using your round-trip vacation as an
example:
• Dependencies: Each layer depends on the successful completion of the layers below it. For
example, you can't board the plane (Boarding) without a boarding pass (Ticketing).
• Abstraction: Each layer hides the complexities of the layers below it. You don't need to know
how the plane flies (Takeoff/Flight) to check in your bags (Baggage).
• Modularity: This layered approach allows for easier management and modification of the
overall process. For instance, changes to security procedures (Security) don't affect how
baggage is handled (Baggage).
Question: What are the identical objects in the TCP/IP protocol suite?
Answer: In the TCP/IP protocol suite, the identical objects at each layer are messages or Protocol
Data Units (PDUs).
1. Application Layer: The message is the data generated by the application (e.g., email, web
page).
2. Transport Layer: The message is encapsulated into a segment (TCP) or datagram (UDP) by
adding transport layer headers.
3. Network Layer: The segment or datagram is encapsulated into a packet by adding a network
layer header (IP header).
4. Data Link Layer: The packet is encapsulated into a frame by adding a data link layer header
and trailer (e.g., Ethernet header and trailer).
5. Physical Layer: The frame is converted into bits and transmitted over the physical medium.
At each layer, the PDU from the upper layer is encapsulated into a new PDU with headers specific to
that layer. This process continues until the data reaches the physical layer, where it's transmitted
over the network. On the receiving end, the process is reversed, with each layer stripping off its
header and passing the PDU to the layer above.
While the term "message" is used generically, the specific names for PDUs vary across layers:
• Application: Data
• Network: Packet
• Physical: Bits