CN110519333B - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN110519333B
CN110519333B CN201910703027.XA CN201910703027A CN110519333B CN 110519333 B CN110519333 B CN 110519333B CN 201910703027 A CN201910703027 A CN 201910703027A CN 110519333 B CN110519333 B CN 110519333B
Authority
CN
China
Prior art keywords
data
transmitted
transmission
cache
cache region
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910703027.XA
Other languages
Chinese (zh)
Other versions
CN110519333A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201910703027.XA priority Critical patent/CN110519333B/en
Publication of CN110519333A publication Critical patent/CN110519333A/en
Application granted granted Critical
Publication of CN110519333B publication Critical patent/CN110519333B/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/90Buffering arrangements
    • H04L49/9063Intermediate storage in different physical parts of a node or terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a data transmission method, which comprises the following steps: acquiring data to be transmitted and an identifier thereof sent by a sender; the data to be transmitted with the same identification belong to the same transmission transaction; determining a cache region from a transmission channel, and caching the data to be transmitted in the cache region; the transmission channel comprises a plurality of cache regions, and data to be transmitted with different identifications are stored in different cache regions; transmitting the data to be transmitted cached in the cache region to a receiver; the transmission of the data to be transmitted with different identifications is independent; and sequentially transmitting the data to be transmitted with the same identification according to the sequence of the cache. Therefore, on the premise of ensuring the ordered transmission of the data to be transmitted of the same identifier, the transmission of different data is independent, so that the normal transmission of other data cannot be influenced when the transmission of certain data is abnormal.

Description

