CN109120556A - A kind of method and system of cloud host access object storage server - Google Patents
A kind of method and system of cloud host access object storage server Download PDFInfo
- Publication number
- CN109120556A CN109120556A CN201810953754.7A CN201810953754A CN109120556A CN 109120556 A CN109120556 A CN 109120556A CN 201810953754 A CN201810953754 A CN 201810953754A CN 109120556 A CN109120556 A CN 109120556A
- Authority
- CN
- China
- Prior art keywords
- storage server
- object storage
- address
- flow table
- access request
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/25—Routing or path finding in a switch fabric
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/30—Peripheral units, e.g. input or output ports
- H04L49/3009—Header conversion, routing tables or routing tags
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/55—Prevention, detection or correction of errors
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of method and system of cloud host access object storage server, this method comprises: initiating the access request of object storage server by cloud host;Access request includes the resource address of target ip address, destination port number and object stored messages, and object stored messages are stored in object storage server;Access request is received by virtual switch, and target ip address and destination port number are matched with Openflow flow table rule;In the case where successful match, access request is forwarded to object storage server according to matched Openflow flow table rule by virtual switch, so that object storage server is according to resource address to cloud host response object stored messages.It can effectively avoid being routed through core switch using method and system of the invention, prevent the bandwidth of cabinet uplink to the limitation of access speed, the access efficiency of access object storage server can be effectively improved.
Description
Technical field
The present invention relates to object storage technology field more particularly to a kind of cloud host access object storing data method and
System.
Background technique
Object storage be a kind of object-based distributed storage service, it can be achieved that mass object data storage, have
High reliability, it is easy to maintain and open the features such as, be widely used in the pipe of the digital resources such as picture, video, music, document
Reason and field of cloud calculation.
The local application interface of object storage is a RESTful (Representational State
Transfer, the conversion of performance layer state) (Application Programming Interface, application programming connect API
Mouthful), the client for running application program realizes the service of application program by requesting the service of object storage server,
In, object storage server provides the storage of object accesses interface and object data.
As shown in Figure 1, being the physical network topology schematic diagram of object storage service in the prior art.Object storage clothes
Business device cluster is laid in one group of cabinet, the calculation server of operation cloud host is laid in another group of cabinet, when cloud host needs to access
When object storage server, it is necessary to be routed through core switch, this results in the access speed of object storage server cluster
Degree is limited to the bandwidth of cabinet uplink, and access efficiency is low.
Summary of the invention
In view of the above-mentioned problems, a kind of method and system of cloud host access object storage server of the invention, Neng Gouyou
Effect avoids being routed through core switch, prevents the bandwidth of cabinet uplink to the limitation of access speed, can effectively improve
Access the access efficiency of object storage server.
In order to solve the above technical problems, a kind of method of cloud host access object storage server of the invention, is suitable for
Cloud host and object storage server are deployed in the object storage service of same cabinet, and described method includes following steps:
The access request of object storage server is initiated by cloud host;The access request includes target ip address, mesh
The resource address of port numbers and object stored messages is marked, the object stored messages are stored in the object storage server;
Receive the access request by virtual switch, and by the target ip address and the destination port number with
Openflow flow table rule is matched;
In the case where successful match, the virtual switch is according to matched Openflow flow table rule by the access
Request is forwarded to the object storage server, so that the object storage server is according to the resource address to the cloud master
Machine replys the object stored messages.
Compared with prior art, in a kind of method of cloud host of the invention access object storage server, by cloud host
It is deployed in same cabinet with object storage server, so that when cloud host is in the access request for initiating object storage server
When, it, can be by access request when information of the virtual switch in access request and Openflow flow table rule match item matches
It is forwarded to object storage server, and then the resource address acquisition that object storage server is carried according to access request is corresponding right
As stored messages and by virtual switch to the cloud host response object stored messages, the visit of object storage server is realized
It asks.On the one hand the method for cloud host access object storage server passes through distributed arrangement's method and stores cloud host and object
On the other hand server disposition realizes the visit of object storage server in same cabinet using cloud host and virtual switch
Diameter of asking the way drainage avoids so that cloud host can directly access object storage server by virtual switch through core switch
It is routed, prevents the bandwidth of cabinet uplink to the limitation of access speed, access object storage server can be effectively improved
Access efficiency, while can effectively avoid leading to the problem of Single Point of Faliure.
As an improvement of the above scheme, the object storage server includes native object storage server, the local
Object storage server is used to indicate the object storage server that same computer server is run on the cloud host;
In the case where successful match, the virtual switch is according to matched Openflow flow table rule by the access
Request is forwarded to the object storage server, includes the following steps:
The access request is forwarded to the local according to matched Openflow flow table rule by the virtual switch
Object storage server, so that the native object storage server is according to the resource address to described in the cloud host response
Object stored messages.
As an improvement of the above scheme, the object storage server includes external object storage server, the outside
Object storage server is used to indicate the object storage server that different computer servers are run on from the cloud host;
In the case where successful match, the virtual switch is according to matched Openflow flow table rule by the access
Request is forwarded to the object storage server, includes the following steps:
The access request is forwarded to local load according to matched Openflow flow table rule by the virtual switch
Balanced device;
The local load balancing device receives the access request and using external object described in reverse proxy mode access
Storage server, so that the external object storage server is according to the resource address to object described in the cloud host response
Stored messages.
As an improvement of the above scheme, receive the access request in virtual switch, and by the target ip address and
Further include following steps after the destination port number is matched with local Openflow flow table rule:
In the case where it fails to match, the access request is sent to SDN by the virtual switch in the form of first packet
Controller;Wherein, the SDN controller is preset with the IP address and service port number of the object storage server;
The SDN controller matches and described in the IP address of the target ip address and the object storage server
In the case that destination port number and the service port number match, an Openflow flow table rule is created and will be newly-built
Openflow flow table rule is sent to the virtual switch.
As an improvement of the above scheme, the access request further include source MAC, destination-mac address, source IP address and
Network protocol number;
The Openflow flow table rule includes positive flow table rule and reversed flow table rule;Wherein, the positive flow table
Rule be used to indicate cloud host access object storage server, the reversed flow table rule be used to indicate object storage server to
Cloud host response object storing data;
The SDN controller creates the positive flow table rule as follows:
Successively by source MAC, destination-mac address, source IP address, target ip address, the network in the access request
Protocol number and destination port number are set as source MAC, destination-mac address, source IP in the positive flow table rule match item
Address, target ip address, network protocol number and destination port number, and will be forwarded to local port and be set as the positive flow table rule
Then execute movement;
The SDN controller creates the reversed flow table rule as follows:
Successively by destination-mac address, source MAC, target ip address, source IP address, the network in the access request
Protocol number and destination port number are set as source MAC, destination-mac address, source IP in the reversed flow table rule match item
Address, target ip address, network protocol number and destination port number, and the network port that will be forwarded to cloud host is set as described anti-
Movement is executed to flow table rule.
As an improvement of the above scheme, the local port includes that native object storage server port and local load are equal
Weighing apparatus port;
The forward direction flow table rule includes the first positive flow table rule and the second positive flow table rule;
It is described will be forwarded to local port and be set as the execution of the positive flow table rule act and include the following steps:
When the object storage server is native object storage server, native object storage server will be forwarded to
What port was set as the described first positive flow table rule executes movement;
When the object storage server is local load balancing device, the setting of local load balancing device port will be forwarded to
Movement is executed for the described second positive flow table rule.
In order to solve the above technical problems, being fitted the present invention also provides a kind of system of cloud host access object storage server
The object storage service of same cabinet is deployed in for cloud host and object storage server, the system comprises:
Cloud host, for initiating the access request of object storage server;The access request includes target ip address, mesh
The resource address of port numbers and object stored messages is marked, the object stored messages are stored in the object storage server;
Virtual switch, for when receiving the access request, by the target ip address and the target port
Number with matched in Openflow flow table rule, and in the case where successful match, advised according to matched Openflow flow table
The access request is then forwarded to the object storage server;
The object storage server, for when receiving the access request, according to the resource address to described
Object stored messages described in cloud host response.
As an improvement of the above scheme, the object storage server includes native object storage server, the cloud master
Machine includes the first cloud host, and the native object storage server, which is used to indicate, runs on same calculating with the first cloud host
The object storage server of machine server;
The first cloud host, for initiating the first access request of native object storage server;First access
Resource address of the request including first object IP address, first object port numbers and the first object stored messages, described first pair
As stored messages are stored in the native object storage server;
The virtual switch includes the first virtual switch, and first virtual switch includes:
First access request forwarding module, for being advised according to matched Openflow flow table in the case where successful match
First access request is then forwarded to the native object storage server, so that the native object storage server root
According to the resource address to object stored messages described in the first cloud host response.
As an improvement of the above scheme, the object storage server includes external object storage server, the cloud master
Machine includes the second cloud host, and the external object storage server, which is used to indicate, runs on different calculating from the second cloud host
The object storage server of machine server;
The second cloud host, for initiating the second access request of external object storage server;Second access
Resource address of the request including the second target ip address, the second destination port number and the second object stored messages, described second pair
As stored messages are stored in the external object storage server;
The virtual switch includes the second virtual switch, and second virtual switch includes:
Second access request forwarding module, for being advised according to matched Openflow flow table in the case where successful match
Second access request is then forwarded to local load balancing device;
The local load balancing device, for being visited using reverse proxy mode when receiving second access request
The external object storage server is asked, so that the external object storage server is according to the resource address to described second
Object stored messages described in cloud host response.
As an improvement of the above scheme, the virtual switch further include:
Access request sending module, in the case where it fails to match, the access request to be sent out in the form of first packet
Give SDN controller;Wherein, the SDN controller is preset with the IP address and service port number of the object storage server;
The SDN controller, for matching in the target ip address and the IP address of the object storage server
And in the case that the destination port number and the service port number match, newly-built Openflow flow table rule simultaneously will be new
The Openflow flow table rule built is sent to the virtual switch.
Detailed description of the invention
Fig. 1 is the physical network topology schematic diagram of object storage service in the prior art.
Fig. 2 is a kind of flow diagram of the method for cloud host access object storage server of the embodiment of the present invention 1.
Fig. 3 is a kind of flow diagram of the method for cloud host access object storage server of the embodiment of the present invention 2.
Fig. 4 is a kind of flow diagram of the method for cloud host access object storage server of the embodiment of the present invention 3.
Fig. 5 is a kind of structural schematic diagram of the system of cloud host access object storage server of the embodiment of the present invention 4.
Fig. 6 is a kind of structural schematic diagram of the system of cloud host access object storage server of the embodiment of the present invention 5.
Fig. 7 is the physical network topology schematic diagram of native object storage service in the embodiment of the present invention 5.
Fig. 8 is a kind of structural schematic diagram of the system of cloud host access object storage server of the embodiment of the present invention 6.
Fig. 9 is the physical network topology schematic diagram of external object storage service in the embodiment of the present invention 6.
Specific embodiment
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention.But the present invention can be with
It is different from the other modes of this description much to implement, those skilled in the art can be without violating the connotation of the present invention
Similar popularization is done, therefore the present invention is not limited by the specific embodiments disclosed below.
Clear, complete description is carried out to technical solution of the present invention with attached drawing combined with specific embodiments below.
Embodiment 1
As shown in Fig. 2, being that the process of method of cloud host access object storage server of the embodiment of the present invention 1 a kind of is shown
It is intended to.
A kind of method of cloud host access object storage server of the invention, is suitable for cloud host and object storage service
Device is deployed in the object storage service of same cabinet, and this method comprises the following steps:
S1, the access request that object storage server is initiated by cloud host;Access request includes target ip address, target
The resource address of port numbers and object stored messages, object stored messages are stored in object storage server;
S2, access request is received by virtual switch, and target ip address and destination port number and Openflow are flowed
It is matched in table rule;
S3, in the case where successful match, virtual switch is according to matched Openflow flow table rule by access request
It is forwarded to object storage server, so that object storage server is according to resource address to cloud host response object stored messages.
Compared with prior art, in a kind of method of cloud host of the invention access object storage server, by cloud host
It is deployed in same cabinet with object storage server, so that when cloud host is in the access request for initiating object storage server
When, it, can be by access request when information of the virtual switch in access request and Openflow flow table rule match item matches
It is forwarded to object storage server, and then the resource address acquisition that object storage server is carried according to access request is corresponding right
As stored messages and by virtual switch to the cloud host response object stored messages, the visit of object storage server is realized
It asks.On the one hand the method for cloud host access object storage server passes through distributed arrangement's method and stores cloud host and object
On the other hand server disposition realizes the visit of object storage server in same cabinet using cloud host and virtual switch
Diameter of asking the way drainage avoids so that cloud host can directly access object storage server by virtual switch through core switch
It is routed, prevents the bandwidth of cabinet uplink to the limitation of access speed, access object storage server can be effectively improved
Access efficiency, while can effectively avoid leading to the problem of Single Point of Faliure.
Further, in order to which the speed for improving access object storage server further includes upon step s 2 walking as follows
It is rapid:
S4, in the case where it fails to match, access request is sent to SDN control by virtual switch in the form of first packet
Device;Wherein, SDN controller is preset with the IP address and service port number of object storage server;
S5, SDN controller the IP address of target ip address and object storage server match and destination port number with
In the case that service port number matches, creates an Openflow flow table rule and send out newly-built Openflow flow table rule
It send to virtual switch.
Specifically, in step s 5, access request further includes source MAC, destination-mac address, source IP address and network
Protocol number;Openflow flow table rule includes positive flow table rule and reversed flow table rule;Wherein, positive flow table rule is for referring to
Show that cloud host accesses object storage server, reversed flow table rule is used to indicate object storage server to cloud host response object
Storing data;
SDN controller creates positive flow table rule as follows: successively by source MAC, the mesh in access request
Mark MAC Address, source IP address, target ip address, network protocol number and destination port number are set as the positive flow table rule
With source MAC, destination-mac address, source IP address, target ip address, network protocol number and the destination port number in item, and will
Be forwarded to that local port is set as positive flow table rule executes movement;
SDN controller creates reversed flow table rule as follows: successively by access request destination-mac address,
Source MAC, target ip address, source IP address, network protocol number and destination port number are set as reversed flow table rule match item
In source MAC, destination-mac address, source IP address, target ip address, network protocol number and destination port number, and will forwarding
To cloud host the network port be set as reversed flow table rule execute movement.
In this embodiment, it when not configuring Openflow flow table rule to access request, is initiated newly in cloud host
When access request, new access request is sent to SDN controller by virtual switch in the form of first packet, so that SDN controller root
Corresponding positive flow table rule and direction flow table rule are generated according to access request, so that virtual switch is according to positive flow table
Rule forwarding access request is to obtain object stored messages, and is stored and reported to cloud host response object according to reversed flow table rule
Text can effectively improve the access speed of object storage server.
Embodiment 2
In the method for the cloud host access object storage server of the embodiment of the present invention 2, object storage server includes
Native object storage server;Native object storage server, which is used to indicate, runs on same computer server with cloud host
Object storage server.
As shown in figure 3, being that the process of method of cloud host access object storage server of the embodiment of the present invention 2 a kind of is shown
It is intended to.
The method of the embodiment of the present invention 2 includes the following steps:
S11, the first access request that native object storage server is initiated by cloud host;First access request includes the
The resource address of one target ip address, first object port numbers and the first object stored messages, the storage of the first object stored messages
In native object storage server;
S21, the first access request is received by virtual switch, and by first object IP address and first object port numbers
It is matched with Openflow flow table rule;
S311, in the case where successful match, virtual switch according to matched Openflow flow table rule by first visit
Ask that request is forwarded to native object storage server, so that native object storage server is according to resource address to cloud host response
Object stored messages.
Further, in example 2, after step s 21, further include following steps:
S321, in the case where it fails to match, the first access request is sent to SDN by virtual switch in the form of first packet
Controller;Wherein, SDN controller is preset with the IP address and service port number of native object storage server;
Wherein, first access request further include the first source MAC, first object MAC Address, the first source IP address and
First network protocol number;Openflow flow table rule includes the first positive flow table rule and the first reversed flow table rule;Wherein,
One positive flow table rule is used to indicate cloud host access native object storage server, and the first reversed flow table rule is used to indicate this
Ground object storage server is to cloud host response object storing data.
S322, SDN controller match and target side in the IP address of target ip address and native object storage server
In the case that slogan and service port number match, the Openflow flow table that an Openflow flow table rule and will be created is created
Rule is sent to virtual switch.
In step S322, SDN controller creates the first positive flow table rule as follows:
SDN controller is successively by the first source MAC in the first access request, first object MAC Address, the first source IP
Address, first object IP address, first network protocol number and first object port numbers are set as the first positive flow table rule match
Source MAC, destination-mac address, source IP address, target ip address, network protocol number and destination port number in;And it will turn
Be dealt into that native object storage server port is set as the first positive flow table rule executes movement.
In step S322, SDN controller creates the first reversed flow table rule as follows:
SDN controller is successively by first object MAC Address, the first source MAC, first object in the first access request
IP address, the first source IP address, first network protocol number and first object port numbers are set as the first reversed flow table rule match
Source MAC, destination-mac address, source IP address, target ip address, network protocol number and destination port number in;And it will turn
What the network port for being dealt into cloud host was set as the first reversed flow table rule executes movement.
Embodiment 3
In the method for the cloud host access object storage server of the embodiment of the present invention 3, object storage server includes
External object storage server;External object storage server, which is used to indicate, runs on different computer servers from cloud host
Object storage server.
As shown in figure 4, being that the process of method of cloud host access object storage server of the embodiment of the present invention 3 a kind of is shown
It is intended to.
The method of the embodiment of the present invention 3 includes the following steps:
S12, the second access request that external object storage server is initiated by cloud host;Second access request includes the
The resource address of two target ip address, the second destination port number and the second object stored messages, the storage of the second object stored messages
In external object storage server;
S22, the second access request is received by virtual switch, and by the second target ip address and the second destination port number
It is matched with Openflow flow table rule;
S331, in the case where successful match, virtual switch according to matched Openflow flow table rule by second visit
Ask that request is forwarded to local load balancing device;
Wherein, second access request further include the second source MAC, the second destination-mac address, the second source IP address and
Network protocol No. second;Openflow flow table rule includes the second positive flow table rule and the second reversed flow table rule;Wherein,
Two positive flow table rules are used to indicate cloud host access external object storage server, and the second reversed flow table rule is used to indicate outer
Portion's object storage server is to cloud host response object storing data.
S332, local load balancing device are received the second access request and are stored using reverse proxy mode access external object
Server, so that external object storage server is according to resource address to cloud host response object stored messages.
In this embodiment, the second access request is received by local load balancing device and is visited using reverse proxy mode
It asks external object storage server, can further improve by the second access request equally loaded to external object memory
The access speed of access method.
Further, in embodiment 3, after step s 22 further include following steps:
S341, in the case where it fails to match, the second access request is sent to SDN by virtual switch in the form of first packet
Controller;Wherein, SDN controller is preset with the IP address and service port number of external object storage server;
S342, SDN controller match and the in the IP address of the second target ip address and external object storage server
In the case that two destination port numbers and service port number match, an Openflow flow table rule is created and will be newly-built
Openflow flow table rule is sent to virtual switch.
In step S342, SDN controller creates the second positive flow table rule as follows:
SDN controller is successively by the second source MAC in the second access request, the second destination-mac address, the second source IP
Address, the second target ip address, network protocol No. the second and the second destination port number are set as the second positive flow table rule match
Source MAC, destination-mac address, source IP address, target ip address, network protocol number and destination port number in, and will turn
Be dealt into that external object storage server port is set as the second positive flow table rule executes movement.
In step S342, SDN controller creates the second reversed flow table rule as follows:
SDN controller is successively by the second destination-mac address in the second access request, the second source MAC, the second target
IP address, the second source IP address, network protocol No. the second and the second destination port number are set as the second reversed flow table rule match
Source MAC, destination-mac address, source IP address, target ip address, network protocol number and destination port number in, and will turn
What the network port for being dealt into cloud host was set as the second positive flow table rule executes movement.
Embodiment 4
As shown in figure 5, being that the structure of system of cloud host access object storage server of the embodiment of the present invention 4 a kind of is shown
It is intended to.
The system includes: cloud host 1, for initiating the access request of object storage server;Access request includes target
The resource address of IP address, destination port number and object stored messages, object stored messages are stored in object storage server 2
In;Virtual switch 3, for when receiving access request, by target ip address and destination port number and Openflow flow table
It is matched in rule, and in the case where successful match, is forwarded access request according to matched Openflow flow table rule
To object storage server 2;Object storage server 2, for when receiving access request, according to resource address to cloud host
1 replys object stored messages;SDN controller 4, in target ip address and destination port number and Openflow flow table rule
In the case where with failure, an Openflow flow table rule is created according to access request and the Openflow flow table that will be created is regular
It is sent to virtual switch.
Compared with prior art, in a kind of system of cloud host of the invention access object storage server, by cloud host 1
It is deployed in same cabinet with object storage server 2, so that when cloud host 1 initiates the access request of object storage server 2
When, it, can be by access request when information of the virtual switch 3 in access request and Openflow flow table rule match item matches
It is forwarded to object storage server 2, and then the resource address acquisition that object storage server 2 is carried according to access request is corresponding
Object stored messages simultaneously reply the object stored messages to cloud host 1 by virtual switch 3, realize object storage server 2
Access.Within the system, on the one hand cloud host 1 and object storage server 2 are deployed in together by distributed arrangement's method
In one cabinet, the access path drainage of object storage server 2 is on the other hand realized using cloud host 1 and virtual switch 3,
So that cloud host 1 can directly access object storage server 2 by virtual switch, avoid being routed through core switch,
It prevents the bandwidth of cabinet uplink to the limitation of access speed, the access effect of access object storage server 2 can be effectively improved
Rate, while being avoided that generation Single Point of Faliure, improve the performance of system.
Embodiment 5
As shown in fig. 6, being that the structure of system of cloud host access object storage server of the embodiment of the present invention 5 a kind of is shown
It is intended to.
As shown in fig. 6, the system includes: the first cloud host 11, first for initiating native object storage server is visited
Ask request;First access request includes the resource of first object IP address, first object port numbers and the first object stored messages
Address, the first object stored messages are stored in native object storage server 21;First virtual switch 13, for receiving
When to the first access request, first object IP address and first object port numbers are matched with Openflow flow table rule,
And in the case where successful match, the first access request is forwarded to native object according to matched Openflow flow table rule and is deposited
Store up server 21;Native object storage server 21, for when receiving the first access request, according to resource address to first
Cloud host 11 replys object stored messages;First SDN controller 41, in first object IP address and first object port numbers
In the case where the failure of Openflow flow table rule match, an Openflow flow table rule is created simultaneously according to the first access request
Newly-built Openflow flow table rule is sent to the first virtual switch 31.
Specifically, which includes: the first access request forwarding module, for the feelings in successful match
Under condition, the first access request is forwarded to native object storage server according to matched Openflow flow table rule, so that this
Ground object storage server is according to resource address to the first cloud host response object stored messages;First access request sends mould
Block, in the case where it fails to match, the first access request to be sent to the first SDN controller in the form of first packet;Wherein,
First SDN controller is preset with the IP address and service port number of native object storage server.
Specifically, which further includes the first source MAC, first object MAC Address, the first source IP address
With first network protocol number, Openflow flow table rule includes the first positive flow table rule and the first reversed flow table rule;Wherein,
First positive flow table rule is used to indicate the first cloud host access native object storage server, and the first reversed flow table rule is used for
Indicate native object storage server to the first cloud host response object storing data.
First SDN controller 41 includes: that the first positive flow table creates module, for successively will be in the first access request
First source MAC, first object MAC Address, the first source IP address, first object IP address, first network protocol number and
One destination port number is set as source MAC, destination-mac address, source IP address, mesh in the first positive flow table rule match item
IP address, network protocol number and destination port number are marked, and will be forwarded to native object storage server port and be set as first just
Movement is executed to flow table rule;First reversed flow table creates module, for successively by the first object in the first access request
MAC Address, the first source MAC, first object IP address, the first source IP address, first network protocol number and first object end
Slogan is with being set as source MAC in the first reversed flow table rule match item, destination-mac address, source IP address, Target IP
Location, network protocol number and destination port number, and the network port that will be forwarded to the first cloud host is set as the first reversed flow table rule
Then execute movement.
As shown in Figure 6 and Figure 7, in the system of embodiment 5, the first cloud host 11, native object storage server 21,
One virtual switch 31 and the first SDN controller 41 are run on same computer server, which passes through TOR
Interchanger is connected with core switch.First cloud host 11 can directly access native object storage by the first virtual switch 31
Server 21 can effectively avoid limitation of the bandwidth to access speed of cabinet uplink, improve access speed and efficiency.
Embodiment 6
As shown in figure 8, being that the structure of system of cloud host access object storage server of the embodiment of the present invention 6 a kind of is shown
It is intended to.
The system includes: the second cloud host 12, for initiating the second access request to external object storage server 22;
Second access request includes the resource address of the second target ip address, the second destination port number and the second object stored messages, the
Two object stored messages are stored in external object storage server 22;Second virtual switch 32, for receiving second
When access request, target ip address and destination port number are matched with Openflow flow table rule, and in successful match
In the case of, the second access request is forwarded to local load balancing device 5 according to matched Openflow flow table rule;Local load
Balanced device 5, for when receiving the second access request, using reverse proxy mode access external object storage server 22,
So that external object storage server 22 replys object stored messages to the second cloud host 12 according to resource address;2nd SDN control
Device 42 processed, in the case where target ip address and destination port number and the failure of Openflow flow table rule match, according to the
Newly-built Openflow flow table rule is simultaneously sent to the second virtual friendship by the newly-built Openflow flow table rule of two access requests
Change planes 22.
Specifically, which includes: the second access request forwarding module, in target ip address and
In destination port number and the successful situation of Openflow flow table rule match, according to matched Openflow flow table rule by second
Access request is forwarded to local load balancing device;Second access request sending module, in the case where it fails to match, by the
Two access requests are sent to the 2nd SDN controller in the form of first packet;Wherein, the 2nd SDN controller is preset with external object and deposits
Store up the IP address and service port number of server.
Specifically, which further includes the second source MAC, the second destination-mac address, the second source IP address
With network protocol No. the second, Openflow flow table rule includes the second positive flow table rule and the second reversed flow table rule;Wherein,
Second positive flow table rule is used to indicate the second cloud host access external object storage server, and the second reversed flow table rule is used for
Indicate external object storage server to the second cloud host response object storing data.
2nd SDN controller 42 includes: that the second positive flow table creates module, for successively will be in the second access request
Second source MAC, the second destination-mac address, the second source IP address, the second target ip address, network protocol No. the second and
Two destination port numbers are set as source MAC, destination-mac address, source IP address, mesh in the second positive flow table rule match item
IP address, network protocol number and destination port number are marked, and will be forwarded to local load balancing device port and be set as the second forward stream
Table rule executes movement;Second reversed flow table creates module, for successively by the second Destination MAC in the second access request
Location, the second source MAC, the second target ip address, the second source IP address, network protocol No. the second and the second destination port number are set
Source MAC, destination-mac address, the source IP address, target ip address, network being set in the second reversed flow table rule match item
Protocol number and destination port number, and the network port that will be forwarded to the second cloud host is set as the execution of the second reversed flow table rule
Movement.
As shown in Figure 8 and Figure 9, in the system of embodiment 6, the second cloud host 12, local load balancing device 5, second are empty
Quasi- interchanger 32 and the 2nd SDN controller 42 are run on the same computer server, and external object storage server 22 is transported
For row on another computer server, the same computer server and another computer server pass through TOR respectively
Interchanger is connected with core switch.Second cloud host 12 is forwarded by the second virtual switch 32 to local load balancing device 5
Second access request, so that local load balancing device 5 is using in reverse proxy pattern acquiring external object storage server 22
Object stored messages so that the system can not only by the second access request uniform load to external object storage server 22,
Access speed and efficiency are further increased, but also the security performance of system can be improved by reverse proxy mode.
The above described is only a preferred embodiment of the present invention, limitation in any form not is done to the present invention, therefore
All contents without departing from technical solution of the present invention, it is made to the above embodiment according to the technical essence of the invention any simply to repair
Change, equivalent variations and modification, all of which are still within the scope of the technical scheme of the invention.
Claims (10)
1. a kind of method of cloud host access object storage server, which is characterized in that be suitable for cloud host and object storage clothes
Business device is deployed in the object storage service of same cabinet, and described method includes following steps:
The access request of object storage server is initiated by cloud host;The access request includes target ip address, target side
The resource address of slogan and object stored messages, the object stored messages are stored in the object storage server;
Receive the access request by virtual switch, and by the target ip address and the destination port number with
Openflow flow table rule is matched;
In the case where successful match, the virtual switch is according to matched Openflow flow table rule by the access request
It is forwarded to the object storage server, so that the object storage server is returned according to the resource address to the cloud host
The multiple object stored messages.
2. the method for cloud host access object storage server as described in claim 1, which is characterized in that the object storage
Server includes native object storage server, and the native object storage server is used to indicate to be run on the cloud host
The object storage server of same computer server;
In the case where successful match, the virtual switch is according to matched Openflow flow table rule by the access request
It is forwarded to the object storage server, is included the following steps:
The access request is forwarded to the native object according to matched Openflow flow table rule by the virtual switch
Storage server, so that the native object storage server is according to the resource address to object described in the cloud host response
Stored messages.
3. the method for cloud host access object storage server as described in claim 1, which is characterized in that the object storage
Server includes external object storage server, and the external object storage server is used to indicate to be run on the cloud host
The object storage server of different computer servers;
In the case where successful match, the virtual switch is according to matched Openflow flow table rule by the access request
It is forwarded to the object storage server, is included the following steps:
The access request is forwarded to local load balancing according to matched Openflow flow table rule by the virtual switch
Device;
The local load balancing device receives the access request and using the storage of external object described in reverse proxy mode access
Server, so that the external object storage server is stored according to the resource address to object described in the cloud host response
Message.
4. the method for cloud host access object storage server as described in claim 1, which is characterized in that in virtual switch
The access request is received, and the target ip address and the destination port number and local Openflow flow table rule are carried out
Further include following steps after matching:
In the case where it fails to match, the access request is sent to SDN control by the virtual switch in the form of first packet
Device;Wherein, the SDN controller is preset with the IP address and service port number of the object storage server;
The SDN controller matches and the target in the IP address of the target ip address and the object storage server
In the case that port numbers and the service port number match, an Openflow flow table rule is created and will be newly-built
Openflow flow table rule is sent to the virtual switch.
5. the method for cloud host access object storage server as claimed in claim 4, which is characterized in that the access request
It further include source MAC, destination-mac address, source IP address and network protocol number;
The Openflow flow table rule includes positive flow table rule and reversed flow table rule;Wherein, the positive flow table rule
It is used to indicate cloud host access object storage server, the reversed flow table rule is used to indicate object storage server to cloud master
Machine replys object storing data;
The SDN controller creates the positive flow table rule as follows:
Successively by the source MAC in the access request, destination-mac address, source IP address, target ip address, network protocol
Number and destination port number be set as source MAC in the positive flow table rule match item, destination-mac address, source IP address,
Target ip address, network protocol number and destination port number, and will be forwarded to local port and be set as the positive flow table rule
Execute movement;
The SDN controller creates the reversed flow table rule as follows:
Successively by the destination-mac address in the access request, source MAC, target ip address, source IP address, network protocol
Number and destination port number be set as source MAC in the reversed flow table rule match item, destination-mac address, source IP address,
Target ip address, network protocol number and destination port number, and the network port that will be forwarded to cloud host is set as the reverse flow
Table rule executes movement.
6. the method for cloud host access object storage server as claimed in claim 5, which is characterized in that the local port
Including native object storage server port and local load balancing device port;
The forward direction flow table rule includes the first positive flow table rule and the second positive flow table rule;
It is described will be forwarded to local port and be set as the execution of the positive flow table rule act and include the following steps:
When the object storage server is native object storage server, native object storage server port will be forwarded to
Be set as the described first positive flow table rule executes movement;
When the object storage server is local load balancing device, it will be forwarded to local load balancing device port and be set as institute
That states the second positive flow table rule executes movement.
7. a kind of system of cloud host access object storage server, which is characterized in that be suitable for cloud host and object storage clothes
Business device is deployed in the object storage service of same cabinet, the system comprises:
Cloud host, for initiating the access request of object storage server;The access request includes target ip address, target side
The resource address of slogan and object stored messages, the object stored messages are stored in the object storage server;
Virtual switch, for when receiving the access request, by the target ip address and the destination port number with
It is matched in Openflow flow table rule, and in the case where successful match, it will according to matched Openflow flow table rule
The access request is forwarded to the object storage server;
The object storage server, for when receiving the access request, according to the resource address to the cloud master
Machine replys the object stored messages.
8. the system of cloud host access object storage server as claimed in claim 7, which is characterized in that the object storage
Server includes native object storage server, and the cloud host includes the first cloud host, the native object storage server
It is used to indicate the object storage server that same computer server is run on the first cloud host;
The first cloud host, for initiating the first access request of native object storage server;First access request
Resource address including first object IP address, first object port numbers and the first object stored messages, first object are deposited
Packet storage is stored up in the native object storage server;
The virtual switch includes the first virtual switch, and first virtual switch includes:
First access request forwarding module is used in the case where successful match, will according to matched Openflow flow table rule
First access request is forwarded to the native object storage server, so that the native object storage server is according to institute
Resource address is stated to object stored messages described in the first cloud host response.
9. the system of cloud host access object storage server as claimed in claim 7, which is characterized in that the object storage
Server includes external object storage server, and the cloud host includes the second cloud host, the external object storage server
It is used to indicate the object storage server that different computer servers are run on from the second cloud host;
The second cloud host, for initiating the second access request of external object storage server;Second access request
Resource address including the second target ip address, the second destination port number and the second object stored messages, second object are deposited
Packet storage is stored up in the external object storage server;
The virtual switch includes the second virtual switch, and second virtual switch includes:
Second access request forwarding module is used in the case where successful match, will according to matched Openflow flow table rule
Second access request is forwarded to local load balancing device;
The local load balancing device, for when receiving second access request, using reverse proxy mode access institute
External object storage server is stated, so that the external object storage server is according to the resource address to the second cloud master
Machine replys the object stored messages.
10. the system of cloud host access object storage server as claimed in claim 7, which is characterized in that the virtual friendship
It changes planes further include:
Access request sending module, in the case where it fails to match, the access request to be sent in the form of first packet
SDN controller;Wherein, the SDN controller is preset with the IP address and service port number of the object storage server;
The SDN controller, matches and institute for the IP address in the target ip address and the object storage server
It states destination port number and in the case that the service port number matches, creates an Openflow flow table rule and will be newly-built
Openflow flow table rule is sent to the virtual switch.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810953754.7A CN109120556B (en) | 2018-08-21 | 2018-08-21 | A kind of method and system of cloud host access object storage server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810953754.7A CN109120556B (en) | 2018-08-21 | 2018-08-21 | A kind of method and system of cloud host access object storage server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109120556A true CN109120556A (en) | 2019-01-01 |
CN109120556B CN109120556B (en) | 2019-07-09 |
Family
ID=64853388
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810953754.7A Active CN109120556B (en) | 2018-08-21 | 2018-08-21 | A kind of method and system of cloud host access object storage server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109120556B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110519400A (en) * | 2019-10-17 | 2019-11-29 | 南京甄视智能科技有限公司 | Equipment flow is carried out to the implementation method of the platform of internet of things of multiple entry separation |
WO2020244298A1 (en) * | 2019-06-04 | 2020-12-10 | 华为技术有限公司 | Data exchange device, server, and communication system |
CN112291340A (en) * | 2020-10-28 | 2021-01-29 | 武汉绿色网络信息服务有限责任公司 | Service distribution method, controller and virtual network element |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103503414A (en) * | 2012-12-31 | 2014-01-08 | 华为技术有限公司 | Computing storage integration cluster system |
CN103617083A (en) * | 2013-10-31 | 2014-03-05 | 中兴通讯股份有限公司 | Storage scheduling method and system, job scheduling method and system and management node |
CN104135539A (en) * | 2014-08-15 | 2014-11-05 | 华为技术有限公司 | Data storage method, SDN controller and distributed network storage system |
CN104486103A (en) * | 2014-12-03 | 2015-04-01 | 杭州华三通信技术有限公司 | Message transmission method and equipment |
US20160330281A1 (en) * | 2015-05-07 | 2016-11-10 | Dell Products L.P. | Systems and methods to improve read/write performance in object storage applications |
CN106385365A (en) * | 2015-08-07 | 2017-02-08 | 杭州华三通信技术有限公司 | Method of realizing cloud platform safety based on openflow table and apparatus thereof |
CN108235751A (en) * | 2017-12-18 | 2018-06-29 | 华为技术有限公司 | Identify the method, apparatus and data-storage system of object storage device inferior health |
-
2018
- 2018-08-21 CN CN201810953754.7A patent/CN109120556B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103503414A (en) * | 2012-12-31 | 2014-01-08 | 华为技术有限公司 | Computing storage integration cluster system |
CN103617083A (en) * | 2013-10-31 | 2014-03-05 | 中兴通讯股份有限公司 | Storage scheduling method and system, job scheduling method and system and management node |
CN104135539A (en) * | 2014-08-15 | 2014-11-05 | 华为技术有限公司 | Data storage method, SDN controller and distributed network storage system |
CN104486103A (en) * | 2014-12-03 | 2015-04-01 | 杭州华三通信技术有限公司 | Message transmission method and equipment |
US20160330281A1 (en) * | 2015-05-07 | 2016-11-10 | Dell Products L.P. | Systems and methods to improve read/write performance in object storage applications |
CN106385365A (en) * | 2015-08-07 | 2017-02-08 | 杭州华三通信技术有限公司 | Method of realizing cloud platform safety based on openflow table and apparatus thereof |
CN108235751A (en) * | 2017-12-18 | 2018-06-29 | 华为技术有限公司 | Identify the method, apparatus and data-storage system of object storage device inferior health |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020244298A1 (en) * | 2019-06-04 | 2020-12-10 | 华为技术有限公司 | Data exchange device, server, and communication system |
CN110519400A (en) * | 2019-10-17 | 2019-11-29 | 南京甄视智能科技有限公司 | Equipment flow is carried out to the implementation method of the platform of internet of things of multiple entry separation |
CN110519400B (en) * | 2019-10-17 | 2022-03-25 | 南京甄视智能科技有限公司 | Method for realizing Internet of things platform for carrying out multi-inlet separation on equipment flow |
CN112291340A (en) * | 2020-10-28 | 2021-01-29 | 武汉绿色网络信息服务有限责任公司 | Service distribution method, controller and virtual network element |
CN112291340B (en) * | 2020-10-28 | 2022-06-03 | 武汉绿色网络信息服务有限责任公司 | Service distribution method, controller and virtual network element |
Also Published As
Publication number | Publication date |
---|---|
CN109120556B (en) | 2019-07-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3490203B1 (en) | Method and system for implementing a vxlan control plane | |
EP3249545B1 (en) | Content delivery network | |
CN107078969A (en) | Realize computer equipment, the system and method for load balancing | |
CN110351246A (en) | Server cluster system Socket management method and device | |
CN105577723B (en) | Virtualize the method and apparatus that load balancing is realized in network | |
CN109120556B (en) | A kind of method and system of cloud host access object storage server | |
CN111193773B (en) | Load balancing method, device, equipment and storage medium | |
CN110430274A (en) | A kind of document down loading method and system based on cloud storage | |
CN111884902B (en) | VPN scene network shunting method and device | |
CN107181681B (en) | SDN two-layer forwarding method and system | |
CN109743414B (en) | Method for improving address translation availability using redundant connections and computer readable storage medium | |
TWI759571B (en) | Data transfer method based on flow table | |
CN113014611B (en) | Load balancing method and related equipment | |
CN103595743B (en) | A kind of method, apparatus and system of downloading application software | |
US20210368006A1 (en) | Request response method, device, and system applied to bit torrent system | |
CN103841159B (en) | Offline file transmission system and method | |
CN114422519B (en) | Data request processing method and device, electronic equipment and storage medium | |
CN106209680A (en) | Information processor and method | |
US11523443B2 (en) | Extraction, conversion, and transmission of user packet from encapsulated packet | |
JP2011118593A (en) | Data transfer server, data transfer system, data transfer method, and program | |
CN106790647A (en) | A kind of method and system of self adaptation Service Management | |
US8855015B2 (en) | Techniques for generic pruning in a trill network | |
CN103731511B (en) | Data acquiring method and data acquiring device in P2P (Peer-to-Peer) system | |
CN112579301B (en) | NDN-based data transmission method for P2P distributed machine learning training system | |
CN109413142A (en) | A kind of iSCSI virtual protocol implementation method under Linux |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |