Network fundamentals, ASP. NET Core Knowledge (1)--Reprint

Source: Internet
Author: User
Tags ftp file file transfer protocol ftp file transfer ftp file transfer protocol

Why write a network?

as a web developer, the SOFTWARE PRODUCT you develop is ultimately going to run on the web. It is like a manufacturer that produces products for the Northeast, and producers have no knowledge of the weather, geography, and humanity of the northeast. The manufacturer's product is certainly not available, or low-end! The quality of the product is not good, it is natural. The quality of the product is good, that is you a little high. as an ASP. NET developer, the effect is the same if you don't understand the HTTP protocol, don't know Ajax, or even know JavaScript at all . in short, a wealth of knowledge reserves, will be your software products to bring more quality assurance. Our main understanding is the HTTP protocol

About the architecture

1.OSI, TCP/IP, and five- tier architecture

Speaking of network architecture, there are two classic partitioning methods, namely OSI seven layer and TCP/IP four layer.

1) OSI

OSI's seven layer protocol architecture, clarity, integrity. But the complexity is high, but not practical.

2) TCP/IP

Compared to the OSI seven layer complex, TCP/IP four-layer structure has been widely used.

However, from a practical point of view, TCP/IP only uses three layers in practical applications.

3) Five-tier architecture.

TCP/IP the lowest layer of the network interface, there is nothing particularly new specific content, and the general communication link is not much different.

Therefore, in the study of the use of a moderate approach, is the TCP/IP system, and the OSI system combined

Form a five-tier architecture from the physical layer, the data link layer, the internetwork layer, the transport layer, and the application layer.

2. For the five layer protocol, the description of each layer

1) Physical Layer

The mechanical, electrical and functional return journey characteristics of communication equipment are defined. (That was so, I understand that is the case, "square plug, plug not in the round mouth. is to define such a standard? ")

Devices: Hubs (forming a collision domain)

2) Data Link layer

Establish, maintain, and release data links between network entities, a data link that turns the network into an error-free channel. (Mac Media Access Layer, LLC Logic link layer)

Key features Remember three O ' 1. Encapsulating into frames

2. Transparent transmission

3. Error detection

Devices: Bridge, cache, accept Mac frames.

3) Network layer:

belongs to the communication subnet, exchanging the data emitted by the transport layer entity through the network connection. It solves the problem of routing, network congestion and heterogeneous network interconnection. (Sending a message)

IP Internetwork Protocol

ARP Address Resolution Protocol

RARP Reverse Address Resolution Protocol

ICMP Inter-network Control Message Protocol

IGMP Internetwork Group Management Protocol

4) Transport Layer

The end-to-end data packet transmission is implemented by the sending and receiving end, which is responsible for ensuring the error-free, loss-free and non-redundant transmission of packets. (Access point for the service is port)

TCP (Transmission Control Protocol) reliable, connection-oriented, responsive mechanism

UDP (User Datagram Protocol) unreliable, no connection, no response mechanism

5) Application Layer

Although we are program developers, what does the above-mentioned protocol say? To be honest, we don't have much contact with us. To the application layer is closely related to our work.

HTTP Hypertext Transfer Protocol This is what we need to know.

FTP File Transfer Protocol

DHCP Dynamic Host Configuration Protocol

NFS Network File System

Telnet Remote Login Protocol

DNS Domain Name System

SNMP Simple Network Management Protocol

a few concepts to understand

1.URL

The scientific name of this thing: Uniform Resource Locator. Represents a way to find the resource location of a resource in the Internet and access resources.

The usual structure is this.

"Agreement"://"host": "Port"/"path"? Request parameters

That's it under HTTP.

http:/"host", "Port"/"path"

2.HTTP protocol

    • Hypertext Transfer Protocol.
      Defines how the browser requests documents from the Web server and how the server transmits the document to the browser.
    • The HTTP protocol is request-and-response. The wood responds without a request.
    • HTTP is text-oriented, so each field in the message is a number of ASCII strings, so the length of each field is indeterminate.
    • There are two types of HTTP messages in total, requesting messages and responding messages.
      1) Request message
      2) Response message
    • Both the request message and the response message can be divided into three parts.
      1) Start line
      2) Header Line
      My habit is to call the two parts above, the message header. The following section is called the newspaper style.
      3) Actual subject
    • For details, the next article it to write a superficial study of the HTTP protocol.

Network fundamentals, ASP. NET Core Knowledge (1)--Reprint

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.