CN109547357A - Transmission method, device, equipment and the medium of data information in a kind of storage system - Google Patents
Transmission method, device, equipment and the medium of data information in a kind of storage system Download PDFInfo
- Publication number
- CN109547357A CN109547357A CN201811463433.5A CN201811463433A CN109547357A CN 109547357 A CN109547357 A CN 109547357A CN 201811463433 A CN201811463433 A CN 201811463433A CN 109547357 A CN109547357 A CN 109547357A
- Authority
- CN
- China
- Prior art keywords
- data
- transmitted
- queue
- priority
- data queue
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2425—Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
- H04L47/2433—Allocation of priorities to traffic types
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/50—Queue scheduling
- H04L47/62—Queue scheduling characterised by scheduling criteria
- H04L47/625—Queue scheduling characterised by scheduling criteria for service slots or service orders
- H04L47/6275—Queue scheduling characterised by scheduling criteria for service slots or service orders based on priority
Abstract
This application discloses a kind of transmission methods of data information in storage system, it is that corresponding priority is arranged in data type by the requirement of real-time previously according to different data types, and the high data type of requirement of real-time corresponds to high priority, then the data queue of information for storing data corresponding with each priority is respectively set;When receiving data to be transmitted, the priority of data to be transmitted is determined according to the data type of data to be transmitted, and data to be transmitted is stored in corresponding data queue;Determine the target data queue of highest priority in the data queue there are data to be transmitted, the data to be transmitted in transmission objectives data queue.Therefore, the opposite timeliness for improving the high data information of transmission requirement of real-time of this method, and then improve the stability and reliability of storage system.Disclosed herein as well is transmitting device, equipment and the computer readable storage mediums of data information in a kind of storage system, all have above-mentioned beneficial effect.
Description
Technical field
The present invention relates to field of data transmission, in particular to the transmission method of data information in a kind of storage system, device,
Equipment and computer readable storage medium.
Background technique
Within the storage system, generally mutual for two using NTB (non-transparent bridge, non-transparent transmission bridge)
Communication channel is provided for the node of backup.The schematic diagram of transmitting data information, node between storage system interior joint as shown in Figure 1
Data flow is referred to as by the communication data that NTB is transmitted between Node1 and node Node2, data flow includes controlling between IO stream, node
Heartbeat message stream and other data flows between information flow and node processed.Carrying out service data manipulating, (operation volume, operation data are total
Enjoy) when, the data throughout of IO stream is big, and the bandwidth for occupying NTB is up to 97% of total bandwidth or more.Due to total band of NTB
Width is limited, therefore when IO flows and occupies biggish bandwidth, non-IO stream will be prevented not smooth from transmitting or transmitting, in turn
Cause to transmit data delay or transmission failure, reduces the stability and reliability of storage system.
Therefore, the timeliness for how improving the high data information of transmission requirement of real-time, improves the stability of storage system
And reliability, it is a technical problem that technical personnel in the field need to solve at present.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of transmission method of data information in storage system, Neng Gouti
The timeliness of the high data information of high-transmission requirement of real-time improves the stability and reliability of storage system;Of the invention is another
One purpose is to provide transmitting device, equipment and the computer readable storage medium of data information in a kind of storage system, all has
Above-mentioned beneficial effect.
In order to solve the above technical problems, the present invention provides a kind of transmission method of data information in storage system, comprising:
Requirement of real-time previously according to different data types is that corresponding priority is arranged in data type, and sets respectively
Set the data queue of information for storing data corresponding with each priority;Wherein, the high data type of requirement of real-time
Corresponding high priority;
When receiving data to be transmitted, the data to be transmitted is determined according to the data type of the data to be transmitted
Priority, and the data to be transmitted is stored in corresponding data queue;
The target data queue for determining highest priority in the data queue there are data to be transmitted, transmits the target
Data to be transmitted in data queue.
Preferably, the target data queue for determining highest priority in the data queue there are data to be transmitted,
The data to be transmitted transmitted in the target data queue specifically includes:
Determine the target data queue of highest priority in the data queue there are data to be transmitted;
The object transmission thread there are token is determined from multiple transmission threads;
The data to be transmitted in the target data queue is transmitted using the object transmission thread.
Preferably, in the target data team for determining highest priority in the data queue there are data to be transmitted
Column after transmitting the data to be transmitted in the target data queue, further comprise:
During transmitting the data to be transmitted in the target data queue using the object transmission thread,
When detecting in the data queue that priority is higher than the target data queue there are when new data to be transmitted, the mesh is interrupted
Mark transmission thread, and the target data queue is set by the data queue where new data to be transmitted;
The new data to be transmitted in the target data queue is transmitted using the object transmission thread.
Preferably, the data to be transmitted transmitted using the object transmission thread in the target data queue
It specifically includes:
Utilize the data to be transmitted in target data queue described in DMA transfer.
Preferably, the data to be transmitted using in target data queue described in DMA transfer specifically includes:
The data to be transmitted in the target data queue is divided into the data block of default size;
Utilize data block described in DMA transfer.
Preferably, the default size is 512 bytes between 32K.
Preferably, the data queue that information for storing data corresponding with each priority is respectively set it
Afterwards, further comprise:
For each data queue, corresponding maximum queue depth is set;
It is corresponding, after receiving the data to be transmitted, further comprise:
The data to be transmitted is judged according to the maximum queue depth of data queue corresponding with the data to be transmitted
Size of data whether be more than corresponding data queue residual capacity;
If so, storing the data to be transmitted into caching;
Otherwise, then the data to be transmitted information is set in the data queue.
In order to solve the above technical problems, the present invention also provides a kind of transmitting devices of data information in storage system, comprising:
Priority setup module is data type setting pair for the requirement of real-time previously according to different data types
The priority answered, and the data queue of information for storing data corresponding with each priority is respectively set;Wherein, in real time
The demanding data type of property corresponds to high priority;
Data acquisition module, for when receiving data to be transmitted, the data type according to the data to be transmitted to be true
The priority of the fixed data to be transmitted, and the data to be transmitted is stored in corresponding data queue;
Data transmission module, for determining the target data of highest priority in the data queue there are data to be transmitted
The data to be transmitted in the target data queue is transmitted in queue.
In order to solve the above technical problems, the present invention also provides a kind of transmission devices of data information in storage system, comprising:
Memory, for storing computer program;
Processor realizes the transmission of data information in any of the above-described kind of storage system when for executing the computer program
The step of method.
In order to solve the above technical problems, the present invention also provides a kind of computer readable storage medium, it is described computer-readable
Computer program is stored on storage medium, the computer program realizes any of the above-described kind of storage system when being executed by processor
The step of transmission method of middle data information.
The transmission method of data information in a kind of storage system provided by the invention, by previously according to different data class
The requirement of real-time of type is that data type is arranged corresponding priority, and the high data type of requirement of real-time correspond to it is high excellent
First grade, then the data queue of information for storing data corresponding with each priority is respectively set;When receiving data to be transmitted
When, the priority of data to be transmitted is determined according to the data type of data to be transmitted, and data to be transmitted is stored in corresponding
In data queue;Determine the target data queue of highest priority in the data queue there are data to be transmitted, transmission objectives
Data to be transmitted in data queue.Therefore, this method can be when receiving data to be transmitted, prioritised transmission requirement of real-time
High data information avoids in the prior art in the relatively low data information of transmission requirement of real-time, requirement of real-time
The case where higher data information transfer is delayed or can not transmit, so that opposite improve the high data letter of transmission requirement of real-time
The timeliness of breath, and then improve the stability and reliability of storage system.
In order to solve the above technical problems, the present invention also provides the transmitting device of data information in a kind of storage system, setting
Standby and computer readable storage medium all has above-mentioned beneficial effect.
Detailed description of the invention
It in order to illustrate the embodiments of the present invention more clearly or the technical solution of the prior art, below will be to embodiment or existing
Attached drawing needed in technical description is briefly described, it should be apparent that, the accompanying drawings in the following description is only this hair
Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root
Other attached drawings are obtained according to the attached drawing of offer.
The schematic diagram of Fig. 1 transmitting data information between storage system interior joint;
Fig. 2 is the flow chart of the transmission method of data information in a kind of storage system provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of the transmission method of data information in another storage system provided in an embodiment of the present invention;
Fig. 4 is the structure chart of the transmitting device of data information in a kind of storage system provided in an embodiment of the present invention;
Fig. 5 is the structure chart of the transmission device of data information in a kind of storage system provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The core of the embodiment of the present invention is to provide a kind of transmission method of data information in storage system, can be improved transmission
The timeliness of the high data information of requirement of real-time improves the stability and reliability of storage system;Another core of the invention
It is to provide transmitting device, equipment and the computer readable storage medium of data information in a kind of storage system, all having above-mentioned has
Beneficial effect.
It is right with reference to the accompanying drawings and detailed description in order to make those skilled in the art more fully understand the present invention program
The present invention is described in further detail.
Fig. 2 is the flow chart of the transmission method of data information in a kind of storage system provided in an embodiment of the present invention.Such as Fig. 2
Shown, the transmission method of data information includes: in storage system
S10: the requirement of real-time previously according to different data types is that corresponding priority is arranged in data type, and divides
Not She Zhi information for storing data corresponding with each priority data queue;Wherein, the high data type of requirement of real-time
Corresponding high priority.
It is understood that in the prior art, causing data information transfer not in time, and then it is reliable to cause data to be transmitted
Property it is low the main reason for be transmit requirement of real-time it is not high IO stream when, due to IO stream data volume it is big, can occupy
More NTB bandwidth, so as to cause some data for needing real-time Transmission, as controlled information between heartbeat message stream and node between node
Stream etc. cannot transmit in time.Therefore, present embodiment is by the requirement of real-time according to data type, for data type setting pair
The priority answered, enables the data information prioritised transmission that requirement of real-time is high, to improve the reliability of transmission data.
Specifically, being first that corresponding priority is arranged in data type according to the requirement of real-time of different data types.
It is understood that being then correspondingly arranged when the requirement of real-time of every kind of data type is all inconsistent for each data type
A kind of priority;When the requirement of real-time of numerous types of data is identical, then it is same for being correspondingly arranged numerous types of data
Priority.For example, the first priority can be set by non-IO stream, the second priority is set by IO stream, and first is preferential
Grade is higher than the second priority;Alternatively, can be finely divided to non-IO stream, it is preferential to set first for heartbeat message stream between node
Grade, is set as the second priority for information flow is controlled between node, sets third priority for IO stream, and the first priority is high
In the second priority, and it is higher than third priority.When existing other data types, also according to the real-time of data type
Property require to be that corresponding priority is arranged in the data type.
After determining the corresponding relationship of each data type and priority, it is arranged corresponding with each priority for storing
The data queue of data information, data queue namely PQ (Proiority Queueing) priority query.It is understood that
Due to each priority be it is corresponding with data type, data queue is correspondingly arranged according to priority type, therefore, data
The priority of queue is also corresponding with data type.
S20: when receiving data to be transmitted, the preferential of data to be transmitted is determined according to the data type of data to be transmitted
Grade, and data to be transmitted is stored in corresponding data queue.
It should be noted that be that the data to be transmitted that will be received is set to excellent with data to be transmitted for the purpose of this step
In the corresponding data queue of first grade.Specifically, being after receiving data to be transmitted, by the number for detecting data to be transmitted
It, will be to then according to the corresponding relationship of the corresponding relationship and data queue of data type and priority and priority according to type
Transmission data setting is stored in the data queue of corresponding priority.
For example, it is assumed that heartbeat message stream is the data of highest priority between node, and the first data queue is for putting
Set the data queue of the data information of highest priority.Therefore, in the data to be transmitted received between node heartbeat message stream
When, according to the corresponding relationship of pre-set data type and priority, heartbeat message stream is corresponding preferential between determining egress
Grade is highest priority, therefore the data to be transmitted is set to the first data of the data information for being used to place highest priority
In queue.
S30: the target data queue of highest priority in the data queue there are data to be transmitted, transmission objectives are determined
Data to be transmitted in data queue.
Specifically, if the data queue is highest priority there are data to be transmitted in only one data queue
Target data queue, therefore transmit the data to be transmitted in the target data queue;It is to be passed when all existing in multiple data queues
When transmission of data, according to the corresponding relationship of data queue and priority, more multiple there are the excellent of the data queue of data to be transmitted
First grade, and determine that the data queue of highest priority is target data queue, it is then to be passed in transmission objectives data queue
Transmission of data.
The transmission method of data information in a kind of storage system provided in an embodiment of the present invention, by previously according to different
The requirement of real-time of data type is that corresponding priority, and the data type correspondence that requirement of real-time is high is arranged in data type
High priority, then the data queue of information for storing data corresponding with each priority is respectively set;It is to be passed when receiving
When transmission of data, the priority of data to be transmitted is determined according to the data type of data to be transmitted, and data to be transmitted is stored in
In corresponding data queue;It determines the target data queue of highest priority in the data queue there are data to be transmitted, passes
Data to be transmitted in defeated target data queue.Therefore, this method can be when receiving data to be transmitted, and prioritised transmission is real-time
Property demanding data information, avoid in the prior art when transmitting the relatively low data information of requirement of real-time, in real time
Property more demanding data information transfer delay or the case where can not transmit, thus opposite, to improve transmission requirement of real-time high
The timeliness of data information, and then improve the stability and reliability of storage system.
On the basis of the above embodiments, the present embodiment has made further instruction and optimization to technical solution, specifically,
The target data queue of highest priority in the data queue there are data to be transmitted is determined, in transmission objectives data queue
Data to be transmitted specifically includes:
Determine the target data queue of highest priority in the data queue there are data to be transmitted;
The object transmission thread there are token is determined from multiple transmission threads;
Utilize the data to be transmitted in object transmission thread transmission objectives data queue.
The emphasis of the present embodiment is to realize the biography to the data to be transmitted in target data queue by token mechanism
It is defeated.The transmission thread that token mechanism refers to only possessing token being capable of target number to be transmitted in transmission objectives data queue
According to, thus avoid multiple transmission threads simultaneously the data to be transmitted in target data queue is transmitted, cause repeat transmit
Data information, and the case where lead to the waste of transfer resource.
Specifically, the target data of the present embodiment highest priority in determining the data queue there are data to be transmitted
After queue, it whether there is token in multiple transmission threads by detecting, and obtain the object transmission thread there are token, then
Using the target data to be transmitted in object transmission thread transmission objectives data queue, so that only one target passes always
Defeated thread transmits target data to be transmitted, avoids the repetition transmission of data information, avoids the waste of transfer resource,
Improve the validity of transmission data.
Fig. 3 is the schematic diagram of the transmission method of data information in another storage system provided in an embodiment of the present invention,
On the basis of above-described embodiment, the present embodiment has made further instruction and optimization to technical solution, specifically, transmission exist to
The target data to be transmitted in the data queue of data in the target data queue of highest priority is transmitted to specifically include:
It is preferential when detecting during utilizing the data to be transmitted in object transmission thread transmission objectives data queue
Grade is higher than in the data queue of target data queue there are when new data to be transmitted, and interrupt targets transmit thread, and will be new
Data queue where data to be transmitted is set as target data queue;
Utilize the new data to be transmitted in object transmission thread transmission objectives data queue.
Specifically, in this step, when being the data to be transmitted in utilization object transmission thread transmission objectives data queue,
Detection simultaneously currently whether there is new data to be transmitted, and the priority of the data queue where the new data to be transmitted
Whether the priority of the priority namely the new data to be transmitted that are whether higher than the target data queue currently transmitted is high
In the priority for the data to be transmitted transmitted, if so, the object transmission thread currently carried out data transmission is interrupted,
Then data queue target data queue being updated to where the high data queue of priority namely new data to be transmitted,
That is, updated target data queue is the data queue where new data to be transmitted, target transmission line is recycled
Data to be transmitted in journey transmission objectives data queue.
For example, it is assumed that being previously provided with tetra- kinds of priority of high, medium, normal and low and corresponding data team
Column, and there is data to be transmitted in each data queue.Data to be transmitted in high data queue is being transferred it
Afterwards, object transmission thread will transmit the data to be transmitted in medium data queue.But it is being transmitted in object transmission thread
During data to be transmitted in medium data queue, new data to be transmitted, and the new number to be transmitted are received
According to being stored in high data queue, at this point, the object transmission that the data to be transmitted in transmission medium data queue will be interrupted
Process, then utilize the new data to be transmitted in object transmission process transmission high data queue.
As it can be seen that method provided in this embodiment, is detected high preferential in the data to be transmitted of positive transmission low priority
Grade data to be transmitted in the case where, by interrupt transmission low priority data to be transmitted, then transmit high priority to
Transmit data, so as to more in time transmit high priority data to be transmitted, further increase transmission high priority to
Transmit the real-time of data.
On the basis of the above embodiments, the present embodiment has made further instruction and optimization to technical solution, specifically,
It is specifically included using the data to be transmitted in object transmission thread transmission objectives data queue:
Utilize the data to be transmitted in DMA transfer target data queue.
It should be noted that in specific implementation, driving generally by CPU, transmission channel transmission objectives data are utilized
Data to be transmitted in queue.But due to can also be occupied to the resource of CPU, to system in transmitting data information
Other operations bring adverse effect.It therefore, is using DMA come transmission objectives number as preferred embodiment in the present embodiment
According to the data to be transmitted in queue.It is understood that DMA (Direct Memory Access, direct memory access) is one
Kind fast moves the mode of data information, the data information in target data queue can be carried out fast transfer, not only improved
The efficiency of transmitting data information, and further reduced the delay of transmitting data information.
As preferred embodiment, specifically included using the data to be transmitted in DMA transfer target data queue:
Data to be transmitted in target data queue is divided into the data block of default size;
Utilize DMA transfer data block.
It is the data that the data to be transmitted being set in target data queue is divided into default size in the present embodiment
Block, the data block then respectively marked off using DMA transfer, so that data transmission is more orderly.
It should be noted that default size is 512 bytes between 32K.
That is, data block is generally divided into 512 bytes to 32K when data to be transmitted is divided into data block
Between size, that is, maximum data block be 32K, minimum data block be 512 bytes, if 512 words are not achieved in data block size
Section, then can by way of being filled to data block, so that data block reaches the minimum value of default size, i.e. 512K, with
Convenient for utilizing DMA transfer data block.
As it can be seen that in the present embodiment, by utilizing the data block for being divided into default size in DMA transfer target data queue
Data to be transmitted, the efficiency of transmitting data information can be further increased, to further increase the stability of storage system
And reliability.
On the basis of the above embodiments, the present embodiment has made further instruction and optimization to technical solution, specifically,
After the data queue that information for storing data corresponding with each priority is respectively set, further comprise:
For each data queue, corresponding maximum queue depth is set;
It is corresponding, after receiving data to be transmitted, further comprise:
The size of data of data to be transmitted is judged according to the maximum queue depth of data queue corresponding with data to be transmitted
Whether be more than corresponding data queue residual capacity;
If so, storing data to be transmitted into caching;
Otherwise, then data to be transmitted information is set in data queue.
Due to when transmitting the data to be transmitted in data queue, when transmitting each data information will consume certain
Between, therefore, if the data to be transmitted in data queue is excessive, it will lead to the data to be transmitted transmission time-out in data queue,
To influence to transmit the timeliness of data.In the present embodiment, be be respectively set it is corresponding with each priority for storing data
After the data queue of information, corresponding maximum queue depth is set for each data queue.Maximum queue depth namely data
Queue is at best able to the capacity of the data information of storage.It should be noted that the maximum queue depth of variant data queue
It can be different, and can in actual operation, it can be according to actual needs and the case where practical operation to most group
Column depth is adjusted.There are when remaining space in data queue, then the data to be transmitted stored into caching can be called out
It wakes up, and is stored in corresponding data queue.
It is corresponding, after receiving data to be transmitted, according to the most group of data queue corresponding with data to be transmitted
The data volume of stored data to be transmitted, judges that the size of data of data to be transmitted is in column depth and the current data queue
The no residual capacity more than data queue;If so, storing data to be transmitted into caching;Otherwise, then by data to be transmitted
Information is set in data queue.That is, when the data to be transmitted in some data queue reaches maximum queue depth,
Then data to be transmitted is stored into caching, to avoid the loss of data information.
The embodiment of the transmission method of data information in a kind of storage system provided by the invention has been carried out in detail above
Thin description, the present invention also provides the transmitting device of data information in a kind of storage system corresponding with this method, equipment and
Computer readable storage medium, due to embodiment and the method part of device, equipment and computer readable storage medium part
Embodiment mutually correlates, therefore the embodiment of device, equipment and computer readable storage medium part refers to method part
The description of embodiment wouldn't repeat here.
Fig. 4 is the structure chart of the transmitting device of data information in a kind of storage system provided in an embodiment of the present invention, such as Fig. 4
Shown, the transmitting device of data information includes: in a kind of storage system
Priority setup module 41 is data type setting for the requirement of real-time previously according to different data types
Corresponding priority, and the data queue of information for storing data corresponding with each priority is respectively set;Wherein, real-time
Demanding data type corresponds to high priority;
Data acquisition module 42, for being determined according to the data type of data to be transmitted when receiving data to be transmitted
The priority of data to be transmitted, and data to be transmitted is stored in corresponding data queue;
Data transmission module 43, for determining the number of targets of highest priority in the data queue there are data to be transmitted
Data to be transmitted according to queue, in transmission objectives data queue.
The transmitting device of data information in storage system provided in an embodiment of the present invention, by previously according to different data
The requirement of real-time of type is that data type is arranged corresponding priority, and the high data type of requirement of real-time correspond to it is high
Priority, then the data queue of information for storing data corresponding with each priority is respectively set;When receiving number to be transmitted
According to when, the priority of data to be transmitted is determined according to the data type of data to be transmitted, and data to be transmitted is stored in correspondence
Data queue in;It determines the target data queue of highest priority in the data queue there are data to be transmitted, transmits mesh
Mark the data to be transmitted in data queue.Therefore, the present apparatus can be when receiving data to be transmitted, and prioritised transmission real-time is wanted
High data information is sought, is avoided in the prior art in the relatively low data information of transmission requirement of real-time, real-time is wanted
The case where asking higher data information transfer to be delayed or can not transmit, so that opposite improve the high data of transmission requirement of real-time
The timeliness of information, and then improve the stability and reliability of storage system.
Fig. 5 is the structure chart of the transmission device of data information in a kind of storage system provided in an embodiment of the present invention, such as Fig. 5
Shown, the transmission device of data information includes: in a kind of storage system
Memory 51, for storing computer program;
Processor 52 is realized when for executing computer program such as the transmission method of data information in above-mentioned storage system
Step.
The transmission device of data information in storage system provided in an embodiment of the present invention has data in above-mentioned storage system
The beneficial effect of the transmission method of information.
In order to solve the above technical problems, the present invention also provides a kind of computer readable storage medium, computer-readable storage
It is stored with computer program on medium, realizes when computer program is executed by processor such as data information in above-mentioned storage system
The step of transmission method.
Computer readable storage medium provided in an embodiment of the present invention, the transmission with data information in above-mentioned storage system
The beneficial effect of method.
It above can to transmission method, device, equipment and the computer of data information in storage system provided by the present invention
Storage medium is read to be described in detail.Specific embodiment used herein carries out the principle of the present invention and embodiment
It illustrates, the above description of the embodiment is only used to help understand the method for the present invention and its core ideas.It should be pointed out that for this
For the those of ordinary skill of technical field, without departing from the principle of the present invention, the present invention can also be carried out several
Improvement and modification, these improvements and modifications also fall within the scope of protection of the claims of the present invention.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities
The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment
Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration
?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
Claims (10)
1. the transmission method of data information in a kind of storage system characterized by comprising
Requirement of real-time previously according to different data types is that corresponding priority is arranged in the data type, and sets respectively
Set the data queue of information for storing data corresponding with each priority;Wherein, the high data type of requirement of real-time
Corresponding high priority;
When receiving data to be transmitted, the preferential of the data to be transmitted is determined according to the data type of the data to be transmitted
Grade, and the data to be transmitted is stored in corresponding data queue;
The target data queue for determining highest priority in the data queue there are data to be transmitted, transmits the target data
Data to be transmitted in queue.
2. the method according to claim 1, wherein described determine in the data queue there are data to be transmitted
The target data queue of highest priority, the data to be transmitted transmitted in the target data queue specifically include:
Determine the target data queue of highest priority in the data queue there are data to be transmitted;
The object transmission thread there are token is determined from multiple transmission threads;
The data to be transmitted in the target data queue is transmitted using the object transmission thread.
3. according to the method described in claim 2, it is characterized in that, in the data queue determined there are data to be transmitted
The target data queue of middle highest priority further comprises after transmitting the data to be transmitted in the target data queue:
During transmitting the data to be transmitted in the target data queue using the object transmission thread, work as inspection
Measuring priority, there are when new data to be transmitted, interrupt the target to pass higher than in the data queue of the target data queue
Defeated thread, and the target data queue is set by the data queue where new data to be transmitted;
The new data to be transmitted in the target data queue is transmitted using the object transmission thread.
4. according to the method described in claim 2, it is characterized in that, described transmit the target using the object transmission thread
The data to be transmitted in data queue specifically includes:
Utilize the data to be transmitted in target data queue described in DMA transfer.
5. according to the method described in claim 4, it is characterized in that, described using in target data queue described in DMA transfer
The data to be transmitted specifically includes:
The data to be transmitted in the target data queue is divided into the data block of default size;
Utilize data block described in DMA transfer.
6. according to the method described in claim 5, it is characterized in that, the default size is 512 bytes between 32K.
7. method according to any one of claims 1 to 6, which is characterized in that it is described be respectively set with it is each described preferential
After the data queue of the corresponding information for storing data of grade, further comprise:
For each data queue, corresponding maximum queue depth is set;
It is corresponding, after receiving the data to be transmitted, further comprise:
The data of the data to be transmitted are judged according to the maximum queue depth of data queue corresponding with the data to be transmitted
Size whether be more than corresponding data queue residual capacity;
If so, storing the data to be transmitted into caching;
Otherwise, then the data to be transmitted information is set in the data queue.
8. the transmitting device of data information in a kind of storage system characterized by comprising
Priority setup module is that data type setting is corresponding for the requirement of real-time previously according to different data types
Priority, and the data queue of information for storing data corresponding with each priority is respectively set;Wherein, real-time is wanted
High data type is asked to correspond to high priority;
Data acquisition module, for determining institute according to the data type of the data to be transmitted when receiving data to be transmitted
The priority of data to be transmitted is stated, and the data to be transmitted is stored in corresponding data queue;
Data transmission module, for determining the target data team of highest priority in the data queue there are data to be transmitted
Column, transmit the data to be transmitted in the target data queue.
9. the transmission device of data information in a kind of storage system characterized by comprising
Memory, for storing computer program;
Processor realizes number in storage system as described in any one of claim 1 to 7 when for executing the computer program
It is believed that the step of transmission method of breath.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program, the computer program realize data in storage system as described in any one of claim 1 to 7 when being executed by processor
The step of transmission method of information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811463433.5A CN109547357A (en) | 2018-12-03 | 2018-12-03 | Transmission method, device, equipment and the medium of data information in a kind of storage system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811463433.5A CN109547357A (en) | 2018-12-03 | 2018-12-03 | Transmission method, device, equipment and the medium of data information in a kind of storage system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109547357A true CN109547357A (en) | 2019-03-29 |
Family
ID=65852616
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811463433.5A Pending CN109547357A (en) | 2018-12-03 | 2018-12-03 | Transmission method, device, equipment and the medium of data information in a kind of storage system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109547357A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110532205A (en) * | 2019-07-17 | 2019-12-03 | 浙江大华技术股份有限公司 | Data transmission method, device, computer equipment and computer readable storage medium |
CN111328148A (en) * | 2020-03-11 | 2020-06-23 | 展讯通信(上海)有限公司 | Data transmission method and device |
CN111510395A (en) * | 2020-06-16 | 2020-08-07 | 腾讯科技(深圳)有限公司 | Service message reporting method, device, equipment and medium |
CN111901252A (en) * | 2020-06-16 | 2020-11-06 | 北京瀚诺半导体科技有限公司 | Method and system for transmitting network management message |
CN111988240A (en) * | 2020-07-27 | 2020-11-24 | 北京北方华创微电子装备有限公司 | Data sending method and device, electronic equipment and storage medium |
CN112770356A (en) * | 2021-01-06 | 2021-05-07 | 维沃移动通信有限公司 | Data transmission method and electronic equipment |
CN112883041A (en) * | 2021-02-23 | 2021-06-01 | 北京百度网讯科技有限公司 | Data updating method and device, electronic equipment and storage medium |
CN114285804A (en) * | 2021-12-28 | 2022-04-05 | 北京和利时系统工程有限公司 | Method, device and medium for controlling data transmission |
CN114627580A (en) * | 2022-03-11 | 2022-06-14 | 青岛海信智慧生活科技股份有限公司 | Intelligent door lock, state reporting method thereof and home equipment linkage system |
CN114979023A (en) * | 2022-07-26 | 2022-08-30 | 浙江大华技术股份有限公司 | Data transmission method, system, electronic equipment and storage medium |
CN117278490A (en) * | 2023-10-18 | 2023-12-22 | 石家庄常宏建筑装饰工程有限公司 | Internet of things gateway data rapid transmission method and system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1341351A1 (en) * | 2002-02-27 | 2003-09-03 | Eastman Kodak Company | Method and system for client-based, adaptive, application-dependent, network traffic flow control |
CN1536820A (en) * | 2003-04-09 | 2004-10-13 | 华为技术有限公司 | Method for raising data transmission performance when the network is congested |
CN1735068A (en) * | 2004-08-11 | 2006-02-15 | 中兴通讯股份有限公司 | Media transmission flow data transmitting method |
CN103457875A (en) * | 2013-08-29 | 2013-12-18 | 上海永畅信息科技有限公司 | Message queue control method based on multi-priority in Internet of vehicles |
CN103678199A (en) * | 2012-09-26 | 2014-03-26 | 深圳市中兴微电子技术有限公司 | Data transmission method and data transmission equipment |
CN104598207A (en) * | 2013-11-01 | 2015-05-06 | 新昌县冠阳技术开发有限公司 | Digital signal processing system |
CN107733689A (en) * | 2017-09-15 | 2018-02-23 | 西南电子技术研究所(中国电子科技集团公司第十研究所) | Dynamic weighting polling dispatching strategy process based on priority |
-
2018
- 2018-12-03 CN CN201811463433.5A patent/CN109547357A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1341351A1 (en) * | 2002-02-27 | 2003-09-03 | Eastman Kodak Company | Method and system for client-based, adaptive, application-dependent, network traffic flow control |
CN1536820A (en) * | 2003-04-09 | 2004-10-13 | 华为技术有限公司 | Method for raising data transmission performance when the network is congested |
CN1735068A (en) * | 2004-08-11 | 2006-02-15 | 中兴通讯股份有限公司 | Media transmission flow data transmitting method |
CN103678199A (en) * | 2012-09-26 | 2014-03-26 | 深圳市中兴微电子技术有限公司 | Data transmission method and data transmission equipment |
CN103457875A (en) * | 2013-08-29 | 2013-12-18 | 上海永畅信息科技有限公司 | Message queue control method based on multi-priority in Internet of vehicles |
CN104598207A (en) * | 2013-11-01 | 2015-05-06 | 新昌县冠阳技术开发有限公司 | Digital signal processing system |
CN107733689A (en) * | 2017-09-15 | 2018-02-23 | 西南电子技术研究所(中国电子科技集团公司第十研究所) | Dynamic weighting polling dispatching strategy process based on priority |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110532205A (en) * | 2019-07-17 | 2019-12-03 | 浙江大华技术股份有限公司 | Data transmission method, device, computer equipment and computer readable storage medium |
CN111328148A (en) * | 2020-03-11 | 2020-06-23 | 展讯通信(上海)有限公司 | Data transmission method and device |
CN111510395A (en) * | 2020-06-16 | 2020-08-07 | 腾讯科技(深圳)有限公司 | Service message reporting method, device, equipment and medium |
CN111901252A (en) * | 2020-06-16 | 2020-11-06 | 北京瀚诺半导体科技有限公司 | Method and system for transmitting network management message |
CN111988240B (en) * | 2020-07-27 | 2024-03-29 | 北京北方华创微电子装备有限公司 | Data transmission method and device, electronic equipment and storage medium |
CN111988240A (en) * | 2020-07-27 | 2020-11-24 | 北京北方华创微电子装备有限公司 | Data sending method and device, electronic equipment and storage medium |
CN112770356A (en) * | 2021-01-06 | 2021-05-07 | 维沃移动通信有限公司 | Data transmission method and electronic equipment |
CN112883041A (en) * | 2021-02-23 | 2021-06-01 | 北京百度网讯科技有限公司 | Data updating method and device, electronic equipment and storage medium |
CN112883041B (en) * | 2021-02-23 | 2024-03-08 | 北京百度网讯科技有限公司 | Data updating method and device, electronic equipment and storage medium |
CN114285804A (en) * | 2021-12-28 | 2022-04-05 | 北京和利时系统工程有限公司 | Method, device and medium for controlling data transmission |
CN114627580A (en) * | 2022-03-11 | 2022-06-14 | 青岛海信智慧生活科技股份有限公司 | Intelligent door lock, state reporting method thereof and home equipment linkage system |
CN114627580B (en) * | 2022-03-11 | 2023-10-27 | 青岛海信智慧生活科技股份有限公司 | Intelligent door lock, state reporting method thereof and household equipment linkage system |
CN114979023A (en) * | 2022-07-26 | 2022-08-30 | 浙江大华技术股份有限公司 | Data transmission method, system, electronic equipment and storage medium |
CN117278490A (en) * | 2023-10-18 | 2023-12-22 | 石家庄常宏建筑装饰工程有限公司 | Internet of things gateway data rapid transmission method and system |
CN117278490B (en) * | 2023-10-18 | 2024-04-02 | 石家庄常宏建筑装饰工程有限公司 | Internet of things gateway data rapid transmission method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109547357A (en) | Transmission method, device, equipment and the medium of data information in a kind of storage system | |
EP3585095A1 (en) | Method for controlling quality of service, and device, smf, upf, ue, pcf and an therefor | |
US20140293794A1 (en) | Token bucket-based traffic limiting method and apparatus | |
EP3107251B1 (en) | Packet transmission method and device | |
CN110417650A (en) | Multilink data distribution method, device and electronic equipment | |
CN108471629B (en) | Method, equipment and system for controlling service quality in transmission network | |
US8310934B2 (en) | Method and device for controlling information channel flow | |
CN104378308A (en) | Method and device for detecting message sending rate | |
IL269497B2 (en) | Method for transmitting data, terminal device, and network device | |
US9667556B2 (en) | Adjusting connection validating control signals in response to changes in network traffic | |
CN108494788A (en) | Transmission method, data transmission device and the computer readable storage medium of data | |
CN105391651B (en) | Virtual optical network multi-layer resource convergence method and system | |
CN103797841A (en) | Admission control method and device | |
CN110401466A (en) | A kind of data transmission method, device and medium based on high speed signal switching chip | |
CN103634223B (en) | A kind of dynamic control transmission method based on network service flow and device | |
CN108738078A (en) | A kind of transmission side data subtraction unit, equipment and readable storage medium storing program for executing | |
US9641440B2 (en) | Method and apparatus for maintaining token | |
CN107911239A (en) | A kind of network card binding schema management method and device | |
CN109587806A (en) | A kind of scheduling request sending method and terminal device | |
CN116886576A (en) | Multi-control storage cluster communication timeout control method, device, equipment and medium | |
CN104468337B (en) | Method for message transmission and device, message management central apparatus and data center | |
CN114490458B (en) | Data transmission method, chip, server and storage medium | |
CN103118431A (en) | Resource allocation method and device | |
CN110377539A (en) | A kind of data transmission method, device and medium based on high speed signal switching chip | |
CN106657097B (en) | A kind of data transmission method for uplink and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190329 |