Bài tập Mạng máy tính

7 38 0
Bài tập Mạng máy tính

Đang tải... (xem toàn văn)

Thông tin tài liệu

Lecture Quenstions: What are the differences between classful addressing and classless addressing in IPv4? Sự khác địa phân lớp địa không phân lớp Ipv4? Answer: Địa phân lớp: - Các địa IP chia thành lớp: A, B, C, D E Trong đó, lớp A, B C thường sử dụng Lớp D dành cho Multicast sử dụng Còn lớp E để dành không sử dụng - Mỗi địa IP thuộc lớp cụ thể, lý chúng đặt tên địa phân lớp Trước đó, hệ thống địa khơng có tên nào, địa khơng phân lớp xuất đặt tên - Nhược điểm địa phân lớp giới hạn tính linh hoạt số lượng địa gán cho thiết bị Địa không phân lớp: - Là hệ thống địa IP cải tiến - Làm cho việc phân bổ địa IP hiệu - Thay địa phân lớp cũ dựa lớp List the classes in classful addressing and define the application of each class (unicast, multicast, broadcast, or reserve) Liệt kê lớp địa phân lớp nêu ứng dụng lớp (unicast, multicast, broadcast, or reserve) Answer: Địa phân lớp gồm lớp: A, B, C, D E - Lớp A, B C dùng cho unicast - Lớp D dùng cho multicast - Lớp E dùng để reserve cho mục đích quan trọng Explain why most of the addresses in class A are wasted Explain why a medium-size or large-size corporation does not want a block of class C addresses Giải thích hầu hết địa lớp A bị lãng phí Giải thích cơng ty vừa lớn khơng muốn khối địa thuộc lớp C Answer: Hầu hết địa lớp A bị lãng phí khối địa lớp A lớn với kích thước khối 16.777.216 Một cơng ty có quy mơ trung bình quy mơ lớn khơng muốn có khối địa lớp C khối lớp C q nhỏ có kích thước khối 256 4 What is a mask in IPv4 addressing? What is a default mask in IPv4 addressing? Trong địa Ipv4 mask gì? Và default mask gì? Answer: Một mask địa phân lớp sử dụng để tìm địa khối địa cung cấp Default mask đề cập đến mặt nạ khơng có mạng siêu lớp (subnetting and supernetting) What is the network address in a block of addresses? How can we find the network address if one of the addresses in a block is given? Trong khối địa chỉ, network address gì? Làm để tìm network address biết địa khối đó? Answer: Network address khối địa địa Mask AND với địa chie khối để tìm network address How can we distinguish a multicast address in IPv4 addressing? How can we so in IPv6 addressing? Làm để phân biệt địa multicast Ipv4 Ipv6? Answer: Địa Multicast IPv4 địa bắt đầu mẫu 1110 Địa Multicast IPv6 địa bắt đầu mẫu 11111111 What is NAT? How can NAT help in address depletion? NAT gì? Làm mà NAT giúp đỡ việc giải cạn kiệt địa chỉ? Answer: Người dùng hộ gia đình doanh nghiệp nhỏ phải tạo mạng nhỏ với vài máy chủ cần địa IP cho máy chủ Với thiếu hụt địa chỉ, vấn đề bí ẩn Một giải pháp nhanh chóng cho vấn đề gọi network address translation (NAT) NAT cho phép người dùng có địa lớn bên địa địa nhỏ bên Lưu lượng truy cập bên sử dụng lớn; Lưu lượng truy cập bên ngoài, nhỏ Exercises: Find the class of the following IP addresses a 208.34.54.12 => Class C (first byte is between 192 and 223) b 238.34.2.1 => Class D (first byte is between 224 and 239) c 114.34.2.8 => Class A (first byte is between and 127) d 129.14.6.8 => Class B (first byte is between 128 and 191) Find the class of the following IP addresses a 11110111 11110011 10000111 11011101 b 10101111 11000000 11110000 00011101 c 11011111 10110000 00011111 01011101 d 11101111 11110111 11000111 00011101 Answer: a Class E (4 bit đầu 1) b Class B (bắt đầu 10) c Class C (bắt đầu 110) d Class D (bắt đầu 1110) Find the netid and the hostid of the following IP addresses a 114.34.2.8 b 132.56.8.6 c 208.34.54.12 Answer: a Netid: 114 Hostid: 34.2.8 b Netid: 132.56 Hostid: 8.6 c Netid: 208.34.54 Hostid: 12 In a block of addresses, we know the IP address of one host is 25.34.12.56/16 What are the first address (network address) and the last address (limited broadcast address) in this block? Answer: Từ 25.34.12.56/16 => Subnet mask là: 255.255.0.0 Chuyển sang hệ nhị phân: Host IP: 00011001.00100010.00001100.00111000 Subnet mask: 11111111.11111111.00000000.00000000 Tìm Network address cách lấy Host IP AND với Subnet mask:  Network address: 00011001.00100010.00000000.00000000 -> 25.34.0.0 Tìm Broadcast Address cách lấy Host IP OR với Subnet mask đảo bit: Đảo bit SM: 00000000.00000000.11111111.11111111  Broadcast Address: 00011001.00100010.11111111.11111111 -> 25.34.255.255 In a block of addresses, we know the IP address of one host is 182.44.82.16/26 What are the first address (network address) and the last address in this block? Answer: Từ 182.44.82.16/26 => Subnet mask là: 255.255.255.192 Chuyển sang hệ nhị phân: Host IP: 10110110.00101100.01010010.00010000 Subnet mask: 11111111.11111111.11111111.11000000 Tìm Network address cách lấy Host IP AND với Subnet mask:  Network address: 10110110 00101100.01010010.00000000 -> 182.44.82.0 Tìm Broadcast Address cách lấy Host IP OR với Subnet mask đảo bit: Đảo bit SM: 00000000.00000000.00000000.00111111  Broadcast Address: 10110110.00101100.01010010.00111111 -> 182.44.82.63 An organization is granted the block 16.0.0.0/8 The administrator wants to create 500 fixed-length subnets a Find the subnet mask Có: ⇒ Số bit cần bổ sung ⇒ Số mạng khả dụng: ⇒ SubnetMask: /(8 + 9) = /17 b Find the number of addresses in each subnet Trong mạng có: c Find the network address and broadcast addresses in subnet Network address địa đầu tiên: 16.0.0.0 Broadcast addresses = subnet address + subnet size – = 16.0.0.0 + 32768 – = 16.0.0.0 + 0.0.127.255 = 16.0.127.255 d Find the network address and broadcast addresses in subnet 500 Để tìm subnet thứ 500 ta cần cộng vào địa subnet 1: 499 * 32768 = 16 351 232 địa  Network address: 16.0.0.0 + 16351232 = 16.0.0.0 + 0.249.128.0 = 16.249.128.0 Để tìm broadcast addrest subnet 500 ta cộng thêm 32767 network addrest:  Broadcast addresses = 16.249.128.0 + 32767 = 16.249.128.0 + 0.0.127.255 = 16.249.255.255 An organization is granted the block 130.56.0.0/16 The administrator wants to create 1024 subnets a Find the subnet mask Có: ⇒ Số bit cần bổ sung 10 ⇒ Số mạng khả dụng: ⇒ SubnetMask: /(16 + 10) = /26 b Find the number of addresses in each subnet Trong mạng có: c Find the first and last addresses in subnet Network address địa đầu tiên: 130.56.0.0 Broadcast addresses = subnet address + subnet size – = 130.56.0.0+ 64 – = 130.56.0.63 d Find the first and last addresses in subnet 1024 Để tìm subnet thứ 1024 ta cần cộng vào địa subnet 1: 1023 * 64 = 65472 địa  Network address: 130.56.0.0+ 65472 = 130.56.0.0 + 0.0.255.192 = 130.56.255.192 Để tìm broadcast addrest subnet 500 ta cộng thêm 64-1 network addrest:  Broadcast addresses = 130.56.255.192+ 63 = 130.56.255.255 An organization is granted the block 211.17.180.0/24 The administrator wants to create 32 subnets a Find the subnet mask Có: ⇒ Số bit cần bổ sung ⇒ Số mạng khả dụng: ⇒ SubnetMask: /(24 + 5) = /29 b Find the number of addresses in each subnet Trong mạng có: c Find the first and last addresses in subnet Network address địa đầu tiên: 211.17.180.0 Broadcast addresses = subnet address + subnet size – = 211.17.180.0+ – = 211.17.180.7 d Find the first and last addresses in subnet 32 Để tìm subnet thứ 32 ta cần cộng vào địa subnet 1: 31 * = 248 địa  Network address: 211.17.180.0+ 248 = 211.17.180.248 Để tìm broadcast addrest subnet 32 ta cộng thêm – network addrest:  Broadcast addresses = 211.17.180.248+ = 211.17.180.255 Find the range of addresses in the following blocks a 123.56.77.32/29 Số địa khối là: Cần thêm – = vào network address để tìm broadcast  Network address: 123.56.77.32  Broadcast address: 123.56.77.39 b 200.17.21.128/27 Số địa khối là: Cần thêm 32 – = 31 vào network address để tìm broadcast  Network address: 200.17.21.128  Broadcast address: 200.17.21.159 c 17.34.16.0/23 Số địa khối là: Cần thêm 512 – = 511 (0.0.1.255) vào network address để tìm broadcast  Network address: 17.34.16.0  Broadcast address: 17.34.17.255 d 180.34.64.64/30 Số địa khối là: Cần thêm – = vào network address để tìm broadcast  Network address: 180.34.64.64  Broadcast address: 180.34.64.67 10 An ISP is granted a block of addresses starting with 150.80.0.0/16 The ISP wants to distribute these blocks to 2600 customers as follows a The first group has 200 medium-size businesses; each needs 128 addresses b The second group has 400 small businesses; each needs 16 addresses c The third group has 2000 households; each needs addresses Design the subblocks and give the slash notation for each subblock Find out how many addresses are still available after these allocations Answer: prefix = 32 – log2 128 = 25, Addresses per block = 2^7 = 128, addresses in Group = 128 x 200 = 25,600 First sub-block 150.80.0.0/25 to 150.80.0.127/25 Last sub-block 150.80.99.128/25 to 150.80.99.255/25 prefix = 32 − log2 16 = 28, Addresses per block = 2^4 = 16, addresses in Group = 16 x 400 = 6,400 First sub-block 150.80.100.0/28 to 150.80.100.15/28 Last sub-block 150.80.124.240/28 to 150.80.124.255/28 prefix = 32 − log2 = 30, Addresses per block = 2^2 = 4, addresses in Group = x 2048 = 8,192 First sub-block 150.80.125.0/30 to 150.80.125.3/30 Last sub-block 150.80.156.252/30 to 150.80.156.255/30 Total Addresses in this block = 65,536 (2^16) Total assigned addresses = 8,192 + 6,400 + 25,600 = 40,192 Unassigned Addresses = 65,536 – 40,192 = 25,344 ... cạn kiệt địa chỉ? Answer: Người dùng hộ gia đình doanh nghiệp nhỏ phải tạo mạng nhỏ với vài máy chủ cần địa IP cho máy chủ Với thiếu hụt địa chỉ, vấn đề bí ẩn Một giải pháp nhanh chóng cho vấn... Find the subnet mask Có: ⇒ Số bit cần bổ sung ⇒ Số mạng khả dụng: ⇒ SubnetMask: /(8 + 9) = /17 b Find the number of addresses in each subnet Trong mạng có: c Find the network address and broadcast... the subnet mask Có: ⇒ Số bit cần bổ sung 10 ⇒ Số mạng khả dụng: ⇒ SubnetMask: /(16 + 10) = /26 b Find the number of addresses in each subnet Trong mạng có: c Find the first and last addresses in

Ngày đăng: 16/02/2022, 20:59

Mục lục

  • 1.

  • 2.

  • 3. 

Tài liệu cùng người dùng

Tài liệu liên quan