CN116846517A - Network data transmission method and device, storage medium and electronic equipment - Google Patents

Network data transmission method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN116846517A
CN116846517A CN202311112957.0A CN202311112957A CN116846517A CN 116846517 A CN116846517 A CN 116846517A CN 202311112957 A CN202311112957 A CN 202311112957A CN 116846517 A CN116846517 A CN 116846517A
Authority
CN
China
Prior art keywords
network data
data
port
network
receiving
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
CN202311112957.0A
Other languages
Chinese (zh)
Other versions
CN116846517B (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.)
Zhejiang Lab
Original Assignee
Zhejiang Lab
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 Zhejiang Lab filed Critical Zhejiang Lab
Priority to CN202311112957.0A priority Critical patent/CN116846517B/en
Publication of CN116846517A publication Critical patent/CN116846517A/en
Application granted granted Critical
Publication of CN116846517B publication Critical patent/CN116846517B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0036Systems modifying transmission characteristics according to link quality, e.g. power backoff arrangements specific to the receiver
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0015Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the adaptation strategy

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The specification discloses a transmission method, a device, a storage medium and an electronic device of network data, wherein after receiving first network data, data parameters of the first network data are determined, when the data transmission is matched with port configuration information of a port, the first network data are received, and when the transmission rate of the first network data is too fast and/or the data length of the first network data is too long, the first network data are stored in a storage unit, and after the transmission rate and the data length of the first network data are adjusted by the storage unit, the first network data are sent to the port. Therefore, the network data received by the port for receiving the first network data can not occupy the network resources of other ports of the device, and the data transmission efficiency is ensured.

Description

