Hyperchannel multi-rate data acquisition system storage management method
Technical field
The present invention relates to the administrative skill of multichannel data acquisition system storer, specially refer to hyperchannel multi-rate data acquisition system storage management method.
Background technology
Usually, in data acquisition system (DAS), usually can relate to the data acquisition of a plurality of data channel, and the data rate of each data channel is inconsistent even differ greatly.For example, channelizing optical transport network CPOS(Channelized Packet over SONET/SDH) A and Abis optical interface being carried out signaling data when gathering, each high-level data link control procedure HDLC(High-Level Data Link Control in the acquisition system) data rate of passage just changes in the 8Kbps scope at 2.048Mbps.Demand for the data acquisition that adapts to the data with different rate passage, usually adopt the memory management pattern in cache memory section+main storage area, the physical medium that is the main storage area is double data rate random access memory DDR SDRAM, be characterized in being fit to read and write with long burst-length, namely a plurality of bytes of write-once are more efficient.And the purpose of cache memory section is set, and run up to a suitable length for the sporadic data fragment with each data channel exactly, dump to again among the DDR SDRAM in main storage area.Obviously, the distribution of cache memory section or management directly have influence on operational efficiency and the speed of data acquisition system (DAS).Prior art hyperchannel multi-rate data acquisition system storage management method adopts two kinds of way to manages to distribute or the management of cache district, a kind of mode is the equal-sized cache memory section of different rates passage mean allocation, do not consider the difference on each data channel speed, unified with flank speed passage buffer storage demand assignment cache memory space.Though this mode realizes that simply the cache memory space that needs is too big, the cost of realization is higher, and is low rate channel allocation and the onesize buffer area of two-forty passage, can cause unnecessary waste.Another kind of mode is according to the difference of each HDLC channel rate, the cache memory section of fixing that does not wait for its allocated size.The spatial cache that speed channel allocation faster is bigger, the less spatial cache of channel allocation that speed is less.Though this mode has been avoided the waste in cache memory section space, too complicated in assigning process and the management and running of cache memory section, and still need bigger cache memory section with the buffer memory demand of adaptive various speed.Obviously, it is big and have a waste that prior art hyperchannel multi-rate data acquisition system storage management method exists required cache memory section space, perhaps the assigning process of cache memory section and management and running problem such as complexity too.
Summary of the invention
In order to solve the big and existence waste in required cache memory section space that prior art hyperchannel multi-rate data acquisition system storage management method exists, the perhaps assigning process of cache memory section and management and running problem such as complexity too, the present invention proposes a kind of hyperchannel multi-rate data acquisition system storage management method.Hyperchannel multi-rate data acquisition system storage management method of the present invention may further comprise the steps:
S1, according to data rate order from low to high, in the mode of data rate multiplication all data channel that system receives are divided into the speed group, 1/8 the data channel that comprises in the minimum speed limit group that system receives; Wherein, speed group quantity
kWith coefficient
hThere is following relation:
In the formula,
hBe coefficient, its value is 2 integral number power;
kBe speed group quantity;
S2, set being numbered of speed group from low to high according to data rate
, the data channel quantity in the corresponding speed group is respectively
S3, for each data channel partition capacity be
Cache memory section,
Value be the bit number that the secondary burst in main storage area writes, and each data channel
Be worth all identical;
S4, setting-up time cycle, set the service time slot
, wherein, the service time slot
Duration for being that data in the high-speed buffer of C are written to the time required in the main storage area with capacity; Time cycle
With the service time slot
Between have a following relation:
In the formula,
NBe systematic parameter, its value is
(3)
Wherein,
Be respectively and be numbered
Data channel quantity in the speed group;
Simultaneously, also satisfy following formula:
(4)
In the formula,
Be the data channel capacity, its value is the bit number that a secondary burst in main storage area writes, and unit is
Be coefficient, its value is 2 integral number power;
For being numbered
The maximum rate of speed group, unit is
Be systematic parameter, its value is
Be the service time slot, unit is
Transform (4):
Convolution (3) and formula (5):
In the formula,
Be the data channel capacity, its value is the bit number that a secondary burst in main storage area writes, and unit is
Be coefficient, its value is 2 integral number power,
,
kBe speed group quantity;
For being numbered
The maximum rate of speed group, unit is
Be systematic parameter, its value is
Be the service time slot, unit is
Be respectively and be numbered
The quantity of data channel in the speed group;
S5, according to the data channel that begins with the following frequency to travel through in each speed group, described traversal refers to the data in this data channel cache memory section are written in the main storage area:
The speed group
, every
Individual time cycle traversal once;
The speed group
, every
Individual time cycle traversal once;
The speed group
, every
Individual time cycle traversal once;
……
The speed group
, every
Individual time cycle traversal once;
The speed group
, every
Individual time cycle traversal once;
In the formula,
Be coefficient, its value is 2 integral number power,
,
kBe speed group quantity,
Be the time cycle;
Wherein, the higher speed group of data rate has higher priority, and the speed group that data rate is lower has lower priority; The traversal cycle that each speed group begins according to the above-mentioned setting frequency is called this speed group intrinsic traversal cycle;
S6, each speed group begin to repeat traversal according to its intrinsic traversal cycle from higher prior stage speed group; In the ergodic process of lower priority speed group, if begun the intrinsic traversal cycle of a higher prior stage speed group, at this moment, lower priority speed group ergodic process will be interrupted, then begin to travel through higher prior stage speed group, after higher prior stage speed group traversal finishes, continue the ergodic process of interrupted lower priority speed group again;
S7, when end data is gathered, according to speed group priority orders, travel through all speed groups.
The useful technique effect of hyperchannel multi-rate data acquisition system storage management method of the present invention is the capacity that has significantly reduced the high-speed buffer storage space, simultaneously, improved data and write efficient from the high-speed buffer to the main storage area.
Description of drawings
Accompanying drawing 1 is hyperchannel multi-rate data acquisition system storage management method process flow diagram of the present invention.
Following the drawings and specific embodiments are described further hyperchannel multi-rate data acquisition system storage management method of the present invention.
Embodiment
Accompanying drawing 1 is hyperchannel multi-rate data acquisition system storage management method process flow diagram of the present invention.As seen from the figure, hyperchannel multi-rate data acquisition system storage management method of the present invention may further comprise the steps:
S1, according to data rate order from low to high, in the mode of data rate multiplication all data channel that system receives are divided into the speed group, 1/8 the data channel that comprises in the minimum speed limit group that system receives; Wherein, speed group quantity
kWith coefficient
hThere is following relation:
In the formula,
hBe coefficient, its value is 2 integral number power;
kBe speed group quantity;
S2, set being numbered of speed group from low to high according to data rate
, the data channel quantity in the corresponding speed group is respectively
S3, for each data channel partition capacity be
Cache memory section,
Value be the bit number that the secondary burst in main storage area writes, and each data channel
Be worth all identical;
S4, setting-up time cycle
, set the service time slot
, wherein, the service time slot
Duration for being that data in the high-speed buffer of C are written to the time required in the main storage area with capacity; Time cycle
With the service time slot
Between have a following relation:
In the formula,
NBe systematic parameter, its value is
(3)
Wherein,
Be respectively and be numbered
Data channel quantity in the speed group;
Simultaneously, also satisfy following formula:
In the formula,
Be the data channel capacity, its value is the bit number that a secondary burst in main storage area writes, and unit is
Be coefficient, its value is 2 integral number power;
For being numbered
The maximum rate of speed group, unit is
Be systematic parameter, its value is
Be the service time slot, unit is
Transform (4):
(5)
Convolution (3) and formula (5):
In the formula,
Be the data channel capacity, its value is the bit number that a secondary burst in main storage area writes, and unit is
Be coefficient, its value is 2 integral number power,
,
kBe speed group quantity;
For being numbered
The maximum rate of speed group, unit is
Be systematic parameter, its value is
Be the service time slot, unit is
Be respectively and be numbered
The quantity of data channel in the speed group;
S5, according to the data channel that begins with the following frequency to travel through in each speed group, described traversal refers to the data in this data channel cache memory section are written in the main storage area:
The speed group
, every
Individual time cycle traversal once;
The speed group
, every
Individual time cycle traversal once;
The speed group
, every
Individual time cycle traversal once;
……
The speed group
, every
Individual time cycle traversal once;
The speed group
, every
Individual time cycle traversal once;
In the formula,
Be coefficient, its value is 2 integral number power,
,
kBe speed group quantity,
Be the time cycle;
Wherein, the higher speed group of data rate has higher priority, and the speed group that data rate is lower has lower priority; The traversal cycle that each speed group begins according to the above-mentioned setting frequency is referred to as this speed group intrinsic traversal cycle;
S6, each speed group begin to repeat traversal according to its intrinsic traversal cycle from higher prior stage speed group; In the ergodic process of lower priority speed group, if begun the intrinsic traversal cycle of a higher prior stage speed group, at this moment, lower priority speed group ergodic process will be interrupted, then begin to travel through higher prior stage speed group, after higher prior stage speed group traversal finishes, continue the ergodic process of interrupted lower priority speed group again;
S7, when end data is gathered, according to speed group priority orders, travel through all speed groups.
Because hyperchannel multi-rate data acquisition system storage management method of the present invention is divided equally the complexion amount for each data channel and is
Cache memory section,
Value be the bit number that the secondary burst in main storage area writes, and each data channel
![Figure 661229DEST_PATH_IMAGE008](https://patentimages.storage.googleapis.com/3a/63/c2/043c984218f5e8/661229DEST_PATH_IMAGE008.png)
Be worth all identical.Therefore, significantly reduced the capacity of high-speed buffer storage space.Again because hyperchannel multi-rate data acquisition system storage management method of the present invention adopts the mode of data rate multiplication to divide the speed group, make the higher speed group of data rate can access more traversal chance, the speed group that data rate is lower obtains less traversal chance.Because it is higher that the higher passage of data rate writes the speed of data, otherwise, then lower; Make writing with reading speed of data mate mutually, guaranteeing under the situation that cache memory section does not overflow, the adjustment of science the relation between the reading speed of the writing speed of cache memory section size, data and data.And, also effectively improved data and from the high-speed buffer to the main storage area, write efficient.
Specific embodiment
With a specific embodiment hyperchannel multi-rate data acquisition system storage management method of the present invention is further described below.
Set the number of packet of speed group
kBe 5, and the data channel quantity of each speed group is n, then the speed group # is V
1, V
2, V
3.V
4, V
5, the data rate of speed group is from V
1To V
5Increase successively, namely priority increases successively:
The capacity of setting the cache memory section of each data channel distribution is C,
Value be the bit number that the secondary burst in main storage area writes;
Set the service time slot
ServiceBe t, the time that namely travels through each data channel is t;
Coefficient
h=2
k-1
=2
4=16,
Systematic parameter
=n+
N+
N+
N+
N=
n
First
FrameIn, traversal V
5Spend the nt time, traversal V
4Spend
The nt time;
Second
FrameIn, traversal V
5Spend the nt time, traversal V
4Spend
The nt time, traversal V
3Spend
The nt time;
The 3rd
FrameIn, traversal V
5Spend the nt time, traversal V
4Spend
The nt time;
The 4th
FrameIn, traversal V
5Spend the nt time, traversal V
4Spend
The nt time, traversal V
3Spend
The nt time, traversal V
2Spend
The nt time;
The 5th
FrameIn, traversal V
5Spend the nt time, traversal V
4Spend
The nt time;
The 6th
FrameIn, traversal V
5Spend the nt time, traversal V
4Spend
The nt time, traversal V
3Spend
The nt time;
The 7th
FrameIn, traversal V
5Spend the nt time, traversal V
4Spend
The nt time;
The 8th
FrameIn, traversal V
5Spend the nt time, traversal V
4Spend
The nt time, traversal V
3Spend
The nt time, traversal V
2Spend
The nt time, traversal V
1Spend
The nt time;
The the 9th to 15
FrameProcess and first to seven
FrameIdentical;
The 16
FrameIn, traversal V
5Spend the nt time, traversal V
4Spend
The nt time, traversal V
3Spend
The nt time, traversal V
2Spend
The nt time, traversal V
1Spend
The nt time.
By above-described embodiment as can be known, exist
hIndividual
FrameIn, all speed groups can travel through once at least.Because hyperchannel multi-rate data acquisition system storage management method of the present invention adopts the mode of data rate multiplication to divide the speed group, and, the traversal frequency of higher rate group is the height of low rate group relatively, taken into account the relation of speed buffering space size and the data read frequency, therefore, as long as traversal once in the time interval of setting, the data in the respective rate group cache memory section just can not overflowed, and its core concept is to change the space with the time.
In addition, when end data is gathered, need the data of all cache memory sections are write the main storage area, therefore, when receiving the data acquisition END instruction, hyperchannel multi-rate data acquisition system storage management method of the present invention travels through all speed groups according to speed group priority orders.
Obviously, the useful technique effect of hyperchannel multi-rate data acquisition system storage management method of the present invention is the capacity that has significantly reduced the high-speed buffer storage space, simultaneously, has improved data and write efficient from the high-speed buffer to the main storage area.