SMT 2-3 Well known Network Services

NSHC Training
28 Jul 202409:00

Summary

TLDRThis script offers an insightful overview of essential network services, including ARP, DHCP, HTTP, and DNS. It explains how ARP resolves IP to MAC addresses, DHCP dynamically assigns IP addresses, and HTTP facilitates document transfer over the web. The script also highlights the importance of HTTPS for secure communication. Finally, it delves into DNS, which translates domain names into IP addresses, enabling users to access websites easily, and underscores the recursive query process involved in DNS resolution.

Takeaways

  • πŸ” The ARP protocol is used to map IP addresses to MAC addresses within the same network, operating at the L2 data link layer.
  • πŸ“‘ ARP broadcasts a request for MAC addresses when an IP address is known but the corresponding MAC address is not, and stores the response in the ARP table.
  • ⚠️ ARP is vulnerable to spoofing attacks where a malicious device can respond first with a false MAC address, leading to misdirected network traffic.
  • πŸ“² DHCP, or Dynamic Host Configuration Protocol, dynamically assigns IP addresses to devices, operating at the L7 application layer and using ports 67 and 68.
  • πŸ“ˆ DHCP is particularly useful for mobile devices that frequently connect and disconnect from a network, preventing IP address wastage.
  • πŸ”„ The DHCP process involves four stages: Discovery, Offer, Request, and Acknowledgment, facilitating dynamic IP allocation.
  • 🌐 HTTP, or Hypertext Transfer Protocol, is an L7 application layer protocol used for requesting and responding to HTML documents, typically over TCP port 80.
  • πŸ”’ HTTPS is an encrypted version of HTTP, utilizing TLS to secure data transmission, which is increasingly important as web services become more diverse and sensitive.
  • πŸ“ HTTP requests contain detailed information about the type of request, including the HTTP method (e.g., GET, POST) and any additional headers or body data.
  • πŸ“Š HTTP responses include status codes indicating the success or error of the request, along with necessary headers and the body containing the request output.
  • 🌐 DNS, or Domain Name System protocol, translates domain names (e.g., google.com) into IP addresses, allowing for easier memorization and access to web services.
  • πŸ”Ž The DNS query process involves recursive queries from the user's device through various DNS servers until the correct IP address is found and returned.

Q & A

  • What is the primary function of the ARP protocol?

    -The ARP (Address Resolution Protocol) is responsible for mapping IP addresses to MAC addresses within a network, allowing devices to communicate with each other using MAC addresses for data transfer within the same network.

  • How does the ARP protocol work when an IP address is unknown?

    -When an IP address is unknown, the device broadcasts an ARP request throughout the network. The device with the matching IP address responds with its MAC address, which is then stored in the ARP table for future communications.

  • What security vulnerability does the ARP protocol have?

    -The ARP protocol trusts all responses, which makes it susceptible to ARP spoofing. A malicious user can respond with an incorrect MAC address for a known IP, and if their response is the first to arrive, the incorrect MAC address will be stored in the ARP table, redirecting traffic intended for the legitimate IP to the attacker.

  • What does DHCP stand for and what is its role in network communication?

    -DHCP stands for Dynamic Host Configuration Protocol. It dynamically allocates IP addresses to devices on a network, which is particularly useful for mobile devices that frequently connect and disconnect from the network, ensuring efficient IP address distribution and usage.

  • In which network layer does DHCP operate and what ports does it use?

    -DHCP operates in the L7 layer, also known as the Application Layer, and it uses ports 67 for UDP and 68 for TCP communication.

  • What are the four stages of DHCP communication?

    -The four stages of DHCP communication are Discovery, where the client broadcasts a request for an IP; Offer, where the DHCP server offers an available IP; Request, where the client requests the offered IP; and Acknowledgment (ACK), where the server finalizes the IP allocation.

  • What is HTTP and what is its main purpose?

    -HTTP stands for Hypertext Transfer Protocol. It is a protocol used for transferring document information between network devices, primarily for requesting and responding to HTML documents over the World Wide Web.

  • How has the security of HTTP evolved to address modern web needs?

    -The security of HTTP has evolved with the introduction of HTTPS, which is HTTP over TLS (Transport Layer Security). This encrypts the data being transferred, providing a secure method for communication over the web and protecting against eavesdropping and tampering.

  • What information is typically included in an HTTP request?

    -An HTTP request includes the HTTP version, URL information of the web service being requested, HTTP method (such as GET or POST), and additional headers that may specify data to be sent to the server. If using the POST method, the request also includes a body part with the data to be submitted.

  • What is the purpose of the DNS protocol and how does it work?

    -The DNS (Domain Name System) protocol translates domain names, which are user-friendly addresses like google.com, into IP addresses that computers use to communicate. It operates at the L7 application layer and uses ports TCP and UDP 53. When a user enters a domain name, a DNS query is sent to a DNS server, which then returns the corresponding IP address.

  • Can you describe the process of a DNS query when accessing a website?

    -When a user wants to access a website, such as example.com, a DNS query is initiated. If there is no cached data, the DNS resolver performs a recursive query, starting with the root DNS server, then querying the TLD (Top-Level Domain) server, and finally obtaining the IP address from the DNS server responsible for the domain. The IP address is then delivered to the user, who can use it to send an HTTP request to the server.

