Computer Network Chapter 3 Data Link Layer Final Review

First, the three basic issues of the data link layer

  1. basic concept

Nodes: hosts, routers

Link: A physical channel between two nodes in a network

Data link: A logical channel between two nodes in a network

Frame: The protocol data unit of the link layer, encapsulating the network layer datagram

  1. Encapsulation and framing

  1. Transparent transmission

character counting

character padding

  1. error control

Second, the calculation of CRC

3. Bit stuffing algorithm of PPP protocol

Four, CSMA/CD protocol (find the shortest effective frame length)

1. Basic concepts of CSMA/CD

CSMA/CD (Carrier Sense Multiple Access with Collision Detection): Carrier Sense Multiple Access/Collision Detection.
MA: Multi-point access: It means that this is a bus-type network. Many computers are connected to a bus in a multi-point manner.
CS: Carrier Sense: That is, "send while listening". Each station must constantly monitor the channel, whether it wants to send data or in the middle of sending data.
CD: Collision detection: The adapter detects the change of the signal voltage on the channel while sending data. When the voltage swing value exceeds a certain threshold, it is considered that at least two stations on the bus are sending data at the same time, indicating that a collision (or conflict) has occurred

2. Effect of propagation delay

eg:

Example 1:

Answer: choose a random number between 0~1023

3. The shortest effective frame problem

Five, Ethernet, network card function, MAC address, MAC frame number format

  1. ethernet

Ethernet provides connectionless and unreliable services.
Connectionless : There is no handshake process between the sender and the receiver
. Unreliable: The data frame number checked, the receiver does not confirm , and the error frame is directly discarded. Correction is the responsibility of the upper layer.
Ethernet only achieves error-free reception, not reliable transmission.
  1. Adapters and MAC addresses

类型字段用来标志上一层使用的是什么协议,
以便把收到的 MAC 帧的数据上交给上一层的这个协议。

数据字段的正式名称是 MAC 客户数据字段
最小长度 64 字节 - 18 字节的首部和尾部 = 数据字段的最小长度(46字节)

FCS:当数据字段的长度小于 46 字节时,应在数据字段的后面加入整数字节的填充字段,以保证以太网的 MAC 帧长不小于 64 字节。

六,集线器,以太网交换机(VLAN)

  1. 集线器

  1. 交换机

eg

4个冲突域(左边3个右边1个),一个广播域

七,10Base-T,100Base-T

八,重点课后习题

适配器(即网卡)来实现数据链路层和物理层这两层协议的硬件和软件
网络适配器工作在TCP/IP协议中的网络接口层(OSI中的数据链路层和物理层)
作二进制除法,除数为1001,被除数为10111000,添加在数据后面的余数为011
10:表示信号在电缆上的传输速率是10MB/S
BASE:表示电缆上的信号是基带信号
T:表示双绞线星形线
单程传播时间=1Km/200000km=5微秒
来回=5*2=10
10*1Gb/S(换算单位为1000b/us)=10000位或1250字长

Guess you like

Origin blog.csdn.net/toufachangdehen/article/details/128983108