CN102651674B - Data transmission method of reflective memory network - Google Patents

Data transmission method of reflective memory network Download PDF

Info

Publication number
CN102651674B
CN102651674B CN201210091440.3A CN201210091440A CN102651674B CN 102651674 B CN102651674 B CN 102651674B CN 201210091440 A CN201210091440 A CN 201210091440A CN 102651674 B CN102651674 B CN 102651674B
Authority
CN
China
Prior art keywords
data
node
storage area
recording areas
position offset
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
CN201210091440.3A
Other languages
Chinese (zh)
Other versions
CN102651674A (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.)
Beijing Runke General Technology Co Ltd
Original Assignee
Beijing Jingwei Hirain Tech 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 Beijing Jingwei Hirain Tech Co Ltd filed Critical Beijing Jingwei Hirain Tech Co Ltd
Priority to CN201210091440.3A priority Critical patent/CN102651674B/en
Publication of CN102651674A publication Critical patent/CN102651674A/en
Application granted granted Critical
Publication of CN102651674B publication Critical patent/CN102651674B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a data transmission method of a reflective memory network. The method comprises the following steps of: partitioning the onboard memory of a reflective memory card into a global variable area and a node data area; partitioning a data storage area for each node; partitioning a corresponding data position recording area for each node data storage area; when a node writes data into the onboard memory, writing the data into existing data in the data storage area corresponding to the node and updating the data to be position offset according to the data storage position; and when the node reads data, firstly reading the current position offset of a target node, and if the current position offset is different from the position offset of the target node, updating the position offset and reading the data of the target node. In the embodiment of the invention, the node can avoid covering unread data while writing data into the onboard memory, and can judge whether the data read from the target node are repeating data or not, so that data confusion in the data transmission process can be avoided, and further the data transmission efficiency can be improved.

Description