Outlines

00:00

🌐 Network Services Overview

This paragraph introduces various well-known network services, including ARP, DHCP, HTTP, and DNS. ARP is explained as a protocol that connects IP and MAC addresses, necessary for data transfer within the same network. The vulnerability of ARP to spoofing attacks is also discussed. DHCP is described as a protocol that dynamically assigns IP addresses to devices, operating at the application layer and utilizing ports 67 and 68. The DHCP process is broken down into four stages: Discovery, Offer, Request, and Acknowledgment. HTTP is introduced as a protocol for transporting document information, primarily used for HTML documents, and operates at the application layer using TCP port 80, with a mention of the security-enhanced HTTPS. The paragraph concludes with an introduction to the DNS protocol, which translates domain names into IP addresses, facilitating easier access to web services.

05:00

πŸ” Deep Dive into HTTP and DNS Protocols

This paragraph provides a detailed look at the HTTP and DNS protocols. HTTP methods such as GET and POST are explained, with GET used for simple page requests and POST for submitting data. The structure of an HTTP request and response is outlined, including the HTTP header and body. HTTP status codes are mentioned, indicating the success or failure of a request. The DNS protocol is then explored in depth, explaining how it resolves domain names to IP addresses using a hierarchical system of DNS servers. The process of a DNS query is described, starting from the user's input in the browser to the recursive queries made by the DNS resolver to find the correct IP address. The paragraph concludes with an example of accessing 'example.com', illustrating the steps involved in a DNS query and the eventual delivery of the IP address to the user.

Mindmap

Keywords

πŸ’‘ARP protocol

The ARP (Address Resolution Protocol) is a protocol used to map an IP address to a MAC address within a local network. It operates on the data link layer (Layer 2) of the OSI model. In the video, ARP is essential for understanding how devices communicate within the same network by resolving IP addresses to MAC addresses, which are required for direct communication. The script mentions ARP in the context of broadcasting an IP address to find the corresponding MAC address and the potential security issue of ARP spoofing.

πŸ’‘MAC address

A MAC (Media Access Control) address is a unique identifier assigned to network interfaces for communications on the physical network segment. In the script, MAC addresses are highlighted as crucial for local network communication, where ARP is used to translate IP addresses to MAC addresses, enabling devices to communicate directly with each other.

πŸ’‘DHCP

DHCP (Dynamic Host Configuration Protocol) is a network management protocol used to dynamically assign IP addresses and other network configuration parameters to devices on a network. The script explains that DHCP operates on the application layer (Layer 7) and is vital for dynamically allocating IP addresses to devices, especially mobile ones that frequently connect and disconnect from the network.

πŸ’‘HTTP

HTTP (Hypertext Transfer Protocol) is the foundational protocol for data communication on the World Wide Web, used for fetching resources from web servers. The script describes HTTP as an application layer protocol that facilitates the transfer of document information, primarily HTML documents, and highlights the evolution to HTTPS for secure communication.

πŸ’‘DNS

DNS (Domain Name System) is the protocol for resolving human-readable domain names, like 'google.com', into IP addresses that computers use to identify each other on the network. The script explains the DNS protocol as an essential part of accessing web services by translating domain names into IP addresses, which are then used to establish a connection.

