3. Application Layer Flashcards

1
Q

List out the upper 3 layers in OSI model

A
  1. Application
  2. Presentation
  3. Session
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does the application layer provides?

A
  1. Provides the interface between the application used to communicate, and the underlying network over which messages are transmitted
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

List out the application layer protocols ( 5 )

A
  1. HTTP ( Hypertext Transfer Protocol )
  2. FTP ( File Transfer Protocol )
  3. TFTP
  4. IMAP ( Internet Message Access Protocol )
  5. DNS ( Domain Name System )
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the 3 primary function in the presentation layer?

A
  1. Formatting, or presenting, data at the source device into a compatible format for receipt by the destination device
  2. Compressing data in a way that can be decompressed by the destination device
  3. Encrypting data for transmission and decrypting data upon receipt
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the functions in the session layer? ( 2 )

A
  1. It creates and maintains dialogs between source and destination applications
  2. It handles the exchange of information to initiate dialogs, keep them active, and to restart sessions that are disrupted or idle for a long period of time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What layer protocols are used by both the source and destination devices during a communication seesion?

A
  1. Application Layer Protocols
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What must be done for the communication to be successful?

A
  1. The application layer protocols that are implemented on the soure and destination host must be compatible
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does TCP/IP application protocols do?

A
  1. Specify the format and control information necessary for many common internet communication functions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does DNS ( Domain Name Search )do? Also list out the port

A
  1. Translates domain names ( youtube.com ), into IP Addresses

2.TCP, UDP client 53

*UDP 53 - Typically used for most DNS queries because it’s faster (connectionless).
*TCP 53 - Used when the response data size exceeds 512 bytes or for zone transfers between DNS servers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does DHCP ( Dynamic Host Configuration Protocol ) do? Also list out the port

A
  1. Dynamically assigns IP addresses to be re-used when no longger needed
  2. UDP client 68, UDP server 67

*Client UDP 68: When a device (like a computer or phone) joins a network, it sends a request (via UDP) to ask for an IP address on port 68.
* Server UDP 67: The DHCP server listens on port 67 to respond to those requests and assigns IP addresses.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does HTTP do? Also list out the port

A
  1. A set of rules for exchanging text, graphic images, sound, video and other multinedia files on the World Wide Web
  2. TCP 80 , 8080
  • Port 80: The standard port for HTTP (non-secure) communication over TCP.
  • Port 8080: Sometimes used as an alternative to port 80, especially for web servers running on a machine where port 80 is already in use or for testing purposes.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the requesting information’s device called?

A
  1. Client
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the responding the request’s device called?

A
  1. Server
  • Application layer protocols describe the format of the requests and responses between clients and servers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What can pear-to-pear network do for 2 or more computers?

A
  1. Connected via a network and can share resources without having a dedicated server
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What layer does client and server processes are considered to be in?

A
  1. Application Layer
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What can an end device ( peer ) function in pear-to-pear ( 2 )

A
  1. Server
  2. Client
  • One computer might assume the role of server for one transaction while simultaneously serving as a client for another. The roles of client and server are set on a per request basis
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

List out the common P2P network ( 4 )

A
  1. BitTorrent
  2. Direct Connect
  3. eDonkey
  4. Freenet
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

List out the 3 parts that the browser interprets

A
  1. HTTP / HTTPS ( Protocol / Scheme )
  2. www.youtube.com ( server name , URL )
  3. index.html ( Specific filename requested )
  • HTTPS has log
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

List out the steps on how the web browser and web server interact

A
  1. Browser interprets 3 parts of the URL ( http , www , index.html )
  2. Checks the name server to convert into numeric IP address, then sending a GET request to the server and asks for the index.html file
  3. In response to the request, the server sends the HTML code for this web page to the browser
  4. The browser deciphers the HTML code and formats the page for the browser window
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What is HTTP?

A
  1. Is a request / response protocol specifies the message types used for that communication
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

List out 3 common messages types of HTTP

A
  1. GET
    • Request data
  2. POST
    • Uploads data files ( form data )
  3. PUT
    • Uploads resources or content to the web server ( image )
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What is Email?

A
  1. Is a store-and-forward method of sending, storing, and retriving electronic message across a network
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Email messages stored in where?

A
  1. In databases on main servers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

List out the email protocols ( 2 )

A
  1. Send Mail
    • Simple Mail Transfer Protocol ( SMTP )
  2. Receive Mail
    • Post Office Protocol ( POP )
    • IMAP
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

What is the main function of SMTP?

A
  1. Send the email to the server using port 25
  • Port 25 is important
  • It may send to other server
26
Q

What are the formats for SMTP message?

A
  1. Message Header
    • Email Address
    • Sender Email Address
  2. Message Body
27
Q

What is the main function of POP?

A
  1. Sends a request to establish a TCP connection with the server using port 110
28
Q

List out the steps for SMTP ( 4 )

A
  1. Connection is made
  2. Client attempts to send the email to the server across the connection
  3. When the server received the message, it either places the message in a local account, if the receipent is local, or forwards the messages to another mail server for delivery
  4. The destination email server may not be online or may be busy. If so, SMTP spools messages to be sent at a later time
29
Q

Why POP is not recommend for small business

A
  1. Because POP does not store messages, it is not recommended for small business that need a centralized backup solution
30
Q

List out the steps for POP ( 3 )

A
  1. When a client wantes to make use of the service, it sends a request to establish a TCP connection with the server
  2. When the connection is established, the POP server sends a greeting
  3. The client and POP server then exchange commands and respons until the connection is closed or aborted
31
Q

What is the main function of IMAP?

A
  1. Is another protocol that retrive email messages from the server ( Same as POP )
32
Q

What is the difference between POP and IMAP? ( 2 )

A
  1. IMAP will copy the message then sends to the client application and the original messages are kept on the server until manually deleted
  2. While POP message data will be deleted on the server after the client receives mail using POP
33
Q

What will happen if a user decides to delete a message using IMAP ?

A
  1. The server synchronizes that action and deletes the message from the server
34
Q

What is an example and an advantage for Fully-qualified domain names?

A
  1. https://www.youtube.com
  2. Are much easier for people to remember
35
Q

What does the DNS server stores? ( 3 )

A
  1. Name
  2. Address
  3. Type of Record
36
Q

List out some of the records types ( 4 )

A
  1. A
    • An end devie IPv4 address
  2. NS
    • An authoritiative name server
  3. AAAA
    • An end device IPv6 address
  4. MX
    • A mail exchange record
37
Q

What does DNS protocol provides?

A
  1. Defines an automated service that matches resource names with the required numeric network address
  • Includes the format for queries, responses and data
38
Q

Why are domain names were created?

A
  1. To convert numeric IP addresses into a simple, recognizable name
39
Q

What are the step that the DNS process

A
  1. The local DNS server first looks at its own records
  2. If it was unable to resolve the name by using its stored records, it contacts other servers to resolve the name
  3. After the match is found and returned to the original requestion server, the server temporily stores the numbered address in the even that the same name is requested again
40
Q

List out the DNS message section and a basic description

A
  1. Question
    • Question for the Name server
  2. Answer
    • Resource records answering the question
  3. Authority
    • Resource records pointing toward an authority
  4. Additional
    • Resource records holding additional information
41
Q

Why DNS uses hierarchial system?

A
  1. Create database to provide name resolution
42
Q

List out the examples of top-level domains

A
  1. .com - business or industry
  2. .org - a non-profit organization
  3. .au - Australia
43
Q

What is the role of DNS server?

A
  1. Maintains a specific database file and is only responsible for managin name-to-ip mappings for that small portion of the entire DNS structure
44
Q

What will happen when a DNS server receives a request for a name transalation that is not within its DNS zone?

A
  1. The DNS server forwards the request to another DNS server within the proper zone for translation
45
Q

What is the nsloopup command?

A
  1. A computer operating system utility that allows a user to manually query the DNS servers configures on the device to resolve a given host name
46
Q

What can nslokup also be used?

A
  1. Used to troubleshoot name resolution issues and to verify the current status of the name servers
47
Q

What will happen when the nslookup command is issued?

A
  1. The default DNS serer configured for your host is displayed
48
Q

What can be entered at the nslookup prompt?

A
  1. Host
  2. Domain
49
Q

What is the purpose of Dynamic Host Configuration Protocol ( DHCP )

A
  1. Automates the assignment of IPv4 address, subnet masks, gateways and other IPv4 networking parameters
  • Auto assign IP address
50
Q

What is static addressing?

A
  1. Manually entering IP address information
  • Static IP addressing
51
Q

List out the examples of dynamic addressing?

A
  1. Dynamic Host Configuration Protocol ( DHCP )
52
Q

When is using DHCP addressing?

A
  1. General purpose hosts ( end user devices )
53
Q

When we use static addressing? ( 4 )

A

Network Devices
1. Routers
2. Switches
3. Servers
4. Printes

54
Q

What does DHCPv6 provides?What it doesn’t provide ? ( 2 )

A

Provide Similiar Services Like DHCP
1. Automates the assignment of IPv6 address, subnet masks, and other IPv6 networking parameters

Doesn’t Provide :
1. Default Gateway Address

  • It can only be obtained dynamically from the router advertisement message of the router
55
Q

List out the DHCP Process

A
  1. D - Discover ( DHCPDISCOVER )
    • Identify any available DHCP servers on the network
  2. O - Offer ( DHCPOFFER )
    • Offers a lease to the client
  3. R - Request ( DHCPREQUEST )
    • Identifies the explicit server and lease offer that the client is accepting
  4. A - Acknowlwdgement ( DHCPACK )
    • Acknowledge message and begin a new DHCPDISCOVER message
56
Q

Why was File Transfer Protocol developed?

A
  1. Was developed to allow for data transfer between a client and a server
  • FTP cilent is an application which runs on a computer that is being used to push and pull data from FTP
57
Q

List out the step for FTP ( 3 )

A
  1. The client establishes the first connection to the server for control traffic using TCP port 21
    • Consists Clients
    • Server Replies
  2. The client established the second connection to the server for the actual data transfer using TCP port 20
    • It was created every time there is data to be transferred
  3. The data transfer can happen in either direction, the client can pull ( download ) data from the server, or push ( upload ) data to the server
58
Q

List out the 3 functions of SMB messages

A
  1. Start, authenticate, and terminate sessions
  2. Control file and printer access
  3. Allow an application to send or received messages too or from another device
59
Q

What is Server Message Block ( SMB )?

A
  1. A client / server, request-response file sharing protocol
60
Q

What are the difference between FTP and SMB?

A
  1. Clients establish a long-term connection to servers ( SMB )
  2. They can access the resources on the server as through the resource is local to the client host