CN103927135A - Data storage method and device - Google Patents

Data storage method and device Download PDF

Info

Publication number
CN103927135A
CN103927135A CN201410150938.1A CN201410150938A CN103927135A CN 103927135 A CN103927135 A CN 103927135A CN 201410150938 A CN201410150938 A CN 201410150938A CN 103927135 A CN103927135 A CN 103927135A
Authority
CN
China
Prior art keywords
transmission link
packet
data
transmission
data storage
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
Application number
CN201410150938.1A
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410150938.1A priority Critical patent/CN103927135A/en
Publication of CN103927135A publication Critical patent/CN103927135A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a data storage method and device. The data storage method is applied to the data storage device. The data storage device comprises a controller and a storage device. The method comprises the steps that the controller obtains a data package forwarded by an exchange unit; the controller calculates a transmission link corresponding to the data package according to the preset mapping algorithm, and the transmission link and other transmission links are bound together to form an aggregation link; the controller writes data in the data package into the storage device through the transmission link. According to the data storage method and device, the flexibility of data transmission can be improved, and the utilization rate of the transmission link can be increased.

Description

A kind of date storage method and device
Technical field
The embodiment of the present invention relates to technical field of information storage, relates in particular to a kind of date storage method and device.
Background technology
In traditional storage system, each transmission link is independent, realize the protection of back end link, must use the hardware structure of dual controller or multi-controller.For example current have two transmission links, under normal circumstances, can configure dual controller, controller A writes disk frame by data by Article 1 transmission link, controller B writes disk frame by data by Article 2 transmission link, in the time that the first transmission link breaks down, be switched to controller B by mirror-image channels, by controller B, data are write to disk frame by Article 2 transmission link, data are by serial connecting small computer system interface (Serial Attached Small Computer System Interface, SAS) protocol transmission.
There are some defects in this data storage method, because each transmission link is independent, in order to ensure the stability of link, every link need configure double nip plate, and the practical efficiency of double nip plate only has 50%, hardware cost is high, and former controller cannot directly write disk frame by data by another transmission link, must by another controller, data be write to disk frame by another transmission link by mirror image switch, dirigibility is not high, link utilization is low, once a certain transmission link breaks down, data will all be transferred to the interface board that another transmission link is corresponding, easily there is overload.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of date storage method and device, can improve the dirigibility of data transmission and the utilization factor of transmission link.
The date storage method that embodiment of the present invention first aspect provides, is applied in data storage device, and described data storage device comprises controller and storer, and described method comprises:
Described controller obtains the packet that crosspoint forwards;
Described controller calculates according to default mapping algorithm the transmission link that described packet is corresponding, and described transmission link and other transmission links bundle formation aggregated links;
Described controller passes through described transmission link by the writing data into memory in described packet.
In conjunction with the first aspect of the embodiment of the present invention, in the first embodiment of the first aspect of the embodiment of the present invention, described packet has source internet protocol IP address and/or source medium access control MAC Address.
In conjunction with the first embodiment of embodiment of the present invention first aspect, in the second embodiment of the first aspect of the embodiment of the present invention, described default mapping algorithm is hash algorithm.
In conjunction with the second embodiment of embodiment of the present invention first aspect, in the third embodiment of the first aspect of the embodiment of the present invention, described controller calculates according to default mapping algorithm the transmission link that described packet is corresponding and comprises:
The source IP address of described controller to described packet or source MAC carry out Hash operation and obtain cryptographic hash, search the transmission link corresponding with described cryptographic hash in default link aggregation is transmitted.
In conjunction with the third embodiment of embodiment of the present invention first aspect, in the 4th kind of embodiment of the first aspect of the embodiment of the present invention, described method also comprises:
In the time that described transmission link breaks down, the data in described packet are all given other transmission links in described aggregated links by described controller.
The data storage device that embodiment of the present invention second aspect provides, comprising:
Acquiring unit, the packet forwarding for obtaining crosspoint;
Processing unit, for calculating according to default mapping algorithm the transmission link that described packet is corresponding, described transmission link and other transmission links bundle formation aggregated links;
Storage unit, for passing through described transmission link by the writing data into memory of described packet.
In conjunction with the second aspect of the embodiment of the present invention, in the first embodiment of the second aspect of the embodiment of the present invention, described packet has source internet protocol IP address and/or source medium access control MAC Address.
In conjunction with the first embodiment of embodiment of the present invention second aspect, in the second embodiment of the second aspect of the embodiment of the present invention, described default mapping algorithm is hash algorithm.
In conjunction with the second embodiment of embodiment of the present invention second aspect, in the third embodiment of the second aspect of the embodiment of the present invention, described processing unit comprises:
Computing unit, carries out Hash operation for the source IP address to described packet or source MAC and obtains cryptographic hash;
Search unit, for transmitting and search the transmission link corresponding with described cryptographic hash at default link aggregation.
In conjunction with the third embodiment of embodiment of the present invention second aspect, in the 4th kind of embodiment of the second aspect of the embodiment of the present invention, described device also comprises:
Fault solves unit, in the time that described transmission link breaks down, the data in described packet is all given to other transmission links in described aggregated links.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages:
In the embodiment of the present invention, controller, obtaining after the packet of crosspoint forwarding, according to default transmission link corresponding to mapping algorithm computational data bag, then passes through described transmission link by the writing data into memory in packet.In the embodiment of the present invention, packet is after crosspoint forwards, controller is directly according to the transmission link transmission packet that calculates gained, and by the writing data into memory in packet, because each transmission link bundles formation aggregated links, each transmission link in aggregated links is reciprocity, every transmission link can transmit the packet that crosspoint forwards, be not prone to the problem of certain transmission link overload, improve the dirigibility of data transmission, and improved the utilization factor of transmission link.
Brief description of the drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, to the accompanying drawing of required use in embodiment be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is embodiment schematic diagram of date storage method of the present invention;
Fig. 2 is another embodiment schematic diagram of date storage method of the present invention;
Fig. 3 is embodiment schematic diagram of data storage device of the present invention;
Fig. 4 is another embodiment schematic diagram of data storage device of the present invention;
Fig. 5 is another embodiment schematic diagram of data storage device of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of date storage method and device, can improve the dirigibility of data transmission, and can improve the utilization factor of transmission link.
Refer to Fig. 1 below, Fig. 1 is embodiment schematic diagram of date storage method of the present invention, and the date storage method of the present embodiment is applied in data storage device, and data storage device comprises controller and storer, and the method for the present embodiment comprises:
101, controller obtains the packet that crosspoint forwards;
102, controller calculates according to default mapping algorithm the transmission link that described packet is corresponding;
In the present embodiment, transmission link can comprise many, each transmission link bundles formation aggregated links, each transmission link in aggregated links is reciprocity, every transmission link can transmit the packet that crosspoint forwards, concrete each packets need by which bar transmission link is transmitted, and need to calculate according to default mapping algorithm.
103, controller is by calculating transmission link by the writing data into memory in packet.
In the present embodiment, packet is after crosspoint forwards, controller directly transmits described packet according to the transmission link that calculates gained, because each transmission link bundles formation aggregated links, each transmission link in aggregated links is reciprocity, and every transmission link can transmit the packet that crosspoint forwards, and is not prone to the problem of certain transmission link overload, improve the dirigibility of data transmission, and improved the utilization factor of transmission link.
For the ease of understanding, with a specific embodiment, date storage method of the present invention is described below, refer to Fig. 2, the date storage method of the present embodiment comprises:
201, obtain source IP address and/or the source MAC of the packet of crosspoint forwarding;
In each packet, comprise data to be stored, each packet has source internet protocol (Internet Protocol Address, IP) address and/or source medium access control (Media Access Control, MAC) address.
202, the source IP address to described packet or source MAC carry out Hash operation and obtain cryptographic hash;
203, in transmitting, searches default link aggregation the transmission link corresponding with described cryptographic hash;
In the present embodiment, link aggregation is set in advance in data storage device and transmits, the port-mark that link aggregation comprises cryptographic hash, transmission link in transmitting and the corresponding relation of the two, concrete link aggregation is transmitted can be as shown in the table:
Cryptographic hash 1 2 3 4
Port-mark a b c d
After the cryptographic hash of packet that calculates crosspoint forwarding, controller is searched the port-mark of the transmission link corresponding with described cryptographic hash in link aggregation is transmitted, by transmission link corresponding to this port-mark by the writing data into memory in packet.
204, pass through described transmission link by the writing data into memory in described packet.
Storer in the present embodiment can be the storage medium of hard disk, IP hard disk or other types, and data are by IP protocol transmission.
In addition, because each transmission link bundles formation aggregated links, thus every configurable interface board of transmission link, to save cost, in the time that a certain transmission link breaks down, other transmission links in aggregated links can all be given the packet transmitting on this transmission link by controller.
In the present embodiment, obtaining after the packet of crosspoint forwarding, controller calculates cryptographic hash according to the source IP address of packet or source MAC, in default link aggregation is transmitted, search corresponding transmission link according to calculating the cryptographic hash of gained, the transmission link by calculating gained is by the writing data into memory in packet.Because each transmission link bundles formation aggregated links, each transmission link in aggregated links is reciprocity, every transmission link can transmit the packet that crosspoint forwards, be not prone to the problem of certain transmission link overload, improve the dirigibility of data transmission, and improved the utilization factor of transmission link.
The data storage device below embodiment of the present invention being provided is described, and refers to Fig. 3, and the data storage device 300 of the present embodiment comprises:
Acquiring unit 301, the packet forwarding for obtaining crosspoint;
Processing unit 302, for calculating according to default mapping algorithm the transmission link that described packet is corresponding, described transmission link and other transmission links bundle formation aggregated links;
Storage unit 303, for passing through described transmission link by the writing data into memory of described packet.
For the ease of understanding, with a specific embodiment, data storage device of the present invention is described below, refer to Fig. 4, the data storage device 400 of the present embodiment comprises:
Acquiring unit 401, the packet forwarding for obtaining crosspoint, described packet has source internet protocol IP address and/or source medium access control MAC Address;
Processing unit 402, for calculating according to default mapping algorithm the transmission link that described packet is corresponding, described transmission link and other transmission links bundle formation aggregated links;
Storage unit 403, for passing through described transmission link by the writing data into memory of described packet;
Fault solves unit 404, in the time that described transmission link breaks down, the data in described packet is all given to other transmission links in described aggregated links.
Processing unit 402 comprises computing unit 4021 and searches unit 4022, wherein:
Computing unit 4021, carries out Hash operation for the source IP address to described packet or source MAC and obtains cryptographic hash;
Search unit 4022, for transmitting and search the transmission link corresponding with described cryptographic hash at default link aggregation.
For ease of understanding, with a practical application scene, the interactive mode between each unit of data storage device in the present embodiment is described below, specific as follows:
First acquiring unit 401 obtains the packet that crosspoint forwards, and comprises data to be stored in each packet, and each packet has source internet protocol (IP) address and/or source medium access control (MAC) address.The source IP address of the packet that next computing unit 4021 obtains acquiring unit 401 or source MAC carry out Hash operation and obtain cryptographic hash, search the cryptographic hash of calculating gained according to computing unit 4021 in unit 4022 and in default link aggregation is transmitted, search the transmission link corresponding with described cryptographic hash.
In the present embodiment, in data storage device, set in advance link aggregation and transmitted, the port-mark that link aggregation comprises cryptographic hash, transmission link in transmitting and the corresponding relation of the two, concrete link aggregation is transmitted can be as shown in the table:
Cryptographic hash 1 2 3 4
Port-mark a b c d
Storage unit 403 by the port-mark searching unit 4022 and find by the data in packet by corresponding transmission link write store.
Storer in the present embodiment can be the storage medium of hard disk, IP hard disk or other types, and data are by IP protocol transmission.
In addition, because each transmission link bundles formation aggregated links, so every configurable interface board of transmission link, to save cost, in the time that a certain transmission link breaks down, fault solves unit 404 can all give the packet transmitting on this transmission link other transmission links in aggregated links.
In the present embodiment, computing unit obtains at acquiring unit after the packet of crosspoint forwarding, calculate cryptographic hash according to the source IP address of packet or source MAC, search unit and in default link aggregation is transmitted, search corresponding transmission link according to the cryptographic hash of calculating gained, the transmission link that storage unit is passed through to calculate gained is by the writing data into memory in packet.Because each transmission link bundles formation aggregated links, each transmission link in aggregated links is reciprocity, every transmission link can transmit the packet that crosspoint forwards, be not prone to the problem of certain transmission link overload, improve the dirigibility of data transmission, and improved the utilization factor of transmission link.
Below the data storage device 500 in the embodiment of the present invention is further described, refer to Fig. 5, data storage device 500 can comprise the memory storage that current techniques is known, and the specific embodiment of the invention does not limit data storage device 500 specific implementations.Data storage device 500 comprises:
Processor (processor) 510, communication interface (Communications Interface) 520, storer (memory) 530, bus 540.
Processor 510, communication interface 520, storer 530 completes mutual communication by bus 540.
Communication interface 520, for net element communication.
Processor 510, for executive routine 532.
Particularly, program 532 can comprise program code, and described program code comprises computer-managed instruction.
Processor 510 may be a central processor CPU, or specific integrated circuit ASIC(Application Specific Integrated Circuit), or be configured to implement one or more integrated circuit of the embodiment of the present invention.
Storer 530, for depositing program 532.Storer 530 may comprise high-speed RAM storer, also may also comprise nonvolatile memory (non-volatile memory), for example at least one magnetic disk memory.
Program 532 specifically can comprise:
Acquiring unit 301, the packet forwarding for obtaining crosspoint;
Processing unit 302, for calculating according to default mapping algorithm the transmission link that described packet is corresponding, described transmission link and other transmission links bundle formation aggregated links;
Storage unit 303, for passing through described transmission link by the writing data into memory of described packet.
In program 532, the corresponding units of the specific implementation of each unit in can embodiment shown in Figure 3, is not repeated herein.
It should be noted that in addition, device embodiment described above is only schematic, the wherein said unit as separating component explanation can or can not be also physically to separate, the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in multiple network element.Can select according to the actual needs some or all of module wherein to realize the object of the present embodiment scheme.In addition, in device embodiment accompanying drawing provided by the invention, the annexation between module represents to have communication connection between them, specifically can be implemented as one or more communication bus or signal wire.Those of ordinary skill in the art, in the situation that not paying creative work, are appreciated that and implement.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential common hardware by software and realize, and can certainly comprise that special IC, dedicated cpu, private memory, special components and parts etc. realize by specialized hardware.Generally, all functions being completed by computer program can realize with corresponding hardware easily, and the particular hardware structure that is used for realizing same function can be also diversified, such as mimic channel, digital circuit or special circuit etc.But software program realization is better embodiment under more susceptible for the purpose of the present invention condition.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium can read, as the floppy disk of computing machine, USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc., comprise that some instructions (can be personal computers in order to make a computer equipment, server, or the network equipment etc.) carry out the method described in the present invention each embodiment.
A kind of date storage method and the device that above the embodiment of the present invention are provided are described in detail, for one of ordinary skill in the art, according to the thought of the embodiment of the present invention, all will change in specific embodiments and applications, therefore, this description should not be construed as limitation of the present invention.