πŸ’‘IP address

An IP (Internet Protocol) address is a numerical label assigned to devices participating in a computer network that uses the Internet Protocol for communication. The script discusses the role of IP addresses in both local and global network communication, and how they are translated to MAC addresses by ARP or resolved by DNS for domain names.

πŸ’‘HTTPS

HTTPS (Hypertext Transfer Protocol Secure) is an extension of HTTP that adds security through encryption, typically using TLS (Transport Layer Security). The script mentions HTTPS as an important development for secure web communication, where the HTTP protocol is used in conjunction with TLS to protect data integrity and privacy.

πŸ’‘TCP/IP

TCP/IP (Transmission Control Protocol/Internet Protocol) is the fundamental communication protocol used for transmitting data over the internet. While not explicitly mentioned in the script, the concepts of IP addresses and HTTP imply the use of TCP/IP for network communication.

πŸ’‘Application layer

The application layer is the topmost layer of the OSI model and is responsible for providing the interface between the user's application programs and the network. The script refers to the application layer in the context of DHCP and HTTP, explaining how these protocols operate at this layer to facilitate user interactions with network services.

πŸ’‘Data link layer

The data link layer is the second layer of the OSI model, providing node-to-node data transfer and detecting errors that may occur in the physical layer. The script discusses the ARP protocol's operation at this layer, emphasizing its role in handling MAC addresses for direct communication within a network.

πŸ’‘TLS

TLS (Transport Layer Security) is a cryptographic protocol designed to provide communications security over a computer network. The script explains that HTTPS uses TLS at the transport layer to secure HTTP communications, making it a critical component for web security.

Highlights

Introduction to well-known Network Services including ARP, DHCP, HTTP, and DNS.

Explanation of ARP protocol's role in connecting IP and MAC addresses within the same network.

Description of the process of IP to MAC address conversion using ARP broadcasts and responses.

Risk of ARP spoofing where a malicious user can hijack IP communication by responding first to ARP requests.

Overview of DHCP (Dynamic Host Configuration Protocol) for dynamic IP address allocation.

DHCP operates on the L7 layer and uses ports 67 and 68 for communication.

DHCP's four-stage communication process: Discovery, Offer, Request, and Acknowledgment.

Importance of DHCP in efficiently managing IP addresses for mobile and frequently connected/disconnected devices.

Introduction to HTTP (Hypertext Transfer Protocol) for document information transfer between network devices.

HTTP is an L7 application layer protocol using TCP port 80, with the option to change ports for specific purposes.

Evolution of web services from simple information sharing to diverse features requiring increased security.

Explanation of HTTPS as an encrypted version of HTTP using TLS for secure communication.

Details of the HTTP communication process including request and response structures.

Importance of HTTP methods like GET and POST for different types of web service interactions.

Introduction to DNS (Domain Name System) protocol for translating domain names to IP addresses.

DNS operates on the L7 layer using TCP and UDP ports 53 for domain name resolution.

Process of DNS query and resolution from user request to server IP delivery.

Role of DNS resolver in performing recursive queries to find the IP corresponding to a domain name.

Final discussion on the practical applications of DNS in accessing web servers using domain names.

Transcripts

play00:00

this is the last part in this part we

play00:02

will learn about some of the well-known

play00:04

Network Services out there including a

play00:05

RP DHCP HTTP and DNS we will go through

play00:10

each service together finally I will

play00:13

introduce you to the most well-known

play00:14

Network

play00:16

Services the ARP protocol is a protocol

play00:19

that connects the IP and Mac addresses

play00:21

an IP address is used to transfer

play00:23

packets to different networks however

play00:26

when transferring data within the same

play00:27

network it must communicate using m

play00:30

addresses this requires the process of

play00:32

converting IP addresses to Mac addresses

play00:34

the RP protocol is a protocol that

play00:36

operates in the L2 data link layer

play00:38

because it deals with Mac addresses as

play00:40

the main the analogy is quite simple if

play00:43

there is an IP address that does not

play00:45

know the MAC address the following IP

play00:47

addresses will be broadcasted throughout

play00:48

the network and the device with this IP

play00:51

responds back with a Mac address among

play00:52

the various devices that have received

play00:54

the request packet when you receive an