Network data transmission method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of data processing, and in particular, to a method and apparatus for transmitting network data, a storage medium, and an electronic device.
Background
With the development of computer technology and the need for deep integration of services, data transmission is increasingly used in people's lives.
One common data transmission scheme is port-based. Specifically, a plurality of ports for transmitting data may be provided in the device, and each port has its corresponding network resource. When the device needs to transmit network data, the network data can be transmitted through the network resources corresponding to the idle ports.
However, in the prior art, in the process of data transmission, a situation that a certain port of the device receives a large amount of network data in a short time may occur, so that the port occupies more network resources, occupies network resources of other ports, and further causes network congestion, so that the device cannot transmit the data in the short time.
Based on this, the present specification provides a transmission method of network data.
Disclosure of Invention
The present disclosure provides a method and apparatus for transmitting network data, a readable storage medium, and an electronic device, so as to partially solve the foregoing problems in the prior art.
The technical scheme adopted in the specification is as follows:
the present specification provides a method for transmitting network data, the method being applied to a port, the method comprising:
determining first network data to be received, and determining data parameters of the first network data, wherein the data parameters comprise at least one of transmission rate and data length;
Determining preset port configuration information, and judging whether the data parameters are matched with the port configuration information or not;
if yes, receiving the first network data;
if not, forwarding the first network data to a storage unit, and receiving target data sent by the storage unit, wherein the target data is generated by the storage unit after the first network data is adjusted according to the port configuration information.
Optionally, the port stores an address of each designated device in communication with the port;
the receiving of the first network data specifically includes:
determining an address of a target device that transmits the first network data;
judging whether the address of the target equipment exists in the addresses of the designated equipment;
if yes, receiving the first network data;
and if not, discarding the first network data.
Optionally, receiving the first network data specifically includes:
analyzing the first network data, and determining a first identifier carried in the first network data, wherein the first identifier is used for indicating whether the first network data is valid or not;
judging whether the first network data is valid data or not according to the first identifier;
If yes, receiving the first network data;
and if not, discarding the first network data.
Optionally, the network data transmitted by the port has a priority corresponding to the network data, and the network data with different priorities are transmitted on different channels, and the method further includes:
determining second network data to be transmitted, and determining a target priority of the second network data;
according to the target priority, adding the second network data into a message queue corresponding to a channel for transmitting the network data of the target priority;
and transmitting the second network data according to the transmission rate and the data length corresponding to the port configuration information.
Optionally, the port is connected to a calibration unit, and the calibration unit is used for measuring the transmission rate and the data length of the second network data;
the method further comprises the steps of:
receiving the measurement rate and the measurement length obtained by the measurement of the calibration unit;
judging whether the measurement speed and the measurement length are matched with the port configuration information or not;
if not, sending prompt information, wherein the prompt information is used for prompting that the port is abnormal.
Optionally, the port is connected with a setting unit, and the setting unit is used for determining port setting parameters input by a user;
The method further comprises the steps of:
receiving port setting parameters determined by the setting unit according to user operation;
and configuring the port according to the port setting parameters.
Optionally, the port is connected to a calibration unit, and the calibration unit is used for measuring the transmission rate and the data length of the first network data;
the method further comprises the steps of:
configuring the port according to the undetermined transmission rate and the undetermined data length in the port setting parameters;
when the data parameters of the first network data are not matched with the port setting parameters, the data parameters of the first network data are sent to the setting unit so as to prompt the user to adjust the undetermined transmission rate and the undetermined data length according to the data parameters of the first network data;
and receiving the port setting parameters sent by the setting unit and reconfiguring the port.
The present specification provides a transmission apparatus of network data, the apparatus being applied to a port, the apparatus comprising:
a parameter determining module, configured to determine first network data to be received, and determine a data parameter of the first network data, where the data parameter includes at least one of a transmission rate and a data length;
The matching module is used for determining preset port configuration information and judging whether the data parameters are matched with the port configuration information or not;
the first execution module is used for receiving the first network data if yes;
and the second execution module is used for forwarding the first network data to a storage unit if not, and receiving target data sent by the storage unit, wherein the target data is generated after the storage unit adjusts the first network data according to the port configuration information.
The present specification provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the above-described network data transmission method.
The present specification provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the above network data transmission method when executing the program.
The above-mentioned at least one technical scheme that this specification adopted can reach following beneficial effect:
after receiving the first network data, determining the data parameters of the first network data, and when the data transmission is matched with the port configuration information of the port, receiving the first network data, and when the transmission rate of the first network data is too fast and/or the data length of the first network data is too long, firstly storing the first network data into a storage unit, and after the transmission rate and the data length of the first network data are adjusted by the storage unit, sending the first network data to the port. Therefore, the network data received by the port for receiving the first network data can not occupy the network resources of other ports of the device, and the data transmission efficiency is ensured.
Drawings
The accompanying drawings, which are included to provide a further understanding of the specification, illustrate and explain the exemplary embodiments of the present specification and their description, are not intended to limit the specification unduly. In the drawings:
fig. 1 is a flow chart of a method for transmitting network data provided in the present specification;
fig. 2 is a schematic flow chart of a data transmission method provided in the present specification;
fig. 3 is a schematic flow chart of a data transmission method provided in the present specification;
FIG. 4 is a schematic diagram of a port provided in the present disclosure;
fig. 5 is a schematic structural diagram of a transmission device for network data provided in the present specification;
fig. 6 is a schematic view of the electronic device corresponding to fig. 1 provided in the present specification.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present specification more apparent, the technical solutions of the present specification will be clearly and completely described below with reference to specific embodiments of the present specification and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present specification. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are intended to be within the scope of the present disclosure.
The following describes in detail the technical solutions provided by the embodiments of the present specification with reference to the accompanying drawings.
Fig. 1 is a flow chart of a network data transmission method provided in the present specification, which specifically includes the following steps:
s100: first network data to be received is determined, and data parameters of the first network data are determined, wherein the data parameters comprise at least one of transmission rate and data length.
The embodiments of the present specification provide a transmission method of network data, and an execution process of the transmission method of network data may be executed by a port for transmitting data.
The method is different from the prior art that when data is transmitted, parameters such as the rate of network data to be transmitted are not controlled, so that under the condition that the equipment encounters capacity exhaustion attack, the attack behavior can be solved only by restarting the equipment and the like, and the equipment cannot transmit information before restarting.
The present disclosure provides a new method for transmitting network data, after receiving first network data, determining a data parameter of the first network data, and when the data transmission is matched with port configuration information of the port, receiving the first network data again, and when the transmission rate of the first network data is too fast and/or the data length of the first network data is too long, storing the first network data in a storage unit, and when the transmission rate and the data length of the first network data are adjusted by the storage unit, then transmitting the first network data to the port. Therefore, the network data received by the port for receiving the first network data can not occupy the network resources of other ports of the device, and the data transmission efficiency is ensured.
Based on the above brief description of the transmission method of the network data, it can be seen that the transmission method of the network data needs to determine whether to directly receive the first network data based on the data parameters of the first network data. Thus, the terminal may determine the first network data.
Specifically, as previously described, each port has its corresponding transmission channel. The data sender may then transmit the first network data to the port via the transmission channel.
The port may then determine the first network data to be received.
The port may then determine a data length of the first network data. Alternatively, the port may determine the transmission rate of the first network data.
Finally, the port may use at least one of the determined data length and the determined transmission rate as a data parameter of the first network data.
S102: and determining preset port configuration information, and judging whether the data parameters and the port configuration information are matched. If yes, go to step S104. If not, go to step S106.
In one or more embodiments provided herein, the port has its port configuration information preset. The port configuration information may be a maximum transmission rate of the port, or a maximum data length that the port can transmit. Therefore, after determining the data parameter of the first network data, it may be determined whether the data parameter of the first network data matches the port.
Specifically, if the port configuration information is the maximum transmission rate of the port, the port may determine whether the transmission rate of the first network data is not greater than the maximum transmission rate of the port. If so, the port may receive the first network data. If not, the port can store the first network data in advance.
If the port configuration information is the maximum length of network data that the port can transmit, the port can determine whether the data length of the first network data is not greater than the maximum length. If so, the port may receive the first network data. If not, the port can store the first network data in advance.
Of course, the port configuration information may also be a device identifier of a data sender of the network data, etc. The data type corresponding to the port configuration information can be set according to the requirement, and the specification does not limit the data type.
It should be noted that, the port may also match the data transmission rate and the data transmission rate, and if any of the judging results is negative, the port may determine that the matching result is not matching. In particular, how the matching result is determined may be set according to needs, and this specification does not limit this.
S104: the first network data is received.
In one or more embodiments provided herein, upon determining that the data parameters of the first network data and the port configuration information of the port match, the port may receive the first network data and process the first network data after the receiving.
S106: and forwarding the first network data to a storage unit, and receiving target data sent by the storage unit, wherein the target data is generated by the storage unit after the first network data is adjusted according to the port configuration information.
In one or more embodiments provided herein, when the data parameter of the first network data and the port configuration information of the port do not match, the port may store the first network data in the storage unit, and the storage unit adjusts the first network data and then resends the first network data to the port.
Specifically, the storage unit is used for storing network data with unmatched data parameters and port configuration information, so as to avoid the abnormal loss of key data caused by port blocking due to sudden data transmission. As shown in fig. 2.
Fig. 2 is a schematic flow chart of a data transmission method provided in the present disclosure. The data sender and the port are connected through a network, and under the condition that the data parameters are not matched with the port configuration information, the port can not receive the first network data, but forward the first network data to the storage unit.
The storage unit can receive the first network data, and adjust the transmission rate or the data length of the first network data according to the transmission rate and the data length corresponding to the port configuration information so as to obtain target data with data parameters matched with the port configuration information.
The memory unit may then transfer the target data to the port.
The port may receive the target data sent by the storage unit.
Based on the transmission method of the network data shown in fig. 1, after receiving the first network data, determining the data parameters of the first network data, and when the data transmission is matched with the port configuration information of the port, receiving the first network data, and when the transmission rate of the first network data is too fast and/or the data length of the first network data is too long, storing the first network data in a storage unit, and after the transmission rate and the data length of the first network data are adjusted by the storage unit, sending the first network data to the port. Therefore, the network data received by the port for receiving the first network data can not occupy the network resources of other ports of the device, and the data transmission efficiency is ensured.
In addition, in order to avoid the situation that the third party device initiates the network attack through the port, the port may also store an address of a designated device that can communicate with the port. When the first network data is received, whether the data sender of the first network data is trusted or not can be judged, and the first network data is received again under the condition of the credibility. The address may be a network address or a physical address.
Specifically, in the case of receiving the first network data, the port may determine an address of a target device that transmits the first network device.
Then, the port can judge whether the address of the target device exists in the addresses of the designated devices according to the address of the target device and the addresses corresponding to the designated devices stored in advance by the port. Wherein each designated device is a trusted device for that port. The port may determine that the target device that sent the first network data is a trusted device if present and an untrusted device if not present.
The port may then receive the first network data if it is determined that the target device is authentic.
And in the event that the target device is not trusted, the port may discard the first network data as untrusted data.
Further, for the data transmission process, in order to ensure data security in the data transmission process, the data transmitted between the two ports or the two devices may include valid data or invalid data. Therefore, after receiving the first network data, the port can also determine whether the first network data is valid, and when the first network data is valid, the port can receive the first network data again.
In particular, in general, it may be determined for a first identification that is predetermined in advance for two ports that transmit network data, as to how to distinguish whether the network data is valid. Thus, after receiving the first network data, the server may determine a first identifier carried in the first network data. The first identifier may be a first digit of the network data, or may be a result obtained by performing hash operation on the first network data, where the first identifier may be specifically determined how to be set as required, which is not limited in this specification.
The port can then determine whether the first network data is valid data according to the first identifier.
If so, the port may receive the first network data. If not, the port may discard the first network data.
Further, in this specification, the network data transmitted by the port may have a priority corresponding to the network data, so as to avoid the situation that the port is occupied by the data with higher priority for a long time, and the data with lower priority cannot be transmitted, and the port may be provided with channels corresponding to different priorities. That is, in this specification, network data of different priorities is transmitted on different channels, which correspond to different network resources. For example, the bandwidth resource corresponding to the network data with the priority of 1 is 1k-10kbit/s, and the bandwidth resource corresponding to the network data with the priority of 2 is 10k-100kbit/s.
In addition, when the port transmits data, the second network data can be transmitted in the channel corresponding to the corresponding priority based on the priority of the network data.
Specifically, the port may determine second network data to be transmitted and determine a target priority of the second network data.
The port may then determine a channel for transmitting the network data of the target priority and add the second network data to a message queue corresponding to the channel.
Finally, the port can transmit the second network data according to the transmission rate and the data length corresponding to the port configuration information based on the message queue. The first network data is the network data received by the interface, and the second network data is the network data which needs to be sent by the interface.
Further, in the process of transmitting data through the port, the port abnormality may occur, so that the data transmitted through the port does not conform to the port configuration information. Therefore, in the present application, the port may be further connected with a calibration unit to determine the data parameter of the network data transmitted by the port in real time, so as to avoid the occurrence of the above situation based on the data parameter.
Specifically, the port is connected to a calibration unit for measuring the transmission rate and the data length of the second network data. As shown in fig. 3.
Fig. 3 is a schematic flow chart of a data transmission method provided in the present disclosure. The data receiver is connected with the port through a network, and the port is connected with the calibration unit. The calibration unit may measure a data parameter of the second network data when the port transmits the second network data to the data receiver.
Then, the port can receive the measurement rate and the measurement length obtained after the calibration unit measures the second network data, and determine whether the measurement rate and the measurement length match the port configuration information.
If so, the port may continue to transmit the second network data.
If not, the port may send a prompt to the user. The prompt message is used for prompting that the port has an abnormality. The user may be a user transmitting data using the port.
In addition, in this specification, the configuration information of the port may also be set for a user who uses the port to transmit data.
Specifically, the port is connected to a setting unit, which can determine a port setting parameter according to an operation performed by a user.
The port may then receive the port setting parameters determined by the setting unit according to the user operation. Wherein the port setting parameter may include at least one of an identification of a designated device in communication with the port, a maximum transmission rate of the port, and a maximum length of network data that the port may transmit.
The port may be configured according to the received port setup parameters.
Further, in the present specification, when the data parameter of the first network data does not match the configuration information of the port, the user may also adjust the configuration information of the port based on the data parameter of the first network data.
Specifically, the port is connected to the setting unit. The port may then receive the pending transmission rate and the pending data length determined by the setting unit according to the user operation. And configuring the port according to the pending transmission rate and the pending data length, and determining pending configuration information of the port.
The port is also connected to a calibration unit for measuring the transmission rate and data length of the first network data.
The port may then receive the data parameters of the first network data determined by the calibration unit and determine whether the pending configuration information matches the data parameters of the first network data.
If so, the port may continue to receive the first network data.
If not, the port may send the determined data parameter of the first network data to the setting unit.
The setting unit can receive the data parameters of the first network data sent by the port, and prompt the user that the undetermined transmission rate and the undetermined data length are abnormal according to the data parameters, so that the user adjusts the undetermined transmission rate and the undetermined data length according to the data parameters of the first network data.
Then, the setting unit may re-determine the port setting information in response to an input operation of the user, and transmit the re-determined port setting information to the port.
The port reconfigures the port according to the re-received port setting information.
The port in the present specification may be a port for transmitting data by a physical device, and may be connected to each unit to achieve the functions of ensuring data transmission efficiency and avoiding network attacks as described above. The port may further include a transmission unit for transmitting data, and each unit may be built in to realize the functions of ensuring data transmission efficiency. As shown in fig. 4.
Fig. 4 is a schematic structural diagram of a port provided in the present specification. In the figure, the four units of the storage unit, the transmission unit, the setting unit and the calibration unit form a port. The port can receive the network data sent by the data sender and can also be used as the data sender to send the network data to the data receiver. The port may then receive the port setting parameters sent by the setting unit and configure the transmission unit according to the port setting parameters. The transmission unit may receive the first network data transmitted by the data transmitter, determine a data parameter of the first network data, and determine whether the data parameter and the configuration information of the transmission unit are matched. And if so, receiving the first network data. If not, the first network data is forwarded to the storage unit.
The storage unit receives the first network data, adjusts the data parameters of the first network data, obtains target data and sends the target data to the transmission unit.
When the transmission unit transmits the second network data as the data transmission direction, the calibration module may determine a measurement parameter of the second network data, and transmit the second network data based on a result of whether the measurement parameter matches configuration information of the transmission unit itself.
It should be noted that the connection relation between the above units is only illustrative, the calibration unit may also be used to measure the data parameter of the first network data, and the calibration unit may also be connected to the setting unit, etc. In particular, how the units in the port are connected may be set according to needs, which is not limited in this specification.
Based on the same thought, the present disclosure also provides a network data transmission device, as shown in fig. 5.
Fig. 5 is a schematic diagram of a network data transmission device provided in the present specification, where the device is applied to a port, and the method includes:
the parameter determining module 200 is configured to determine first network data to be received, and determine a data parameter of the first network data, where the data parameter includes at least one of a transmission rate and a data length.
And the matching module 202 is configured to determine preset port configuration information, and determine whether the data parameter and the port configuration information are matched.
A first execution module 204, configured to receive the first network data if yes;
and the second execution module 206 is configured to forward the first network data to a storage unit and receive target data sent by the storage unit, where the target data is generated by the storage unit after the first network data is adjusted according to the port configuration information.
Optionally, the first execution module 204 is configured to determine an address of a target device that sends the first network data, determine whether the address of the target device exists in the addresses of the designated devices, if so, receive the first network data, and if not, discard the first network data, where the addresses of the designated devices that communicate with the port are stored in the port.
Optionally, the first execution module 204 is configured to parse the first network data, determine a first identifier carried in the first network data, where the first identifier is used to indicate whether the first network data is valid, determine whether the first network data is valid according to the first identifier, if yes, receive the first network data, and if not, discard the first network data.
Optionally, the matching module 202 is configured to determine second network data to be sent, determine a target priority of the second network data, add the second network data to a message queue corresponding to a channel for transmitting the network data with the target priority according to the target priority, and transmit the second network data according to a transmission rate and a data length corresponding to the port configuration information. The network data transmitted by the port has the corresponding priority, and the network data with different priorities are transmitted on different channels.
Optionally, the matching module 202 is configured to receive the measurement rate and the measurement length measured by the calibration unit, where the port is connected to the calibration unit, and the calibration unit is configured to measure the transmission rate and the data length of the second network data, determine whether the measurement rate and the measurement length are matched with the port configuration information, and if not, send prompt information, where the prompt information is used to prompt that the port has an abnormality.
Optionally, the parameter determining module 200 is configured to receive the port setting parameter determined by the setting unit according to the user operation, where the port is connected to the setting unit, and the setting unit is configured to determine the port setting parameter input by the user, and configure the port according to the port setting parameter.
Optionally, the parameter determining module 200 is configured to configure the port according to the pending transmission rate and the pending data length in the port setting parameters, send the data parameter of the first network data to the setting unit when the data parameter of the first network data is not matched with the port setting parameter, prompt the user to adjust the pending transmission rate and the pending data length according to the data parameter of the first network data, receive the port setting parameter sent by the setting unit, and reconfigure the port, where the port is connected with a calibration unit, and the calibration unit is configured to measure the transmission rate and the data length of the first network data.
The present specification also provides a computer-readable storage medium storing a computer program operable to perform the above-described network data transmission method provided in fig. 1.
The present specification also provides a schematic structural diagram of the electronic device shown in fig. 6. At the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile storage, as illustrated in fig. 6, although other hardware required by other services may be included. The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to implement the network data transmission method described in fig. 1. Of course, other implementations, such as logic devices or combinations of hardware and software, are not excluded from the present description, that is, the execution subject of the following processing flows is not limited to each logic unit, but may be hardware or logic devices.
In the 90 s of the 20 th century, improvements to one technology could clearly be distinguished as improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (e.g., field programmable gate array (Field Programmable Gate Array, FPGA)) is an integrated circuit whose logic function is determined by the programming of the device by a user. A designer programs to "integrate" a digital system onto a PLD without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented by using "logic compiler" software, which is similar to the software compiler used in program development and writing, and the original code before the compiling is also written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), but not just one of the hdds, but a plurality of kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), lava, lola, myHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in one or more software and/or hardware elements when implemented in the present specification.
It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present description is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the specification. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable lesion detection device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable lesion detection device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable lesion detection device to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing is merely exemplary of the present disclosure and is not intended to limit the disclosure. Various modifications and alterations to this specification will become apparent to those skilled in the art. Any modifications, equivalent substitutions, improvements, or the like, which are within the spirit and principles of the present description, are intended to be included within the scope of the claims of the present description.