A kind of data transmission method of reflective memory network
Technical field
The present invention relates to field of data transmission, particularly a kind of data transmission method of reflective memory network.
Background technology
In the transfer of data of fiber optic network, Reflective memory network obtains to be applied more and more widely; Reflective memory network refers to that each node in the network be communicated with by optical fiber is provided with reflective memory card, each reflective memory card includes twoport internal memory, and each node all can the reflective memory card in a network in each node realize synchronous at the write operation of the reflective memory card of self.As long as thus make each node access the reflective memory card of self when accesses network data.Concrete, each reflective memory card includes data storage areas corresponding to each node in network, and each data storage areas is for storing the network data with its respective nodes.Each node can pass through to read the data in corresponding data storage areas, to realize the data that the reception node corresponding to data storage areas sends.
Existing Reflective memory network is in data transmission procedure, and the mechanism of reading and writing data of each node is that the plate of handled by itself reflective memory card carries internal memory, is controlled the access time of each node by sequencing control.Concrete, after data tablet is carried the relevant position of internal memory by a certain node, other nodes read data; Owing to there is no good handshake mechanism between node, so a certain node can be made to carry after internal memory writes data at its plate, cannot learn whether other nodes are read away the data of write, and other nodes are when reading data, also cannot learn whether the data that will read are latest data.Like this, when having data transfer demands among multiple nodes, just likely obliterated data, thus easily cause transfer of data chaotic, cause efficiency of transmission to reduce.
Summary of the invention
In view of this, embodiments provide a kind of data transmission method of reflective memory network, by being provided with Data Position recording areas, thus node can be made identification whether to be new data for reading data, thus the data corruption avoided in data transmission procedure, thus improve the efficiency of transmission of data.
Embodiments provide a kind of data transmission method of reflective memory network, comprising:
The plate of reflective memory card is carried internal memory and be divided into global variable district and node data district;
Be that each node division is for storing the data storage area of data in described node data district; Be that each node data memory block divides corresponding Data Position recording areas in described global variable district; Described Data Position recording areas is used for the information data of record data in described data storage area, comprising position offset;
Node to plate carry internal memory write new data time, after existing data in data storage area corresponding with described node for the write of described new data, and the memory location of described new data is updated to position offset; After data are filled with in data storage area, cover legacy data to store new data from data storage area initial position;
When node reads destination node data in reflective memory card, recording areas, preset data load position in the local internal memory of node, recording areas, described digital independent position is for recording the position offset of destination node data in Data Position recording areas read;
Read the current location side-play amount of Data Position recording areas record in destination node, the position offset of described destination node current location side-play amount recorded with recording areas, described digital independent position compares, when twice position offset value is different, upgrade the position offset of recording areas, described digital independent position by current location side-play amount, and read the data of destination node.
Preferably, in embodiments of the present invention, described Data Position recording areas is greater than described data storage area.
Preferably, in embodiments of the present invention, described node is read and write data in the internal memory of reflective memory card by driving function.
Preferably, in embodiments of the present invention, to carry the size of internal memory the same for the plate of described each node.
Preferably, in embodiments of the present invention, described information data also comprises the original position of described data storage area.
Can being found out by technique scheme, in embodiments of the present invention, being divided into global variable district and node data district by plate being carried internal memory; And be that each node data memory block divides corresponding Data Position recording areas in global variable district, carry out the position offset of record data in described data storage area; Thus make node can avoid covering the data be not read out when plate carries internal memory write data, and, can repeating data be determined whether when reading the data of destination node, thus avoid the confusion of data in data transmission procedure, and then improve the efficiency of transmission of data.
Accompanying drawing explanation
Fig. 1 carries the division schematic diagram of internal memory for plate described in the embodiment of the present invention;
The structure that Fig. 2 is the district of global variable described in the embodiment of the present invention divides schematic diagram.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Can avoid covering the data be not read out when plate carries internal memory write data to make node, and, repeating data can be determined whether when reading the data of destination node, thus avoid the confusion of data in data transmission procedure, and then improve the efficiency of transmission of data, embodiments provide a kind of data transmission method of reflective memory network, comprising:
S11, the plate of reflective memory card is carried internal memory be divided into global variable district and node data district;
In embodiments of the present invention, information data in internal memory to be carried, comprising position offset for storing data in each node in global variable district at plate.Node data district needs the data of read-write for storing each node.
S12, be that each node division is for storing the data storage area of data in described node data district; Be that each node data memory block divides corresponding Data Position recording areas in described global variable district; Described Data Position recording areas is used for the information data of record data in described data storage area, comprising position offset;
As shown in Figure 1, because plate carries each node that internal memory needs in map network, so node data district needs for each node division data storage area; Corresponding, also need the data storage area for each node to divide corresponding Data Position recording areas.
Concrete, when the node in network is n, can be numbered each node, then, node data zoning is divided into n data storage area, each node and each data storage area one_to_one corresponding, preferably, each data storage area can be divided into equal and opposite in direction.
As shown in Figure 2, in order to record each node data storage area in the memory location of data, also need the Data Position recording areas of the data storage area division correspondence in global variable district being each node, that is, for global variable district includes multiple Data Position recording areas, each Data Position recording areas is a corresponding node and a data storage area respectively.In actual applications, the information data in Data Position recording areas specifically can comprise original position field, the position offset field and extended field etc. of corresponding data memory block.Original position field is used for the position offset of the original position of record data memory block.
S13, node to plate carry internal memory write new data time, after data in data storage area corresponding with described node for the write of described new data, and the memory location of described new data is updated to position offset; After data are filled with in data storage area, cover legacy data to store new data from data storage area initial position;
Concrete, when the data storage area that Data Position recording areas is corresponding does not have data, the original position of this corresponding data memory block is recorded in this Data Position recording areas, the position offset of original position in node data district original position of concrete can be this corresponding data memory block, namely, the position offset of node data district original position can be set as 0, each data storage area with the position offset of node data district original position for benchmark arranges self position offset.
When data storage area has stored data also again stored in new data, the new length value stored in data is added with original position offset, has generated new position offset to upgrade this Data Position recording areas record.Such as, when the Data Position recording areas current location side-play amount of certain node is recorded as 1000, be the data of 256 stored in the length with its corresponding data storage area data, then the position offset upgraded in this Data Position recording areas is 1256.
Due to the limited length of data storage area, so there will be the situation that data storage area data storage is full of, now, legacy data can be covered to store new data from data storage area initial position; Now, the position offset in Data Position recording areas should be, after the new length value stored in data is added with original position offset, deduct the length value of data storage area self.
By above-mentioned data writing mode, make node newly can will write data according to the locus order in data storage area as far as possible in write clearance spaces carrying plate when the data storage area in internal memory carries out write operation, thus avoid and be not read out data by the data cover newly write, and then also just avoid because the transfer of data that causes of the loss of data is chaotic.
S14, when node reads destination node data in reflective memory card, recording areas, preset data load position in the local internal memory of node, recording areas, described digital independent position is for recording the position offset of destination node data in Data Position recording areas read;
In order to when node reads destination node data in reflective memory card, data after whether data learning reading that can be clear and definite upgrade, avoid repeating to read, in the embodiment of the present invention, also be provided with recording areas, digital independent position, to record the position offset of destination node data in Data Position recording areas read.Thus the position of having read data in data storage area in destination node at present can be learnt.
The current location side-play amount of S15, reading destination node Data Position recording areas record, the position offset of destination node current location side-play amount recorded with recording areas, digital independent position compares, when twice position offset value is different, upgrade the position offset of recording areas, described digital independent position by current location side-play amount, and read the data of destination node.
In recording areas, digital independent position, have recorded the position offset of the Data Position read, so by comparing by this position offset with for reading the current offset of data, will learn for read data be whether upgrade after data.Specifically, if the position offset of destination node that current location side-play amount and recording areas, digital independent position are recorded is different, then illustrates that data are the data after upgrading, can follow-up read operation be carried out.If current location side-play amount is the same with the position offset of the destination node that recording areas, digital independent position is recorded, then illustrate that the data of data storage area have been read and have not upgraded, so can not perform the read operation to these data.
In actual applications, the position offset of the destination node that current location side-play amount and recording areas, digital independent position are recorded is different, comprises two kinds of situations;
One, current location side-play amount is greater than the position offset of the destination node that recording areas, digital independent position is recorded;
This feelings show, memory location for the data read also does not arrive the final position of this data storage area, so, the length of these data deducts the position offset of the destination node that recording areas, digital independent position is recorded for current location side-play amount, now, data read operation can be completed by the data between the position offset that reads the destination node that current location side-play amount and recording areas, digital independent position are recorded.
Its two, current location side-play amount is less than the position offset of the destination node that recording areas, digital independent position is recorded.
Due to the limited length of data storage area, so there will be the situation that data storage area data storage is full of, now, legacy data can be covered to store new data from data storage area initial position; Now, the position offset in Data Position recording areas should be, after the new length value stored in data is added with original position offset, deduct the length value of data storage area self; The final position value for data storage area that the length value of data storage area self is concrete deducts original position value.
When above-mentioned situation, the current location side-play amount of pre-reading data can be less than the position offset of the destination node that recording areas, digital independent position is recorded; Now, data are divided into two parts, the position offset of the destination node that a part records in recording areas, digital independent position to this data storage area final position between, the original position of another part in this data storage area to pre-reading data current location side-play amount between.
There is above-mentioned can learning, in embodiments of the present invention, store the position offset reading data, when reading data, by will reading the position offset of data and compare for the side-play amount of reading data, thus can judge that whether pre-reading data is the data after upgrading, and then avoid data repeat read, improve the efficiency of transmission of data.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (5)