Claims (10)

1. a date storage method, described date storage method is applied in data storage device, and described data storage device comprises controller and storer, it is characterized in that, and described method comprises:
Described controller obtains the packet that crosspoint forwards;
Described controller calculates according to default mapping algorithm the transmission link that described packet is corresponding, and described transmission link and other transmission links bundle formation aggregated links;
Described controller passes through described transmission link by the writing data into memory in described packet.
2. date storage method as claimed in claim 1, is characterized in that, described packet has source internet protocol IP address and/or source medium access control MAC Address.
3. date storage method as claimed in claim 2, is characterized in that, described default mapping algorithm is hash algorithm.
4. date storage method as claimed in claim 3, is characterized in that, described controller calculates according to default mapping algorithm the transmission link that described packet is corresponding and comprises:
The source IP address of described controller to described packet or source MAC carry out Hash operation and obtain cryptographic hash, search the transmission link corresponding with described cryptographic hash in default link aggregation is transmitted.
5. date storage method as claimed in claim 4, is characterized in that, described method also comprises:
In the time that described transmission link breaks down, the data in described packet are all given other transmission links in described aggregated links by described controller.
6. a data storage device, is characterized in that, comprising:
Acquiring unit, the packet forwarding for obtaining crosspoint;
Processing unit, for calculating according to default mapping algorithm the transmission link that described packet is corresponding, described transmission link and other transmission links bundle formation aggregated links;
Storage unit, for passing through described transmission link by the writing data into memory of described packet.
7. data storage device as claimed in claim 6, is characterized in that, described packet has source internet protocol IP address and/or source medium access control MAC Address.
8. data storage device as claimed in claim 7, is characterized in that, described default mapping algorithm is hash algorithm.
9. data storage device as claimed in claim 8, is characterized in that, described processing unit comprises:
Computing unit, carries out Hash operation for the source IP address to described packet or source MAC and obtains cryptographic hash;
Search unit, for transmitting and search the transmission link corresponding with described cryptographic hash at default link aggregation.
10. data storage device as claimed in claim 9, is characterized in that, described device also comprises:
Fault solves unit, in the time that described transmission link breaks down, the data in described packet is all given to other transmission links in described aggregated links.
CN201410150938.1A 2014-04-15 2014-04-15 Data storage method and device Pending CN103927135A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410150938.1A CN103927135A (en) 2014-04-15 2014-04-15 Data storage method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410150938.1A CN103927135A (en) 2014-04-15 2014-04-15 Data storage method and device

