CN113489759A - Real-time network card data transmission method and device based on OSI model and storage medium - Google Patents

Real-time network card data transmission method and device based on OSI model and storage medium Download PDF

Info

Publication number
CN113489759A
CN113489759A CN202110623561.7A CN202110623561A CN113489759A CN 113489759 A CN113489759 A CN 113489759A CN 202110623561 A CN202110623561 A CN 202110623561A CN 113489759 A CN113489759 A CN 113489759A
Authority
CN
China
Prior art keywords
data
interactive data
slave
equipment
interactive
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110623561.7A
Other languages
Chinese (zh)
Inventor
王峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Avic Shuangxing Technology Co ltd
Original Assignee
Beijing Avic Shuangxing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Avic Shuangxing Technology Co ltd filed Critical Beijing Avic Shuangxing Technology Co ltd
Priority to CN202110623561.7A priority Critical patent/CN113489759A/en
Publication of CN113489759A publication Critical patent/CN113489759A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a real-time network card data transmission method, a device and a storage medium based on an OSI model, comprising the following steps: pre-configuring a master device and at least one slave device; the master equipment and the slave equipment are sequentially connected to form a closed-loop chain, so that data transmission can be carried out between any two adjacent connected master equipment and slave equipment, and between any two adjacent connected slave equipment and slave equipment; after the master device sends first interactive data to the adjacent connected slave devices, the slave devices sequentially receive the first interactive data and process the first interactive data; and generating second interactive data to return to the master device after the last slave device finishes processing the first interactive data. According to the technical scheme provided by the invention, when the real-time network card is required to transmit data, the data required by a plurality of slave devices can be transmitted based on one frame of network data through one master device, so that the utilization rate of the bandwidth is greatly improved.

Description