1. a data transmission method of reflective memory network, is characterized in that, comprising:
The plate of reflective memory card is carried internal memory and be divided into global variable district and node data district;
Be that each node division is for storing the data storage area of data in described node data district; Be that each node data memory block divides corresponding Data Position recording areas in described global variable district; Described Data Position recording areas is used for the information data of record data in described data storage area, comprising position offset;
Node to plate carry internal memory write new data time, after existing data in data storage area corresponding with described node for the write of described new data, and the memory location of described new data is updated to position offset; After data are filled with in data storage area, cover legacy data to store new data from data storage area initial position;
When node reads destination node data in reflective memory card, recording areas, preset data load position in the local internal memory of node, recording areas, described digital independent position is for recording the position offset of destination node data in Data Position recording areas read;
Read the current location side-play amount of Data Position recording areas record in destination node, the position offset of described destination node current location side-play amount recorded with recording areas, described digital independent position compares, when twice position offset value is different, upgrade the position offset of recording areas, described digital independent position by current location side-play amount, and read the data of destination node.
2. data transmission method according to claim 1, it is characterized in that, described Data Position recording areas is greater than described data storage area.
3. data transmission method according to claim 1, it is characterized in that, described node is read and write data in the internal memory of reflective memory card by driving function.
4. data transmission method according to claim 1, is characterized in that, the size that the plate of described each node carries internal memory is the same.
5. data transmission method according to claim 1, it is characterized in that, described information data also comprises the original position of described data storage area.
CN201210091440.3A 2012-03-30 2012-03-30 Data transmission method of reflective memory network Active CN102651674B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210091440.3A CN102651674B (en) 2012-03-30 2012-03-30 Data transmission method of reflective memory network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210091440.3A CN102651674B (en) 2012-03-30 2012-03-30 Data transmission method of reflective memory network

