hyndb

[TCP/IP] 6장 연습문제 - 주관식 본문

TCP IP/연습문제

[TCP/IP] 6장 연습문제 - 주관식

ttttki913 2024. 9. 25. 00:15

1. A host with IP address 137.23.56.23/16 sends a packet to a host with IP address 137.23.67.9/16. Is the delivery direct or indirect? Assume no subnetting. [직접 전달인가 간접 전달인가]

 

A: 137.23.56.23/16 의 netid = 137.23.0.0/ 137.23.67.9/16 의 netid = 137.23.0.0

 => netid 가 같기에 같은 네트워크에 존재 -> Direct delivery

 

2. A host with IP address 137.23.56.23/16 sends a packet to a host with IP address 142.3.6.9/24. Is the delivery direct or indirect? Assume no subnetting.

 

A: 137.23.56.23/16 의 netid = 137.23.0.0/ 142.3.6.9의 netid = 142.3.6.0

=> netid 다르기에 다른 네트워크에 존재 -> Indirect delivery

 

3. In Figure 6.8, find the routing table for router R2.

 

A:

 

4. In Figure 6.8, find the routing table for router R3.

 

A:

 

* figure 6.8

5. A packet arrives at router R1 in Figure 6.8 with destination address 192.16.7.42. Show how it is forwarded.

 

A: 192.16.7.42 2진 표기로 => 11000000 00010000 00000111 00101010

오른쪽으로 28비트 shift => 0000 ... 0000 1100 = 12(맨 앞 4비트만 살리면 됨)

12 => Class C => Network address : 192.16.7.0/12

figure 6.8에서 Next hop address - 111.15.17.32 -> interface : m0

 

6. A packet arrives at router R1 in Figure 6.8 with destination address 145.80 .14.26. Show how it is forwarded.

A: 145 = class b -> network address: 145.80.0.0

figure 6.8에서 위 네트워크 주소 찾기

next hop address = 111.25.19.20, interface = m1

 

7. A packet arrives at router R1 in Figure 6.8 with destination address 147.26.50.30. Show how it is forwarded.

A:147 = class b/ network address = 147.26.0.0

6.8에서 네트워크 주소 찾기(없음 => default mask router로)

next hop address = 111.30.31.18, interface = m0

 

*figure 6.11

8. A packet arrives at the router in Figure 6.11 with destination address 145.14.192.71. Show how it is forwarded.

A: 145.14.192.71 mask 18로 주소 찾기(255.255.192.0 이랑 or and 연산)

subnetwork address = 145.14.192.0

next hop address = at home(---- 없음)

interface m3

 

9. A packet arrives at the router in Figure 6.11 with destination address 135.11.80.21. Show how it is forwarded.

A: mask 18로 subnetwork address 찾기

subnetwork address = 135.11.64.0

next hop address = default (아예 없음)

interface = m4


 

10. A packet arrives at router R1 in Figure 6.13 with destination address 201.4.16.70. Show how it is forwarded.

 

A: 201.4.16.70은 Mask /22 랑 일치 (= 201.4.16.0) 

next hop address = at home

interface = m1

 

11. A packet arrives at router R1 in Figure 6.13 with destination address 202.70.20.30. Show how it is forwarded.

 

A: 202.70.20.30은 일치하는 라우터가 없어서 default router로 

next hop address = 180.70.65.200 (default router)

interface = m2

 

12. Show a routing table for a host that is totally isolated. [완전히 고립된 호스트의 라우팅 테이블을 보여라]

 

A: 완전히 고립된 호스트의 라우팅 테이블은 없다. 라우팅 테이블이 엔트리를 갖고 있지 않다.

 

13. Show a routing table for a host that is connected to a LAN without being con nected to the Internet. [인터넷에는 연결되지 않고 LAN에 연결된 호스트의 라우팅 테이블을 보여라]

 

A: 호스트별 주소가 있는 라우팅 테이블이 있을 수 있다. 모든 패킷이 네트워크에 남아있으므로 다음 홉 주소가 없다.

 

14. Find the topology of the network if Table 6.3 is the routing table for router R1. [네트워크의 토폴로지를구하라]

A:

 


 

15. Can router R1 in Figure 6.16 receive a packet with destination address 140.24.7.194? Explain your answer. [라우터 R1이 목적지 주소의 패킷을 수신할 수 있는가]

 

A: 목적지 주소가 140.24.7.194인 패킷이 R3에 도착하면 인터페이스 m0으로 전송됩니다. R2에 도착하면 인터페이스 m1로 전송된 다음 라우터 R3으로 전송됩니다. R1이 패킷을 수신할 수 있는 유일한 방법은 패킷이 조직 1, 2 또는 3에서 오는 경우입니다. R1로 이동하고 인터페이스 m3에서 전송됩니다.

 

16. Can router R1 in Figure 6.16 receive a packet with destination address 140.24.7.42? Explain your answer.

 

A: 목적지 주소가 140.24.7.42인 패킷이 R3에 도착하면, m3 인터페이스로 전송된다. R2에 도착하면, m0 인터페이스로 전송되어 라우터 R1에 도착한다. 

140.24.7.42는 /26 서브넷에 속함, 140.24.7.0/26은 m0 인터페이스로 연결되어있다. / 패킷의 목적지 주소 140.24.7.42는 /26 범위에 속하므로 R1은 이 패킷을 수신할 수 있다. 패킷은 R1의 m0 인터페이스로 들어간다.


 

17. Show the routing table for regional ISP in Figure 6.17.

 

A:

 

18. Show the routing table for local ISP 1 in Figure 6.17.

 

A:

 

19. Show the routing table for local ISP 2 in Figure 6.17.

 

A:

 

20. Show the routing table for local ISP 3 in Figure 6.17.

 

A:

 

21. Show the routing table for small ISP 1 in Figure 6.17.

 

A: