What are the necessary knowledge about computer networks?
##Summary of basic knowledge of computer network
1. Protocols at each layer
Layered OSI layered (7 layers): physical layer, data link layer, network layer, transport layer, session layer, presentation layer, application layer. TCP/IP layering (4 layers): network interface layer, Internet layer, transport layer, and application layer. Five-layer protocol (5 layers): physical layer, data link layer, network layer, transport layer, and application layer. Each layer protocol is as follows: Physical layer: RJ45, CLOCK, IEEE802.3 (repeater, hub, gateway) Data link: PPP, FR, HDLC, VLAN, MAC (bridge, switch, virtual machine Bridge) Network layer: IP, ICMP, ARP, RARP, OSPF, IPX, RIP, IGRP, (router route, NAT mode in virtual machine) Transport layer: TCP, UDP, SPX Session layer: NFS, SQL, NETBIOS, RPC presentation layer: JPEG, MPEG, ASII application layer: FTP, DNS, Telnet, SMTP, HTTP, WWW, NFSEach layer protocol function Physical layer: transmit bits through the media, determine mechanical and electrical specifications (Bit) Data link layer: Assembles bits into frames and point-to-point transmission (Frame) Network layer: Responsible for the transmission of data packets from source to destination and Internet interconnection (Packet) Transport layer: Provides end-to-end Reliable message delivery and error recovery at the end (Segment) Session layer: establish, manage and terminate sessions (Session Protocol Data Unit SPDU) Presentation layer: translate, encrypt and compress data (Presentation Protocol Data Unit PPDU) Application layer: allow Means of accessing the OSI environment (Application Protocol Data Unit APDU)Commonly used network ports UDP: DNS(53) TFTP(69) SNMP(161)TCP: SMTP(25) TELNET(23) HTTP(80) FTP (20 21)2. Principle of ARP-Address Resolution Protocol (network layer
FAQ"
3. The entire process of executing www.baidu.com after entering it in the browser
1. The client browser resolves to the IP address of www.baidu.com through DNS, which is A. Through this IP address A, find the path from the client to the server. The client browser initiates an http session to A, and then inputs the packet to the network layer through TCP. 2. At the client's transport layer, divide the HTTP session request into message segments, and add the source and destination ports. For example, the server uses port 80 to listen to the client's request, and the client randomly selects a port such as 5000 by the system. Exchange with the server, and the server returns the corresponding request to the client's 5000 port. Then use the IP address of the IP layer to find the destination. 3. The network layer of the client does not need to care about the application layer or transport layer. The main thing it does is to determine how to reach the server by looking up the routing table. During this period, it may pass through multiple routers, which are all done by the router. Work, by looking up the routing table to determine which path to reach the server, which uses the routing protocol 4. The link layer of the client, the packet is sent to the router through the link layer, and the given IP address is found through the neighbor protocol MAC address, and then send an ARP request to find the destination address. If you get a response, you can use the ARP request reply. The exchanged IP packet can now be transmitted, and then send the IP packet to the server's address4. The process of DNS domain name resolution system
1. Enter the www.qq.com domain name in the browser. The operating system will first check whether its local hosts file has this URL mapping relationship. If so, call this IP address mapping first to complete domain name resolution.2. If there is no mapping of this domain name in hosts, search the local DNS resolver cache to see if there is a mapping relationship for this URL. If so, return directly to complete the domain name resolution.
3. If there is no corresponding URL mapping relationship between hosts and the local DNS resolver cache, it will first find the preferred DNS server set in the TCP/ip parameters. Here we call it the local DNS server. This server receives When querying, if the domain name to be queried is included in the local configuration area resource, the resolution result will be returned to the client to complete the domain name resolution. This resolution is authoritative.
4. If the domain name to be queried is not resolved by the local DNS server zone, but the server has cached the URL mapping relationship, this IP address mapping will be called to complete the domain name resolution. This resolution is not authoritative.
5. If the local zone file and cache resolution of the local DNS server are invalid, the query will be carried out according to the settings of the local DNS server (whether a forwarder is set). If the forwarding mode is not used, the local DNS will send the request to 13 root DNS servers. After receiving the request, the root DNS server will determine who authorizes the management of this domain name (.com), and will return an IP responsible for the top-level domain name server. After the local DNS server receives the IP information, it will contact the server responsible for the .com domain. After the server responsible for the .com domain receives the request, if it cannot resolve it, it will find a lower-level DNS server address (qq.com) that manages the .com domain and give it to the local DNS server. When the local DNS server receives this address, it will find the qq.com domain server, repeat the above actions, and query until the www.qq.com host is found.
6. If forwarding mode is used, this DNS server will forward the request to the upper-level DNS server, which will resolve it. If the upper-level server cannot resolve it, it will either find the root DNS or Forward the request to the superior, and the cycle continues. Regardless of whether the local DNS server uses forwarding or root prompts, the result is finally returned to the local DNS server, and the DNS server returns it to the client.
The above is the detailed content of What are the necessary knowledge about computer networks?. For more information, please follow other related articles on the PHP Chinese 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

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

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

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

Hot Topics

The metropolitan area network is a public network; the metropolitan area network is a computer communication network established within a city, referred to as MAN, and is a broadband local area network. Due to the use of local area network technology with active switching elements, the transmission delay in the network is small. It can be used as a backbone network to connect hosts, databases, and LANs located in different locations in the same city to each other.

The open network system is an "all-channel communication network." An all-channel communication network is an all-round open communication network system in which all members can communicate and contact each other without restriction; in this communication network, the degree of centralization is low and the status difference between members is small. With high morale, members can express their opinions directly, freely and fully, which is conducive to brainstorming and improving the accuracy of communication. The disadvantage is that it can easily lead to low work efficiency.

The resource sharing functions of computer networks include: 1. Hardware resource sharing, which can improve equipment utilization and avoid repeated investment in equipment; 2. Software resource sharing and data resource sharing, which can make full use of existing information resources and reduce the software development process. to avoid repeated construction of large databases; 3. Communication channel resource sharing means that the same channel can be used by multiple users at the same time, which can improve the utilization of channel resources.

A computer network system within a school is a local area network (LAN). A local area network is a network composed of multiple computers used in a small area. The coverage is usually limited to 10 kilometers. It belongs to a small-scale network established by a unit or department. LAN can be divided into wireless LAN and wired LAN. Wireless LAN can transmit audio, video, and text. Now many companies and campuses are using wireless LAN.

The topology of a computer network refers to the physical structure of nodes and lines formed by computers or equipment on the Internet and transmission media. It mainly includes star topology, bus topology, ring topology, tree topology, and hybrid topology. , network topology, switching power supply topology; among them, star network topology is the most widely used network topology.

The most prominent feature of computer networks is resource sharing. Resource sharing is one of the main purposes for people to establish computer networks. Usually, the resources required by multiple users at the same time always exceed the number of actual physical resources of the system. However, using logical (or virtual) resource allocation to realize resource sharing can better handle this contradiction and improve the efficiency of computer use.

Reasons for using an intranet: 1. Resource sharing, which can provide convenient sharing of software and hardware resources, especially in the direction of hardware resources. Office automation equipment such as printers and scanners are fully utilized. 2. Facilitate teamwork. Most modern LANs provide a platform that allows multiple users to work on the same file and always use the latest version. 3. It is easy to find information, and the intranet can be used as a place to place all trusted information. 4. Reduce management costs. With the help of the intranet, online forms can be easily provided, streamlining the work process from the beginning, and greatly improving work efficiency.

Many friends who use win7 system must have encountered the problem of network connection error 711. How to solve the problem of network connection error 711 in win7 system? Today, the editor will bring you a solution to the network connection error 711 on Windows 7 computers. How to solve the computer network connection error 711 in win7 system: 1. Open "Computer", find the "C:\Windows\System32\LogFiles folder, right-click and select Properties"; 2. Click "Security Options, select Advanced"; 3. Click "Owner", select "Edit"; 4. Select the account "aaa" currently in use and click OK; 5.