play00:57

ARP response the IP and the MAC address

play00:59

both will be stored in the RP table

play01:02

afterwards the message is delivered

play01:04

according to the contents written on the

play01:06

table but what if another device

play01:08

responds first that it has the IP even

play01:10

though the MAC address is different

play01:12

because the lp protocol trusts all

play01:14

responses it applies the first ARP

play01:16

response that arrives the MAC address

play01:18

requested by the malicious user is then

play01:20

stored in the RP table with 0.10 IP in

play01:24

this situation any communication that

play01:27

must be sent to

play01:28

0.10 IP is is sent to a malicious

play01:32

user now let's talk about DHCP DHCP

play01:36

stands for dynamic host configuration

play01:38

protocol it is a protocol that

play01:40

dynamically allocates IP addresses

play01:42

according to the situation it operates

play01:44

in the L7 layer or application layer and

play01:47

uses your DP Port 6768 you can use it

play01:50

one at a time but you might be wondering

play01:51

why you need to assign it dynamically in

play01:54

terms of availability low Mobility

play01:56

devices such as servers will benefit

play01:58

more from fixed IP rather than Dynamic

play02:00

IP however mobile devices such as mobile

play02:03

phones and laptops can be connected or

play02:05

disconnected at any time if one IP is

play02:08

fixed to such a highly mobile device

play02:09

that IP is wasted if the device is not

play02:12

using the network in order to

play02:14

effectively distribute IP in these cases

play02:16

the DHCP protocol is used to provide IP

play02:19

dynamically the principle is simple when

play02:22

new equipment emerges in the network IP

play02:24

will have to be allocated for

play02:25

communication the device notifies the

play02:28

network that it wants to be assigned an

play02:29

IP

play02:30

and when the packet arrives the DHCP

play02:32

server chooses one of the available IP

play02:34

addresses and informs the device which

play02:36

IP to be

play02:38

used if you look at the diagram here

play02:41

you'll notice that the actual DHCP is

play02:43

carried out in four stages of

play02:45

communication the client sends a

play02:47

broadcast packet to port a67 and the

play02:50

DHCP server responds to Port 68 of the

play02:52

client for example the client should

play02:55

tell the DHCP server that it needs an IP

play02:57

but doesn't know who the DHCP server is

play03:00

so instead the client broadcasts and

play03:01

sends a message to the network saying I

play03:03

need an IP this process is also known as

play03:07

Discovery the DHCP server responds by

play03:10

selecting one of the available IP

play03:11

addresses this process is called an

play03:14

offer the client now checks the IP and

play03:17

requests final approval from the DHCP

play03:19

server to use it this is called a

play03:21

request finally the server sends a CK

play03:24

package to finalize the IP allocation

play03:28

process now let's talk about HTTP HTTP

play03:32

stands for hypex transfer protocol a

play03:34

protocol designed to transport document

play03:36

information between network devices it

play03:38

is mainly used to request and respond to

play03:41

HTML documents it is an L7 application

play03:44

layer protocol that uses tcp8 ports but

play03:47

the port can be changed depending on the

play03:48

purpose typically you can communicate

play03:51

via a browser using an application that

play03:53

handles HTTP suchar as Chrome or Firefox

play03:57

in the early days of the internet web

play03:59

pages were veloped just for sharing

play04:01

information however nowadays there are

play04:03

various Services provided to users over

play04:05

the web as features of the web become

play04:07

more diverse and essential information

play04:09

increases security is becoming more

play04:12

important therefore https with

play04:15

encryption is being utilized more

play04:17

because https is encrypted there is no

play04:20

need to worry about the analysis https

play04:23

is actually the same structure as HTTP

play04:26

but when the HTTP protocol is used with

play04:28

TLS at the transport layer to strengthen

play04:30

security it becomes

play04:33

https let's learn more about the HTTP

play04:36

communication process first of all HTTP

play04:39

requests contain detailed information

play04:41

about what kind of request you want to

play04:42

make to the server in order to request

play04:45

HTTP packet you need to specify the HTTP

play04:48

version for communication as well as the

play04:50

URL information of the web service you

play04:52

want to visit if you have filled out

play04:54

basic information about the web service

play04:56

you can also specify additional data you

play04:58

want to obtain from the web service

