Web Front-end
HTML Tutorial
[HTTP] Detailed explanation of tcp/ip link layer network layer transport layer application layer[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!
HTML: Is It a Programming Language or Something Else?Apr 15, 2025 am 12:13 AMHTMLisnotaprogramminglanguage;itisamarkuplanguage.1)HTMLstructuresandformatswebcontentusingtags.2)ItworkswithCSSforstylingandJavaScriptforinteractivity,enhancingwebdevelopment.
HTML: Building the Structure of Web PagesApr 14, 2025 am 12:14 AMHTML 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.
From Text to Websites: The Power of HTMLApr 13, 2025 am 12:07 AMHTML 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.
Understanding HTML, CSS, and JavaScript: A Beginner's GuideApr 12, 2025 am 12:02 AMWebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.
The Role of HTML: Structuring Web ContentApr 11, 2025 am 12:12 AMThe role of HTML is to define the structure and content of a web page through tags and attributes. 1. HTML organizes content through tags such as , making it easy to read and understand. 2. Use semantic tags such as, etc. to enhance accessibility and SEO. 3. Optimizing HTML code can improve web page loading speed and user experience.
HTML and Code: A Closer Look at the TerminologyApr 10, 2025 am 09:28 AMHTMLisaspecifictypeofcodefocusedonstructuringwebcontent,while"code"broadlyincludeslanguageslikeJavaScriptandPythonforfunctionality.1)HTMLdefineswebpagestructureusingtags.2)"Code"encompassesawiderrangeoflanguagesforlogicandinteract
HTML, CSS, and JavaScript: Essential Tools for Web DevelopersApr 09, 2025 am 12:12 AMHTML, CSS and JavaScript are the three pillars of web development. 1. HTML defines the web page structure and uses tags such as, etc. 2. CSS controls the web page style, using selectors and attributes such as color, font-size, etc. 3. JavaScript realizes dynamic effects and interaction, through event monitoring and DOM operations.
The Roles of HTML, CSS, and JavaScript: Core ResponsibilitiesApr 08, 2025 pm 07:05 PMHTML defines the web structure, CSS is responsible for style and layout, and JavaScript gives dynamic interaction. The three perform their duties in web development and jointly build a colorful website.


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

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Chinese version
Chinese version, very easy to use

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

Dreamweaver Mac version
Visual web development tools

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.





