TCP/IP protocol and configuration


1. Overview of TCP/IP

1. TCP/IP protocol family

  • A communication rule that must be followed when computers communicate
  • A collection of the most widely used communication protocols
  • Includes standard protocols in a large number of Internet applications
  • Support cross-network architecture, cross-operating system platform data communication

2. Three elements of host-to-host communication

  • IP address
  • subnet mask
  • IP routing (default gateway)

insert image description here


2. What is an IP address

1. An Internet address used to identify a network node (like a telephone number)

2. Composition of IPv4 address

  • Address length: 32 bits
  • 4 decimal numbers (0~255), separated by ., called "dotted decimal method"

insert image description here


3. IP address classification

1. Commonly used IP addresses

  • Class A 0~127 super large network   . main. main. main
  • Class B 128 ~ 191 large network   network.net.main.main
  • Class C 192~   223 small and medium network network.net.net.main

注意:IP地址由网络地址和主机地址两部分组成,所以上面会标有"网"、"主"字样。以座机号码为例:网络地址相当于区号,主机地址相当于电话号码。如下图所示。
insert image description here
The range of IP addresses from class A to class C is shown in the following figure:
insert image description here

2. For multicast and scientific research

  • Class D 224~239 multicast
  • Class E 240~254 Scientific research

4. IP address classification (continued)

According to the scope of use

  • Public address: It can be used legally on the Internet, and it needs to be paid to NIC for application. It is unique in the world
  • Private address: reserved for internal use of the enterprise, free of charge, unique in the LAN . The private IP address range is shown in the figure below.

insert image description here


5. What is a subnet mask

  • Determine the network bit of the IP address, and the IP with the same network bit can communicate directly
  • Cannot exist alone, must be used together with IP address

The default subnet masks of various IP addresses are shown in the figure below:

insert image description here


6. What is a gateway

  • A "gateway" from one network segment to another
  • Usually the address of a router or firewall/access server

The schematic diagram of the gateway is as follows:

insert image description here


7. How to view IP address parameters

There are two ways to check the IP address parameters.

1. Right-click the win icon in the lower left corner of the desktop, select Settings in the pop-up list , enter the setting page, select Network and Internet , then select Ethernet , and finally click the network connected to the machine to see the detailed IP address parameter.

insert image description here

2. Press the win+R key at the same time to call out the run box, enter cmd to open the console, enter the ipconfig command, and press the Enter key to see the IP address information.

insert image description here

注意:输入 ipconfig/all 命令可以查看更详细的DNS服务器、物理地址等信息,如下图所示。

insert image description here


8. Test network connectivity

ping command

  • "Throw stones to ask for directions" to the target host, and judge the network connectivity based on the feedback results

insert image description here

If the network is normal, it will display the words "Reply from ...: byte =, time <" and so on as shown in the figure above; if the network is not connected, it will display the words "...cannot access the target host";

Guess you like

Origin blog.csdn.net/2201_75641637/article/details/130106384