Claims (10)

1. A method for transmitting network data, wherein the method is applied to a port, the method comprising:
determining first network data to be received, and determining data parameters of the first network data, wherein the data parameters comprise at least one of transmission rate and data length;
determining preset port configuration information, and judging whether the data parameters are matched with the port configuration information or not;
if yes, receiving the first network data;
if not, forwarding the first network data to a storage unit, and receiving target data sent by the storage unit, wherein the target data is generated by the storage unit after the first network data is adjusted according to the port configuration information.
2. The method of claim 1, wherein the port has stored therein an address of each designated device in communication with the port;
the receiving of the first network data specifically includes:
determining an address of a target device that transmits the first network data;
judging whether the address of the target equipment exists in the addresses of the designated equipment;
if yes, receiving the first network data;
And if not, discarding the first network data.
3. The method of claim 1, wherein receiving the first network data specifically comprises:
analyzing the first network data, and determining a first identifier carried in the first network data, wherein the first identifier is used for indicating whether the first network data is valid or not;
judging whether the first network data is valid data or not according to the first identifier;
if yes, receiving the first network data;
and if not, discarding the first network data.
4. The method of claim 1, wherein the port transmits network data having its corresponding priority, different priority network data being transmitted on different channels, the method further comprising:
determining second network data to be transmitted, and determining a target priority of the second network data;
according to the target priority, adding the second network data into a message queue corresponding to a channel for transmitting the network data of the target priority;
and transmitting the second network data according to the transmission rate and the data length corresponding to the port configuration information.
5. The method of claim 4, wherein the port is connected to a calibration unit for measuring a transmission rate and a data length of the second network data;
the method further comprises the steps of:
receiving the measurement rate and the measurement length obtained by the measurement of the calibration unit;
judging whether the measurement speed and the measurement length are matched with the port configuration information or not;
if not, sending prompt information, wherein the prompt information is used for prompting that the port is abnormal.
6. The method of claim 1, wherein the port is connected to a setup unit for determining a port setup parameter entered by a user;
the method further comprises the steps of:
receiving port setting parameters determined by the setting unit according to user operation;
and configuring the port according to the port setting parameters.
7. The method of claim 6, wherein the port is connected to a calibration unit for measuring a transmission rate and a data length of the first network data;
the method further comprises the steps of:
configuring the port according to the undetermined transmission rate and undetermined data length in the port setting parameters;
When the data parameters of the first network data are not matched with the port setting parameters, the data parameters of the first network data are sent to the setting unit so as to prompt the user to adjust the undetermined transmission rate and the undetermined data length according to the data parameters of the first network data;
and receiving the port setting parameters sent by the setting unit and reconfiguring the port.
8. A transmission apparatus for network data, the apparatus being applied to a port, the apparatus comprising:
a parameter determining module, configured to determine first network data to be received, and determine a data parameter of the first network data, where the data parameter includes at least one of a transmission rate and a data length;
the matching module is used for determining preset port configuration information and judging whether the data parameters are matched with the port configuration information or not;
the first execution module is used for receiving the first network data if yes;
and the second execution module is used for forwarding the first network data to a storage unit if not, and receiving target data sent by the storage unit, wherein the target data is generated after the storage unit adjusts the first network data according to the port configuration information.
9. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the method of any of the preceding claims 1-7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of the preceding claims 1-7 when executing the program.
CN202311112957.0A 2023-08-31 2023-08-31 Network data transmission method and device, storage medium and electronic equipment Active CN116846517B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311112957.0A CN116846517B (en) 2023-08-31 2023-08-31 Network data transmission method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311112957.0A CN116846517B (en) 2023-08-31 2023-08-31 Network data transmission method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN116846517A true CN116846517A (en) 2023-10-03
CN116846517B CN116846517B (en) 2024-01-02