Data transmission method and device
Technical Field
The present invention relates to the field of data transmission technologies, and in particular, to a method and an apparatus for data transmission.
Background
With the increasing emphasis on server management, large server manufacturers have correspondingly enhanced the manageability features of servers on their respective hardware platforms, and have increasingly strengthened their functions. The generation of Intelligent Platform Management Interface (IPMI) well solves the problem of reliable server Management. The core of IPMI is a substrate Management Controller (BMC).
In the bus adopted by the BMC, all read data is transmitted through the read data channel, and all write data is transmitted through the write data channel, so that the simultaneous transmission of the read data and the write data is realized. Since the transmission protocol has a limit to the size of data transmitted each time, one transmission transaction is usually divided into a plurality of data for transmission. Therefore, data of a plurality of different transmission transactions can be transmitted simultaneously in one transmission channel, and data of another transmission transaction is not transmitted after all data of one transmission transaction is transmitted, wherein data of different transmission transactions can be distinguished by identification in the transmission process.
Since all data are transmitted through one transmission channel at will, when an abnormality occurs in the transmission of a certain transmission transaction in the transmission channel, for example, a receiver cannot normally receive data, the whole transmission channel is blocked, thereby affecting the transmission of data of other transmission transactions.
Disclosure of Invention
Based on the above deficiencies of the prior art, the present invention provides a method and an apparatus for data transmission, so as to solve the problem that when one data is abnormally transmitted, the whole transmission channel is blocked, and the transmission of other data is affected, because all data is transmitted through one transmission channel at will.
In order to achieve the purpose, the invention provides the following technical scheme:
one aspect of the present invention provides a method for data transmission, including:
acquiring data to be transmitted and an identifier thereof sent by a sender; the data to be transmitted with the same identification belong to the same transmission transaction;
determining a cache region from a transmission channel, and caching the data to be transmitted in the cache region; the transmission channel comprises a plurality of cache regions, and data to be transmitted with different identifications are stored in different cache regions;
transmitting the data to be transmitted cached in the cache region to a receiver; the transmission of the data to be transmitted with different identifications is independent; and sequentially transmitting the data to be transmitted with the same identification according to the sequence of the cache.
Optionally, in the above method for data transmission, the determining a buffer area from a transmission channel, and buffering the transmission to be transmitted in the buffer area includes:
determining a cache region corresponding to the identifier of the data to be transmitted from the transmission channel, and caching the data to be transmitted into the cache region;
each cache region is only used for caching the data to be transmitted of the corresponding identification.
Optionally, in the above method for data transmission, the transmitting the data to be transmitted, which is buffered in the buffer area, to a receiving side includes:
and sequentially transmitting the data to be transmitted with the same identification cached in the cache region to the receiver according to the caching sequence.
Optionally, in the above method for data transmission, the determining a buffer area from a transmission channel, and buffering the data to be transmitted in the buffer area includes:
determining any buffer area in an idle state from a plurality of buffer areas in the transmission channel;
caching the data to be transmitted into the cache region, and configuring an address identifier for the data to be transmitted according to the cache position of the data to be transmitted;
the data to be transmitted meeting the first condition is pointed to the address identification of the data to be transmitted; the first condition is that the cache sequence of the data to be transmitted is only prior to the data to be transmitted of the data to be transmitted, wherein the data to be transmitted has the same identification with the data to be transmitted.
Optionally, in the above method for data transmission, the transmitting the data to be transmitted, which is buffered in the buffer area, to a receiving side includes:
after the data to be transmitted meeting the first condition in the cache region is transmitted, the data to be transmitted is transmitted to a receiver according to the address identification pointed by the cache region meeting the first condition.
Another aspect of the present invention provides an apparatus for data transmission, including:
the device comprises an acquisition unit, a transmission unit and a transmission unit, wherein the acquisition unit is used for acquiring data to be transmitted and an identifier thereof sent by a sender; the data to be transmitted with the same identification belong to the same transmission transaction;
the determining unit is used for determining a cache region from a transmission channel and caching the data to be transmitted in the cache region; the transmission channel comprises a plurality of cache regions, and data to be transmitted with different identifications are stored in different cache regions;
the transmission unit is used for transmitting the data to be transmitted which is cached in the cache region to a receiver; the data to be transmitted with different identifications are transmitted independently; and sequentially transmitting the data to be transmitted with the same identification according to the sequence of the cache.
Optionally, in the above apparatus for data transmission, when the determining unit determines a buffer area from the transmission channel and buffers the data to be transmitted in the buffer area, the determining unit is configured to:
determining a cache region corresponding to the identifier of the data to be transmitted from the transmission channel, and caching the data to be transmitted into the cache region;
each cache region is only used for caching the data to be transmitted of the corresponding identification.
Optionally, in the above apparatus for data transmission, when the transmission unit executes the transmission of the to-be-transmitted data buffered in the buffer area to a receiver, the transmission unit is configured to:
and sequentially transmitting the data to be transmitted with the same identification cached in the cache region to the receiver according to the caching sequence.
Optionally, in the above apparatus for data transmission, when the determining unit determines a buffer area from the transmission channel and buffers the data to be transmitted in the buffer area, the determining unit is configured to:
determining any buffer area in an idle state from a plurality of buffer areas in the transmission channel;
caching the data to be transmitted into the cache region, and configuring an address identifier for the data to be transmitted according to the cache position of the data to be transmitted;
the data to be transmitted meeting the first condition is pointed to the address identification of the data to be transmitted; the first condition is that the cache sequence of the data to be transmitted is only prior to the data to be transmitted of the data to be transmitted, wherein the data to be transmitted has the same identification with the data to be transmitted.
Optionally, in the above apparatus for data transmission, when the transmission unit executes the transmission of the to-be-transmitted data buffered in the buffer area to a receiver, the transmission unit is configured to:
after the data to be transmitted meeting the first condition in the cache region is transmitted, the data to be transmitted is transmitted to a receiver according to the address identification pointed by the cache region meeting the first condition.
The data transmission method and the data transmission device provided by the invention have the advantages that the plurality of cache regions are arranged in the transmission channel, when the data to be transmitted sent by the sender is received, the data to be transmitted with different identifications are cached in different cache regions, and then the cached data to be transmitted are respectively transmitted to the receiver from the cache regions. And the data to be transmitted with different identifications are transmitted to the receiver from the cache region independently, and the data to be transmitted with the same identification are transmitted in sequence according to the sequence of the cache. Therefore, on the premise of ensuring the ordered transmission of the data to be transmitted of the same identifier, the transmission of different data is independent, so that the normal transmission of other data cannot be influenced when the transmission of certain data is abnormal.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flowchart of a data transmission method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method of data transmission according to another embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a manner of caching data to be transmitted according to another embodiment of the present invention;
fig. 4 is a flowchart illustrating a method of data transmission according to another embodiment of the present invention;
fig. 5 is a schematic diagram of another way of caching data to be transmitted according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a data transmission method according to another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In this application, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
An embodiment of the present invention provides a data transmission method, as shown in fig. 1, including:
s101, acquiring data to be transmitted and an identification thereof sent by a sender.
The data to be transmitted with the same identification belong to the same transmission transaction. It can also be understood that the data to be transmitted with the same identifier belong to the same large data or the same file. Therefore, in the embodiment of the present invention, the data to be transmitted is a small part of the large data of the transmission transaction.
Note that an Advanced eXtensible Interface (AXI) bus, which is generally used by a Baseboard Management Controller (BMC), transfers data. The AXI bus defines 5 independent transmission channels: the device comprises a read address channel, a read data channel, a write address channel, a write data channel and a write response channel. The data transmission device is used for transmitting the address of read data, the address of read data and write data, the address of write data and the write response signal respectively so as to quickly transmit a large amount of data. The addresses of the read data, the addresses of the write data and the data size of the write response signals are small, and the situation of congestion usually cannot occur, so the invention mainly aims at address transmission in a read data channel and a write data channel.
Due to the characteristics of the AXI bus protocol, the size of data transmitted each time cannot exceed 4KB, so that the data of one transmission transaction needs to be divided into a plurality of data to be transmitted under comparison for transmission. In order to accelerate the data transmission, all the data to be transmitted of a transmission transaction cannot be transmitted in one transmission channel, the data to be transmitted of the next transmission transaction is transmitted after all the data to be transmitted of the transmission transaction are transmitted, and the data to be transmitted of different transmission transactions are transmitted simultaneously. And marking different numbers to be transmitted through different identifications so as to distinguish data of different transmission transactions. Therefore, the identifier to be transmitted needs to be acquired while the data to be transmitted is acquired.
S102, determining a buffer area from the transmission channel, and buffering the data to be transmitted in the buffer area.
The transmission channel comprises a plurality of cache regions, and the data to be transmitted with different identifications are stored in different cache regions.
It should be noted that, in the AXI bus, data to be transmitted is not transmitted from a sender to a receiver through a corresponding transmission channel, and the data to be transmitted needs to pass through a plurality of buffer devices in the middle of transmission, and finally reaches the receiver. Therefore, it can be considered that a plurality of buffer devices are included in one transmission channel. However, in the same cache device, the cache area is not divided. In one cache device, data to be transmitted with the same identifier can be transmitted to the next cache device in order. Therefore, data to be transmitted for different identifications are relatively randomly buffered in the buffer device. Therefore, when the data to be transmitted of one identifier is abnormal in transmission, the normal transmission of the data to be transmitted of other identifiers is easily affected.
The embodiment of the invention divides different cache regions so as to orderly cache the data to be transmitted based on the identification of the data to be transmitted and independently transmit the data to be transmitted with different identifications. Specifically, when the sender sends a data to be transmitted, a buffer area is determined from the plurality of buffer areas. And the determined cache region also has a memory which can cache the data to be transmitted. And then, caching the data to be transmitted into the determined cache region, and transmitting the data to be transmitted to a receiver from the cache region.
S103, transmitting the data to be transmitted cached in the cache region to a receiver.
Wherein, the transmission of the data to be transmitted with different identifications is independent. And sequentially transmitting the data to be transmitted with the same identification according to the sequence of the cache.
Because a plurality of buffer areas are divided, the data to be transmitted with different identifications are buffered in different buffers, and the buffer areas are independent from each other, the data to be transmitted can be respectively transmitted to a receiver from the buffer areas, and the independent transmission of the data to be transmitted with different identifications is realized. However, for the data to be transmitted with the same identifier, the data must be transmitted in order, so that the receiver can receive the data to be transmitted in order, and the data to be transmitted with the same identifier can be correctly constructed into a finished large data.
Moreover, since the data to be transmitted can be transmitted from the buffer area to the receiving method only when it is determined that the receiving party can normally receive the data to be transmitted, if the receiving party sends an exception and cannot receive the data to be transmitted, the data to be transmitted only blocks the buffer area buffered by the receiving party, and other buffer areas are not affected. Therefore, when the transmission of certain data is abnormal, the normal transmission of other data can not be influenced.
In the data transmission method provided by the embodiment of the invention, the plurality of buffer areas are arranged in the transmission channel, when the data to be transmitted sent by the sender is received, the data to be transmitted with different identifications are buffered in different buffer areas, and then the buffered data to be transmitted are respectively transmitted to the receiver from the buffer areas. And the data to be transmitted with different identifications are transmitted to the receiver from the cache region independently, and the data to be transmitted with the same identification are transmitted in sequence according to the sequence of the cache. Therefore, on the premise of ensuring the ordered transmission of the data to be transmitted with the same identifier, the transmission of different data is independent. Therefore, when the transmission of certain data is abnormal, the normal transmission of other data can not be influenced.
Another embodiment of the present invention provides a method for data transmission, as shown in fig. 2, including:
s201, acquiring data to be transmitted and an identification thereof sent by a sender.
The data to be transmitted with the same identification belong to the same transmission transaction.
It should be noted that, the specific implementation process of this step may refer to step S101 in the foregoing method embodiment, and details are not described here.
S202, determining a cache region corresponding to the identifier of the data to be transmitted from the transmission channel, and caching the data to be transmitted into the cache region.
Each cache region is only used for caching the data to be transmitted of the corresponding identification.
That is, in the embodiment of the present invention, the buffer area is divided according to the identification of the data to be transmitted. Data to be transmitted with different identifications can only be cached in the cache region corresponding to the identification thereof.
Alternatively, as shown in fig. 3, one identifier corresponds to one cache region, and the cache region may cache a plurality of pieces of data to be transmitted corresponding to the identifiers at the same time. Of course, it can also be regarded that one identifier corresponds to a plurality of small cache regions, and the plurality of small cache regions are connected end to form a large cache region together. In addition, one cache region is only used for caching the data to be transmitted of one identifier, so that the ordered transmission of the data to be transmitted of the same identifier is more convenient to transmit.
Specifically, after receiving the data to be transmitted and the identifier thereof, a cache region corresponding to the identifier of the data to be transmitted is determined from a plurality of cache regions in the transmission channel, and the data to be transmitted is cached in the cache region. The transmission of the data to be transmitted with the same identification must be ordered, so that the receiving party can restore the data to be transmitted into a complete large data. Therefore, optionally, the data to be transmitted with the same identifier are sequentially cached in the cache region according to the caching sequence, so that the data to be transmitted with the same identifier can be sequentially transmitted to the receiving party. If the transmission channel does not include the cache region corresponding to the identifier, allocating a certain memory, creating the cache region corresponding to the identifier, and caching the data to be transmitted in the created region.
It should be noted that, when the memory of the cache region corresponding to a certain identifier is full, the cache region cannot cache the data to be transmitted of the identifier any more, so that the sender cannot send and process the data to be transmitted of the identifier, and therefore, the problem of blocking in the sending process is not caused.
And S203, sequentially transmitting the data to be transmitted with the same identification cached in the cache region to a receiver according to the caching sequence.
Since, in the transmission protocol of the AXI bus, the transmission of data to be transmitted of different identities may be out of order. But the data to be transmitted of the same identity must be ordered. Therefore, when the data to be transmitted with the same identifier is transmitted to the receiver from the buffer area, the data to be transmitted with the same identifier needs to be transmitted according to the sequence of the data to be transmitted buffer so as to ensure that the data to be transmitted with the same identifier is ordered. I.e. the data to be transmitted that is buffered earlier will also be transmitted from the buffer area to the receiver earlier. Specifically, the data to be transmitted of the same identifier are sequentially cached in the cache region according to the front-back sequence of the cache, so that the ordered transmission of the data to be transmitted of the same identifier is realized only by transmitting the data to be transmitted according to the sequence of the cache arrangement.
In the data transmission method provided by the embodiment of the invention, the buffer area corresponding to the identifier of the data to be transmitted is arranged in the transmission channel, when the data to be transmitted sent by the sender is received, the data to be transmitted is buffered in the buffer area corresponding to the identifier of the data to be transmitted, and then the buffered data to be transmitted is sequentially transmitted to the receiver from the buffer area. And the data to be transmitted with different identifications are transmitted to the receiver from the cache region independently, and the data to be transmitted with the same identification are transmitted in sequence according to the sequence of the cache. Therefore, on the premise of ensuring the ordered transmission of the data to be transmitted with the same identifier, the transmission of different data is independent. Therefore, when the transmission of certain data is abnormal, the normal transmission of other data can not be influenced.
An embodiment of the present invention provides a data transmission method, as shown in fig. 4, including:
s401, data to be transmitted and an identification thereof sent by a sender are obtained.
The data to be transmitted with the same identification belong to the same transmission transaction.
It should be noted that, the specific implementation process of this step may refer to step S101 in the foregoing method embodiment, and details are not described here.
S402, determining any buffer area in an idle state from the plurality of buffer areas in the transmission channel.
The idle state refers to that memory cache data still exists in the cache region or data is not cached. That is to say, in the embodiment of the present invention, the fixed cache region is no longer configured according to the identifier of the data to be transmitted. Each cache region can cache any identified data to be transmitted. Therefore, all cache regions can be effectively utilized, and waste of the memory is avoided.
S403, caching the data to be transmitted into a cache region, and configuring an address identifier for the data to be transmitted according to the cache position of the data to be transmitted.
Because, in the embodiment of the present invention, the data to be transmitted can be cached in any cache region. Therefore, different data to be cached with the same identifier can be cached in different cache regions. And in order to realize that the data to be transmitted with the same identification are transmitted according to the sequence of cache, so as to ensure the ordered transmission of the data to be transmitted with the same identification. Therefore, the embodiment of the invention uses the principle of linked list storage for reference. Caching the data to be transmitted into a cache region, configuring a unique address identifier for the data to be transmitted according to the specific address position of the cache of the data to be transmitted, and realizing the ordered transmission of the data to be transmitted with the same identifier based on the address identifier.
S404, pointing the data to be transmitted meeting the first condition to the address identification of the data to be transmitted.
The first condition is that the cache sequence is only prior to the data to be transmitted of the data to be transmitted, wherein the data to be transmitted has the same identification with the data to be transmitted.
Specifically, after the received data to be transmitted is cached in the cache area and the address identifier is configured. And pointing the data to be transmitted which is cached last time and has the same identification with the data to be transmitted to the address identification of the cached data to be transmitted. Specifically, a pointer may be configured for the data to be transmitted, and the pointer may be used to enable the data to be transmitted cached last time to point to the address identifier of the data to be transmitted cached this time. The data to be transmitted in the same cache will point to the address identifier of the data to be transmitted with the same identifier in the next cache. As shown in fig. 5, in the embodiment of the present invention, the to-be-transmitted data of the same identifier are connected to each other according to the sequence of the cache through the address identifier and the pointer.
S405, after the data to be transmitted meeting the first condition in the cache region is transmitted, the data to be transmitted is transmitted to a receiver according to the address identification pointed by the cache region meeting the first condition.
That is to say, for the transmission of the data to be transmitted with the same identifier, after the transmission of one data to be transmitted is finished, the address identifier pointed by the data to be transmitted which is finished to be transmitted is determined, and the corresponding data to be transmitted is transmitted. Namely, the data to be transmitted with the same identification is transmitted according to the address identification and the pointer direction of the data to be transmitted. Because the data to be transmitted of the same identifier are mutually connected according to the sequence of the cache, the ordered transmission of the data to be transmitted of the same identifier is realized through the transmission mode of the step.
According to the data transmission method provided by the embodiment of the invention, the plurality of cache regions are arranged in the transmission channel, when the data to be transmitted sent by the sender is received, the data to be transmitted with different identifications are cached in different cache regions, and the address identification is configured for the data to be transmitted. And sequentially transmitting the data to be transmitted with the same identifier to a receiver from the buffer area through the address identifier. And the data to be transmitted with different identifications are transmitted to the receiver from the cache region independently, so that the transmission of different data is independent on the premise of ensuring the ordered transmission of the data to be transmitted with the same identification, and the normal transmission of other data cannot be influenced when the transmission of certain data is abnormal.
An embodiment of the present invention provides a data transmission apparatus, as shown in fig. 6, including:
an obtaining unit 601, configured to obtain data to be transmitted and an identifier thereof sent by a sender.
And the data to be transmitted with the same identification belong to the same transmission transaction.
It should be noted that, the specific working process of the obtaining unit 601 may refer to step S101 in the foregoing method embodiment, and is not described herein again.
A determining unit 602, configured to determine a buffer area from a transmission channel, and buffer the data to be transmitted in the buffer area.
The transmission channel comprises a plurality of cache regions, and the data to be transmitted with different identifications are stored in different cache regions.
It should be noted that, the specific working process of the determining unit 602 may refer to step S102 in the foregoing method embodiment, and is not described herein again.
A transmitting unit 603, configured to transmit the to-be-transmitted data buffered in the buffer area to a receiving side.
The data to be transmitted with different identifications are transmitted independently. And sequentially transmitting the data to be transmitted with the same identification according to the sequence of the cache.
It should be noted that, the specific working process of the transmission unit 603 may refer to step S103 in the foregoing method embodiment, which is not described herein again.
According to the method and the device for data transmission provided by the invention, a plurality of buffer areas are arranged in a transmission channel, when a receiving unit 601 receives data to be transmitted sent by a sending party, a determining unit 602 buffers the data to be transmitted with different identifications into different buffer areas, and then a transmitting unit 603 respectively transmits the buffered data to be transmitted to a receiving party from the buffer areas. And the data to be transmitted with different identifications are transmitted to the receiver from the cache region independently, and the data to be transmitted with the same identification are transmitted in sequence according to the sequence of the cache. Therefore, on the premise of ensuring the ordered transmission of the data to be transmitted of the same identifier, the transmission of different data is independent, so that the normal transmission of other data cannot be influenced when the transmission of certain data is abnormal.
Optionally, in another embodiment of the present invention, when the determining unit determines a buffer area from the transmission channel and buffers the data to be transmitted in the buffer area, the determining unit is configured to:
and determining a cache region corresponding to the identifier of the data to be transmitted from the transmission channel, and caching the data to be transmitted into the cache region.
Each cache region is only used for caching the data to be transmitted of the corresponding identification.
It should be noted that, the specific working process of the determining unit when executing the above function may refer to step S202 in the above method embodiment, which is not described herein again.
Optionally, in another embodiment of the present invention, when the transmission unit executes to transmit the data to be transmitted, which is cached in the cache region, to the receiver, the transmission unit is configured to:
and sequentially transmitting the data to be transmitted with the same identification cached in the cache region to the receiver according to the caching sequence.
It should be noted that, the specific working process of the transmission unit when executing the above function may refer to step S203 in the above method embodiment, which is not described herein again.
Optionally, in another embodiment of the present invention, when the determining unit determines a buffer area from the transmission channel and buffers the data to be transmitted in the buffer area, the determining unit is configured to:
and determining any buffer area in an idle state from the plurality of buffer areas in the transmission channel.
Caching the data to be transmitted into the cache region, and configuring an address identifier for the data to be transmitted according to the cache position of the data to be transmitted.
And directing the data to be transmitted meeting the first condition to the address identification of the data to be transmitted.
The first condition is that the cache sequence of the data to be transmitted is only prior to the data to be transmitted of the data to be transmitted, wherein the data to be transmitted has the same identification with the data to be transmitted.
It should be noted that, for the specific working process of the unit in the embodiment of the present invention when executing the above function, reference may be made to steps S402 to S404 in the above method embodiment, which is not described herein again.
Optionally, in another embodiment of the present invention, when the transmission unit executes the transmission of the to-be-transmitted data cached in the cache region to the receiver, the transmission unit is configured to:
after the data to be transmitted meeting the first condition in the cache region is transmitted, the data to be transmitted is transmitted to a receiver according to the address identification pointed by the cache region meeting the first condition.
It should be noted that, the specific working process of the transmission unit when executing the above function may refer to step S405 in the above method embodiment, which is not described herein again.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. A method of data transmission, comprising:
acquiring data to be transmitted and an identifier thereof sent by a sender; the data to be transmitted with the same identification belong to the same transmission transaction;
determining a cache region from a transmission channel, and caching the data to be transmitted in the cache region; the transmission channel comprises a plurality of cache regions, and data to be transmitted with different identifications are stored in different cache regions;
transmitting the data to be transmitted cached in the cache region to a receiver; the different cache areas are independent from each other, the data to be transmitted with different identifications are transmitted to the receiver from the different cache areas respectively, and the data to be transmitted with different identifications are transmitted independently from each other; sequentially transmitting the data to be transmitted with the same identification according to the sequence of the cache;
the determining a buffer area from the transmission channel and buffering the data to be transmitted in the buffer area includes:
determining any buffer area in an idle state from a plurality of buffer areas in the transmission channel;
caching the data to be transmitted into the cache region, and configuring an address identifier for the data to be transmitted according to the cache position of the data to be transmitted;
directing the data to be transmitted meeting the first condition to the address identification of the data to be transmitted; the first condition is that the cache sequence of the data to be transmitted is only prior to the data to be transmitted of the data to be transmitted, wherein the data to be transmitted has the same identification with the data to be transmitted.
2. The method of claim 1, wherein the determining a buffer area from the transmission channel and buffering the data to be transmitted in the buffer area comprises:
determining a cache region corresponding to the identifier of the data to be transmitted from the transmission channel, and caching the data to be transmitted into the cache region;
each cache region is only used for caching the data to be transmitted of the corresponding identification.
3. The method of claim 2, wherein the transmitting the data to be transmitted buffered in the buffer area to a receiver comprises:
and sequentially transmitting the data to be transmitted with the same identification cached in the cache region to the receiver according to the caching sequence.
4. The method of claim 1, wherein the transmitting the data to be transmitted buffered in the buffer area to a receiver comprises:
and after the data to be transmitted meeting the first condition in the cache region is transmitted, transmitting the data to be transmitted to a receiver according to the address identifier pointed by the cache region meeting the first condition.
5. An apparatus for data transmission, comprising:
the device comprises an acquisition unit, a transmission unit and a transmission unit, wherein the acquisition unit is used for acquiring data to be transmitted and an identifier thereof sent by a sender; the data to be transmitted with the same identification belong to the same transmission transaction;
the determining unit is used for determining a cache region from a transmission channel and caching the data to be transmitted in the cache region; the transmission channel comprises a plurality of cache regions, and data to be transmitted with different identifications are stored in different cache regions;
the transmission unit is used for transmitting the data to be transmitted which is cached in the cache region to a receiver; the different cache areas are independent from each other, the data to be transmitted with different identifications are transmitted to the receiver from the different cache areas respectively, and the data to be transmitted with different identifications are transmitted independently from each other; sequentially transmitting the data to be transmitted with the same identification according to the sequence of the cache;
the determining unit is configured to, when determining a buffer area from the transmission channel and buffering the data to be transmitted in the buffer area,:
determining any buffer area in an idle state from a plurality of buffer areas in the transmission channel;
caching the data to be transmitted into the cache region, and configuring an address identifier for the data to be transmitted according to the cache position of the data to be transmitted;
directing the data to be transmitted meeting the first condition to the address identification of the data to be transmitted; the first condition is that the cache sequence of the data to be transmitted is only prior to the data to be transmitted of the data to be transmitted, wherein the data to be transmitted has the same identification with the data to be transmitted.
6. The apparatus according to claim 5, wherein the determining unit, when performing the determining of a buffer area from the transmission channel and buffering the data to be transmitted in the buffer area, is configured to:
determining a cache region corresponding to the identifier of the data to be transmitted from the transmission channel, and caching the data to be transmitted into the cache region;
each cache region is only used for caching the data to be transmitted of the corresponding identification.
7. The apparatus according to claim 6, wherein the transmission unit, when performing the transmission of the data to be transmitted buffered in the buffer area to a receiver, is configured to:
and sequentially transmitting the data to be transmitted with the same identification cached in the cache region to the receiver according to the caching sequence.
8. The apparatus according to claim 5, wherein the transmission unit, when performing the transmission of the data to be transmitted buffered in the buffer area to a receiver, is configured to:
and after the data to be transmitted meeting the first condition in the cache region is transmitted, transmitting the data to be transmitted to a receiver according to the address identifier pointed by the cache region meeting the first condition.
CN201910703027.XA 2019-07-31 2019-07-31 Data transmission method and device Active CN110519333B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910703027.XA CN110519333B (en) 2019-07-31 2019-07-31 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910703027.XA CN110519333B (en) 2019-07-31 2019-07-31 Data transmission method and device

