CN115514718B - Data interaction method, control layer and equipment based on data transmission system - Google Patents

Data interaction method, control layer and equipment based on data transmission system Download PDF

Info

Publication number
CN115514718B
CN115514718B CN202211237053.6A CN202211237053A CN115514718B CN 115514718 B CN115514718 B CN 115514718B CN 202211237053 A CN202211237053 A CN 202211237053A CN 115514718 B CN115514718 B CN 115514718B
Authority
CN
China
Prior art keywords
data
forwarding
buffer area
layer
control layer
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.)
Active
Application number
CN202211237053.6A
Other languages
Chinese (zh)
Other versions
CN115514718A (en
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.)
Anhui Huayun'an Technology Co ltd
Original Assignee
Anhui Huayun'an 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 Anhui Huayun'an Technology Co ltd filed Critical Anhui Huayun'an Technology Co ltd
Priority to CN202211237053.6A priority Critical patent/CN115514718B/en
Publication of CN115514718A publication Critical patent/CN115514718A/en
Application granted granted Critical
Publication of CN115514718B publication Critical patent/CN115514718B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • H04L49/3018Input queuing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • H04L49/3027Output queuing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements

Abstract

The embodiment of the invention provides a data interaction method, a control layer and equipment based on a data transmission system. The system comprises a control layer and a plurality of forwarding layers, wherein each forwarding layer corresponds to a receiving buffer area and a sending buffer area; at least one forwarding layer receives network data and requests a writing instruction to a control layer based on the received network data, so that the control layer sends the writing instruction to the corresponding forwarding layer; the at least one forwarding layer writes the basic information of the received network data into the corresponding receiving buffer area according to the writing instruction; when the control layer detects that the data to be transmitted exist in the transmission buffer, a reading instruction is transmitted to the corresponding forwarding layer, so that the forwarding layer can read the data to be transmitted from the corresponding transmission buffer and transmit the data. In this way, the service efficiency of the communication system constructed by the control layer and the forwarding layer can be improved.

Description