Real-time network card data transmission method and device based on OSI model and storage medium
Technical Field
The present invention relates to data transmission technologies, and in particular, to a real-time network card data transmission method, device and storage medium based on an OSI model.
Background
With the rapid development of computer network technology, in order to meet the requirements of various application environments and application layers, many different types of real-time network cards, such as USB real-time network cards, PCI real-time network cards, PCIX real-time network cards, PCIE real-time network cards, etc., appear, and the most popular type of real-time network card in the market is the gigabit PCIE real-time network card.
A common technical solution of the gigabit PCIE real-time network card is to select an ethernet controller chip of the real-time network card, for example, a chip such as RTL81390D commonly found in the market, and design a circuit around the main control chip. The PCIE real-time network card designed by the scheme completely meets the standard of IEEE 802.3 on a physical layer and a data link layer, and after the PCIE real-time network card is connected with a computer, the PCIE real-time network card serves as a physical connection line between the computer and a network cable.
However, in the prior art, when one computer master device needs to send a network data packet to multiple computer slave devices through a real-time network card, even if the data to be sent is very small, the data needs to be sent through a complete ethernet frame, which results in very low bandwidth utilization rate.
Disclosure of Invention
Embodiments of the present invention provide a real-time network card data transmission method, apparatus, and storage medium based on the OSI model, which can carry data of 1 to multiple slave devices in data sent by a master device, so that the utilization rate of bandwidth is greatly improved.
In a first aspect of the embodiments of the present invention, a real-time network card data transmission method based on an OSI model is provided, including:
pre-configuring a master device and at least one slave device;
the master equipment and the slave equipment are sequentially connected to form a closed-loop chain, so that data transmission can be carried out between any two adjacent connected master equipment and slave equipment, and between any two adjacent connected slave equipment and slave equipment;
after the master device sends first interactive data to the adjacent connected slave devices, the slave devices sequentially receive the first interactive data and process the first interactive data;
and generating second interactive data to return to the master device after the last slave device finishes processing the first interactive data.
Optionally, in a possible implementation manner of the first aspect, the sequentially receiving, by the slave device, the first interaction data and processing the first interaction data includes:
the slave station equipment writes the first interactive data located in the physical layer into a control section of an interactive data area after receiving the first interactive data;
the application layer carries out random reading and writing on the first interactive data written into the control section of the interactive data area;
the slave station equipment writes the first interactive data into a data segment of an interactive data area after receiving the first interactive data;
writing first interactive data of a data segment of the interactive data area into the application layer by the writing storage area, and acquiring the first interactive data by the reading storage area of the application layer;
the application layer writing storage area writes the first interactive data into the application storage area, and the first interactive data written into the application storage area at the moment is updated first interactive data or second interactive data;
and sending the updated first interactive data or second interactive data to a physical layer and/or an application layer.
Optionally, in a possible implementation manner of the first aspect, the updated first interaction data or second interaction data is sent to the master device or the next slave device based on the physical layer.
Optionally, in a possible implementation manner of the first aspect, the first interaction data includes a plurality of slave device data;
the first interactive data comprises a data frame, and the data frame at least comprises the following information:
destination address, source address, ethernet frame type, header, sub-packet set and CRC check.
Optionally, in a possible implementation manner of the first aspect, after receiving first interactive data, the master device determines whether a data amount of the first interactive data is greater than a preset value, and if the first interactive data is greater than the preset value, splits the first interactive data to obtain a plurality of sub-interactive data;
and after the sub-interactive data are respectively smaller than a preset value, sending the sub-interactive data to the slave equipment.
Optionally, in a possible implementation manner of the first aspect, after the sub-interaction data are respectively smaller than preset values, the method further includes:
sequencing the sub-interactive data, and sequentially sending the sub-interactive data to slave equipment based on a sequencing result;
and the slave equipment sequentially processes the sub-interactive data based on the sequencing result of the sub-interactive data.
Optionally, in a possible implementation manner of the first aspect, the primary device and the host thereof receive and/or send first interactive data and/or second interactive data through a PCIE bus;
the first interactive data and/or the second interactive data are/is received and/or sent between the slave device and the host machine thereof through the PCIE bus.
Optionally, in a possible implementation manner of the first aspect, the sequentially receiving, by the slave device, the first interaction data and processing the first interaction data includes:
extracting corresponding first slave data in the first interactive data from the slave equipment, processing based on the first slave data, and generating updated first interactive data or second interactive data;
and sending the first interactive data or the second interactive data to the adjacent main equipment and/or slave equipment.
In a second aspect of the embodiments of the present invention, a real-time network card data transmission device based on an OSI model is provided, including:
the device comprises a setting module, a judging module and a judging module, wherein the setting module is used for configuring a master device and at least one slave device in advance;
the connection module is used for sequentially connecting the master equipment and the slave equipment to form a closed-loop chain, so that data transmission can be carried out between any two adjacent connected master equipment and slave equipment as well as between any two adjacent connected slave equipment and slave equipment;
the data sending module is used for receiving and processing first interactive data in sequence by the slave equipment after the master equipment sends the first interactive data to the adjacent connected slave equipment;
and the data return module is used for generating second interactive data to return to the master equipment after the last slave equipment finishes processing the first interactive data.
In a third aspect of the embodiments of the present invention, a readable storage medium is provided, in which a computer program is stored, which, when being executed by a processor, is adapted to carry out the method according to the first aspect of the present invention and various possible designs of the first aspect of the present invention.
The invention provides a real-time network card data transmission method, a real-time network card data transmission device and a storage medium based on an OSI model, wherein a plurality of devices are connected to form a closed loop, 1 master device and a plurality of slave devices. When data transmission is needed, data needed by a plurality of slave devices can be transmitted through one master device based on one frame of network data, and the utilization rate of bandwidth is greatly improved.
When each slave device reads data, only the data which is required to be processed and corresponds to the slave device is extracted, and the data is returned after being processed, so that a total second interactive data is obtained and fed back to the master device, and the purpose and the effect of realizing data transmission among a plurality of devices through one frame of network data are achieved.
Drawings
Fig. 1 is a flowchart of a first embodiment of a real-time network card data transmission method based on the OSI model;
FIG. 2 is a schematic diagram of the connection between a master station and a slave station;
FIG. 3 is a linear topology diagram of a primary station and a secondary station;
FIG. 4 is a flowchart of a second embodiment of a real-time network card data transmission method based on the OSI model;
FIG. 5 is a diagram illustrating data transmission between a physical layer, a data link layer, and an application layer;
FIG. 6 is a diagram illustrating an information structure of a data frame;
fig. 7 is a flowchart of a third embodiment of a real-time network card data transmission method based on the OSI model;
fig. 8 is a flowchart of a fourth embodiment of a real-time network card data transmission method based on the OSI model;
fig. 9 is a flowchart of a fifth embodiment of a real-time network card data transmission method based on the OSI model;
fig. 10 is a flowchart of a sixth embodiment of a real-time network card data transmission method based on the OSI model;
fig. 11 is a flowchart of a first embodiment of the real-time network card data transmission device based on the OSI model.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the processes do not mean the execution sequence, and the execution sequence of the processes should be determined by the functions and the internal logic of the processes, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
It should be understood that in the present application, "comprising" and "having" and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that, in the present invention, "a plurality" means two or more. "and/or" is merely an association describing an associated object, meaning that three relationships may exist, for example, and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "comprises A, B and C" and "comprises A, B, C" means that all three of A, B, C comprise, "comprises A, B or C" means that one of A, B, C comprises, "comprises A, B and/or C" means that any 1 or any 2 or 3 of A, B, C comprises.
It should be understood that in the present invention, "B corresponding to a", "a corresponds to B", or "B corresponds to a" means that B is associated with a, and B can be determined from a. Determining B from a does not mean determining B from a alone, but may be determined from a and/or other information. And the matching of A and B means that the similarity of A and B is greater than or equal to a preset threshold value.
As used herein, "if" may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
The invention provides a real-time network card data transmission method based on an OSI model, which is shown in a flow chart of figure 1 and comprises the following steps:
step S110, configuring a master device and at least one slave device in advance. The master device and the slave device in the invention can be the same device, and the device can be a PCIE real-time network card.
And step S120, sequentially connecting the master devices and the slave devices to form a closed-loop chain, so that data transmission can be performed between any two adjacent connected master devices and slave devices, and between any two adjacent connected slave devices and slave devices.
In one embodiment, in the technical solution of the present invention, a software part divides a PCIE real-time network card into a master station controller and a slave station controller, where the master station controller may be a part of a master device, and the slave station controller may be a part of a slave device, and a master station in the present invention refers to a master device, and a slave station refers to a slave device. The hardware design of the master device and the slave device is completely consistent. The network port of the master station can be directly connected with the network port of the computer for network communication, and the master station can also be connected with one or more slave station devices for network communication according to a typical use mode. The master and slave stations are connected as shown in figure 2.
Step S130, after the master device sends first interactive data to the adjacent connected slave devices, the slave devices sequentially receive the first interactive data and process the first interactive data. Wherein the first interactive data may be a frame of network data, message information, event, etc.
Step S140, generating second interactive data to return to the master device after the last slave device completes processing the first interactive data.
In one embodiment, as shown in fig. 3, the master station and the slave stations are connected using a linear topology, and a message sent by the master station will pass through all the slave stations, and the message will return to the master station when reaching the last slave station. In the process, the slave station reads out the corresponding data in the message, writes the prepared data into the message, and sends the message out through the network port. The process is realized in a second layer data link layer of an OSI seven-layer model, and the network frame passes through the data link layer and then is processed by a data frame management module.
The data frame management module comprises three functions of interactive data, slave station addresses and a frame processing unit. The interactive data is a section of memory, and provides a multi-level data buffer area for the received effective data and the data needing to be sent. The slave station address is an address corresponding to each slave station, the address of the first slave station connected with the master station is 0, the address of the second slave station is 1, and the analogy is that 65535 slave station devices are supported at maximum. The frame processing unit is an algorithm module for network frame processing, retrieves effective data corresponding to slave station addresses when network frame data are received, extracts and stores the data into the interactive data area, and writes slave station data required to be sent in the interactive data area into a network data frame.
Further, as shown in fig. 4, step S130 further includes:
step S1301, after receiving first interactive data, slave station equipment writes the first interactive data located in a physical layer into a control section of an interactive data area;
step S1302, the application layer performs random reading and writing on the first interactive data written into the control segment of the interactive data area;
step S1303, after receiving the first interactive data, the slave station device writes the first interactive data into a data segment of an interactive data area;
step S1304, writing first interactive data of the data segment of the interactive data area into the application layer by the writing storage area, and acquiring the first interactive data by the reading storage area of the application layer;
step S1305, the application layer write storage area writes the first interactive data into the application storage area, where the first interactive data written into the application storage area is updated first interactive data or second interactive data;
step 1306, sending the updated first interactive data or second interactive data to a physical layer and/or an application layer;
step S1307, sending the updated first interactive data or second interactive data to the master device or the next slave device based on the physical layer.
Through the steps S1301 to S1307, the slave station device performs corresponding processing after receiving the first interactive data, and performs corresponding storage and transmission after the processing, thereby implementing the steps of reading and writing.
When the slave station device identifies the first interactive data, the master station may perform preset setting to divide the first interactive data into a plurality of data, where the data has the IP \ ID and the like of the slave station device corresponding to the data, and when the slave station identifies the first interactive data, the slave station identifies the data corresponding to the IP \ ID of the slave station device.
As shown in fig. 5, the data frame management module sets a service for reading, writing and reading and writing writable data from the storage space of the slave station, and represents the process of reading and writing the service. The control section from the station "write service" to the interactive data area, the control section from which the application layer reads and writes the interactive data, will obtain the written value (2), and in addition, the control section from the station "write service" only accesses the interactive data area without notifying the application layer (4). The application layer can inform the control segment access (5) of the read-write interactive data at any time. A data segment (6) from the station "write service" to the interactive data area will trigger a write memory event (WriteMemoryEvent) of the application layer, and then the application layer read memory (ReadMemoryLocal) will get the written value (7). The application layer writes data to an application storage area (8) by writing the storage area (WriteMemoryLocal). The data of the data section of the interactive data area is read (9) by the master station via a "read service", which triggers a read memory area event at the application layer, which event indicates that the memory area has been read, and data can be written again by the application layer.
The capability of the master station to send 1 frame of message capable of carrying data of a plurality of slave station devices breaks through the system limitation of other ethernet schemes, and a complete ethernet frame is sent to each slave station device without the need of a common PCIE real-time network card scheme.
Furthermore, the first interactive data comprises a plurality of slave device data, and the slave device data can be data which is provided with each slave device IP \ ID and needs to be processed corresponding to the IP \ ID;
the first interactive data includes a data frame, as shown in fig. 6, which includes at least the following information:
destination address, source address, ethernet frame type, header, sub-packet set and CRC check.
The network frame is divided into a destination address, a source address, an Ethernet frame type, a message header, a sub-message set and a CRC check. The destination address and the source address are MAC addresses of the real-time network card and are both defined as 0 xFFFFFFFFFFFF. The ethernet frame type is 0 xFFFF. The message header comprises a message length and a reserved bit, wherein the message length is data of the sub-message set. The sub-message set comprises at least 0 slave addresses and slave data for a maximum of 65535 slaves. The CRC check is a check value of the network frame, and a CRC32 cyclic redundancy check algorithm is used.
The technical scheme of the invention realizes a data frame management module on a data link layer of an ISO network model and self-defines a matched network frame type. Through the scheme, one frame of network data can carry data of a plurality of slave station devices, and the network bandwidth utilization rate is improved.
Further, after receiving first interactive data, the main device determines whether the data volume of the first interactive data is greater than a preset value, and if the first interactive data is greater than the preset value, the main device splits the first interactive data to obtain a plurality of sub-interactive data;
and after the sub-interactive data are respectively smaller than a preset value, sending the sub-interactive data to the slave equipment.
In one embodiment, as shown in fig. 7, in the technical solution of the present invention, one master device may be connected to one or more slave devices, but there is one and only one master device in the connection.
The host station controller is inserted into a PCIE slot of the computer, and the computer sends data to the host station controller through a PCIE bus. The network interface of the master station controller is divided into a network interface 1 and a network interface 2, the network interface 1 is reserved for use, and the master station controller transmits data to the slave station equipment through the network interface 2. The data to be transmitted via the network may include data of one slave device or data of a plurality of slave devices. If the data to be transmitted is large, the host station controller unpacks and transmits the data.
Further, after the sub-interactive data are respectively smaller than the preset values, the method further comprises:
sequencing the sub-interactive data, and sequentially sending the sub-interactive data to slave equipment based on a sequencing result;
and the slave equipment sequentially processes the sub-interactive data based on the sequencing result of the sub-interactive data.
And the slave equipment can perform corresponding processing according to the size and the sequence of the sub-interactive data, and can traverse all the data and select the IP \ ID corresponding to the data to search when screening the interactive data required to be processed by the slave equipment, or can obtain the interactive data according to the sequence of the sequence.
Further, the primary device and the host thereof receive and/or send first interactive data and/or second interactive data through the PCIE bus;
the first interactive data and/or the second interactive data are/is received and/or sent between the slave device and the host machine thereof through the PCIE bus.
In one embodiment, as shown in fig. 8, the master station controller receives network data of a slave device through the network interface 2, and the received network data may be data of one or more slave devices. And the master station controller sends the received slave station data to the computer equipment through the PCIE bus.
Further, the receiving and processing the first interaction data in sequence by the slave device includes:
extracting corresponding first slave data in the first interactive data from the slave equipment, processing based on the first slave data, and generating updated first interactive data or second interactive data;
and sending the first interactive data or the second interactive data to the adjacent main equipment and/or slave equipment.
In one embodiment, as shown in FIG. 9, the network interfaces of the slave station controller are divided into network interface 1 and network interface 2. The network interface 1 receives network data from a master station device or a slave station device connected to the master station, extracts data corresponding to the slave station from the network data after receiving the network data, and writes data to be transmitted into the network data. The slave station will then determine the operating state of the network interface 2, and if the network interface 2 is not connected to other slave devices, the slave station will send the processed network data back from the network interface 1, and if the network interface 2 is connected to other slave devices, the slave station will send the processed network data to the next slave device from the network interface 2.
In one embodiment, as shown in fig. 10, the network interface 2 of the slave station controller receives data from other slave station boards, and the slave station does not perform any processing on the network data received by the network interface 2, and forwards the data as it is through the network interface 1.
The technical scheme of the invention greatly improves the utilization rate of the network bandwidth. By adopting the technical scheme of the invention, 1 to more slave devices can be carried in one frame of network data, so that the utilization rate of bandwidth is greatly improved.
An embodiment of the present invention further provides a real-time network card data transmission device based on the OSI model, as shown in fig. 11, including:
the device comprises a setting module, a judging module and a judging module, wherein the setting module is used for configuring a master device and at least one slave device in advance;
the connection module is used for sequentially connecting the master equipment and the slave equipment to form a closed-loop chain, so that data transmission can be carried out between any two adjacent connected master equipment and slave equipment as well as between any two adjacent connected slave equipment and slave equipment;
the data sending module is used for receiving and processing first interactive data in sequence by the slave equipment after the master equipment sends the first interactive data to the adjacent connected slave equipment;
and the data return module is used for generating second interactive data to return to the master equipment after the last slave equipment finishes processing the first interactive data.
The readable storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media may be any available media that can be accessed by a general purpose or special purpose computer. For example, a readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Additionally, the ASIC may reside in user equipment. Of course, the processor and the readable storage medium may also reside as discrete components in a communication device. The readable storage medium may be a read-only memory (ROM), a random-access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The present invention also provides a program product comprising execution instructions stored in a readable storage medium. The at least one processor of the device may read the execution instructions from the readable storage medium, and the execution of the execution instructions by the at least one processor causes the device to implement the methods provided by the various embodiments described above.
In the above embodiments of the terminal or the device, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A real-time network card data transmission method based on an OSI model is characterized by comprising the following steps:
pre-configuring a master device and at least one slave device;
the master equipment and the slave equipment are sequentially connected to form a closed-loop chain, so that data transmission can be carried out between any two adjacent connected master equipment and slave equipment, and between any two adjacent connected slave equipment and slave equipment;
after the master device sends first interactive data to the adjacent connected slave devices, the slave devices sequentially receive the first interactive data and process the first interactive data;
and generating second interactive data to return to the master device after the last slave device finishes processing the first interactive data.
2. The OSI model-based real-time network card data transmission method of claim 1,
the slave device sequentially receives the first interaction data and processes the first interaction data, including:
the slave station equipment writes the first interactive data located in the physical layer into a control section of an interactive data area after receiving the first interactive data;
the application layer carries out random reading and writing on the first interactive data written into the control section of the interactive data area;
the slave station equipment writes the first interactive data into a data segment of an interactive data area after receiving the first interactive data;
writing first interactive data of a data segment of the interactive data area into the application layer by the writing storage area, and acquiring the first interactive data by the reading storage area of the application layer;
the application layer writing storage area writes the first interactive data into the application storage area, and the first interactive data written into the application storage area at the moment is updated first interactive data or second interactive data;
and sending the updated first interactive data or second interactive data to a physical layer and/or an application layer.
3. The OSI model-based real-time network card data transmission method of claim 2,
and sending the updated first interactive data or second interactive data to the master device or the next slave device based on the physical layer.
4. The OSI model-based real-time network card data transmission method of claim 2,
the first interaction data comprises a plurality of slave device data;
the first interactive data comprises a data frame, and the data frame at least comprises the following information:
destination address, source address, ethernet frame type, header, sub-packet set and CRC check.
5. The OSI model-based real-time network card data transmission method of claim 1,
after receiving first interactive data, the main device judges whether the data volume of the first interactive data is larger than a preset value, and if the first interactive data is larger than the preset value, the main device splits the first interactive data to obtain a plurality of sub-interactive data;
and after the sub-interactive data are respectively smaller than a preset value, sending the sub-interactive data to the slave equipment.
6. The OSI model-based real-time network card data transmission method of claim 5,
after the sub-interactive data are respectively smaller than the preset values, the method further comprises the following steps:
sequencing the sub-interactive data, and sequentially sending the sub-interactive data to slave equipment based on a sequencing result;
and the slave equipment sequentially processes the sub-interactive data based on the sequencing result of the sub-interactive data.
7. The OSI model-based real-time network card data transmission method of claim 1,
the method comprises the steps that first interactive data and/or second interactive data are received and/or sent between the main equipment and a host machine of the main equipment through a PCIE bus;
the first interactive data and/or the second interactive data are/is received and/or sent between the slave device and the host machine thereof through the PCIE bus.
8. The OSI model-based real-time network card data transmission method of claim 1,
the slave device sequentially receives the first interaction data and processes the first interaction data, including:
extracting corresponding first slave data in the first interactive data from the slave equipment, processing based on the first slave data, and generating updated first interactive data or second interactive data;
and sending the first interactive data or the second interactive data to the adjacent main equipment and/or slave equipment.
9. A real-time network card data transmission device based on OSI model is characterized by comprising:
the device comprises a setting module, a judging module and a judging module, wherein the setting module is used for configuring a master device and at least one slave device in advance;
the connection module is used for sequentially connecting the master equipment and the slave equipment to form a closed-loop chain, so that data transmission can be carried out between any two adjacent connected master equipment and slave equipment as well as between any two adjacent connected slave equipment and slave equipment;
the data sending module is used for receiving and processing first interactive data in sequence by the slave equipment after the master equipment sends the first interactive data to the adjacent connected slave equipment;
and the data return module is used for generating second interactive data to return to the master equipment after the last slave equipment finishes processing the first interactive data.
10. A readable storage medium, in which a computer program is stored which, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 8.
CN202110623561.7A 2021-06-04 2021-06-04 Real-time network card data transmission method and device based on OSI model and storage medium Pending CN113489759A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110623561.7A CN113489759A (en) 2021-06-04 2021-06-04 Real-time network card data transmission method and device based on OSI model and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110623561.7A CN113489759A (en) 2021-06-04 2021-06-04 Real-time network card data transmission method and device based on OSI model and storage medium