Publications (2)

Publication Number Publication Date
CN110519333A CN110519333A (en) 2019-11-29
CN110519333B true CN110519333B (en) 2022-04-22

Family

ID=68623789

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910703027.XA Active CN110519333B (en) 2019-07-31 2019-07-31 Data transmission method and device

Country Status (1)

Country Link
CN (1) CN110519333B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114691392A (en) * 2022-03-28 2022-07-01 声呐天空资讯顾问有限公司 Information transmission method and device of terminal, storage medium and terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012120388A1 (en) * 2011-03-09 2012-09-13 International Business Machines Corporation Link layer reservation of switch queue capacity
CN103841432A (en) * 2012-11-26 2014-06-04 浙江大华技术股份有限公司 Transmission method and equipment of composite video data
CN107333296A (en) * 2017-06-22 2017-11-07 北京佰才邦技术有限公司 A kind of data transmission method, device and base station
CN108777603A (en) * 2018-04-28 2018-11-09 出门问问信息科技有限公司 A kind of data transmission method, device, storage medium and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10645009B2 (en) * 2016-03-18 2020-05-05 Futurewei Technologies, Inc. Method and apparatus for programmable buffers in mobile networks

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012120388A1 (en) * 2011-03-09 2012-09-13 International Business Machines Corporation Link layer reservation of switch queue capacity
CN103841432A (en) * 2012-11-26 2014-06-04 浙江大华技术股份有限公司 Transmission method and equipment of composite video data
CN107333296A (en) * 2017-06-22 2017-11-07 北京佰才邦技术有限公司 A kind of data transmission method, device and base station
CN108777603A (en) * 2018-04-28 2018-11-09 出门问问信息科技有限公司 A kind of data transmission method, device, storage medium and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种多通道动态均衡先进先出缓存机制;谢廷婷;《太赫兹科学与电子信息学报》;20140227;全文 *