Data interaction method, control layer and equipment based on data transmission system
Technical Field
The invention relates to the field of data transmission, in particular to a data interaction method based on a data transmission system.
Background
In network communications where the control layer and forwarding layer are separate. The control layer is responsible for producing control instructions and issuing the control instructions to the forwarding layer to control data forwarding; the forwarding layer is responsible for forwarding data according to the instruction of the control layer.
However, in the current communication process constructed by the control layer and the forwarding layer, the actual service efficiency is low.
Disclosure of Invention
The invention provides a data interaction method, a control layer, equipment and a storage medium based on a data transmission system.
According to a first aspect of the present invention, there is provided a data interaction method based on a data transmission system, the system comprising a control layer and a plurality of forwarding layers, wherein each forwarding layer corresponds to a receiving buffer and a transmitting buffer;
at least one forwarding layer receives network data and requests a writing instruction to a control layer based on the received network data, so that the control layer sends the writing instruction to the corresponding forwarding layer;
the at least one forwarding layer writes the basic information of the received network data into the corresponding receiving buffer area according to the writing instruction;
the control layer detects the sending buffer area at the same time or after the forwarding layer writes the basic information of the network data into the corresponding receiving buffer area;
when the control layer detects that the data to be transmitted exist in the transmission buffer, a reading instruction is transmitted to the corresponding forwarding layer, so that the forwarding layer can read the data to be transmitted from the corresponding transmission buffer and transmit the data.
In some implementations of the first aspect, requesting write instructions from the control layer based on the received network data includes:
determining a data type corresponding to the network data based on the received network data;
and according to the data type, requesting a corresponding writing instruction from the control layer.
In some implementations of the first aspect, writing basic information of the received network data into a corresponding receiving buffer according to the writing instruction includes:
according to the source IP, the destination IP and the port of the data stream included in the writing instruction, calling a function command corresponding to the writing instruction from a preset function command set;
based on the function command corresponding to the write instruction, the basic information is written into the corresponding receiving buffer.
In some implementations of the first aspect, after the forwarding layer writes basic information of the network data to a corresponding receiving buffer, the control layer detects the receiving buffer and/or the sending buffer;
and the control layer deletes the basic information of the data in the receiving buffer area and/or the data in the sending buffer area after detecting that the basic information of the data in the receiving buffer area and/or the data in the sending buffer area are read.
According to a second aspect of the present invention, there is provided a control layer comprising:
the write-in instruction generation module is used for receiving a write-in instruction request generated by at least one forwarding layer according to the received network data, and sending a write-in instruction to the corresponding forwarding layer based on the write-in instruction request, so that the at least one forwarding layer can write the basic information of the received network data into the corresponding receiving buffer area according to the write-in instruction;
the detection module is used for detecting the sending buffer area when or after the forwarding layer writes the basic information of the network data into the corresponding receiving buffer area;
and the reading instruction sending module is used for sending a reading instruction to the corresponding forwarding layer when the detection module detects that the data to be sent exist in the sending buffer area, and the reading instruction is used for reading the data to be sent from the corresponding sending buffer area by the forwarding layer and sending the data.
In some implementations of the second aspect, the write instruction request is determined by the forwarding layer based on the received network data, a data type corresponding to the network data, and according to the data type.
In some implementations of the second aspect, the write instruction generating module is configured to receive a write instruction request generated by at least one forwarding layer according to received network data, and send a write instruction to a corresponding forwarding layer based on the write instruction request, so that the at least one forwarding layer invokes a function command corresponding to the write instruction from a preset function command set according to a source IP, a destination IP, and a port of a data stream included in the write instruction, and writes basic information into a corresponding receiving buffer based on the function command corresponding to the write instruction.
In some implementations of the second aspect, the control layer further includes a delete module;
the detection module is also used for detecting the receiving buffer area and/or the sending buffer area after the forwarding layer writes the basic information of the network data into the corresponding receiving buffer area;
and the deleting module is used for deleting the basic information of the data in the receiving buffer area and/or the data in the sending buffer area after the detecting module detects that the basic information of the data in the receiving buffer area and/or the data in the sending buffer area are read.
According to a third aspect of the present invention, an electronic device is provided. The electronic device includes: a memory and a processor, the memory having stored thereon a computer program, the processor implementing the first aspect as described above and in some implementations of the first aspect a data interaction method based on a data transmission system.
According to a fourth aspect of the present invention there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the first aspect as described above, and in some implementations of the first aspect a data interaction method based on a data transmission system.
The invention provides a data interaction method, a control layer, equipment and a storage medium based on a data transmission system, wherein the system comprises the control layer and a plurality of forwarding layers, and each forwarding layer corresponds to a receiving buffer zone and a sending buffer zone; at least one forwarding layer receives network data and requests a writing instruction to a control layer based on the received network data, so that the control layer sends the writing instruction to the corresponding forwarding layer; the at least one forwarding layer writes the basic information of the received network data into the corresponding receiving buffer area according to the writing instruction; the control layer detects the sending buffer area at the same time or after the forwarding layer writes the basic information of the network data into the corresponding receiving buffer area; when the control layer detects that the data to be transmitted exist in the transmission buffer, a reading instruction is transmitted to the corresponding forwarding layer, so that the forwarding layer can read the data to be transmitted from the corresponding transmission buffer and transmit the data. Because the data transmission system comprises the control layer and a plurality of forwarding layers, and in the data interaction method based on the system, one control layer can communicate with the plurality of forwarding layers so as to control the plurality of forwarding layers, and the plurality of forwarding layers can write data into corresponding receiving buffer areas and read data from transmitting buffer areas, the control layer in one communication node can serve a plurality of users based on the plurality of forwarding layers, and therefore the service efficiency of the communication system constructed by the control layer and the forwarding layers can be improved.
Drawings
The above and other features, advantages and aspects of embodiments of the present invention will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. For a better understanding of the present invention, and without limiting the invention thereto, the same or similar reference numbers indicate the same or similar elements, wherein:
fig. 1 is a schematic structural diagram of a data transmission system according to an embodiment of the present invention;
fig. 2 is a schematic diagram of data interaction of a data transmission system according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a control layer according to an embodiment of the present invention;
fig. 4 is a block diagram of an exemplary electronic device capable of implementing embodiments of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In addition, the term "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
In network communications where the control layer and forwarding layer are separate. The control layer is responsible for producing control instructions and issuing the control instructions to the forwarding layer to control data forwarding; the forwarding layer is responsible for forwarding data according to the instruction of the control layer.
However, in the current communication process constructed by the control layer and the forwarding layer, the actual service efficiency is low.
In order to solve the problem of lower actual service efficiency in the communication process constructed by a control layer and a forwarding layer at present, the invention provides a data interaction method, a control layer, equipment and a storage medium based on a data transmission system, wherein the system comprises the control layer and a plurality of forwarding layers, and each forwarding layer corresponds to a receiving buffer zone and a sending buffer zone; at least one forwarding layer receives network data and requests a writing instruction to a control layer based on the received network data, so that the control layer sends the writing instruction to the corresponding forwarding layer; the at least one forwarding layer writes the basic information of the received network data into the corresponding receiving buffer area according to the writing instruction; the control layer detects the sending buffer area at the same time or after the forwarding layer writes the basic information of the network data into the corresponding receiving buffer area; when the control layer detects that the data to be transmitted exist in the transmission buffer, a reading instruction is transmitted to the corresponding forwarding layer, so that the forwarding layer can read the data to be transmitted from the corresponding transmission buffer and transmit the data. Because the data transmission system comprises the control layer and a plurality of forwarding layers, and in the data interaction method based on the system, one control layer can communicate with the plurality of forwarding layers so as to control the plurality of forwarding layers, and the plurality of forwarding layers can write data into corresponding receiving buffer areas and read data from transmitting buffer areas, the control layer in one communication node can serve a plurality of users based on the plurality of forwarding layers, and therefore the service efficiency of the communication system constructed by the control layer and the forwarding layers can be improved.
The technical scheme provided by the embodiment of the invention is described below with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of a data transmission system including a control layer and a plurality of forwarding layers, where each forwarding layer corresponds to a receiving buffer area and a sending buffer area, and the method provided by the embodiment of the present invention is implemented based on the system shown in fig. 1.
It should also be noted that the forwarding layer is arranged between the forwarding layer and the application layer in correspondence of the receiving buffer and the sending buffer, so that the application layer can read the written data from the receiving buffer and/or write the data to the sending buffer.
Fig. 2 is a schematic diagram of data interaction based on the data transmission system shown in fig. 1, where, as shown in fig. 2, the data interaction method based on the data transmission system includes:
s201: at least one forwarding layer receives network data and requests a write instruction to a control layer based on the received network data for the control layer to send the write instruction to the corresponding forwarding layer.
Specifically, in one embodiment, requesting a write instruction from a control layer based on received network data includes: determining a data type corresponding to the network data based on the received network data; and according to the data type, requesting a corresponding writing instruction from the control layer.
The data types corresponding to the determined network data may be, for example, an encrypted data type, a data type of key exchange, a decrypted data type, etc., and the corresponding write instruction may be requested from the control layer according to different data types, and correspondingly, may be, for example, a write instruction corresponding to the encrypted data type, a write instruction corresponding to the data type of key exchange, and a write instruction corresponding to the decrypted data type.
S202: and the at least one forwarding layer writes the basic information of the received network data into the corresponding receiving buffer zone according to the writing instruction.
In the writing process of S202, specifically, according to the source IP, the destination IP, and the port of the data stream included in the writing instruction, a function command corresponding to the writing instruction is called from a preset function command set; and then writing basic information into a corresponding receiving buffer zone based on a function command corresponding to the writing instruction, wherein the basic information can specifically comprise a source IP, a destination IP, a port and the like of a data stream in the network data.
In order to enable detection and reading of data in the transmission buffer, S203 and S204 may also be performed in the present invention to enable reading of data in the transmission buffer.
S203: the control layer detects the sending buffer while or after the forwarding layer writes the basic information of the network data to the corresponding receiving buffer.
S204: and the control layer sends a reading instruction to the corresponding forwarding layer when detecting that the data to be sent exist in the sending buffer area.
S205: at least one forwarding layer reads data to be transmitted from the corresponding transmission buffer zone based on the reading instruction and transmits the data.
In addition, in order to timely clear after the basic information of the data in the receiving buffer and/or the data in the sending buffer is read out, so as to ensure the subsequent data writing, in one embodiment, after the forwarding layer writes the basic information of the network data into the corresponding receiving buffer, the control layer detects the receiving buffer and/or the sending buffer; and after detecting that the basic information of the data in the receiving buffer area and/or the data in the sending buffer area are read, the control layer deletes the basic information of the data in the receiving buffer area and/or the data in the sending buffer area so as to delete the read data in the buffer area and ensure that the data to be written subsequently has enough space.
In one embodiment, the process of detecting the receiving buffer and/or the sending buffer by the control layer may also be performed periodically, so as to implement periodic detection, so as to ensure that the data that has been read in the receiving buffer and/or the sending buffer can be cleaned in time, thereby ensuring that there is enough space for subsequent writing.
From the above disclosure, it can be seen that the data interaction in the present invention decouples the synchronous relationship between the upper and lower layers by means of the sending buffer and the receiving buffer, so that asynchronous efficient processing can be realized.
In addition, an independent process is used between the control layer and each forwarding layer, so that isolation can be realized, and the phenomenon that one communication connection is abnormal due to process faults can be prevented.
In the data interaction method based on the data transmission system, one control layer can communicate with a plurality of forwarding layers so as to control the forwarding layers, and the data are written into corresponding receiving buffer areas and read from the sending buffer areas by the forwarding layers, so that the control layer in one communication node can serve a plurality of users based on the forwarding layers, and the service efficiency of the communication system constructed by the control layer and the forwarding layers can be improved.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. Further, those skilled in the art will also appreciate that the embodiments described in the specification are alternative embodiments, and that the acts and modules referred to are not necessarily required for the present invention.
The above description of the method embodiments further describes the solution of the present invention by means of device embodiments.
The invention also provides a control layer corresponding to the data interaction method based on the data transmission system shown in fig. 2.
As shown in fig. 3, the control layer 300 includes:
the write instruction generating module 301 is configured to receive a write instruction request generated by at least one forwarding layer according to received network data, and send a write instruction to a corresponding forwarding layer based on the write instruction request, where the write instruction is used for the at least one forwarding layer to write basic information of the received network data into a corresponding receiving buffer area according to the write instruction;
a detection module 302, configured to detect a sending buffer while or after the forwarding layer writes basic information of network data to a corresponding receiving buffer;
and the reading instruction sending module 303 is configured to send a reading instruction to a corresponding forwarding layer when the detecting module detects that data to be sent exists in the sending buffer, so that the forwarding layer reads the data to be sent from the corresponding sending buffer and sends the data to be sent.
In one embodiment, the write instruction request is determined by the forwarding layer based on the received network data, and the data type corresponding to the network data is determined according to the data type.
In one embodiment, the write instruction generating module 301 is configured to receive a write instruction request generated by at least one forwarding layer according to received network data, send a write instruction to a corresponding forwarding layer based on the write instruction request, for the at least one forwarding layer to call a function command corresponding to the write instruction from a preset function command set according to a source IP, a destination IP, and a port of a data stream included in the write instruction, and write the basic information into a corresponding receiving buffer based on the function command corresponding to the write instruction.
In one embodiment, the control layer further comprises a delete module;
the detection module 302 is further configured to detect the receiving buffer and/or the sending buffer after the forwarding layer writes the basic information of the network data into the corresponding receiving buffer;
and the deleting module is used for deleting the basic information of the data in the receiving buffer area and/or the data in the sending buffer area after the detecting module detects that the basic information of the data in the receiving buffer area and/or the data in the sending buffer area are read.
In the control layer provided by the invention, one control layer can communicate with a plurality of forwarding layers so as to control the forwarding layers, and the data are written into the corresponding receiving buffer areas and read from the sending buffer areas by the forwarding layers, so that the control layer in one communication node can serve a plurality of users based on the forwarding layers, and the service efficiency of a communication system constructed by the control layer and the forwarding layers can be improved.
It can be understood that each module in the control layer shown in fig. 3 has a function of implementing each step corresponding to the control layer in the data interaction method in fig. 2, and can achieve the corresponding technical effects, which are not described herein for brevity.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the described modules may refer to corresponding procedures in the foregoing method embodiments, which are not described herein again.
According to embodiments of the present invention, the present invention also provides an electronic device, a readable storage medium and a computer program product.
Fig. 4 shows a schematic block diagram of an electronic device 400 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
The device 400 comprises a computing unit 401 that may perform various suitable actions and processes in accordance with a computer program stored in a Read Only Memory (ROM) 402 or loaded from a storage unit 408 into a Random Access Memory (RAM) 403. In RAM403, various programs and data required for the operation of device 400 may also be stored. The computing unit 401, ROM402, and RAM403 are connected to each other by a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Various components in device 400 are connected to I/O interface 405, including: an input unit 406 such as a keyboard, a mouse, etc.; an output unit 407 such as various types of displays, speakers, and the like; a storage unit 408, such as a magnetic disk, optical disk, etc.; and a communication unit 409 such as a network card, modem, wireless communication transceiver, etc. The communication unit 409 allows the device 400 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The computing unit 401 may be a variety of general purpose and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 401 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 401 performs the various methods and processes described above, such as the data interaction method based on the data transmission system in fig. 2. For example, in some embodiments, the data interaction method of fig. 2 based on a data transmission system may be implemented as a computer software program tangibly embodied on a machine-readable medium, e.g., the storage unit 408. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 400 via the ROM402 and/or the communication unit 409. When the computer program is loaded into RAM403 and executed by computing unit 401, one or more steps of the data interaction method based on a data transmission system described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to perform the data interaction method of fig. 2 based on the data transmission system in any other suitable way (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present invention may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution disclosed in the present invention can be achieved, and are not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (8)

1. The data interaction method based on the data transmission system is characterized in that the system comprises a control layer and a plurality of forwarding layers, wherein each forwarding layer corresponds to a receiving buffer zone and a sending buffer zone;
at least one forwarding layer receives network data and requests a writing instruction to the control layer based on the received network data, so that the control layer sends the writing instruction to the corresponding forwarding layer;
the at least one forwarding layer writes the basic information of the received network data into a corresponding receiving buffer area according to the writing instruction;
the control layer detects the sending buffer area at the same time or after the forwarding layer writes the basic information of the network data into the corresponding receiving buffer area;
when the control layer detects that the data to be transmitted exist in the transmission buffer zone, a reading instruction is transmitted to the corresponding forwarding layer, so that the forwarding layer can read the data to be transmitted from the corresponding transmission buffer zone and transmit the data;
the request for writing instructions to the control layer based on the received network data includes:
determining a data type corresponding to the network data based on the received network data;
and according to the data type, requesting a corresponding writing instruction from the control layer.
2. The method according to claim 1, wherein the writing basic information of the received network data into the corresponding receiving buffer according to the writing instruction includes:
according to the source IP, the destination IP and the port of the data stream included in the writing instruction, invoking a function command corresponding to the writing instruction from a preset function command set;
and writing the basic information into a corresponding receiving buffer zone based on a function command corresponding to the writing instruction.
3. The method according to claim 1, wherein the control layer detects the reception buffer and/or the transmission buffer after the forwarding layer writes the basic information of the network data to the corresponding reception buffer;
and the control layer deletes the basic information of the data in the receiving buffer area and/or the data in the sending buffer area after detecting that the basic information of the data in the receiving buffer area and/or the data in the sending buffer area are read.
4. A control layer apparatus, the control layer apparatus comprising:
the writing instruction generation module is used for receiving a writing instruction request generated by at least one forwarding layer according to the received network data, and sending a writing instruction to a corresponding forwarding layer based on the writing instruction request, so that the at least one forwarding layer can write the basic information of the received network data into a corresponding receiving buffer area according to the writing instruction;
the detection module is used for detecting the sending buffer area when or after the forwarding layer writes the basic information of the network data into the corresponding receiving buffer area;
the reading instruction sending module is used for sending a reading instruction to a corresponding forwarding layer when the detection module detects that the data to be sent exist in the sending buffer area, and the reading instruction is used for the forwarding layer to read the data to be sent from the corresponding sending buffer area and send the data;
the write instruction request is determined by the forwarding layer based on the received network data, the data type corresponding to the network data, and the data type is determined according to the data type.
5. The control layer device according to claim 4, wherein the write instruction generating module is configured to receive a write instruction request generated by at least one forwarding layer according to received network data, and send a write instruction to a corresponding forwarding layer based on the write instruction request, for the at least one forwarding layer to call a function command corresponding to the write instruction from a preset function command set according to a source IP, a destination IP, and a port of a data stream included in the write instruction, and write the basic information into a corresponding receiving buffer area based on the function command corresponding to the write instruction.
6. The control layer apparatus of claim 4, wherein the control layer apparatus further comprises a delete module;
the detection module is further used for detecting the receiving buffer area and/or the sending buffer area after the forwarding layer writes the basic information of the network data into the corresponding receiving buffer area;
and the deleting module is used for deleting the basic information of the data in the receiving buffer area and/or the data in the sending buffer area after the detecting module detects that the basic information of the data in the receiving buffer area and/or the data in the sending buffer area are read.
7. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-3.
8. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-3.
CN202211237053.6A 2022-10-10 2022-10-10 Data interaction method, control layer and equipment based on data transmission system Active CN115514718B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211237053.6A CN115514718B (en) 2022-10-10 2022-10-10 Data interaction method, control layer and equipment based on data transmission system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211237053.6A CN115514718B (en) 2022-10-10 2022-10-10 Data interaction method, control layer and equipment based on data transmission system

Publications (2)

Publication Number Publication Date
CN115514718A CN115514718A (en) 2022-12-23
CN115514718B true CN115514718B (en) 2023-06-16

Family

ID=84507427

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211237053.6A Active CN115514718B (en) 2022-10-10 2022-10-10 Data interaction method, control layer and equipment based on data transmission system

Country Status (1)

Country Link
CN (1) CN115514718B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116546557B (en) * 2023-06-29 2023-11-17 阿里巴巴(中国)有限公司 Data packet processing method, system, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1725702A (en) * 2004-07-20 2006-01-25 联想网御科技(北京)有限公司 Network safety equipment and assemblied system and method for implementing high availability
CN102577278A (en) * 2009-10-19 2012-07-11 国际商业机器公司 Dynamic resource allocation for distributed cluster storage network
US8843805B1 (en) * 2012-03-16 2014-09-23 Juniper Networks, Inc. Memory error protection using addressable dynamic ram data locations
CN108632168A (en) * 2018-04-16 2018-10-09 济南浪潮高新科技投资发展有限公司 A kind of asynchronous serial communication method for interchanging data based on FPGA

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1725702A (en) * 2004-07-20 2006-01-25 联想网御科技(北京)有限公司 Network safety equipment and assemblied system and method for implementing high availability
CN102577278A (en) * 2009-10-19 2012-07-11 国际商业机器公司 Dynamic resource allocation for distributed cluster storage network
US8843805B1 (en) * 2012-03-16 2014-09-23 Juniper Networks, Inc. Memory error protection using addressable dynamic ram data locations
CN108632168A (en) * 2018-04-16 2018-10-09 济南浪潮高新科技投资发展有限公司 A kind of asynchronous serial communication method for interchanging data based on FPGA

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
SDN交换控制一体机设计与实现;张满超;顾宪锋;;指挥信息系统与技术(01);第95-100页 *

Also Published As

Publication number Publication date
CN115514718A (en) 2022-12-23

Similar Documents

Publication Publication Date Title
CN115514718B (en) Data interaction method, control layer and equipment based on data transmission system
CN113765818A (en) Distributed current limiting method, device, equipment, storage medium and system
CN114697391B (en) Data processing method, device, equipment and storage medium
CN112929183B (en) Intelligent network card, message transmission method, device, equipment and storage medium
CN113656198A (en) Copying and pasting method and device from client to cloud mobile phone
CN113726881B (en) Communication connection establishment method, related device and computer readable storage medium
CN112714420B (en) Network access method and device of wifi hotspot providing equipment and electronic equipment
CN115567602A (en) CDN node back-to-source method, device and computer readable storage medium
CN113905040A (en) File transmission method, device, system, equipment and storage medium
CN114139605A (en) Distributed model training method, system, device and storage medium
CN113778645A (en) Task scheduling method, device and equipment based on edge calculation and storage medium
CN113641688A (en) Node updating method, related device and computer program product
CN115906982B (en) Distributed training method, gradient communication device and electronic equipment
CN114428646B (en) Data processing method and device, electronic equipment and storage medium
CN216623148U (en) Embedded server, intelligent network card, SOC module and electronic equipment
CN115664842B (en) Communication link setting method, device, equipment and storage medium
CN114793234B (en) Message processing method, device, equipment and storage medium
CN117440064A (en) Data transmission method, device, equipment and medium based on function code
CN117914819A (en) Chat robot menu display method, device and system
CN116028529A (en) Database data processing method, device, equipment and storage medium
CN114416040A (en) Page construction method, device, equipment and storage medium
CN116708362A (en) Communication address processing method, device, equipment and storage medium
CN114491674A (en) Log processing method, device and equipment based on block chain
CN116795451A (en) Client component processing and request processing methods, devices, equipment and media
CN116048519A (en) Front-end business embedding method and device, electronic equipment 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
GR01 Patent grant
GR01 Patent grant