Publications (1)

Publication Number Publication Date
CN113489759A true CN113489759A (en) 2021-10-08

Family

ID=77934608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110623561.7A Pending CN113489759A (en) 2021-06-04 2021-06-04 Real-time network card data transmission method and device based on OSI model and storage medium

Country Status (1)

Country Link
CN (1) CN113489759A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103281229A (en) * 2013-05-03 2013-09-04 杭州正嘉数控设备有限公司 Motion control bus communication method based on Ethernet physical layer
KR101593216B1 (en) * 2014-09-30 2016-02-12 한국전기연구원 On-the-fly data transmission system and method for transmitting data to divide read and write period thereof
CN105450489A (en) * 2015-12-02 2016-03-30 大连理工计算机控制工程有限公司 HEBus efficient fieldbus system for preferably realizing shortest message in output and communication method
CN105871623A (en) * 2016-05-18 2016-08-17 广州数控设备有限公司 Occasional fault diagnosis method of field bus
WO2019071809A1 (en) * 2017-10-13 2019-04-18 广州视源电子科技股份有限公司 Interactive intelligent tablet, data transmission method, device and storage medium
CN110908600A (en) * 2019-10-18 2020-03-24 华为技术有限公司 Data access method and device and first computing equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103281229A (en) * 2013-05-03 2013-09-04 杭州正嘉数控设备有限公司 Motion control bus communication method based on Ethernet physical layer
KR101593216B1 (en) * 2014-09-30 2016-02-12 한국전기연구원 On-the-fly data transmission system and method for transmitting data to divide read and write period thereof
CN105450489A (en) * 2015-12-02 2016-03-30 大连理工计算机控制工程有限公司 HEBus efficient fieldbus system for preferably realizing shortest message in output and communication method
CN105871623A (en) * 2016-05-18 2016-08-17 广州数控设备有限公司 Occasional fault diagnosis method of field bus
WO2019071809A1 (en) * 2017-10-13 2019-04-18 广州视源电子科技股份有限公司 Interactive intelligent tablet, data transmission method, device and storage medium
CN110908600A (en) * 2019-10-18 2020-03-24 华为技术有限公司 Data access method and device and first computing equipment

