CN115514718A - 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
CN115514718A
CN115514718A CN202211237053.6A CN202211237053A CN115514718A CN 115514718 A CN115514718 A CN 115514718A CN 202211237053 A CN202211237053 A CN 202211237053A CN 115514718 A CN115514718 A CN 115514718A
Authority
CN
China
Prior art keywords
data
forwarding
write
instruction
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.)
Granted
Application number
CN202211237053.6A
Other languages
Chinese (zh)
Other versions
CN115514718B (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 write-in instruction to a control layer based on the received network data, so that the control layer sends the write-in instruction to the corresponding forwarding layer; 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; and when detecting that the data to be sent exists in the sending buffer area, the control layer sends a reading instruction to the corresponding forwarding layer so that the forwarding layer reads the data to be sent from the corresponding sending buffer area and sends the data to be sent. In this way, the service efficiency of a communication system constructed by a control layer and a 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 the forwarding layer are separate. The control layer is responsible for producing control instructions and issues 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, a data interaction method based on a data transmission system is provided, the system includes a control layer and a plurality of forwarding layers, wherein each forwarding layer corresponds to a receiving buffer and a sending buffer;
at least one forwarding layer receives network data and requests a write-in instruction to a control layer based on the received network data, so that the control layer sends the write-in instruction to the corresponding forwarding layer;
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;
and when detecting that the data to be sent exists in the sending buffer area, the control layer sends a reading instruction to the corresponding forwarding layer so that the forwarding layer reads the data to be sent from the corresponding sending buffer area and sends the data to be sent.
In some implementations of the first aspect, requesting a write instruction 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 requesting a corresponding write instruction from the control layer according to the data type.
In some implementations of the first aspect, writing the basic information of the received network data into the corresponding receiving buffer according to the writing instruction includes:
calling a function command corresponding to the write-in 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-in instruction;
and writing the basic information into the corresponding receiving buffer area based on the function command corresponding to the writing instruction.
In some implementations of the first aspect, 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 completely 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.
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 writes 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 while or after the basic information of the network data is written into the corresponding receiving buffer area by the forwarding layer;
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 exists in the sending buffer area, so that the forwarding layer reads the data to be sent from the corresponding sending buffer area and sends the data.
In some implementations of the second aspect, the write command request is determined by the forwarding layer based on the received network data, and a data type corresponding to the network data is determined 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, based on the write instruction request, a write instruction to a corresponding forwarding layer, so that the at least one forwarding layer invokes, according to a source IP, a destination IP, and a port of a data stream included in the write instruction, a function command corresponding to the write instruction from a preset function command set, and writes, based on the function command corresponding to the write instruction, basic information into a corresponding receiving buffer.
In some implementations of the second aspect, the control layer further includes a deletion module;
the detection module is also used for detecting the receiving buffer area and/or the sending buffer area after the basic information of the network data is written into the corresponding receiving buffer area by the forwarding layer;
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 completely read.
According to a third aspect of the invention, an electronic device is provided. The electronic device includes: a memory having a computer program stored thereon and a processor that, when executing the program, implements a data interaction method based on a data transmission system as described above in the first aspect, and in some implementations of the first aspect.
According to a fourth aspect of the present invention, there is provided a computer-readable storage medium, on which a computer program is stored, which program, when executed by a processor, implements the data interaction method based on a data transmission system as described above in the first aspect, and in some implementations of the first aspect.
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, 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 write-in instruction to a control layer based on the received network data, so that the control layer sends the write-in instruction to the corresponding forwarding layer; 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 while or after the forwarding layer writes the basic information of the network data into the corresponding receiving buffer area; and when detecting that the data to be sent exists in the sending buffer area, the control layer sends a reading instruction to the corresponding forwarding layer so that the forwarding layer reads the data to be sent from the corresponding sending buffer area and sends the data to be sent. Because the data transmission system comprises the control layer and the 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 to control the plurality of forwarding layers, and write-in data to the corresponding receiving buffer areas and read-out data from the sending buffer areas by the plurality of forwarding layers are completed, that is, the control layer in one communication node can serve a plurality of users based on the plurality of forwarding layers, thereby improving the service efficiency of the communication system constructed by the control layer and the forwarding layers.
Drawings
The above and other features, advantages and aspects of various embodiments of the present invention will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention:
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 data interaction diagram of a data transmission system according to an embodiment of the present invention;
fig. 3 is a schematic structural 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 an embodiment of the present invention.
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 some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without inventive efforts based on the embodiments of the present invention, shall fall within the scope of protection of the present invention.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
In network communications where the control plane and forwarding plane are separated. The control layer is responsible for producing control instructions and issues the control instructions to the forwarding layer to control data forwarding; the forwarding layer is responsible for forwarding data according to the instructions 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 that the actual service efficiency is lower 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 area and a sending buffer area; at least one forwarding layer receives network data and requests a write-in instruction to a control layer based on the received network data, so that the control layer sends the write-in instruction to the corresponding forwarding layer; 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; and when detecting that the data to be sent exists in the sending buffer area, the control layer sends a reading instruction to the corresponding forwarding layer so that the forwarding layer reads the data to be sent from the corresponding sending buffer area and sends the data. Because the data transmission system comprises the control layer and the 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 to control the plurality of forwarding layers, and write-in data to the corresponding receiving buffer areas and read-out data from the sending buffer areas by the plurality of forwarding layers are completed, that is, the control layer in one communication node can serve a plurality of users based on the plurality of forwarding layers, thereby improving the service efficiency of the communication system constructed by the control layer and the forwarding layers.
The technical solutions provided by the embodiments of the present invention are 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 multiple forwarding layers, where each forwarding layer corresponds to a receiving buffer and a sending buffer, and a method provided in an embodiment of the present invention is implemented based on the system shown in fig. 1.
It should be further noted that the forwarding layer is disposed between the forwarding layer and the application layer corresponding to 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 according to an embodiment of the present invention, and as shown in fig. 2, the data interaction method based on the data transmission system includes:
s201: at least one forwarding layer receives the network data and requests a write instruction to the control layer based on the received network data, so that the control layer sends the write instruction to the corresponding forwarding layer.
Specifically, in one embodiment, requesting a write command 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 requesting a corresponding write instruction from the control layer according to the data type.
The data type corresponding to the determined network data may be, for example, an encrypted data type, a data type for key exchange, a decrypted data type, and the like, and a corresponding write instruction may be requested from the control layer according to different data types, and correspondingly, for example, the data type corresponding to the encrypted data type, the write instruction corresponding to the data type for key exchange, and the write instruction corresponding to the decrypted data type.
S202: and at least one forwarding layer writes the basic information of the received network data into the corresponding receiving buffer according to the writing instruction.
In the writing process of S202, specifically, the functional function command corresponding to the writing instruction may be called from a preset functional function command set according to a source IP, a destination IP, and a port of a data stream included in the writing instruction; and writing basic information into the corresponding receiving buffer area based on a function command corresponding to the writing instruction, wherein the basic information specifically comprises a source IP, a destination IP, a port and the like of a data stream in the network data.
In order to detect and read the data in the transmission buffer, S203 and S204 may also be executed in the present invention to read the data in the transmission buffer.
S203: and 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.
S204: and when detecting that the data to be sent exists in the sending buffer area, the control layer sends a reading instruction to the corresponding forwarding layer.
S205: and at least one forwarding layer reads data to be sent from the corresponding sending buffer area based on the reading instruction and sends the data.
In addition, in order to clear the basic information of the data in the receiving buffer and/or the data in the sending buffer in time after the basic information of the data in the receiving buffer and/or the data in the sending buffer are completely read, 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; after detecting that the basic information of the data in the receiving buffer area and/or the data in the sending buffer area are completely 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 subsequent data to be written has enough space.
In an embodiment, the above-mentioned process of detecting the receiving buffer and/or the sending buffer by the control layer may also be executed periodically 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.
It can be seen from the above disclosure that the data interaction in the present invention decouples the synchronization relationship between the upper layer and the lower layer by means of the sending buffer and the receiving buffer, thereby implementing asynchronous and efficient processing.
In addition, it should be noted that, between the control layer and each forwarding layer, an independent process is used, so that isolation can be achieved, and a phenomenon that a process used for one communication connection fails to cause other communication connections to be abnormal 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 to control the plurality of forwarding layers, and write data into the corresponding receiving buffer areas and read data from the sending buffer areas by the plurality of forwarding layers are completed, that is, the control layer in one communication node can serve a plurality of users based on the plurality of forwarding layers, so that 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 above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are exemplary embodiments and that the acts and modules illustrated are not necessarily required to practice the invention.
The above is a description of method embodiments, and the embodiments of the present invention are further described below by way of apparatus embodiments.
Corresponding to the data interaction method based on the data transmission system shown in fig. 2, the invention also provides a control layer.
As shown in fig. 3, the control layer 300 includes:
a write instruction generating module 301, 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 writes basic information of the received network data into a corresponding receiving buffer according to the write instruction;
a detection module 302, configured to detect a sending buffer while or after a forwarding layer writes basic information of network data into a corresponding receiving buffer;
a read instruction sending module 303, configured to send a read instruction to a corresponding forwarding layer when the detection module detects that there is data to be sent in a sending buffer, so that the forwarding layer reads and sends the data to be sent from the corresponding sending buffer.
In one embodiment, the write command 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 an 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, 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, from a preset set of function commands, a function command corresponding to the write instruction according to a source IP, a destination IP, and a port of a data stream included in the write instruction, and writes 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 deletion module;
the detection module 302 is further configured to, after the forwarding layer writes the basic information of the network data into the corresponding receiving buffer, detect the receiving buffer and/or the sending buffer;
the deleting module is configured to delete the basic information of the data in the receiving buffer and/or the data in the sending buffer after the detecting module detects that the basic information of the data in the receiving buffer and/or the data in the sending buffer have been completely read.
In the control layer provided by the invention, one control layer can communicate with a plurality of forwarding layers to control the plurality of forwarding layers, and write data into the corresponding receiving buffer areas and read data from the sending buffer areas by the plurality of forwarding layers are completed, so that the control layer in one communication node can serve a plurality of users based on the plurality of 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 effect, and for brevity, no further description is provided herein.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the described module may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
The invention also provides an electronic device, a readable storage medium and a computer program product according to the embodiment of the invention.
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. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular telephones, smart phones, 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 which may perform various suitable actions and processes in accordance with a computer program stored in a Read Only Memory (ROM) 402 or a computer program loaded from a storage unit 408 into a Random Access Memory (RAM) 403. In the RAM403, various programs and data necessary for the operation of the device 400 can also be stored. The computing unit 401, ROM402, and RAM403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
A number of components in the device 400 are connected to the I/O interface 405, including: an input unit 406 such as a keyboard, a mouse, or the like; 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, or the like; 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.
Computing unit 401 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. 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 based on the data transmission system in fig. 2 may be implemented as a computer software program that is tangibly embodied in a machine-readable medium, such as 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 the RAM403 and executed by the 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 by any other suitable means (e.g., by means of firmware) to perform the data interaction method based on the data transmission system in fig. 2.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a 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 that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present invention may be written in any combination of one or more programming languages. These program codes 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 codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. 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. A 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 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 a pointing device (e.g., a mouse or a 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 can 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, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end 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 back-end, 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 clients and servers. A client and server are generally 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 with a combined blockchain.
It should be understood that various forms of the flows shown above, reordering, adding or deleting steps, may be used. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A data interaction method based on a 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 area and a sending buffer area;
at least one forwarding layer receives network data and requests a write-in instruction to the control layer based on the received network data, so that the control layer sends the write-in 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 while or after the forwarding layer writes the basic information of the network data into the corresponding receiving buffer area;
when detecting that data to be sent exists in a sending buffer area, the control layer sends a reading instruction to a corresponding forwarding layer so that the forwarding layer reads the data to be sent from the corresponding sending buffer area and sends the data to be sent;
the requesting a write command 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 requesting a corresponding write-in instruction from the control layer according to the data type.
2. The method according to claim 1, wherein the writing basic information of the received network data into a corresponding receiving buffer according to the writing instruction comprises:
calling a functional function command corresponding to the write-in instruction from a preset functional function command set according to a source IP, a destination IP and a port of a data stream included in the write-in instruction;
writing the basic information into a corresponding receiving buffer based on a function command corresponding to the write instruction.
3. The method of claim 1, wherein 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 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 completely read.
4. A control layer, comprising:
the write-in command generation module is used for receiving a write-in command request generated by at least one forwarding layer according to received network data, and sending a write-in command to the corresponding forwarding layer based on the write-in command request, so that the at least one forwarding layer writes the basic information of the received network data into the corresponding receiving buffer area according to the write-in command;
the detection module is used for detecting the sending buffer area while or after the basic information of the network data is written into the corresponding receiving buffer area by the forwarding layer;
a read instruction sending module, configured to send a read instruction to a corresponding forwarding layer when the detection module detects that there is data to be sent in a sending buffer, so that the forwarding layer reads and sends the data to be sent from the corresponding sending buffer;
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.
5. The control layer 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, so that the at least one forwarding layer collectively calls a function command corresponding to the write instruction from a preset function command according to a source IP, a destination IP, and a port of a data stream included in the write instruction, and writes the basic information into a corresponding receiving buffer based on the function command corresponding to the write instruction.
6. The control layer as claimed in claim 4, further comprising a deletion module;
the detection module 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;
the deleting module is configured to delete the basic information of the data in the receiving buffer and/or the data in the sending buffer after the detecting module detects that the basic information of the data in the receiving buffer and/or the data in the sending buffer have been read.
7. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
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 having stored thereon 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 true CN115514718A (en) 2022-12-23
CN115514718B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116546557A (en) * 2023-06-29 2023-08-04 阿里巴巴(中国)有限公司 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交换控制一体机设计与实现", 指挥信息系统与技术, no. 01, pages 95 - 100 *

Cited By (2)

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

Also Published As

Publication number Publication date
CN115514718B (en) 2023-06-16

Similar Documents

Publication Publication Date Title
CN113849312A (en) Data processing task allocation method and device, electronic equipment and storage medium
CN112650576A (en) Resource scheduling method, device, equipment, storage medium and computer program product
WO2023088313A1 (en) Input device virtualization method and apparatus, electronic device, and storage medium
CN114911598A (en) Task scheduling method, device, equipment and storage medium
CN115514718A (en) Data interaction method, control layer and equipment based on data transmission system
CN114742000A (en) SoC chip verification system, verification method and device based on FPGA cluster
CN114697391A (en) Data processing method, device, equipment and storage medium
CN113778644A (en) Task processing method, device, equipment and storage medium
CN112671892A (en) Data transmission method, data transmission device, electronic equipment, medium and computer program product
EP4142258A1 (en) Edge computing network, data transmission method and apparatus, device and storage medium
CN115567602A (en) CDN node back-to-source method, device and computer readable storage medium
CN114070889A (en) Configuration method, traffic forwarding method, device, storage medium, and program product
CN113905040A (en) File transmission method, device, system, equipment and storage medium
CN112714420A (en) Network access method and device of wifi hotspot providing equipment and electronic equipment
CN114416357A (en) Method and device for creating container group, electronic equipment and medium
CN109213815B (en) Method, device, server terminal and readable medium for controlling execution times
CN114726901B (en) Container access method, device, equipment and storage medium
CN114528444B (en) Graph data processing method and device, electronic equipment and storage medium
US20220191270A1 (en) Method of data interaction, data interaction apparatus, electronic device and non-transitory computer readable storage medium
CN113626165A (en) Method, device and system for managing packing queue
CN115080229A (en) Resource object management method and device
CN115801357A (en) Global exception handling method, device, equipment and storage medium
CN114491674A (en) Log processing method, device and equipment based on block chain
CN113050895A (en) Method, device, equipment and storage medium for online switching of disk types
CN117131002A (en) Service data migration method and device

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