


[HTTP] Detailed explanation of tcp/ip link layer network layer transport layer application layer
1. The seven-layer protocol can be simplified into a four-layer protocol
Link layer network layer transport layer application layer
2. Two networks connected through a router
The network layer ip provides a hop-by-hop protocol, which provides an unreliable service that may be lost in the middle.
The transport layer tcp provides a reliable transport layer based on ip
Metaphor : tcp is the Taobao seller, and ip is the package. If the package is lost in the middle, the seller will resend a package. There will be a confirmation process.
3.udp is unreliable, it will not confirm, and it will be lost if it is lost. Lost, for example, voice uses this, syslog also uses this
4.icmp subsidiary protocol, ping uses this
5. Encapsulation, each layer will leave its own mark. , add a header starting from the application layer, add a header to tcp, add a header to ip, add a header to Ethernet, and encapsulate it into a frame; the data length of the frame is between 46~1500 bytes
6. Divided, the receiver is divided. From the above encapsulation, extract the header
7. Port number, the source port number is usually randomly assigned, and the destination port number is usually a well-known port or For the designated port, be sure to pay attention to whether it is going out or returning, because tcp is full-duplex
8. Link layer, Ethernet and ieee 802 encapsulation
To distinguish between Ethernet and 802.3 encapsulation, you only need to look at Ethernet encapsulation is a 2-bit type, and 802.3 encapsulation is 2-bit long. We generally see Ethernet frames, and rarely see 802.3 frames.
There are only three Ethernet headers, source, destination, and protocol. Type, 0800 represents the ip protocol
Other supplements:
1. The subnet mask tells us which is the network part and which is the host part. For example, the subnet mask is 255.0.0.0, and the ip is 13.0.0.0 tells us that 13 is the network part, and the rest is the host part
2. The gateway is to other network segments. Who should it be given to? For example, my gateway is 192.168.1.1. The function of the router is to connect to different network segments. Forwarding data
3. The MAC address is fixed in the chip when it leaves the factory. It is also called the physical address. It is a 48-bit binary system. What is displayed on the computer is a 12-digit hexadecimal system. For example, mine is 50-7B- 9D-25-B0-EF ipconfig /all
4. The computer network card has a mac address, and the computer has an ip address
5. Data packet: Data-source address-destination address-source mac address-destination mac address (router ) After passing the next hop, the mac address will be modified and transferred to the server step by step
[Recommended course: TCP/IP video tutorial]
The above is the detailed content of [HTTP] Detailed explanation of tcp/ip link layer network layer transport layer application layer. For more information, please follow other related articles on the PHP Chinese website!

The future trends of HTML are semantics and web components, the future trends of CSS are CSS-in-JS and CSSHoudini, and the future trends of JavaScript are WebAssembly and Serverless. 1. HTML semantics improve accessibility and SEO effects, and Web components improve development efficiency, but attention should be paid to browser compatibility. 2. CSS-in-JS enhances style management flexibility but may increase file size. CSSHoudini allows direct operation of CSS rendering. 3.WebAssembly optimizes browser application performance but has a steep learning curve, and Serverless simplifies development but requires optimization of cold start problems.

The roles of HTML, CSS and JavaScript in web development are: 1. HTML defines the web page structure, 2. CSS controls the web page style, and 3. JavaScript adds dynamic behavior. Together, they build the framework, aesthetics and interactivity of modern websites.

The future of HTML is full of infinite possibilities. 1) New features and standards will include more semantic tags and the popularity of WebComponents. 2) The web design trend will continue to develop towards responsive and accessible design. 3) Performance optimization will improve the user experience through responsive image loading and lazy loading technologies.

The roles of HTML, CSS and JavaScript in web development are: HTML is responsible for content structure, CSS is responsible for style, and JavaScript is responsible for dynamic behavior. 1. HTML defines the web page structure and content through tags to ensure semantics. 2. CSS controls the web page style through selectors and attributes to make it beautiful and easy to read. 3. JavaScript controls web page behavior through scripts to achieve dynamic and interactive functions.

HTMLisnotaprogramminglanguage;itisamarkuplanguage.1)HTMLstructuresandformatswebcontentusingtags.2)ItworkswithCSSforstylingandJavaScriptforinteractivity,enhancingwebdevelopment.

HTML is the cornerstone of building web page structure. 1. HTML defines the content structure and semantics, and uses, etc. tags. 2. Provide semantic markers, such as, etc., to improve SEO effect. 3. To realize user interaction through tags, pay attention to form verification. 4. Use advanced elements such as, combined with JavaScript to achieve dynamic effects. 5. Common errors include unclosed labels and unquoted attribute values, and verification tools are required. 6. Optimization strategies include reducing HTTP requests, compressing HTML, using semantic tags, etc.

HTML is a language used to build web pages, defining web page structure and content through tags and attributes. 1) HTML organizes document structure through tags, such as,. 2) The browser parses HTML to build the DOM and renders the web page. 3) New features of HTML5, such as, enhance multimedia functions. 4) Common errors include unclosed labels and unquoted attribute values. 5) Optimization suggestions include using semantic tags and reducing file size.

WebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

SublimeText3 Linux new version
SublimeText3 Linux latest version

SublimeText3 Mac version
God-level code editing software (SublimeText3)

SublimeText3 English version
Recommended: Win version, supports code prompts!

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.