Publications (1)

Publication Number Publication Date
CN103927135A true CN103927135A (en) 2014-07-16

Family

ID=51145370

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410150938.1A Pending CN103927135A (en) 2014-04-15 2014-04-15 Data storage method and device

Country Status (1)

Country Link
CN (1) CN103927135A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106341336A (en) * 2016-08-29 2017-01-18 锐捷网络股份有限公司 Method and device for forwarding message via aggregate port (AP)
CN113556580A (en) * 2019-06-10 2021-10-26 西安万像电子科技有限公司 Data transmission method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101325557A (en) * 2008-07-25 2008-12-17 华为技术有限公司 Method, system and apparatus for sharing tunnel load
CN101656663A (en) * 2008-08-20 2010-02-24 华为技术有限公司 Method, device and system for forwarding MPLS multicast message
EP2383656A1 (en) * 2005-04-21 2011-11-02 Violin Memory, Inc. Interconnection system
CN103428101A (en) * 2013-08-01 2013-12-04 华为技术有限公司 Load sharing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2383656A1 (en) * 2005-04-21 2011-11-02 Violin Memory, Inc. Interconnection system
CN101325557A (en) * 2008-07-25 2008-12-17 华为技术有限公司 Method, system and apparatus for sharing tunnel load
CN101656663A (en) * 2008-08-20 2010-02-24 华为技术有限公司 Method, device and system for forwarding MPLS multicast message
CN103428101A (en) * 2013-08-01 2013-12-04 华为技术有限公司 Load sharing method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106341336A (en) * 2016-08-29 2017-01-18 锐捷网络股份有限公司 Method and device for forwarding message via aggregate port (AP)
CN106341336B (en) * 2016-08-29 2019-10-25 锐捷网络股份有限公司 A kind of method and apparatus to be E-Packeted by aggregation port
CN113556580A (en) * 2019-06-10 2021-10-26 西安万像电子科技有限公司 Data transmission method and device