Family

ID=88165521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311112957.0A Active CN116846517B (en) 2023-08-31 2023-08-31 Network data transmission method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116846517B (en)

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009152753A1 (en) * 2008-06-20 2009-12-23 华为技术有限公司 Method, network node and network system for negotiating the port attribute parameters
US7639616B1 (en) * 2004-06-08 2009-12-29 Sun Microsystems, Inc. Adaptive cut-through algorithm
CN103986610A (en) * 2014-06-04 2014-08-13 珠海格力电器股份有限公司 Communication interface matching method, device and controller
US20160013978A1 (en) * 2014-07-09 2016-01-14 Cisco Technology, Inc. Method, system and logic for configuring a local link based on a remote link partner
US20160337187A1 (en) * 2015-05-13 2016-11-17 Dell Products L.P. Mechanisms to identify mismatches in layer 3 configuration in a network
CN108132896A (en) * 2018-01-17 2018-06-08 西安闻泰电子科技有限公司 Data transmission method and device
US20200076925A1 (en) * 2018-08-29 2020-03-05 Tianjin Chip Sea Innovation Technology Co. Ltd. Software-defined Interconnection Method and Apparatus for Heterogeneous Protocol Data
CN110880952A (en) * 2019-10-23 2020-03-13 浪潮思科网络科技有限公司 Switch interface rate self-adaptive tuning system, method, equipment and medium
US20200127885A1 (en) * 2018-10-17 2020-04-23 Juniper Networks, Inc. Node protection for bum traffic for multi-homed node failure
CN111357370A (en) * 2017-11-17 2020-06-30 华为技术有限公司 Data transmission method and device
CN111917786A (en) * 2020-08-06 2020-11-10 冯田旺 GRE tunnel-based data packet fragmentation method and data packet recombination method
CN113438097A (en) * 2021-05-21 2021-09-24 翱捷科技股份有限公司 Method and device for realizing network acceleration
WO2021212906A1 (en) * 2020-04-21 2021-10-28 珠海格力电器股份有限公司 Network port allocation method and apparatus, electronic device, and computer-usable medium
CN113783808A (en) * 2021-11-12 2021-12-10 北京国科天迅科技有限公司 Data forwarding method and device for adaptive switching of forwarding modes
WO2022068302A1 (en) * 2020-09-30 2022-04-07 华为技术有限公司 Chip, communication system and communication method
CN114448790A (en) * 2022-01-28 2022-05-06 苏州浪潮智能科技有限公司 Self-adaptive configuration system, method, network equipment and storage medium
CN114793209A (en) * 2021-01-07 2022-07-26 大唐移动通信设备有限公司 Data transmission method and device and SDN (software defined network) equipment
CN115525510A (en) * 2022-09-30 2022-12-27 苏州浪潮智能科技有限公司 Port state monitoring method and device, computer equipment and storage medium
WO2023026084A1 (en) * 2021-08-27 2023-03-02 Sensetime International Pte. Ltd. Data processing method, apparatus, system and device and computer-readable storage medium

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7639616B1 (en) * 2004-06-08 2009-12-29 Sun Microsystems, Inc. Adaptive cut-through algorithm
WO2009152753A1 (en) * 2008-06-20 2009-12-23 华为技术有限公司 Method, network node and network system for negotiating the port attribute parameters
CN103986610A (en) * 2014-06-04 2014-08-13 珠海格力电器股份有限公司 Communication interface matching method, device and controller
US20160013978A1 (en) * 2014-07-09 2016-01-14 Cisco Technology, Inc. Method, system and logic for configuring a local link based on a remote link partner
US20160337187A1 (en) * 2015-05-13 2016-11-17 Dell Products L.P. Mechanisms to identify mismatches in layer 3 configuration in a network
CN111357370A (en) * 2017-11-17 2020-06-30 华为技术有限公司 Data transmission method and device
CN108132896A (en) * 2018-01-17 2018-06-08 西安闻泰电子科技有限公司 Data transmission method and device
US20200076925A1 (en) * 2018-08-29 2020-03-05 Tianjin Chip Sea Innovation Technology Co. Ltd. Software-defined Interconnection Method and Apparatus for Heterogeneous Protocol Data
US20200127885A1 (en) * 2018-10-17 2020-04-23 Juniper Networks, Inc. Node protection for bum traffic for multi-homed node failure
CN110880952A (en) * 2019-10-23 2020-03-13 浪潮思科网络科技有限公司 Switch interface rate self-adaptive tuning system, method, equipment and medium
WO2021212906A1 (en) * 2020-04-21 2021-10-28 珠海格力电器股份有限公司 Network port allocation method and apparatus, electronic device, and computer-usable medium
CN111917786A (en) * 2020-08-06 2020-11-10 冯田旺 GRE tunnel-based data packet fragmentation method and data packet recombination method
WO2022068302A1 (en) * 2020-09-30 2022-04-07 华为技术有限公司 Chip, communication system and communication method
CN114793209A (en) * 2021-01-07 2022-07-26 大唐移动通信设备有限公司 Data transmission method and device and SDN (software defined network) equipment
CN113438097A (en) * 2021-05-21 2021-09-24 翱捷科技股份有限公司 Method and device for realizing network acceleration
WO2023026084A1 (en) * 2021-08-27 2023-03-02 Sensetime International Pte. Ltd. Data processing method, apparatus, system and device and computer-readable storage medium
CN113783808A (en) * 2021-11-12 2021-12-10 北京国科天迅科技有限公司 Data forwarding method and device for adaptive switching of forwarding modes
CN114448790A (en) * 2022-01-28 2022-05-06 苏州浪潮智能科技有限公司 Self-adaptive configuration system, method, network equipment and storage medium
CN115525510A (en) * 2022-09-30 2022-12-27 苏州浪潮智能科技有限公司 Port state monitoring method and device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李媛媛;胡靖宇;张树兵;杜建超;: "DAS-SPM通信接口模块的设计与实现", 空间电子技术, no. 06 *

Also Published As

Publication number Publication date
CN116846517B (en) 2024-01-02

Similar Documents

Publication Publication Date Title
CN106708607B (en) Congestion control method and device for message queue
KR20190117485A (en) Service data processing method and device, and Service processing method and device
CN116405554B (en) Network communication method and device, storage medium and electronic equipment
RU2727866C1 (en) Method and apparatus for generating protocol data unit (pdu) packet
CN108965400B (en) Information processing method, device, equipment and system
CN108023829B (en) Message processing method and device, storage medium and electronic equipment
WO2021164601A1 (en) Information transmission method and apparatus, related device, and storage medium
CN109246720B (en) Method and terminal for determining establishment cause
CN110519388B (en) Processing method and device for block chain request, electronic equipment and readable storage medium
CN116846517B (en) Network data transmission method and device, storage medium and electronic equipment
CN116151627B (en) Business wind control method and device, storage medium and electronic equipment
CN114006871A (en) Flow control method, flow control device, container and storage medium
JP7002657B2 (en) Methods and devices for determining transmission direction information
CN117097779B (en) Network communication method and device, storage medium and electronic equipment
CN117527637B (en) Method and device for detecting link failure, storage medium and electronic equipment
CN115955432B (en) Method and device for determining physical link and electronic equipment
WO2024092944A1 (en) Data processing method and apparatus, storage medium, and electronic device
CN115174587B (en) Data transmission system, method and device, computer readable storage medium and electronic equipment
US20240063976A1 (en) Indication method, reference signal sending method, communication node, and storage medium
CN112601244B (en) Air interface test method, device and equipment of wireless communication network
CN117715242B (en) Data transmission method, system, storage medium and electronic equipment
CN115904365B (en) Interface resource identification method, device, equipment and readable storage medium
CN112329046B (en) Secure communication method, apparatus, electronic device, and computer-readable storage medium
CN115134349B (en) Method, device, medium and equipment for executing transmission task
WO2023184260A1 (en) Signal transmission method/apparatus/device and storage medium

Legal Events

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