Also Published As

Publication number Publication date
CN110519333A (en) 2019-11-29

Similar Documents

Publication Publication Date Title
CN101605108B (en) Method, system and apparatus for instant communication
CN102571996B (en) IP (Internet Protocol) address assignment method, IP address assignment device and network system
CN103647820B (en) Referee method and arbitration device for distributed cluster system
US9596186B2 (en) Multiple processes sharing a single infiniband connection
CN108989432B (en) User-mode file sending method, user-mode file receiving method and user-mode file receiving and sending device
CN111400777B (en) Network storage system, user authentication method, device and equipment
CN111683118B (en) Block chain-based consensus method and device, master node equipment and slave node equipment
CN109932966B (en) Real-time efficient data transmission method based on M-LVDS bus
CN105704256B (en) A kind of IP address management methods, devices and systems
CN110519333B (en) Data transmission method and device
CN114401250A (en) Address allocation method and device
EP2439881A1 (en) Cluster system and request message distribution method for processing multi-node transaction
US7853713B2 (en) Communication interface device and communication method
CN110445700B (en) Master-slave communication system and method and terminal equipment
JP2011229093A (en) Network apparatus
KR20170117326A (en) Direct memory access control device for at least one processing unit having a random access memory
CN105183373B (en) A kind of data processing method and the network equipment
CN115189977A (en) Broadcast transmission method, system and medium based on AXI protocol
CN112242979A (en) IP address prefix authentication method and equipment based on block chain system
CN109726564A (en) Information processing method and information processing system applied to encryption equipment
WO2019015268A1 (en) Network system and network configuration method thereof
CN115454896A (en) SMBUS-based SSD MCTP control message verification method and device, computer equipment and storage medium
CN109309671A (en) A kind of communications device data management method and device based on block chain
CN101902436A (en) Interplate communication method, device and system
CN110611678B (en) Method for identifying message and access network equipment

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