当前位置:网站首页>Tcp/ip five layer reference model and corresponding typical devices and IPv6
Tcp/ip five layer reference model and corresponding typical devices and IPv6
2022-07-29 07:54:00 【Never Done777】
Environmental Science :ENSP Software Huawei ;s5700 s3700 AR2220 etc. Specific instructions will be sorted out later Mainly based on this sharing theory
One . Network transmission distance
• Wide area network (Wide-Area Network) Range : Tens to thousands of kilometers effect : Used to connect remote computer networks Typical applications :Internet( Internet )
• LAN (Local-Area Network) Range :1 Km or so effect : Used to connect computers in a short distance Typical applications : Enterprise network , Campus network
The physical layer : Device hardware network card chip for example :intel or Realtek Lineage
Two . Data link layer
There are two main functions : Frame coding and error correction control ; Two-layer switch .
- The address of the network ip Address : Need to customize when using Use decimal 0~9 192.168.0.1
- mac Address ( Physical address or hardware address ): No need to customize , When the equipment leaves the factory, it will carry Use hexadecimal 0~F 0123456789ABCDEF 52:54:00:37:78:11 // It is usually used to identify the uniqueness of the equipment , Do not modify the , The global only
1. How switches work Study Learn the source in the data frame mac Address 3 radio broadcast Send target seeking information to all interfaces other than the data source forward One to one transfer of data to update When the number of devices connected to the switch exceeds 300 No data transfer in seconds And disconnect the device from the switch , Will cause the switch to clear the corresponding Mac The action of address
display mac-address // see mac Address
2. How switches work :
- Study : Learn the source in the data frame mac Address
- radio broadcast : Send target seeking information to all interfaces other than the data source
- forward One to one transfer of data
- to update : When the number of devices connected to the switch exceeds 300 No data transfer in seconds And disconnect the device from the switch , Will cause the switch to clear the corresponding Mac The action of address
3. VLAN:
Broadcast area : Broadcast domain refers to the collection of nodes that receive the same broadcast message , For example, the same office in the actual environment Same classroom , Can be understood as the same broadcast domain
VLAN :Virtual LAN( Virtual LAN ) use VLAN All interfaces of the switch belong to the same broadcast domain by default With the increase of access devices , More broadcasts on the Internet , Reduce the efficiency of the network In order to split the broadcast domain , Introduced VLAN vlan The advantages of 1, Broadcast control 2, Increase security 3, Improve bandwidth utilization 4, Reduce data delivery latency
- Trunk access Access link Can carry 1 individual vlan The data of ;
- trunk Relay link Can carry more than one vlan The data of ;
- Link aggregation , Multiple links can be used ( network card ) Tied together , Achieve increased reliability , Improve The purpose of link bandwidth .
Example :############
3、 ... and , The network layer
- The network layer In the data link layer, it can be implemented through the switch vlan Divide 、 Relay link 、 Link aggregation Configuration of , Meet the basic needs of building a network , However, this layer cannot transmit data further , Like different vlan The data cannot be exchanged , So to make the data transfer farther , Need to make
- Use the functions of the network layer The network layer can realize the following functions : Defined ip Address You can connect different media types ( Networks of different ranges 、 Different hardware 、 Different systems ) You can choose the best path for data to pass through the network ( Automatic route selection when the network structure is complex )
Three layer switch : Powerful network equipment with switch and router functions at the same time Three layer switch = Router ( Three layers )+ Switch ( On the second floor )
Interface configuration of layer 3 switch ip Ideas :
- Create a vlan
- Access to the vlan Virtual interface configuration ip
- You will need to configure ip Add the above interface vlan
- A gateway is a way for a device to go to another network , Usually by the router ( With routing Functional devices ) To undertake
- Routers rely on routing tables to forward data Generation method of routing table :
- Direct link routing , Configure the interface ip And it will automatically generate ;
- Static routing , It is manually configured by the administrator , Add the required route Grammar format :ip route-static Target segment Mask Next jump ;
- Dynamic routing , Based on some kind of routing protocol , Suitable for large networks , Reduce administrative tasks Declare Inform the outside world of the network segment you are directly connected to ; “ Write whatever network segment you have ”##
[Huawei]ospf
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.4.0 0.0.0.255 // Declare 4 Network segment
[Huawei-ospf-1-area-0.0.0.0]network 192.168.5.0 0.0.0.255 // Declare 5 Network segment
- Default route , It's a special static route , Can match any network segment Specifically used to access massive external networks .
notes : The router can be configured on the physical interface ip, The layer-3 switch should enter the virtual interface configuration
vrrp Virtual routing redundancy protocol
vrrp It can be used without changing the networking , Virtual multiple routers into a virtual router , By configuring the IP The address is the default gateway , Backup the gateway .
- VRRP Group member role
- Lord (Master) Router
- Backup (Backup) Router
- fictitious (Virtual) Router
Four . Transport layer
- Defines the port number 65536 individual 0~65535
- Defined tcp、udp Two agreements
tcp Transmission control protocol
reliable Low efficiency Connection oriented
Use tcp Some marks are used when transmitting data :
syn Intend to establish a connection with each other
ack confirm
fin Intend to disconnect from each other
Three handshakes
1. user syn---> The server
2 . The server ack , syn ---> user
3. user ack---> The server
Four disconnects
1, user fin---> The server
2, The server ack ---> user
3, The server fin ---> user
4, user ack---> The server
#### Use tcp Common services for protocol data transmission
####udp User datagram protocol
unreliable Efficient There is no connection
Use udp Common services for transmitting data
- acl Access control list
A tool that can control the established network
basic acl List number 2000~2999 According to the data source ip Address control
senior acl List number 3000~3999 According to the data source ip、 The goal is ip、 Protocol port for control
####nat Network address translation
Private address can be converted into the world's only public address
Wide area network Extranet
LAN Intranet
ip Address 32 position Have 42 Billion + And has dried up
private ip Address
A 10.0.0.0~10.255.255.255
B 172.16.0.0~172.31.255.255
C 192.168.0.0~192.168.255.255
nat Two common uses :
- Static conversion 1 Yes 1 Two-way communication
- easy ip How to 1 One-way communication
ipv6:
- ipv4 32 position 42 Billion + dotted decimal
- ipv6 128 position Near infinite address space It's hexadecimal
- 2001:0002:0003:0004:0005:0006:0007:0008 /64 // One
- ipv6 Address , from 8 paragraph 4 Hexadecimal composition of bits , Follow up 64 Represents prefix length
边栏推荐
- Phased learning about the entry-level application of SQL Server statements - necessary for job hunting (I)
- NLP introduction + practice: Chapter 5: using the API in pytorch to realize linear regression
- [memo] summary of the reasons why SSH failed? Remember to come next time.
- Blue Bridge Cup group a selection XOR
- Write some DP
- Do you want to meet all the needs of customers
- [cryoelectron microscope] relation4.0 - subtomogram tutorial
- Pat class a 1150 traveling salesman problem
- [paper reading] tomoalign: a novel approach to correcting sample motion and 3D CTF in cryoet
- Output 1234 three digits without repetition
猜你喜欢
Autojs微信研究:微信自动发送信息机器人最终成品(有效果演示)
[freeze electron microscope] analysis of the source code of the subtomogram alignment function of relion4.0 (for self use)
Chaos and future of domestic digital collections
Pat class a 1146 topology sequence
Actual measurement of boot and pH pins of buck circuit
[cryoelectron microscope | paper reading] a feature guided, focused 3D signal permutation method for subtogram averaging
Useful websites
[paper reading | cryoet] gum net: fast and accurate 3D subtomo image alignment and average unsupervised geometric matching
What are the answers about older bloggers?
Matrix decomposition and gradient descent
随机推荐
Pat class a 1154 vertex shading
Actual measurement of boot and pH pins of buck circuit
String类
Matrix decomposition and gradient descent
How to get to the deep-water area when the industrial Internet goes?
Cross domain problems when downloading webapi interface files
Data warehouse modeling, what is wide table? How to design? Advantages and disadvantages
Zero technology is deeply involved in the development of privacy computing financial scenario standards of the ICT Institute
UPC little C's King Canyon
[cryoelectron microscope] relion4.0 pipeline command summary (self use)
Output 1234 three digits without repetition
The beauty of do end usage
Basic introduction to pod
[deep learning] data preparation -pytorch custom image segmentation data set loading
Analyze the roadmap of 25 major DFI protocols and predict the seven major trends in the future of DFI
Access数据库引入datagridview数据后,显示错误
After the access database introduces DataGridView data, an error is displayed
智慧城市的应用挑战,昇腾AI给出了新解法
Volatile keyword parsing of C #
Amaze UI 图标查询