Summary of the invention
Present invention is primarily targeted at method and device that a kind of data access is provided, it is intended to solve how to simplify the network configuration of data access and improve the technical problem of access rate.
For achieving the above object, the present invention provides a kind of method of data access, and the method for described data access comprises the following steps:
S1, the first service node receives the service request that terminal sends, and comprises the purpose Route Distinguisher of purpose service node in described service request;
S2, it is judged that whether the Route Distinguisher of described first service node is identical with described purpose Route Distinguisher;
S3, if so, then obtains the data message corresponding with described service request;
S4, if it is not, described service request is then transmitted to the second service node, returns S2 and judges the Route Distinguisher whether step identical with described purpose Route Distinguisher of described second service node and circulate, until getting corresponding data message.
Preferably, also include after described step S4:
S5, it is judged that whether the Route Distinguisher of the service node getting data message is identical with the Route Distinguisher of described first service node;
S6, if not, acquired data message is forwarded to the 3rd service node, returns S5 and judge the Route Distinguisher whether step identical with the Route Distinguisher of described first service node of described 3rd service node and circulate, until described data message being forwarded to described first service node.
Preferably, also include after described step S3:
Obtain the local resource data of described first service node, merge described local resource data and data message, the local resource data after merging and data message are fed back to and display in described terminal.
Preferably, described local resource data include: chart, picture, form and/or process logic.
Preferably, the described step that described service request is transmitted to the second service node includes:
Routing table according to described first service node storage or described service request is transmitted to described second service node by addressing technique.
Additionally, for achieving the above object, the present invention also provides for the device of a kind of data access, and the device of described data access includes:
Represent module, receive, for the first service node, the service request that terminal sends, described service request comprises the purpose Route Distinguisher of purpose service node;
Routing module, for judging that whether the Route Distinguisher of described first service node is identical with described purpose Route Distinguisher;
If so, data module, for then obtaining the data message corresponding with described service request;
Routing module, it is additionally operable to if not, then described service request is transmitted to the second service node, and the routing module triggering described second service node judges that whether the Route Distinguisher of described second service node is identical with described purpose Route Distinguisher, until getting the data message of correspondence.
Preferably,
Described routing module, whether the Route Distinguisher being additionally operable to judge to get the service node of data message is identical with the Route Distinguisher of described first service node, if differing, acquired data message is forwarded to the 3rd service node, and the routing module triggering described 3rd service node judges that whether the Route Distinguisher of described 3rd service node is identical with the Route Distinguisher of described first service node, until described data message being forwarded to described first service node.
Preferably,
The described module that represents is additionally operable to obtain the local resource data of described first service node, merges described local resource data and data message, and the local resource data after merging and data message are fed back to and displayed in described terminal.
Preferably, described local resource data include: chart, picture, form and/or process logic.
Preferably, described service request specifically for the routing table according to described first service node storage or is transmitted to described second service node by addressing technique by described routing module.
The method of a kind of data access of the present invention and device, forwarded from being about to service request by service node, corresponding service request retransmission unit need not be configured, also without carrying out configuring and safeguarding, when there being more service node, workload is still less, the configuration of forwarded when the present embodiment can simplify data access, improves the speed of data access.
Detailed description of the invention
Should be appreciated that specific embodiment described herein is only in order to explain the present invention, is not intended to limit the present invention.
The present invention provides a kind of method of data access, and with reference to Fig. 2, in one embodiment, the method for this data access includes:
Step S1, the first service node receives the service request that terminal sends, and comprises the purpose Route Distinguisher of purpose service node in described service request;
The present embodiment is applied in large computer system, within the system, has multiple independent service node, is connected by internal network between each service node, the data message of the corresponding business of storage in each service node.
In the present embodiment, when terminal is subject to access rights restriction, the service node of Internet access is selected to conduct interviews as the first service node;Or when network occurs to postpone, select the service node with good access speed to conduct interviews as the first service node.
Service request is sent to the first service node by terminal, comprises the purpose Route Distinguisher of the service node of the data message to obtain in this service request.
Step S2, it is judged that whether the Route Distinguisher of described first service node is identical with described purpose Route Distinguisher;By the first service node, the present embodiment judges that whether the Route Distinguisher of self is identical with purpose Route Distinguisher, if identical, then enter step S3, otherwise enter step S4;
Step S3, if so, then obtains the data message corresponding with described service request;
If the Route Distinguisher of the first service node is identical with purpose Route Distinguisher, then service node for the purpose of the first service node, obtain the data message of storage in purpose service node;
Step S4, if it is not, described service request is then transmitted to the second service node, returns S2 and judges the Route Distinguisher whether step identical with described purpose Route Distinguisher of described second service node and circulate, until getting corresponding data message.
In the present embodiment, if the Route Distinguisher of the first service node and purpose Route Distinguisher differ, then service request is transmitted to the second service node by the first service node, wherein, service request is transmitted to the second service node near terminal according to the routing table self stored or by addressing technique (including IP addressing or domain name addressing etc.) by the first service node.
Then, the second service node is after receiving service request, it is judged that whether the Route Distinguisher of himself is identical with the purpose Route Distinguisher in service request, if identical, then service node for the purpose of the second service node, obtain the data message of storage in purpose service node;
If the Route Distinguisher of the second service node and purpose Route Distinguisher differ, second service node continues service request is transmitted to next service node, so circulation, until the Route Distinguisher in the service node being forwarded to is identical with purpose Route Distinguisher, then obtains corresponding data message.
Compared with prior art, the present embodiment is forwarded from being about to service request by service node, corresponding service request retransmission unit need not be configured, also without carrying out configuring and safeguarding, when there being more service node, workload is still less, the configuration of forwarded when the present embodiment can simplify data access, improves the speed of data access.
In a preferred embodiment, as it is shown on figure 3, on the basis of the embodiment of above-mentioned Fig. 2, also include after above-mentioned steps S4:
Step S5, it is judged that whether the Route Distinguisher of the service node getting data message is identical with the Route Distinguisher of described first service node;If identical, then enter step S7, otherwise enter step S6;
Step S6, if not, acquired data message is forwarded to the 3rd service node, returns S5 and judge the Route Distinguisher whether step identical with the Route Distinguisher of described first service node of described 3rd service node and circulate, until described data message being forwarded to described first service node;
Step S7, the first service node obtains data message.
In the present embodiment, after getting data message, the service node getting data message judges that whether the Route Distinguisher of self is identical with the Route Distinguisher of the service node receiving service request, namely judge whether identical with the Route Distinguisher of the first service node, if identical, namely get data message from the first service node;
If the Route Distinguisher of the Route Distinguisher and the first service node that get the service node of data message differs, data message is transmitted to next service node by the service node getting data message, judged that whether the Route Distinguisher of self is identical with the Route Distinguisher of the first service node by next service node, so circulation, until being forwarded to the first service node by data message.
In a preferred embodiment, as shown in Figure 4, on the basis of the embodiment of above-mentioned Fig. 3, also include after above-mentioned steps S7:
Step S8, obtains the local resource data of described first service node, merges described local resource data and data message, and the local resource data after merging and data message are fed back to and displayed in described terminal.
The present embodiment is after the first service node gets data message, the local resource data of self storage are obtained by the first service node, local resource data include but not limited to chart, picture, form and/or process logic etc., accessed data message and local resource data are merged by described process logic, fill to the local resource data such as chart, picture, form by data message, obtain video data intuitively, then feed back to terminal, terminal display.
The present embodiment is by carrying out the forwarding of service request between service node, get the data message on corresponding service node, data message is being carried out in the process fed back, chart, picture, form need not be carried and process the resource datas such as logic, simplify the data transmitted, and data message and local resource data are stored separately on service node, after getting data message, obtain local resource data again and carry out the merging of data, it is possible to increase the speed of data access.
In the present embodiment, such as in a certain enterprise, on each service node, all storage has data message and the local resource data of corresponding business, produce service node, in selling operation node and the respective Database Systems of financial affair work node, storage has creation data respectively, sales data, financial data, terminal needs to obtain creation data, sales data, financial data carries out adding up or during other use, when terminal is subject to access rights restriction, service request is issued to the service node of Internet access, or when network occurs to postpone, service request is issued to the service node with good access speed, service request route between service node and forwards, after the data message getting correspondence, feed back on initial service node, then merge with the local resource data on this service node, become the data that can represent.
The present embodiment need not configure corresponding service request retransmission unit, also without carrying out configuring and safeguarding, by data resource multiplexing and route technology, simplify network configuration, quickly access the data message of multiple service nodes in network, the data volume of reduction network transmission, and the time of Business Processing can be shortened, improve the speed of data access.
The present invention also provides for the device of a kind of data access, as it is shown in figure 5, in one embodiment, the device of this data access includes:
Represent module, receive, for the first service node, the service request that terminal sends, described service request comprises the purpose Route Distinguisher of purpose service node;
The present embodiment is applied in large computer system, within the system, has multiple independent service node, is connected by internal network between each service node, the data message of the corresponding business of storage in each service node.
In the present embodiment, when terminal is subject to access rights restriction, the service node of Internet access is selected to conduct interviews as the first service node;Or when network occurs to postpone, select the service node with good access speed to conduct interviews as the first service node.
What service request was sent to the first service node by terminal represents module, comprises the purpose Route Distinguisher of the service node of the data message to obtain in this service request.
Routing module, for judging that whether the Route Distinguisher of described first service node is identical with described purpose Route Distinguisher;
If so, data module, for then obtaining the data message corresponding with described service request;
If the Route Distinguisher of the first service node is identical with purpose Route Distinguisher, then service node for the purpose of the first service node, obtain the data message of storage in purpose service node;
Routing module, it is additionally operable to if not, then described service request is transmitted to the second service node, and the routing module triggering described second service node judges that whether the Route Distinguisher of described second service node is identical with described purpose Route Distinguisher, until getting the data message of correspondence.
In the present embodiment, if the Route Distinguisher of the first service node and purpose Route Distinguisher differ, then service request is transmitted to the routing module of the second service node by the routing module of the first service node, wherein, the routing module of the first service node is according to the routing table self stored or the routing module that service request is transmitted to (including IP addressing or domain name addressing etc.) the second service node near terminal by addressing technique.
Then, the routing module of the second service node is after receiving service request, it is judged that whether the Route Distinguisher of himself is identical with the purpose Route Distinguisher in service request, if identical, then service node for the purpose of the second service node, obtains the data message of storage in purpose service node;
If the Route Distinguisher of the second service node and purpose Route Distinguisher differ, the routing module of the second service node continues service request is transmitted to next service node, so circulation, until the Route Distinguisher in the service node being forwarded to is identical with purpose Route Distinguisher, then obtain corresponding data message.
In a preferred embodiment, on the basis of the embodiment of above-mentioned Fig. 5, described routing module, whether the Route Distinguisher being additionally operable to judge to get the service node of data message is identical with the Route Distinguisher of described first service node, if differing, acquired data message is forwarded to the 3rd service node, and the routing module triggering described 3rd service node judges that whether the Route Distinguisher of described 3rd service node is identical with the Route Distinguisher of described first service node, until described data message being forwarded to described first service node.
In the present embodiment, after getting data message, the routing module getting the service node of data message judges that whether the Route Distinguisher of self is identical with the Route Distinguisher of the service node receiving service request, namely judge whether identical with the Route Distinguisher of the first service node, if identical, namely get data message from the first service node;
If the Route Distinguisher of the Route Distinguisher and the first service node that get the service node of data message differs, data message is transmitted to the routing module of next service node by the service node getting data message, judged that whether the Route Distinguisher of self is identical with the Route Distinguisher of the first service node by the routing module of next service node, so circulation, until being forwarded to the first service node by data message.
In a preferred embodiment, on the basis of the embodiment of above-mentioned Fig. 5, the described module that represents is additionally operable to obtain the local resource data of described first service node, merge described local resource data and data message, the local resource data after merging and data message are fed back to and display in described terminal.
The present embodiment is after the routing module of the first service node gets data message, the local resource data of self storage are obtained by the module that represents of the first service node, local resource data include but not limited to chart, picture, form and/or process logic etc., accessed data message and local resource data are merged by described process logic, fill to the local resource data such as chart, picture, form by data message, obtain video data intuitively, then represent the data after module feedback merges to terminal, terminal display.
The present embodiment carries out the forwarding of service request by the routing module between service node, get the data message on corresponding service node, data message is being carried out in the process fed back, chart, picture, form need not be carried and process the resource datas such as logic, simplify the data transmitted, and data message and local resource data are stored separately on service node, data message is obtained by data module, after getting data message, again by representing module acquisition local resource data, carry out the merging of data, it is possible to increase the speed of data access.
In the present embodiment, such as in a certain enterprise, on each service node, all storage has data message and the local resource data of corresponding business, produce service node, in selling operation node and the respective Database Systems of financial affair work node, storage has creation data respectively, sales data, financial data, terminal needs to obtain creation data, sales data, financial data carries out adding up or during other use, when terminal is subject to access rights restriction, service request is issued to the service node of Internet access, or when network occurs to postpone, service request is issued to the service node with good access speed, service request route between service node and forwards, after the data message getting correspondence, feed back on initial service node, then merge with the local resource data on this service node, become the data that can represent.
The present embodiment need not configure corresponding service request retransmission unit, also without carrying out configuring and safeguarding, by data resource multiplexing and route technology, simplify network configuration, quickly access the data message of multiple service nodes in network, the data volume of reduction network transmission, and the time of Business Processing can be shortened, improve the speed of data access.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every equivalent structure utilizing description of the present invention and accompanying drawing content to make or equivalence flow process conversion; or directly or indirectly it is used in other relevant technical fields, all in like manner include in the scope of patent protection of the present invention.