Sei sulla pagina 1di 4

Quiz 4 (SCSR 1213 Network Communications) 1.

. What are some of the possible services that a link-layer protocol can offer to the network layer? Which of these link-layer services have corresponding services in IP? In TCP? 2. Suppose the information content of a packet is the bit pattern 1110 0110 1001 1101 and an even parity scheme is being used. What would the value of the field containing the parity bits be for the case of a two-dimensional parity scheme?. Your answer should be such that a minimum-length checksum field is used. Each row of 2-D parity scheme contains 4 bits from the data. 3. Show (give an example other than the one in Figure 5.5) that two-dimensional parity checks can correct and detect a single bit error. Show (give an example of) a double-bit error that can be detected but not corrected.

4. Consider the 7-bit generator, G=10011, and suppose that D has the value 1010101010. What is the value of R? 5. Consider the previous problem, but suppose that D has the value a. 1001010101. b. 0101101010. c. 1010100000. 6. Clearly explain how the following random access MAC protocols works: a. slotted ALOHA b. CSMA/CD 7. How big is the MAC address space? The IPv4 address space? The IPv6 address space? 8. Why is an ARP query sent within a broadcast frame? Why is an ARP response sent within a frame with a specific destination MAC address? 9. Suppose nodes A, B, and C each attach to the same broadcast LAN (through their adapters). If A sends thousands of IP datagrams to B with each encapsulating frame addressed to the MAC address of B, will Cs adapter process these frames? If so, will Cs adapter pass the IP datagrams in these frames to the network layer C? How would your answers change if A sends frames with the MAC broadcast address?

 Quiz

10. Consider three LANs interconnected by two routers, as shown in Figure 5.33 (a). IP addresses and MAC addresses have been assigned to all of the adapters and interfaces as shown in Figure 5.33 (b). For Subnet 1 use addresses of the form 192.168.1.xxx; for Subnet 2 uses addresses of the form 192.168.2.xxx; and for Subnet 3 use addresses of the form 192.168.3.xxx.

(a)

(b) Figure 5.33: Three subnets (1, 2, and 3), interconnected by router (a), IP addresses and MAC addresses assignment (b) a. Consider sending an IP datagram from Host E to Host B. Suppose all of the ARP tables are up to date. Enumerate (detail) all the steps involved, as done for the single-router example in Section 5.4.1 (text book). Clearly indicates IP and MAC addresses for path 1, path 2, and path 3. b. Repeat (a), now assuming that the ARP table in the sending host is empty (and the other tables are up to date). 11. Consider Figure 5.33 in Question 10. Now we replace the router between subnets 1 and 2 with a switch S1, and label the router between subnets 2 and 3 as R1. a. Consider sending an IP datagram from Host E to Host F. Will Host E ask router R1 to help forward the datagram? Why? In the Ethernet frame containing the IP datagram, what are the source and destination IP and MAC addresses? b. Suppose E would like to send an IP datagram to B, and assume that Es ARP cache does not contain Bs MAC address. Will E perform an ARP query to find Bs MAC address? Why? In the Ethernet frame (containing the IP datagram destined to

 

B) that is delivered to router R1, what are the source and destination IP and MAC addresses? c. Suppose Host A would like to send an IP datagram to Host B, and neither As ARP cache contains Bs MAC address nor does Bs ARP cache contain As MAC address. Further suppose that the switch S1s forwarding table contains entries for Host B and router R1 only. Thus, A will broadcast an ARP request message. What actions will switch S1 perform once it receives the ARP request message? Will router R1 also receive this ARP request message? If so, will R1 forward the message to Subnet 3? Once Host B receives this ARP request message, it will send back to Host A an ARP response message. But will it send an ARP query message to ask for As MAC address? Why? What will switch S1 do once it receives an ARP response message from Host B? 12. Consider the previous problem (Question 11), but suppose now that the router between subnets 2 and 3 is replaced by a switch. Answer questions (a)(c) in the previous problem in this new context. 13. Consider Figure 5.33 in Question 10. Provide MAC addresses and IP addresses for the interfaces at Host A, both routers, and Host F. Suppose Host A sends a datagram to Host F. Give the source and destination MAC addresses in the frame encapsulating this IP datagram as the frame is transmitted (i) from A to the left router, (ii) from the left router to the right router, (iii) from the right router to F. Also give the source and destination IP addresses in the IP datagram encapsulated within the frame at each of these points in time 14. Suppose now that the leftmost router in Figure 5.33 is replaced by a switch. Hosts A, B, C, and D and the right router are all star-connected into this switch. Give the source and destination MAC addresses in the frame encapsulating this IP datagram as the frame is transmitted (i) from A to the switch, (ii) from the switch to the right router, (iii) from the right router to F. Also give the source and destination IP addresses in the IP datagram encapsulated within the frame at each of these points in time. 15. Figure below shows several networks connected to each other. You will examine a situation where PC-A sends data to PC-B. You are to fill in Table 1 below and indicate the source/destination MAC and IP addresses at different points during the transmission. You do not need to use complete IP and MAC addresses. The matching names for the IP and MAC addresses of each device is given on the figure. Some devices, such as routers and switches, have multiple interfaces; therefore multiple addresses are assigned to them.

 

16. Six nodes (A, A, B, B, C, and C) are connected to a router using star topology as shown in the following figure.

a. How does switch know A reachable via interface 4, B reachable via interface 5? b. How are entries created, and maintained in switch table? This is considered as basic operation of a switch which is done automatically. c. As shown in the following figure, suppose node A (with MAC address A) want to send datagram to node A (with MAC address A). Initially, switch table in router is empty. Explain in details, how self-learning process is done so that the final switch table is updated as shown below.

 

Potrebbero piacerti anche