Lab 1b 2210220
Lab 1b 2210220
Lab 1b 2210220
Contents
1 Lab_1b_Network Devices 2
1.1 Understanding functions of network devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.1.1 Network Interface Card (NIC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.1.2 Hub . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.1.3 Switches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1.4 Routers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1.5 Access Points (AP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.1.6 Modems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.2 Connecting network devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Báo cáo thực hành môn Mạng máy tính - Năm học 2023 - 2024 Page 1/6
Đại học Bách Khoa Thành phố Hồ Chí Minh
Khoa Khoa học và Kĩ thuật máy tính
1 Lab_1b_Network Devices
− NIC functions :
• A Network Interface Card (NIC) is responsible for enabling a computer to connect to a network.
It translates data into electrical signals to be sent over the network medium (wired or wireless). It also
receives incoming network data and translates it into a format usable by the computer.
• The NIC provides a unique identifier known as the MAC address, which is essential for network
communication.
• It handles error checking and helps in managing the flow of data over the network.
• NIC processors often use specialized network processors or controller chips from manufacturers like
Intel, Broadcom, or Realtek. The processor’s code refers to the chipset model, such as Intel I350 or
Realtek RTL8168.
− Check NIC of a computer, what is its MAC address ? To check the MAC address, use the following
method:
• On Windows: Open Command Prompt and type ipconfig /all. Look for the "Physical Address" under
the relevant network adapter.
• Type: The most common cable for wired connections is Ethernet cable
• Standard: The cable standard typically used is IEEE 802.3 (for Ethernet). It supports different speeds
such as Fast Ethernet (100 Mbps) or Gigabit Ethernet (1 Gbps) depending on the category of
the cable.
1.1.2 Hub
− Roles of hub in a network: A hub is a simple device used to connect multiple computers or network
devices in a network. It operates at the physical layer (Layer 1) of the OSI model and forwards data to all
connected devices.
− Main characteristics:
Báo cáo thực hành môn Mạng máy tính - Năm học 2023 - 2024 Page 2/6
Đại học Bách Khoa Thành phố Hồ Chí Minh
Khoa Khoa học và Kĩ thuật máy tính
• Works on half-duplex mode (only one device can send data at a time).
− Weakness of hub:
• Inefficient because it sends data to all devices, leading to unnecessary network congestion.
− Hub port: Usually comes with multiple RJ-45 Ethernet ports, typically 4, 8, 12, or 24 ports.
1.1.3 Switches
− Roles of switches in a network: Switches connect multiple devices on a network and forward data only
to the device that needs it. They operate at the data link layer (Layer 2) and use MAC addresses to
direct traffic.
• Operate in full-duplex mode (devices can send and receive data simultaneously).
• More efficient than hubs as they reduce network collisions and increase bandwidth.
• Hubs broadcast data to all ports, while switches send data only to the intended recipient.
• Switches operate at Layer 2 (Data Link) and can segment the network into smaller collision domains,
while hubs operate at Layer 1 (Physical Layer).
• Switches can work in full-duplex mode, but hubs only operate in half-duplex mode.
− Weaknesses of switches:
− Switch ports: Typically have multiple RJ-45 Ethernet ports, ranging from 8 to 48 ports.
1.1.4 Routers
− Roles of routers in a network: Routers connect multiple networks and forward data between them. They
operate at the network layer (Layer 3) and use IP addresses to determine the best path for data to
Báo cáo thực hành môn Mạng máy tính - Năm học 2023 - 2024 Page 3/6
Đại học Bách Khoa Thành phố Hồ Chí Minh
Khoa Khoa học và Kĩ thuật máy tính
travel.
• Provide network services like NAT (Network Address Translation), DHCP, and firewall functions.
• Routers operate at Layer 3 (Network Layer) and manage traffic between different networks, while switches
operate at Layer 2 and manage traffic within the same network.
− Router ports: Routers have WAN ports for connecting to the internet and LAN ports for local devices,
often RJ-45 Ethernet or fiber optic ports.
− Roles of access points: An access point provides wireless connectivity to devices, allowing them to join a
wired network through Wi-Fi. It acts as a bridge between wired and wireless networks.
• Typically have one Ethernet port for wired connectivity to a switch or router.
• Access points connect wireless devices to a wired network, while routers direct traffic between networks.
• Switches work with wired devices, while APs work with wireless devices.
1.1.6 Modems
− Differentiate
Báo cáo thực hành môn Mạng máy tính - Năm học 2023 - 2024 Page 4/6
Đại học Bách Khoa Thành phố Hồ Chí Minh
Khoa Khoa học và Kĩ thuật máy tính
• Dial-up Modem
• ADSL Modem:
■ Uses telephone lines for internet access but can offer higher speeds, typically 1–24 Mbps.
■ Splits the line for both phone and internet use simultaneously.
• Cable Modem:
• ADSL Modem: Still in use in areas where fiber isn’t available, faster than dial-up, uses the same line
for phone and internet.
• Cable Modem: Common in modern high-speed internet services, works over cable TV infrastructure,
much faster than ADSL and dial-up.
Identify the type of network cable used for the below connections:
Báo cáo thực hành môn Mạng máy tính - Năm học 2023 - 2024 Page 5/6
Đại học Bách Khoa Thành phố Hồ Chí Minh
Khoa Khoa học và Kĩ thuật máy tính
Báo cáo thực hành môn Mạng máy tính - Năm học 2023 - 2024 Page 6/6