Similar Documents

Publication Publication Date Title
US8149866B2 (en) System and method for filtering communications at a network interface controller
CN103384274B (en) Public network based on http agreement connects the communication means of inner net computer
CN113595931A (en) Message processing method, device, equipment and storage medium
CN106656714A (en) Communication protocol method and system based on EtherCAT bus
CN111614580A (en) Data forwarding method, device and equipment
CN107135189A (en) A kind of file transmitting method and physical machine
CN111277517B (en) Programmable switching chip-based convergence and shunt method and device, storage medium and electronic equipment
CN113489759A (en) Real-time network card data transmission method and device based on OSI model and storage medium
CN101212480A (en) Method and apparatus for communication between universal serial bus (USB) host and USB device
CN111371799B (en) Method, device and equipment for controlling data receiving and transmitting of MCTP (Multi-channel media Port) controller
CN113971148A (en) PCIE real-time network card data transmission method and device based on linux real-time operating system
EP4236254A1 (en) Message processing method and device
CN114116574A (en) Data transmission method and device, electronic equipment and storage medium
CN1950810B (en) Backward-compatible parallel DDR bus for use in host-daughtercard interface
CN115514712A (en) Data processing method, device, terminal and network side equipment
KR20170090206A (en) Method for transmitting and receiving protocol packet using packet processor based LINUX in distributed packet transport network
CN109165099B (en) Electronic equipment, memory copying method and device
TWI317585B (en) System and method for testing the transmission speed of network interface cards
CN105392132B (en) A kind of port data separation method and device
CN114520790B (en) Message filtering method and device
CN113485827B (en) Data processing method, device and storage medium for realizing automatic configuration issuing function
CN115314159B (en) Method and device for transmitting data between chips
CN113794657B (en) MAC address migration processing method and device and switching equipment
CN112671561B (en) Network card configuration method and equipment of cloud host
CN112039729B (en) Device identification method, server, electronic device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination