The invention provides a communication method and device based on a
data link layer, equipment and a medium, and belongs to the technical field of communication. The communication method based on the
data link layer in the sending end comprises the following steps: sending a
network connection request to a receiving end; in response to a
network connection request reply message of the receiving end for the
network connection request, establishing communication connection after
handshaking with the receiving end, and acquiring a target
queue pair serial number and a target data packet serial number required in a transmission process; a
data transmission message is constructed based on the target
queue pair serial number and the target data packet serial number, an
Ethernet type in the
data transmission message is determined to be a preset
target type, and a first flow rule table containing the
target type is pre-created in the receiving end; and sending the
data transmission message to a receiving end through the
data link layer, so that the receiving end identifies the
Ethernet type in the data transmission message based on the first flow rule table, and processes the data transmission message after the identification is passed. The embodiment of the invention can improve the
bandwidth utilization rate.