Publications (2)

Publication Number Publication Date
CN102651674A CN102651674A (en) 2012-08-29
CN102651674B true CN102651674B (en) 2015-06-24

Family

ID=46693573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210091440.3A Active CN102651674B (en) 2012-03-30 2012-03-30 Data transmission method of reflective memory network

Country Status (1)

Country Link
CN (1) CN102651674B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678001A (en) * 2013-11-18 2014-03-26 中国空间技术研究院 Multi-node automatic memory allocation method based on reflective memory network
CN103870625B (en) * 2013-11-19 2017-05-31 北京航天长征飞行器研究所 Fiber reflection internal memory network data real-time interaction method
CN103761137A (en) * 2014-01-07 2014-04-30 中国电子科技集团公司第八研究所 Optical fiber reflection internal memory card and optical fiber reflection internal memory network
RU2568785C2 (en) * 2014-01-24 2015-11-20 Федеральное государственное бюджетное учреждение науки Институт проблем управления им. В.А. Трапезникова Российской академии наук Transmission of signals by reflective signals between reflective memory devices
CN106066830B (en) * 2016-05-31 2018-11-13 中国航空工业集团公司西安飞机设计研究所 A kind of EMS memory management process

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1595523A (en) * 2003-09-12 2005-03-16 联想(北京)有限公司 A disk storage method
CN101493784A (en) * 2009-02-24 2009-07-29 中国运载火箭技术研究院 Reflecting internal memory net dynamic internal memory management method based on distribution simulation

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1595523A (en) * 2003-09-12 2005-03-16 联想(北京)有限公司 A disk storage method
CN101493784A (en) * 2009-02-24 2009-07-29 中国运载火箭技术研究院 Reflecting internal memory net dynamic internal memory management method based on distribution simulation

Also Published As

Publication number Publication date
CN102651674A (en) 2012-08-29

Similar Documents

Publication Publication Date Title
CN102508784B (en) Data storage method of flash memory card in video monitoring equipment, and system thereof
CN102651674B (en) Data transmission method of reflective memory network
US9767035B2 (en) Pass-through tape access in a disk storage environment
CN1493026B (en) Memory device and record regenerator using it
CN101268449B (en) Data recording device and data recoding method
US8862855B2 (en) Reading/writing control method and system for nonvolatile memory storage device
CN112015517B (en) Block chain node dynamic migration method and system based on k8s cluster
US20030101327A1 (en) Flash memory management method
WO2009096180A1 (en) Memory controller, nonvolatile storage device, and nonvolatile storage system
CN102945212A (en) Pooled partition layout and representation
CN102135942A (en) Method for realizing wear-leveling in storage equipment as well as the storage equipment
US9846832B2 (en) Serialization of RFID tags
CN102169460A (en) Method and device for managing variable length data
CN104598165A (en) Method and device for improving durability of storage on embedded equipment
GB2593408A (en) Increasing data performance by transferring data between storage tiers using workload characteristics
JP6042346B2 (en) System and method for storing data using host settings of storage medium
US9703593B2 (en) Apparatus and method for memory overlay
CN104461384A (en) Data write-in method and storage device
CN101303667B (en) Method and device for establishing magnetic disk null cluster table and seeking magnetic disk null cluster
CN102541753B (en) A kind of read-write optimization method of in-line memory
CN106598548A (en) Solution method and device for read-write conflict of storage unit
CN102306128A (en) Disk management method and device and network equipment
CN105653208A (en) Data storage system and data read-write method based on same
CN102831204A (en) File packaging format with version control ability
CN108845895B (en) Streaming incremental backup method and device based on virtual disk file

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 4 / F, building 1, No.14 Jiuxianqiao Road, Chaoyang District, Beijing 100020

Patentee after: Beijing Jingwei Hengrun Technology Co.,Ltd.

Address before: 100101 Beijing Chaoyang District City Anxiang Beili 11 building B block 8 layer

Patentee before: Beijing Jingwei HiRain Technologies Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230614

Address after: 100192 5th floor, Zhizhen building, 7 Zhichun Road, Haidian District, Beijing

Patentee after: BEIJING RUNKE GENERAL TECHNOLOGY Co.,Ltd.

Address before: 4 / F, building 1, No.14 Jiuxianqiao Road, Chaoyang District, Beijing 100020

Patentee before: Beijing Jingwei Hengrun Technology Co.,Ltd.