HCIA Domain 5
HCIA Domain 5
In the early days of the internet, file transfers were done through
command-line interfaces using protocols like File Transfer Protocol (FTP)
and Trivial File Transfer Protocol (TFTP), which remain important for
specific networking and system tasks.
FTP is a protocol used to transfer files between clients and servers over a
network, supporting two types of file transfer modes and two transfer
processes (active and passive).
Port 21: For control commands, establishing and managing the session.
1. ASCII Mode:
2. Binary Mode:
Note: NAT challenges often arise with active mode. If the client is
behind a NAT, the IP/port information may not match, leading to a failed
connection.
3. The client then initiates a connection from its listening port to the
server’s new port for data transfer.
Unlike FTP, it’s a lighter protocol with fewer features and operates over UDP
(User Datagram Protocol) on port 69, making it simpler but less reliable
than FTP due to the lack of error correction.
File Size Support Large file support Primarily for small files
3. Telnet
Telnet is a network protocol used for remote device management, allowing
administrators to manage network devices over an IP network using
command-line access.
Since Telnet operates over TCP on port 23, any device capable of
accessing the Telnet server’s IP address and communicating over port 23
can remotely manage the server.
Both the server and client roles can often be fulfilled by network devices
like:
Firewalls
Routers
Switches
Servers
User Privilege Level: Determines the level of access the user will have
after logging in, which affects the commands they can execute.
The VTY interface is essential for setting up Telnet access control and session
management.
4. DHCP
4.1 Challenges of Manual IP Configuration:
Manual IP configuration involves manually assigning network parameters to
each device on the network, which leads to several challenges:
Low IP Utilization:
When each device has a fixed IP address, some IPs may go unused
for extended periods, leading to inefficient IP address utilization.
Lack of Flexibility:
Unified Management:
Plug-and-Play Connectivity:
1. DHCP Discover:
2. DHCP Offer:
3. DHCP Request:
The DHCP server responds with a DHCP ACK, finalizing the lease
and confirming the IP address and network settings for the client.
1. T1 (50% of Lease Time): At 50% of the lease period, the client sends a
unicast DHCP Request to the original DHCP server to renew the lease.
If successful, the server renews the lease and the client can continue
using the IP address.
If the client fails to renew its lease by the end of the lease period, it must
release the IP address and restart the DORA process to acquire a new IP.
5. HTTP
Hypertext Transfer Protocol (HTTP) is an application-layer protocol that
enables communication between a client (like a browser) and a web server.
Client/Server Architecture:
Transmission Protocol:
HTTP uses TCP as its transport layer protocol, ensuring reliable data
transfer.
Stateless:
The protocol for transferring HTML documents and other data between
the client and server.
URL Structure:
2. HTTP Request:
3. Server Response:
If the resource is not found, the server sends a 404 Not Found
response.
The browser then renders and displays the page content to the
user.
Request Line:
Specifies the HTTP method (e.g., GET or POST), the resource path, and
the HTTP version (e.g., HTTP/1.1).
Headers:
headers.
Body:
Contains data in the case of methods like POST (not included in a GET
request).
Example:
Example:
HTTP/1.1 200 OK
Content-Type: text/html
Content-Length: 256
Server: Apache
200 OK: The request succeeded, and the server returned the requested
resource.
301 Moved Permanently: The resource has been moved to a new URL, and
clients should update their bookmarks.
404 Not Found: The requested resource is not available on the server.
6. DNS
Domain Name System (DNS) is a protocol that translates domain names
into IP addresses.
Allowing users to access websites and other network services using easy-
to-remember names instead of numeric IP addresses.
For example, when you type www.example.com in your browser, DNS resolves it
to an IP address that the browser can use to connect to the web server
hosting that domain.
2. DNS Server: A server that stores the mappings between domain names
and IP addresses, responding to queries from clients (DNS resolvers).
DNS servers are part of a hierarchical, distributed architecture.
Instead, different servers store portions of the DNS database, which helps
manage and distribute the query load effectively.
hostname.second-level-domain.top-level-domain.root-domain
Hostname: The specific server or service name within the domain, such as
www (for web servers).
If the DNS resolver doesn’t have the requested IP in its cache, it will use
one of the following query methods to resolve the name:
i. Recursive Query
In a recursive query, the DNS server queried by the client takes on the
full responsibility of resolving the domain name.
The DNS server will query other DNS servers on behalf of the client
until it finds the IP address or an error.
Once found, the DNS server returns the result to the client.
Example: A user enters a domain name, and their DNS resolver queries
the local DNS server, which will continue querying other DNS servers if
necessary until it finds the IP address.
The client then queries this new DNS server and repeats the process
until it receives the answer.
Example: A DNS resolver might tell the client, “I don’t know the IP, but
try this other DNS server.” The client then sends another query to the
referred DNS server.
Recursive queries require the DNS server to handle the full resolution
process, while iterative queries require the client to query each DNS
server step-by-step until it finds the result.
7. NTP
Accurate time synchronization is essential across various network
applications, especially in enterprise campus networks.
It ensures that all devices reference the same accurate time, which
improves the consistency and reliability of the network.
The stratum value ranges from 1 to 15, with 1 representing the most
accurate clocks and 15 representing the least accurate (not
synchronized).
The NTP server responds with a time update based on its clock,
including information such as stratum level and time accuracy.
2. Clock Adjustment:
The client compares the received time with its current clock.
NTP algorithms calculate any offset (time difference) and adjust the
client’s clock accordingly, gradually aligning it with the server’s time.
3. Regular Updates: