Technology Sharing

Computer Network Note Sharing (Chapter 6 Application Layer)

2024-07-11

한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina

introduce
In the process of learning computer networks, I have sorted out some key points that may be tested in the exam. Some specific points may not be covered. I hope it will be helpful to everyone!

6. Application Layer

6.1 Domain Name System DNS

Address resolution, converting domain names into IP addresses

Two query methods for parsing

Recursive query

Iteration query

6.2 File Transfer Protocol FTP

Based on TCP, because file transfer cannot be error-prone

Trivial File Transfer Protocol (TFTP)

Castrated version, using UDP datagram, only supports file transfer but not interaction

6.3 Remote Terminal Protocol TELNET

Also known as terminal emulation protocol, it is not complicated to implement and is rarely used now.

TCP connection is used, and NVT format is used in the middle to convert user key input, etc. The target end can then convert it into the format required by the corresponding system

6.4 World Wide Web

Large-scale, online information repository

That is, a site is linked to another site using distributed

Application: For example, if you click on the underlined blue word, you will jump to another web page
Without the World Wide Web, users would have to use complex commands to navigate, rather than click directly on links.

The World Wide Web is a distributed hypermedia system, an extension of the hypertext system that includes sound, images, etc.

Uniform Resource Locator URL

Tagging different documents on the World Wide Web

Hypertext Transfer Protocol HTTP

Use TCP connection, but HTTP itself is connectionless, that is, there is no need to establish an HTTP connection before exchanging HTTP messages

  • Pass the HTTP request message as the third stage of TCP, and then get the HTTP response message

Stateless, the browser does not remember how many times the user has visited or what content they have visited, and the response is the same for each visit

Proxy Server

A layer of cache is added in the middle. If there is data in the cache, it will be responded to the client directly without having to access the resource on the Internet.

HTTP message structure

1. Start the row

  • Request: request line (method (GET, POST...), URL, version, CRLF)
  • Response: Status line (version, status code, phrase, CRLF)

2. Header line

3. Entity Subject

  • Request: Request body
  • Response: Response body

Tips: Status codes include

  • 200 ok
  • 304 Redirect
  • 400 Client Error
  • 500 Server error, etc.
HTML for World Wide Web Documents

Simply put, it is a web page
Closely related to front-end knowledge, I have learned somehtml css js Everyone knows what it is, and there is a lot of information on the Internet, so I won’t introduce it in detail here.

Information Retrieval System for the World Wide Web

Search engine: a tool used to search the World Wide Web (full-text search, classification search)

Blogs and Weibo

Blog is a sharing of personal documents and diaries

Weibo is a microblog that only records trivial fragments and answers a question.

Social networking site

facebook、youtube、tiktok …

6.5 Email

Simple Mail Transfer Protocol SMTP

Internet Text Message Format RFC

SMTP protocol usage TCP As its transport layer protocol

6.6 Dynamic Host Configuration Protocol (DHCP)

supply Plug and Play Networking Mechanisms

When a computer joins a network, it is automatically assigned an IP address.

Each network now has at least one DHCP relay agent

6.7 Simple Network Management Protocol (SNMP)

Management programs, processes, etc.

6.8 Application Process Communication Across Networks

Issued when the application process needs to use the network to communicateSystem calls, requesting the operating system to create a **"socket"** for it so that the system resources required for network communication can be allocated to the application process.
The operating system represents the sum of these resources with a number called a socket descriptor.
All network operations performed by the application process must use this socket descriptor.
After the communication is completed, the application process notifies the operating system to reclaim all resources associated with the socket descriptor through a system call to close the socket.

Several commonly used system calls

When an application process needs to communicate using the network, it issues a system call.
Using the TCP/IP application programming interface API, you can write Internet-based network applications.
When calling the API, users can use TCP services or other services such as UDP.
TCP provides a connection-oriented service.
Using TCP services requires three stages:

  • Connection establishment phase
  • Data transmission phase
  • Connection release phase

6.9 P2P Applications

Involving file upload and download

P2P software is software that uses the P2P principle to achieve high-speed downloading, such as: Thunder