Similar Documents

Publication Publication Date Title
US20160352578A1 (en) System and method for adaptive paths locator for virtual network function links
CN105577545A (en) Label-switched packets with device-independent labels
EP3562098B1 (en) Entry creation for equal cost paths
CN103457818A (en) Multi-homing in an extended bridge
CN104168222A (en) Message transmission method and device
CN107959625A (en) Virtual router with dynamic stream relieving capacity
EP3327993A1 (en) Route management
US9847937B2 (en) Hardware acceleration for routing programs
CN108023761A (en) The method and apparatus for distributing resource
CN111026324B (en) Updating method and device of forwarding table entry
US20140040477A1 (en) Connection mesh in mirroring asymmetric clustered multiprocessor systems
CN103269315A (en) Label distribution method, device, system and network equipment
CN103209103A (en) Testing method and testing apparatus of network device
CN107493150A (en) A kind of data encryption and transmission method and device
WO2015106623A1 (en) Method and apparatus for configuring and delivering flow table entry
EP3534577B1 (en) Forwarding multicast packets through an extended bridge
CN105939268B (en) A kind of two-layer retransmitting table item polymerization and device
US10069641B2 (en) Method for operating a communication network and communication network
CN103927135A (en) Data storage method and device
CN103064794B (en) Realize the method for the efficient management of MPLS label
US10715437B2 (en) Deadline driven packet prioritization for IP networks
CN107086960B (en) Message transmission method and device
CN105379221A (en) Link aggregation method and device
CN104584492A (en) Packet processing method, device and system
CN106502841B (en) Data back up method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20140716