Summary of the invention
The main purpose of the present invention is to provide a kind of method and devices of data access, it is intended to solve how to simplify data
The network configuration of access and the technical issues of improve access rate.
To achieve the above object, the present invention provides a kind of method of data access, the method for the data access include with
Lower step:
S1, the first service node receive the service request that terminal is sent, and include purpose service node in the service request
Purpose Route Distinguisher;
S2 judges whether the Route Distinguisher of first service node is identical as the purpose Route Distinguisher;
S3, if so, obtaining data information corresponding with the service request;
S4 returns to S2 and judges second service node if it is not, the service request is then transmitted to the second service node
Whether identical as the purpose Route Distinguisher step of Route Distinguisher and circulation, until getting corresponding data information.
Preferably, after the step S4 further include:
S5, judgement get data information service node Route Distinguisher whether the routing with first service node
It identifies identical;
S6 returns to S5 and judges the third business section if it is not, acquired data information is forwarded to third service node
The Route Distinguisher of point step whether identical as the Route Distinguisher of first service node and circulation, until the data are believed
Breath is forwarded to first service node.
Preferably, after the step S3 further include:
The local resource data for obtaining first service node merge the local resource data and data information, will
Local resource data and data information after merging, which are fed back in the terminal, to be shown.
Preferably, the local resource data include: chart, picture, table and/or processing logic.
Preferably, the described the step of service request is transmitted to the second service node, includes:
The service request is transmitted to according to the routing table of first service node storage or by addressing technique
Second service node.
In addition, to achieve the above object, the present invention also provides a kind of device of data access, the device of the data access
Include:
Display module receives the service request that terminal is sent for the first service node, includes mesh in the service request
Service node purpose Route Distinguisher;
Routing module, for judge first service node Route Distinguisher whether with the purpose Route Distinguisher phase
Together;
Data module is used for if so, obtaining data information corresponding with the service request;
Routing module is also used to if it is not, the service request is then transmitted to the second service node, and trigger described second
The routing module of service node judges whether the Route Distinguisher of second service node is identical as the purpose Route Distinguisher, directly
To getting corresponding data information.
Preferably,
Whether the routing module is also used to judge to get the Route Distinguisher of the service node of data information with described the
The Route Distinguisher of one service node is identical, if not identical, acquired data information is forwarded to third service node, and trigger
The routing module of the third service node judge the third service node Route Distinguisher whether with the first business section
The Route Distinguisher of point is identical, until the data information is forwarded to first service node.
Preferably,
The display module is also used to obtain the local resource data of first service node, merges the local resource
Data and data information, by after merging local resource data and data information feed back in the terminal and show.
Preferably, the local resource data include: chart, picture, table and/or processing logic.
Preferably, the routing module is specifically used for the routing table stored according to first service node or by seeking
The service request is transmitted to second service node by location technology.
A kind of method and device of data access of the present invention, is about to service request certainly by service node and is forwarded, no
Corresponding service request retransmission unit is needed to configure, does not also need to be configured and safeguarded, the work when there is more service node
Measure still smaller, the configuration of forwarded when the present embodiment can simplify data access improves the rate of data access.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of method of data access, referring to Fig. 2, in one embodiment, the method packet of the data access
It includes:
Step S1, the first service node receive the service request that terminal is sent, and include purpose business in the service request
The purpose Route Distinguisher of node;
The present embodiment is applied in large computer system, within the system, has multiple independent service nodes, each
It is connected between service node by internal network, the data information of corresponding business is stored in each service node.
In the present embodiment, when terminal is limited by access authority, select the service node of Internet access as the first industry
Business node accesses;Or when network postpones, select the service node with good access speed as the first industry
Business node accesses.
Service request is sent to the first service node by terminal, comprising the data information to be obtained in the service request
The purpose Route Distinguisher of service node.
Step S2 judges whether the Route Distinguisher of first service node is identical as the purpose Route Distinguisher;This reality
It applies example and judges whether the Route Distinguisher of itself is identical as purpose Route Distinguisher by the first service node, if identical, enter step
Rapid S3, otherwise enters step S4;
Step S3, if so, obtaining data information corresponding with the service request;
If the Route Distinguisher of the first service node is identical as purpose Route Distinguisher, the first service node is purpose business
Node obtains the data information stored in purpose service node;
Step S4 returns to S2 and judges second business if it is not, the service request is then transmitted to the second service node
The Route Distinguisher of node step whether identical as the purpose Route Distinguisher and circulation, until getting corresponding data letter
Breath.
In the present embodiment, if the Route Distinguisher of the first service node and purpose Route Distinguisher be not identical, the first business
Service request is transmitted to the second service node by node, wherein the first service node is according to the routing table itself stored or leads to
It crosses addressing technique (including IP addressing or domain name addressing etc.) and service request is transmitted to the second service node near terminal.
Then, the second service node is after receiving service request, judge its own Route Distinguisher whether with service request
In purpose Route Distinguisher it is identical, if identical, the second service node be purpose service node, obtain purpose service node in
The data information of storage;
If the Route Distinguisher of the second service node and purpose Route Distinguisher be not identical, the second service node continues business
Request is transmitted to next service node, so recycles, until Route Distinguisher and purpose road in the service node being forwarded to
It is identical by identifying, then obtain corresponding data information.
Compared with prior art, the present embodiment is forwarded by service node from being about to service request, does not need to configure
Corresponding service request retransmission unit, does not need to be configured and safeguarded yet, when there is more service node workload still compared with
Small, the configuration of forwarded when the present embodiment can simplify data access improves the rate of data access.
In a preferred embodiment, as shown in figure 3, on the basis of the embodiment of above-mentioned Fig. 2, above-mentioned steps S4 it
Afterwards further include:
Step S5, judgement get data information service node Route Distinguisher whether with first service node
Route Distinguisher is identical;If they are the same, then S7 is entered step, S6 is otherwise entered step;
Step S6 returns to S5 and judges the third industry if it is not, acquired data information is forwarded to third service node
The Route Distinguisher of business node step whether identical as the Route Distinguisher of first service node and circulation, until by the number
It is believed that breath is forwarded to first service node;
Step S7, the first service node obtain data information.
In the present embodiment, after getting data information, the service node for getting data information judges the routing of itself
It identifies whether identical as the Route Distinguisher for the service node for receiving service request, that is, judges and the routing mark of the first service node
Whether knowledge is identical, if identical, i.e., gets data information from the first service node;
If the Route Distinguisher for getting the service node of data information is not identical as the Route Distinguisher of the first service node,
Data information is transmitted to next service node by the service node for getting data information, certainly by the judgement of next service node
Whether the Route Distinguisher of body is identical as the Route Distinguisher of the first service node, so recycles, until data information is forwarded to the
One service node.
In a preferred embodiment, as shown in figure 4, on the basis of the embodiment of above-mentioned Fig. 3, above-mentioned steps S7 it
Afterwards further include:
Step S8 obtains the local resource data of first service node, merges the local resource data and data
Information, by after merging local resource data and data information feed back in the terminal and show.
The present embodiment is obtained the sheet of itself storage by the first service node after the first service node gets data information
Ground resource data, local resource data include but is not limited to chart, picture, table and/or processing logic etc., will be accessed
Data information is merged with local resource data by the processing logic, i.e., fills data information to chart, picture, table
In the local resources data such as lattice, obtains intuitively showing data, then feed back to terminal, shown by terminal.
The present embodiment gets the data on corresponding service node by the forwarding of progress service request between service node
Information does not need to carry the number of resources such as chart, picture, table and processing logic during being fed back data information
According to, transmitted data are simplified, and data information and local resource data are stored separately on service node, it is getting
After data information, then the merging that local resource data carry out data is obtained, can be improved the rate of data access.
In the present embodiment, such as in a certain enterprise, the data information of corresponding business is stored on each service node
And local resource data, it produces in service node, selling operation node and the respective Database Systems of financial affair work node respectively
It is stored with creation data, sales data, financial data, terminal needs to obtain creation data, sales data, financial data and unites
When meter or other use, when terminal is limited by access authority, service request is issued to the service node of Internet access, or
Person is issued to the service node with good access speed when network postpones, by service request, and service request is in business
Route and forward between node, after getting corresponding data information, feed back on initial service node, then with the industry
Local resource data on business node merge, and become the data that can show.
The present embodiment does not need to configure corresponding service request retransmission unit, does not need to be configured and safeguarded yet, pass through
Data resource multiplexing and route technology simplify network configuration, quickly access the data information of multiple service nodes in network, reduce
The data volume of network transmission, and the time of business processing can be shortened, improve the rate of data access.
The present invention also provides a kind of devices of data access, as shown in figure 5, in one embodiment, the dress of the data access
It sets and includes:
Display module receives the service request that terminal is sent for the first service node, includes mesh in the service request
Service node purpose Route Distinguisher;
The present embodiment is applied in large computer system, within the system, has multiple independent service nodes, each
It is connected between service node by internal network, the data information of corresponding business is stored in each service node.
In the present embodiment, when terminal is limited by access authority, select the service node of Internet access as the first industry
Business node accesses;Or when network postpones, select the service node with good access speed as the first industry
Business node accesses.
Service request is sent to the display module of the first service node by terminal, includes to be obtained in the service request
The purpose Route Distinguisher of the service node of data information.
Routing module, for judge first service node Route Distinguisher whether with the purpose Route Distinguisher phase
Together;
Data module is used for if so, obtaining data information corresponding with the service request;
If the Route Distinguisher of the first service node is identical as purpose Route Distinguisher, the first service node is purpose business
Node obtains the data information stored in purpose service node;
Routing module is also used to if it is not, the service request is then transmitted to the second service node, and trigger described second
The routing module of service node judges whether the Route Distinguisher of second service node is identical as the purpose Route Distinguisher, directly
To getting corresponding data information.
In the present embodiment, if the Route Distinguisher of the first service node and purpose Route Distinguisher be not identical, the first business
Service request is transmitted to the routing module of the second service node by the routing module of node, wherein the routing of the first service node
Module is according to the routing table itself stored or passes through addressing technique (including IP addressing or domain name addressing etc.) for service request
It is transmitted to the routing module of the second service node near terminal.
Then, the routing module of the second service node is after receiving service request, judge its own Route Distinguisher whether
Identical as the purpose Route Distinguisher in service request, if identical, the second service node is purpose service node, obtains purpose
The data information stored in service node;
If the Route Distinguisher of the second service node and purpose Route Distinguisher be not identical, the routing module of the second service node
Continue for service request to be transmitted to next service node, so recycle, until the routing mark in the service node being forwarded to
Knowledge is identical as purpose Route Distinguisher, then obtains corresponding data information.
In a preferred embodiment, on the basis of the embodiment of above-mentioned Fig. 5, the routing module is also used to judge
Whether the Route Distinguisher for getting the service node of data information is identical as the Route Distinguisher of first service node, if not phase
Together, acquired data information is forwarded to third service node, and triggers the routing module judgement of the third service node
Whether the Route Distinguisher of the third service node is identical as the Route Distinguisher of first service node, until by the data
Information is forwarded to first service node.
In the present embodiment, after getting data information, the routing module judgement of the service node of data information is got
Whether the Route Distinguisher of itself is identical as the Route Distinguisher for the service node for receiving service request, i.e. judgement and the first business section
Whether the Route Distinguisher of point is identical, if identical, i.e., gets data information from the first service node;
If the Route Distinguisher for getting the service node of data information is not identical as the Route Distinguisher of the first service node,
Data information is transmitted to the routing module of next service node by the service node for getting data information, by next business
The routing module of node judges whether the Route Distinguisher of itself is identical as the Route Distinguisher of the first service node, so recycles, directly
Data information is extremely forwarded to the first service node.
In a preferred embodiment, on the basis of the embodiment of above-mentioned Fig. 5, the display module is also used to obtain institute
The local resource data for stating the first service node merge the local resource data and data information, and the local after merging is provided
Source data and data information feed back in the terminal and are shown.
The present embodiment is after the routing module of the first service node gets data information, by showing for the first service node
Module obtains the local resource data of itself storage, and local resource data include but is not limited to chart, picture, table and/or place
Logic etc. is managed, accessed data information is merged with local resource data by the processing logic, i.e., by data
Information is filled into the local resources data such as chart, picture, table, obtains intuitively showing data, and then display module is fed back
Data after merging are shown to terminal by terminal.
The present embodiment carries out the forwarding of service request by the routing module between service node, gets corresponding business section
Data information on point does not need carrying chart, picture, table and processing and patrols during being fed back data information
Equal resource datas are collected, transmitted data are simplified, and data information and local resource data are stored separately in service node
On, data information is obtained by data module, obtains local resource data after getting data information, then by display module, into
The merging of row data can be improved the rate of data access.
In the present embodiment, such as in a certain enterprise, the data information of corresponding business is stored on each service node
And local resource data, it produces in service node, selling operation node and the respective Database Systems of financial affair work node respectively
It is stored with creation data, sales data, financial data, terminal needs to obtain creation data, sales data, financial data and unites
When meter or other use, when terminal is limited by access authority, service request is issued to the service node of Internet access, or
Person is issued to the service node with good access speed when network postpones, by service request, and service request is in business
Route and forward between node, after getting corresponding data information, feed back on initial service node, then with the industry
Local resource data on business node merge, and become the data that can show.
The present embodiment does not need to configure corresponding service request retransmission unit, does not need to be configured and safeguarded yet, pass through
Data resource multiplexing and route technology simplify network configuration, quickly access the data information of multiple service nodes in network, reduce
The data volume of network transmission, and the time of business processing can be shortened, improve the rate of data access.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.