play05:00

here I need to specify the HTTP method

play05:02

and write down what action I will do for

play05:05

example you can use the get method for

play05:06

simple page requests and pause for

play05:08

submitting specific data there are also

play05:11

many other methods available in addition

play05:13

to the method various additional

play05:15

requests are also included in the HTTP

play05:18

header finally when you write a request

play05:20

to send some data to the server using

play05:22

the post method the HTTP request packet

play05:25

is completed by putting the data

play05:26

corresponding to the body part

play05:29

in this part we will go through the HTTP

play05:32

response that the server receives after

play05:33

processing the HTTP request the HTTP

play05:37

response contains various information

play05:39

about the result of processing the HTTP

play05:41

request an HTTP status code is returned

play05:44

to indicate if the request was

play05:46

successfully processed or if an error

play05:49

occurred in addition several header

play05:51

Fields required for response are set and

play05:53

the body contains the output of the

play05:55

request process here the status code can

play05:58

have a variety of values usually

play06:00

consisting of three-digit integers whose

play06:03

properties are largely divided based on

play06:05

the 100

play06:07

digit next let's move on to domain name

play06:10

system protocol which can be abbreviated

play06:13

as DNS protocol originally communication

play06:16

between the two machines was done using

play06:18

IP and Mac addresses however in the case

play06:21

of web services you must know IP in

play06:23

order to reach the system and it is not

play06:25

easy to memorize the IP address of each

play06:28

service instead you can access it by the

play06:30

nickname of a domain like google.com so

play06:34

does that mean there is an address Cod

play06:35

domain instead of Ip and Mac addresses

play06:37

that communicates with IP addresses the

play06:39

domain name system is what allows you to

play06:42

communicate with each domain and in

play06:43

order for you to use the domain name

play06:45

system you must follow the DNS protocol

play06:48

DNS protocol is a protocol that

play06:50

determines the IP address based on the

play06:52

domain name and helps communicate with

play06:54

other nodes using only the domain name

play06:57

it is an L7 application layer protocol

play07:00

and it uses ports TCP UDP 53 if you look

play07:04

at the simple diagram structure the

play07:06

principle is not difficult if the user

play07:08

searches the domain name in the address

play07:10

bar it actually sends a DNS query to the

play07:12

DNS server the DNS server checks the

play07:15

domain name in the requested query finds

play07:17

the appropriate IP and delivers a DNS

play07:20

response which includes the IP to the

play07:23

client now let's take a look at the

play07:25

details of the DNS query for example

play07:28

when a user wants to access example.com

play07:30

using a web browser as soon as he types

play07:32

example.com in the address bar and press

play07:35

enter DNS query occurs to find the

play07:37

server where example.com is being

play07:39

serviced if there is already cache data

play07:41

the corresponding IP will be returned

play07:43

immediately cache data here means there

play07:46

is history on the location of the domain

play07:48

if there is history of the location then

play07:50

there is no need to search for the

play07:51

requested domain but for the sake of

play07:53

explanation of the principle let's

play07:55

assume that all DNS servers have no

play07:57

cache data the DN s resolver recursive

play08:00

queries to find the IP corresponding to

play08:02

the requested domain in this diagram

play08:05

steps 2 to seven are recursive query

play08:07

processes performed by DNS resolver

play08:10

first the DNS resolver will query

play08:13

www.example.com domain to root DNS

play08:15

server root DNS server will notify the

play08:18

address of the next server that needs to

play08:20

be query com DNS server Doom DNS server

play08:23

is called tldd also known as top level

play08:26

domain it refers to the highest DNS

play08:29

server with numerous subdomains such as

play08:31

com by quering the TLD server you can

play08:34

get the address of the DNS server that

play08:36

manages example.com

play08:38

finally by quering this DNS server you

play08:41

can acquire the example.com address then

play08:43

the DNS resolver delivers the final IP

play08:45

address to the user users can optionally

play08:47

send HTTP request to the actual server

play08:50

by using the actual IP address of

play08:52

example.com as shown in the last two

play08:55

slides hope you enjoyed this class

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
Network ServicesARP ProtocolDHCP AllocationHTTP RequestsDNS QueriesData TransferIP ManagementWeb ProtocolsCybersecurityInternet BasicsTechnical Education