CN103546317B - A kind of path loading method and server - Google Patents

A kind of path loading method and server Download PDF

Info

Publication number
CN103546317B
CN103546317B CN201310481904.6A CN201310481904A CN103546317B CN 103546317 B CN103546317 B CN 103546317B CN 201310481904 A CN201310481904 A CN 201310481904A CN 103546317 B CN103546317 B CN 103546317B
Authority
CN
China
Prior art keywords
server
path
standby
network interface
legal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310481904.6A
Other languages
Chinese (zh)
Other versions
CN103546317A (en
Inventor
孙群虎
袁学文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310481904.6A priority Critical patent/CN103546317B/en
Publication of CN103546317A publication Critical patent/CN103546317A/en
Application granted granted Critical
Publication of CN103546317B publication Critical patent/CN103546317B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of path loading method and server, solve and be switched in the prior art for the technical problem not high of reliability behind path, the path loading method includes:First server obtains the network interface identification information in standby routing information according to the standby routing information from second server for receiving;First server judges whether standby path corresponding with standby routing information between second server is legal path according to network interface identification information;First server is loaded into standby path after it is determined that standby path is legal path.

Description

A kind of path loading method and server
Technical field
The present invention relates to communication technical field, more particularly to a kind of path loading method and server.
Background technology
Technical term is introduced:
InfiniBand:Infinite bandwidth, InfiniBand is applied to server and server(Such as replicate, it is distributed Work etc.), server and storage device(Such as SAN and directly storage annex)And between server and network(Such as LAN, WANs and the Internet)Communication;
APM:Automatic Path Migration, automated path migration;
QP:Quene Pair, work queue;
SLID:Source local identifier, source network interface mark;
DLID:Destination local identifier, purpose network interface mark.
Existing InfiniBand(Infinite bandwidth)Network support automated path is migrated, to ensure InfiniBand links Reliability, when main path link is in the event of failure, data can automatically switch to standby path link and be transmitted.At present InfiniBand mainly uses APM(Automatic Path Migration, automated path migration)To support that automated path is moved Move.Meanwhile, InfiniBand networks mainly use QP(Quene Pair, work queue)Data transmit-receive is carried out, QP has three kinds State:Migrated (has moved), and Rearm (has re-equipped path), Armed (transportable), and the original state of QP is Migrated, when QP is in Migrated states, the field in the packet that network interface card will send from the network interface automatically MigReq is set to 1, during in Rearm and Armed states, MigReq fields is set into 0.
Such as, the server of InfiniBand both link ends is respectively server 1, server 2.QP1 on server 1 is only Vertical to be loaded into standby path, equally, the QP2 in service 2 is independently loaded into standby path, after the network interface 1 of server 1 breaks down, service QP1 on device 1 begins to use standby path:Network interface 2 arrives network interface 4, and the state of QP1 is changed into Migrated;Meanwhile, QP2 sends and retries Number of times time-out, QP2 uses standby path:Network interface 4 arrives network interface 2, and the state of QP2 is changed into Migrated.
Prior art is in the presence of the technical problem not high of reliability after being switched to standby path from main path.
The content of the invention
The embodiment of the present invention is switched in the prior art by providing a kind of path loading method and server for solution Reliability technical problem not high behind standby path.
A kind of first aspect, there is provided path loading method, including:
First server obtains described in routing information according to the standby routing information from second server for receiving Network interface identification information;
The first server judges standby with described and the second server between according to the network interface identification information Whether the corresponding standby path of routing information is legal path;
The first server is loaded into the standby path after it is determined that the standby path is legal path.
With reference in a first aspect, in the first possible implementation, the first server is identified according to the network interface Information, judges whether corresponding with the standby routing information between the second server be legal path for path, bag Include:The first server identifies GID and the standby network interface of second server according to the global identity of the standby network interface of first server Global identity mark GID, judge and the second server between standby path whether be legal path.
With reference in a first aspect, in second possible implementation, the first server is identified according to the network interface Information, judges whether corresponding with the standby routing information between the second server be legal path for path, bag Include:The first server judges and described the according to the standby network interface number of first server and the standby network interface number of second server Whether the standby path between two servers is legal path.
With reference to second possible implementation of first aspect, in the third possible implementation, described first Server is judged and the second server between according to the standby network interface number of first server and the standby network interface number of second server Standby path whether be legal path, including:The first server is judging the standby network interface number of the first server to close Link between method port numbers, and the standby network interface number of the first server and the standby network interface number of the second server is in and connects After connecing state, determine that the standby path is legal path.
With reference to the third possible implementation of first aspect, in the 4th kind of possible implementation, also include:Institute First server is stated after judging the standby network interface number of the first server for illegal port numbers, a legal network interface is selected Number;Judge between the described legal network interface number of selection and the standby network interface number of the second server suggestion path link whether In connection status;If it is, determining between the described legal network interface number of selection and the standby network interface number of the second server Path be legal path, be loaded into the suggestion path and the described legal network interface number for selecting simultaneously returned into the second service Device;Otherwise, it is determined whether have non-selected legal network interface number, if it has, the step of then returning to one legal network interface of selection;Not yet Have, determine that the suggestion path is illegal path.
With reference in a first aspect, the first possible implementation of first aspect, second possible reality of first aspect Existing mode, the third possible implementation of first aspect, or first aspect the 4th kind of possible implementation, the In five kinds of possible implementations, also include:
The first server sends the feedback information for showing that the standby path is legal path to the second server.
With reference in a first aspect, the first possible implementation of first aspect, second of first aspect may realization side Formula, the third possible implementation of first aspect, the 4th kind of possible implementation of first aspect, or first aspect 5th kind of possible implementation, it is described when the first server is far-end server in the 6th kind of possible implementation Second server is home server;When the first server is home server, the second server is remote service Device.
A kind of second aspect, there is provided path loading method, including:
Second server will be sent to first server for routing information, so that the first server can be based on described Standby routing information, obtains the network interface identification information in the standby routing information;And the network interface identification information judgment can be based on Whether the standby path corresponding with the standby routing information between the second server is legal path;
The second server receive the first server judge and the second server between with it is described The feedback information that standby routing information corresponding standby path generates and sends when being legal path;
The second server is based on the feedback information and is loaded into the standby path.
With reference to second aspect, in the first possible implementation, will be sent out for routing information in the second server After giving first server, methods described also includes:The second server receives from the first server first During server legitimacy network interface, loading includes the suggestion path of the legal network interface number of the first server.
With reference to second aspect, or second aspect the first possible implementation, it is described in second implementation method When first server is home server, the second server is far-end server;The first server is remote service During device, the second server is home server.
A kind of third aspect, there is provided server, including:
Obtaining unit, for according to the standby routing information from another server for receiving, obtaining the standby routing information In network interface identification information;
First judging unit, for receiving the network interface identification information from the obtaining unit, and according to the network interface mark Knowledge information, judges whether corresponding with the standby routing information between another server be legal path for path;
First is loaded into unit, after first judging unit determines that the standby path is legal path, is loaded into described standby Path.
With reference to the third aspect, in the first possible implementation, first judging unit, including:
First judge module, for standby according to the global identity of server standby network interface mark GID and another server The global identity mark GID of network interface, judges and whether the standby path between another server is legal path.
With reference to the third aspect, in second possible implementation, first judging unit, including:Second judges Module, for according to the standby network interface number of server and the standby network interface number of another server, judging and another server between Standby path whether be legal path.
With reference to second possible implementation of the third aspect, in the third possible implementation, described second Judge module is additionally operable to:Judging that the standby network interface number of the server is legal port numbers, and the standby network interface number of the server And after the link between the standby network interface number of another server is in connection status, determine that the standby path is legal path.
With reference to the third possible implementation of the third aspect, in the 4th kind of possible implementation, the service Device also includes:Select unit, the standby network interface number of the server is judged is illegal port for second judge module After number, a legal network interface number is selected;Second judging unit, for receiving the legal network interface number from the select unit, and Judge whether the link in the suggestion path between the described legal network interface number of selection and the standby network interface number of another server is located In connection status;Second is loaded into unit, judges that the link in the suggestion path is in connection shape for second judging unit During state, it is determined that the path between the described legal network interface number of selection and the standby network interface number of another server is legal road Footpath, is loaded into the suggestion path;Transmitting element, judges that the link in the suggestion path is in and connects for second judging unit When connecing state, the described legal network interface number for selecting is returned into another server;3rd judging unit, for described second When judging unit judges that the link in the suggestion path is not on connection status, non-selected legal network interface is determined whether Number, if it has, the step of then returning to one legal network interface of selection;Do not determine that the suggestion path is illegal path then.
With reference to the third aspect, the first possible implementation of the third aspect, second possible reality of the third aspect 4th kind of possible implementation of existing mode, the third possible implementation of the third aspect, or the third aspect, the In five kinds of possible implementations, the transmitting element is additionally operable to first judging unit it is determined that the standby path is to close Behind method path, the feedback information for showing that the standby path is legal path is sent to another server.
With reference to the third aspect, the first possible implementation of the third aspect, second possible reality of the third aspect Existing mode, the third possible implementation of the third aspect, the 4th kind of possible implementation of the third aspect, or the 3rd 5th kind of implementation of aspect, it is described another when the server is far-end server in the 6th kind of possible implementation One server is home server;When the server is home server, another server is far-end server.
A kind of fourth aspect, there is provided server, including:
Transmitting element, for another server will to be sent to for routing information, so that another server can be based on The standby routing information, obtains the network interface identification information in the standby routing information;And the network interface identification information can be based on Judge whether corresponding with the standby routing information between the server be legal path for path;
Receiving unit, for receive another server judge and the server between with the standby path The feedback information that information corresponding standby path generates and sends when being legal path;
First is loaded into unit, for receiving the feedback information from the receiving unit, and is carried based on the feedback information Enter the standby path.
With reference to fourth aspect, in the first possible implementation, the server also includes:
Second is loaded into unit, for receiving during the server legitimacy network interface from another server, is loaded into bag Include the suggestion path of the server legitimacy network interface number.
With reference to fourth aspect, or fourth aspect the first possible implementation, second possible realization side In formula, when the server is home server, another server is far-end server;The server is remote service During device, another server is home server.
Technical scheme in the embodiment of the present invention has the following technical effect that:
In embodiments of the present invention, by first server according to the standby routing information from second server for receiving, Judge and whether the standby path between second server is legal path;First server is it is determined that standby path is legal path Afterwards, the technical scheme in standby path is loaded into, first server judges standby path to be just loaded into standby path after legal path, it is ensured that First server end is loaded into the correctness and validity in standby path, then when standby path is switched to, standby path stabilization can be run, and keep away Exempt from backup path link down, therefore improve the reliability of communication link.
Brief description of the drawings
Fig. 1 is the flow chart of the path loading method in the embodiment of the present invention one;
Fig. 2 is the flow chart of the path loading method in the embodiment of the present invention two;
Fig. 3 is the connection diagram of the server A in the embodiment of the present invention three and server B;
Fig. 4 is the schematic diagram that the server A in the embodiment of the present invention three is loaded into server B interaction path;
Fig. 5 is the functional block diagram of the server in the embodiment of the present invention four;
Fig. 6 is the functional block diagram of the server in the embodiment of the present invention five.
Specific embodiment
The server of the communicating pair of communication link is each independently loaded into standby path in the prior art, and communicating pair clothes Business device after each standby path of independent loading, verify by the legitimacy in standby path not to being loaded into, simply by the presence of standby road Footpath is loaded into, and the state of QP is just set to " Rearm " state by " Migrated " state, when standby path is switched to from main path, Standby path may not be run, and cause link down.Therefore, prior art exists and is switched to for the skill not high of reliability behind path Art problem.The technical scheme of the embodiment of the present invention is to solve above-mentioned being switched to from main path not asked for reliability is not high behind path Topic, it is proposed that a kind of path loading method and server, path loading method include:First server is according to receiving from The standby routing information of two servers, judges and whether the standby path between second server is legal path;First server exists It is determined that standby path is behind legal path, to be loaded into the technical scheme for path, because first server judges that standby path is legal road Standby path is just loaded into after footpath, it is ensured that first server end is loaded into the correctness and validity in standby path, then be switched to it is standby During path, standby path stabilization can be run, and standby path link can be avoided to interrupt, therefore from improve the reliability of communication link.
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Embodiment one
A kind of path loading method is present embodiments provided, is applied in first server, as shown in figure 1, the path carries Enter method and specifically include following steps:
S101:First server is obtained in routing information according to the standby routing information from second server for receiving Network interface identification information;
S102:First server according to network interface identification information, judge and second server between with standby routing information pair Whether the standby path answered is legal path;
S103:First server is loaded into standby path after it is determined that standby path is legal path.
Wherein, first server can be the home server in InfiniBand networks, or InfiniBand Far-end server in network.It is then corresponding, when first server is the home server in InfiniBand networks, second Server is the far-end server in InfiniBand networks;Remote service in first server is InfiniBand networks During device, second server is the home server in InfiniBand networks.Certainly, first server and second server also may be used Think the far-end server and corresponding home server in other networks.
In embodiments of the present invention, the far-end server in first server as InfiniBand networks, remote service QP on device is QP2, and second server is the home server in InfiniBand networks, and the QP on home server is QP1 As a example by the technical scheme in the embodiment of the present invention is explained.
When far-end server and home server are in communications status by main path, the state of QP1 and QP2 is " Migrated " state, is under communications status, home server when far-end server and home server by main path When preparing to be loaded into standby path, far-end server receives the standby routing information from home server, obtains in routing information Network interface identification information;In the first embodiment, the network interface identification information that far-end server is obtained at least includes:Locally The standby network interface SLID of the server and standby network interface DLID of far-end server.For example, home server and remote service Device passes through main path(SLID=1, DLID=3)When under communications status, home server prepares to be loaded into standby path(SLID=2, DLID=4), then far-end server receives the standby routing information from home server includes SLID=2 and DLID=4.Second Plant in implementation method, the network interface identification information that far-end server is obtained includes the GID (global of the standby network interface of far-end server Identity, global identity mark) and the standby network interface of home server GID.
After the network interface identification information that far-end server is obtained in standby routing information, step S102 is performed, i.e.,:Distal end takes Business device judges whether standby path corresponding with standby routing information between home server is legal according to network interface identification information Path.
In specific implementation process, when continuing to use above-mentioned the first implementation method, step S102 is specifically included:Far-end server According to the standby network interface number of far-end server and the standby network interface number of home server that standby routing information includes, remote service is judged Whether the standby path between device and home server is legal path.
In specific implementation process, when continuing to use above-mentioned second implementation method, step S102 is specifically included:Far-end server The global identity mark GID of the standby network interface of far-end server in standby routing information and the standby network interface of home server GID, judges and whether the standby path between home server is legal path, such as, standby routing information is SLID=2 and DLID= When 4, standby path is judged(SLID=2, DLID=4)Whether the path between two network interfaces is legal path.
Second implementation method is continued to use below to explain the technical method in the embodiment of the present invention.
Preferably, judge whether the standby path between far-end server and home server is legal path, specifically:Pass through Judge whether the standby network interface SLID of far-end server is legal port numbers, at the same detect far-end server and home server it Between link whether be in connection status.
Specifically, judge whether the standby network interface SLID of far-end server is that legal port numbers specifically may determine that distal end The standby network interface SLID of server whether there is in far-end server and whether the standby network interface SLID of far-end server is in " UP " state, such as, and the standby network interface SLID=4 of far-end server that the standby routing information that far-end server is received includes, then Far-end server is detected and whether there is network interface number 4 on far-end server, and when far-end server has network interface number 4, then distal end takes Business device continues to detect that whether network interface number 4, in " UP " state, when network interface number 4 is in " UP " state, then shows that SLID=4 is remote Hold the legal port numbers of server.
Specifically, whether the link between detection far-end server and home server is specially in connection status: Far-end server obtains the standby path of far-end server according to the standby routing information for receiving, and then far-end server judges standby path Whether connection status is in determine the availability in standby path.It is determined that the availability in standby path is specifically included:Detection remote service Whether the standby network interface of device damages, and whether the netting twine in standby path is pulled out etc., is by remote service in specific implementation process Whether the state of network interface is in " down " shape on interface " ib_get_port_state " the detection network interface card contained on network interface card on device State, when the state of network interface is in " down " state, then shows that network interface is damaged, or the netting twine in standby path is pulled out or damages.For example, The standby routing information that far-end server is received includes SLID=2 and DLID=4, and far-end server is obtained according to the standby routing information for receiving The standby path of the far-end server for arriving(SLID=4, DLID=2).Then standby path is judged(SLID=4, DLID=2)Network interface 4 be Whether the state of network interface 4 is in no damage, and interface " ib_get_port_state " detection network interface card on far-end server " down " state.
Far-end server is performed after step S102, then performs step S103:Far-end server is it is determined that standby path is Behind legal path, standby path is loaded into.
Specifically, standby routing information from home server of the far-end server in step S101 obtains distal end The standby path of server, after being loaded into standby routing information, the state of QP2 from " Migrated " state transition be " Rearmed " state, Such as, the standby routing information that far-end server is received includes SLID=2 and DLID=4, and far-end server is according to the standby path for receiving The standby path of the far-end server that information is obtained is(SLID=4, DLID=2), in standby path(SLID=4, DLID=2)It is legal road During footpath, standby path is loaded into(SLID=4, DLID=2).
Because far-end server is verified according to the standby routing information from home server to the legitimacy in standby path, When the standby path of checking is legal path, far-end server is just loaded into standby path, thus it is guaranteed that far-end server loading is standby The legitimacy in path.
Preferably, far-end server is after it is determined that standby path is legal path, far-end server sends one and shows standby road Footpath is that legal path feeds back to home server.So that home server is receiving the feedback of far-end server transmission After information, home server is just loaded into standby path.
Because far-end server determines standby path after legal path, to be loaded into standby path, will indicate that standby path is conjunction again Method path feeds back to home server, thus it is guaranteed that the legitimacy in the standby path of the loading of home server side, and Ensure that far-end server and home server are loaded into the uniformity in standby path.
Preferably, far-end server is when the standby network interface number of far-end server is judged for illegal port numbers, have and not only There is the following two kinds implementation method.
The first implementation method performs following steps:
Step 1:One legal network interface number of far-end server of selection;
Step 2:Judge the suggestion path between the legal network interface number of far-end server of selection and home server network interface number Link whether be in connection status;
Step 3:If the suggestion path between the legal network interface number of far-end server and home server network interface number of selection Link be in connection status, it is determined that the legal network interface number of far-end server and the standby network interface number of home server of selection it Between path be legal path, far-end server is loaded into the suggestion path, and the legal network interface number of the far-end server of selection is returned Back to home server;
Step 4:If the suggestion path between the legal network interface number of far-end server and home server network interface number of selection Link be not on connection status, then determine whether non-selected legal network interface number:If non-selected legal network interface Number then return to step 1, does not have non-selected legal network interface number then to determine that suggestion path is illegal path.
For example, far-end server includes network interface number 2(Main path network interface number), network interface number 5, far-end server is in step S101 The standby routing information from home server of middle acquisition includes SLID=2 and DLID=4, then judge distal end according to standby routing information The standby network interface card slogan 4 of server is illegal port numbers, and far-end server selects legal network interface number 5, and judges legal network interface number 5 Whether connection status is in the suggestion path between the standby network interface number 2 of home server, if it is, far-end server is loaded into building View path(SLID=5, DLID=2).
In specific implementation process, the legal port numbers of far-end server that far-end server returns to home server are logical Main path transmission is crossed, specifically, home server can be sent to by way of routing information, or individually send The form of the legal network interface number of remote service, does not enter to the form for sending the legal port numbers of far-end server in embodiments of the present invention Row limitation.
Because far-end server is when standby path is illegal path, far-end server knows other network interfaces number of local terminal, Therefore, one far-end server end of far-end server selection is present and the network interface number in upstate is used as legal network interface number, Improve standby path(It may be suggestion path)It is the possibility in legal path, therefore further ensures guarantee InfiniBand The reliability of network communication link.
Second implementation method:One legal network interface number of far-end server of selection sends in the form of advising path or individually The form of legal network interface number returns to home server, therefore, in step S101 far-end server receive from local service The standby routing information of device can be the standby routing information that home server sends first, or be based in far-end server After the standby routing information authentication failed that home server sends first(The corresponding standby path of standby routing information for sending first is not for Legal path)Return to the suggestion routing information of home server.
It is above-mentioned for network interface identification information be server network interface number as a example by the technical scheme in the embodiment of the present invention is carried out Describe in detail, according to the corresponding relation of server network interface number and the GID of server network interface, those skilled in the art will be seen that It is succinct for specification for the detailed embodiment that network interface identification information is loaded into for the path of the GID of server network interface, This is repeated no more.
Further, in specific implementation process, first server is home server, and second server is far-end server When, those skilled in the art can be loaded into according to the implementation principle realizing route described in embodiment one, for the letter of specification It is clean, will not be repeated here.
Embodiment two
The embodiment of the present invention additionally provides a kind of path loading method, is applied to first server, as shown in Fig. 2 the road Footpath loading method specifically includes following steps:
S201:Second server will be sent to first server for routing information so that first server can be based on it is standby Routing information, obtains the network interface identification information in standby routing information;And network interface identification information judgment and second service can be based on Whether the standby path corresponding with standby routing information between device is legal path;
S202:Second server receive first server between judgement and second server with standby routing information pair The feedback information that the standby path answered generates and sends when being legal path;
S203:Second server is based on feedback information and is loaded into standby path.
Wherein, first server can be the home server in InfiniBand networks, or InfiniBand Far-end server in network.It is then corresponding, when first server is the home server in InfiniBand networks, second Server is the far-end server in InfiniBand networks;Remote service in first server is InfiniBand networks During device, second server is the home server in InfiniBand networks, certainly, in specific implementation process, first service Device and second server can also be home server and corresponding far-end server in other networks.
In embodiments of the present invention, the home server in first server as InfiniBand networks, local service QP on device is QP1, and second server is the far-end server in InfiniBand networks, and the QP on far-end server is QP2 As a example by the technical scheme in the embodiment of the present invention is explained.
When far-end server and home server are in communications status by main path, the state of QP1 and QP2 is Migrated states, when home server prepares to be loaded into standby path, home server will be sent to distal end clothes for routing information Business device, so that far-end server can obtain the network interface identification information in standby routing information based on standby routing information;And being capable of base Whether the standby path corresponding with standby routing information between network interface identification information judgment and home server is legal path.
Preferably, after home server will be sent to far-end server for routing information, far-end server judges and this After whether corresponding with standby routing information standby path between ground server is legal path, home server is received and come from During the legal network interface of the far-end server of server, loading includes the suggestion path of the legal network interface number of far-end server.
Further, in specific implementation process, first server is far-end server, and second server is home server When, those skilled in the art can be loaded into according to the implementation principle realizing route described in embodiment two, for the letter of specification It is clean, will not be repeated here.
Path loading method and aforesaid paths loading method in the present embodiment are based on two under same inventive concept Aspect, is described in detail, so this area in the implementation process above to the path loading method of second server Technical staff can be according to the implementation process for being apparent from path loading method in the present embodiment described above, for specification Succinctly, just repeat no more herein.
Embodiment three
The embodiment of the present invention additionally provides a kind of path loading method, be applied in InfiniBand networks server A and When server B communicates.
Wherein, server A and server B use QP(Quene Pair, work queue)Carry out data transmit-receive, it is assumed that in clothes QP is QP1 on business device A, and the QP in server B is explained for QP2 to the embodiment of the present invention.
With specific reference to Fig. 3 when server A and server B are in communications status by the main path between network interface 1 and network interface 3 When, now, QP1 states are " Migrated ", and QP2 states are " Migrated ", then, with reference to Fig. 4, are loaded into the method in standby path Comprise the following steps:
S1:When QP1 prepares to be loaded into standby path(SLID=2, DLID=4)When, QP1 will be for routing information(SLID=2, DLID= 4)It is sent to QP2.
S2:QP2 receives standby routing information(SLID=2, DLID=4).
S3:QP2 is according to standby routing information(SLID=2, DLID=4)Judging the standby path between server A and server B is No is legal path.
When it is legal path that the judged result of S3 is standby path, S4~S5 is performed successively:
S4:QP2 is loaded into standby path(SLID=4, DLID=2), QP2 state transitions are Rearmed, and send and show standby road Footpath(SLID=4, DLID=2)QP1 is fed back to for legal path.
S5:When QP1 receives feedback information, standby path is loaded into(SLID=2, DLID=4), QP1 state transitions are Rearmed.
When it is not legal path that the judged result of S3 is standby path, S6~S9 is performed successively:
S6:Modification SLID=4 is exist in server B and in other network interfaces number of " UP " state, generation suggestion path letter Breath.
S7:QP2 judges whether suggestion path corresponding with suggestion routing information is legal path according to suggestion routing information.
S8:QP2 is loaded into suggestion path, and QP2 state transitions are Rearmed, and sends suggestion routing information to QP1.
S9:After PQ1 receives suggestion routing information, suggestion path corresponding with suggestion routing information, QP1 state transitions are loaded into It is Rearmed.
In specific implementation process, server A and server B after realizing route loading, in order to realize automated path Migration, also comprises the following steps (not shown):
Step one:QP1 receive QP2 transmission containing the packet that MigReq field values are 0, QP1 states are changed into " Armed ", " MigReq " field value is 0 in the packet that now QP1 sends.
Step 2:QP2 receive QP1 transmission containing the packet that " MigReq " field value is 0, QP2 states are changed into “Armed”。
QP1 execution of step one in server A, and in server B after QP2 execution of step two, QP2 and QP2 shapes State is " Armed ", shows that server A and server B can carry out automated path and migrate.
Damaged when server A network interface 1 occurs network interface, after netting twine such as is pulled out at the failure, QP1 begins to use standby path:From net Mouth 2 arrives network interface 4, and QP1 states are changed into " Migrated ";Meanwhile, when QP2 sends number of retries time-out, QP2 from network interface 3 to network interface 1 Using standby path:From network interface 4 to network interface 2, then QP2 states are changed into " Migrated ".
When server A and server B need to be loaded into again new backup path, repeat the above steps S1~S9, and Step one, step 2.
Example IV
The embodiment of the present invention additionally provides a kind of server, as shown in figure 5, server includes:
Obtaining unit 501, for according to the standby routing information from another server for receiving, obtaining in routing information Network interface identification information;First judging unit 502, for receiving network interface identification information from obtaining unit 501, and according to network interface mark Knowledge information, judges whether standby path corresponding with standby routing information between another server is legal path;First is loaded into Unit 503, after the first judging unit 502 determines that standby path is legal path, is loaded into standby path.
In the first embodiment, the first judging unit 502, including:First judge module, for standby according to server Network interface global identity mark GID and the standby network interface of another server global identity mark GID, judge with another server it Between standby path whether be legal path.
In this second embodiment, the first judging unit 502, including:Second judge module, for standby according to server Network interface number and the standby network interface number of another server, judge and whether the standby path between another server is legal path.
Above-mentioned second embodiment is continued to use, preferably, the second judge module is additionally operable to:Judging the standby network interface number of server It is that link between legal port numbers, and the standby network interface number of server and the standby network interface number of another server is in connection status Afterwards, it is determined that standby path is legal path.
Above-mentioned first embodiment or second embodiment are continued to use, server also includes:Select unit, judges for second Module selects a legal network interface number after judging the standby network interface number of server for illegal port numbers;Second judging unit, uses In receiving legal network interface number from select unit, and judge between the legal network interface number of selection and the standby network interface number of another server Advise whether the link in path is in connection status;Second is loaded into unit, and the chain in suggestion path is judged for the second judging unit When road is in connection status, it is determined that the path between the legal network interface number and the standby network interface number of another server of selection is legal Path, is loaded into suggestion path;Transmitting element, when judging that the link in suggestion path is in connection status for the second judging unit, The legal network interface number for selecting is returned into another server;3rd judging unit, suggestion path is judged for the second judging unit Link when being not on connection status, non-selected legal network interface number is determined whether, if it has, then returning to one conjunction of selection The step of net of justice slogan;No then determination advises that path is illegal path.
Preferably, server also includes:
Second transmitting element, for the first judging unit after it is determined that standby path is legal path, sends out to another server Send the feedback information for showing that standby path is legal path.
Further, during practice, when server is far-end server, another server is home server; When server is home server, another server is far-end server.
Various change mode in the loading method of path and instantiation in previous embodiment one are equally applicable to this reality The server of example is applied, by the foregoing detailed description to path loading method, those skilled in the art are clear that this The implementation of path loading method in embodiment, thus it is succinct for specification, will not be described in detail herein.
In various embodiments above, in the case where not conflicting, implementation can be mutually combined.
Various change mode in the loading method of path and instantiation in previous embodiment one are equally applicable to this reality The server of example is applied, by the foregoing detailed description to path loading method, those skilled in the art are clear that this The implementation of server in embodiment, thus it is succinct for specification, will not be described in detail herein.
Embodiment five
The embodiment of the present invention additionally provides a kind of server, as shown in fig. 6, including:Transmitting element 601, for will be for road Footpath information is sent to another server, so that another server can obtain the net in standby routing information based on standby routing information Mouth identification information;And can be based on standby path corresponding with standby routing information between network interface identification information judgment and server No is legal path;Receiving unit 602, for receive another server between judgement and server with standby routing information The feedback information that corresponding standby path generates and sends when being legal path;First is loaded into unit 603, for being connect from receiving unit Feedback information is received, and standby path is loaded into based on feedback information.
Preferably, server also includes:
Second is loaded into unit, and for receiving during the server legitimacy network interface from another server, loading includes clothes The suggestion path of the business legal network interface number of device.
Further, in actual application, when server is home server, another server is far-end server; When server is far-end server, another server is home server.
In various embodiments above, in the case where not conflicting, implementation can be mutually combined.
Various change mode in the loading method of path and instantiation in previous embodiment two are equally applicable to this reality The server of example is applied, by the foregoing detailed description to path loading method, those skilled in the art are clear that this The implementation of server in embodiment, thus it is succinct for specification, will not be described in detail herein.
Technical scheme in the embodiment of the present application at least has the following technical effect that:
In embodiments of the present invention, by first server according to the standby routing information from second server for receiving, Judge and whether the standby path between second server is legal path;First server is it is determined that standby path is legal path Afterwards, the technical scheme in standby path is loaded into, first server judges standby path to be just loaded into standby path after legal path, it is ensured that First server end is loaded into the correctness and validity in standby path, then when standby path is switched to, standby path stabilization can be run, and keep away Exempt from backup path link down, therefore improve the reliability of communication link.
, but those skilled in the art once know basic creation although preferred embodiments of the present invention have been described Property concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to include excellent Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification without deviating from essence of the invention to the present invention God and scope.So, if these modifications of the invention and modification belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising these changes and modification.

Claims (12)

1. a kind of path loading method, it is characterised in that methods described includes:
First server obtains the network interface in the standby routing information according to the standby routing information from second server for receiving Identification information;
The first server according to the network interface identification information, judge and the second server between with the standby path Whether the corresponding standby path of information is legal path;
The first server is loaded into the standby path after it is determined that the standby path is legal path;
Wherein, the first server is according to the network interface identification information, judge and the second server between with it is described Whether it is legal path for path that standby routing information is corresponding, including:
The first server is legal port numbers the standby network interface number of first server is judged, and the first server is standby After link between network interface number and the standby network interface number of second server is in connection status, determine that the standby path is legal road Footpath.
2. the method for claim 1, it is characterised in that the first server is sentenced according to the network interface identification information Whether disconnected standby path corresponding with the standby routing information between the second server is legal path, including:
The first server identifies GID and the standby network interface of second server according to the global identity of the standby network interface of first server Global identity mark GID, judge and the second server between standby path whether be legal path.
3. the method for claim 1, it is characterised in that the first server is sentenced according to the network interface identification information Whether disconnected standby path corresponding with the standby routing information between the second server is legal path, including:
The first server judges and described the according to the standby network interface number of first server and the standby network interface number of second server Whether the standby path between two servers is legal path.
4. the method for claim 1, it is characterised in that methods described also includes:
The first server is after judging the standby network interface number of the first server for illegal port numbers, and selection one is legal Network interface number;
Judging the link in the suggestion path between the described legal network interface number of selection and the standby network interface number of the second server is It is no in connection status;
If it is, determining the path between the described legal network interface number of selection and the standby network interface number of the second server to close Method path, is loaded into the suggestion path and the described legal network interface number for selecting is returned into the second server;Otherwise, judge Whether non-selected legal network interface number is had, if it has, the step of then returning to one legal network interface of selection;Described in no then determination Suggestion path is illegal path.
5. a kind of path loading method, it is characterised in that methods described includes:
Second server will be sent to first server for routing information, so that the first server can be based on the standby road Footpath information, obtains the network interface identification information in the standby routing information;And the network interface identification information judgment and institute can be based on Whether the standby path corresponding with the standby routing information stated between second server is legal path;Wherein, if first service The standby network interface number of device is between legal port numbers, and the standby network interface number of the first server and the standby network interface number of second server Link be in connection status, it is determined that the standby path is legal path;
The second server receive the first server judge and the second server between with the standby road The feedback information that information corresponding standby path in footpath generates and sends when being legal path;
The second server is based on the feedback information and is loaded into the standby path.
6. method as claimed in claim 5, it is characterised in that will be sent to first for routing information in the second server After server, methods described also includes:
When the second server receives first server from the first server legal network interface, loading includes institute State the suggestion path of the legal network interface number of first server.
7. a kind of server, it is characterised in that including:
Obtaining unit, it is described in routing information for according to the standby routing information from second server for receiving, obtaining Network interface identification information;
First judging unit, believes for receiving the network interface identification information from the obtaining unit, and being identified according to the network interface Breath, judges whether corresponding with the standby routing information between the second server be legal path for path;
First is loaded into unit, after first judging unit determines that the standby path is legal path, is loaded into the standby path;
First judging unit also includes the second judge module, for judging that the standby network interface number of the server is legal end Link between slogan, and the standby network interface number of the server and the standby network interface number of the second server is in connection status Afterwards, determine that the standby path is legal path.
8. server as claimed in claim 7, it is characterised in that first judging unit, including:
First judge module, for identifying GID and the standby network interface of second server according to the global identity of the standby network interface of server Global identity mark GID, judge and the second server between standby path whether be legal path.
9. server as claimed in claim 7, it is characterised in that second judge module, for standby according to server Network interface number and the standby network interface number of second server, judge and whether the standby path between the second server is legal path.
10. server as claimed in claim 7, it is characterised in that the server also includes:
Select unit, for second judge module after judging the standby network interface number of the server for illegal port numbers, One legal network interface number of selection;
Second judging unit, for receiving the legal network interface number from the select unit, and judges the described legal net of selection Whether the link in the suggestion path between slogan and the standby network interface number of the second server is in connection status;
Second is loaded into unit, when judging that the link in the suggestion path is in connection status for second judging unit, then Determine that the path between the described legal network interface number of selection and the standby network interface number of the second server, for legal path, is loaded into institute State suggestion path;
Transmitting element, when judging that the link in the suggestion path is in connection status for second judging unit, will select Described legal network interface number return to the second server;
3rd judging unit, the link for judging the suggestion path for second judging unit is not on connection status When, non-selected legal network interface number is determined whether, if it has, the step of then returning to one legal network interface of selection;It is no then Determine that the suggestion path is illegal path.
A kind of 11. servers, it is characterised in that including:
Transmitting element, for first server will to be sent to for routing information, so that the first server can be based on described Standby routing information, obtains the network interface identification information in the standby routing information;And the network interface identification information judgment can be based on Whether the standby path corresponding with the standby routing information between the server is legal path;Wherein, if described first The standby network interface number of server is legal port numbers, and the standby network interface number of the first server and the standby network interface number of the server Between link be in connection status, it is determined that the standby path is legal path;
Receiving unit, for receive the first server judge and the server between with the standby routing information The feedback information that corresponding standby path generates and sends when being legal path;
First is loaded into unit, for receiving the feedback information from the receiving unit, and is loaded into institute based on the feedback information State standby path.
12. servers as claimed in claim 11, it is characterised in that the server also includes:
Second is loaded into unit, and for receiving during the server legitimacy network interface from the first server, loading includes institute State the suggestion path of server legitimacy network interface number.
CN201310481904.6A 2013-10-15 2013-10-15 A kind of path loading method and server Active CN103546317B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310481904.6A CN103546317B (en) 2013-10-15 2013-10-15 A kind of path loading method and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310481904.6A CN103546317B (en) 2013-10-15 2013-10-15 A kind of path loading method and server

Publications (2)

Publication Number Publication Date
CN103546317A CN103546317A (en) 2014-01-29
CN103546317B true CN103546317B (en) 2017-06-20

Family

ID=49969392

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310481904.6A Active CN103546317B (en) 2013-10-15 2013-10-15 A kind of path loading method and server

Country Status (1)

Country Link
CN (1) CN103546317B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101316234A (en) * 2008-07-02 2008-12-03 华为技术有限公司 Route condition detecting method, device and system
CN101877631A (en) * 2010-06-28 2010-11-03 中兴通讯股份有限公司 Server and business switching method thereof
CN102006268A (en) * 2009-08-28 2011-04-06 华为技术有限公司 Method, equipment and system for switching main interface and standby interface

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4587446B2 (en) * 2003-08-07 2010-11-24 キヤノン株式会社 NETWORK SYSTEM, SWITCH DEVICE, ROUTE MANAGEMENT SERVER, ITS CONTROL METHOD, COMPUTER PROGRAM, AND COMPUTER-READABLE STORAGE MEDIUM
CN101431466B (en) * 2007-11-09 2011-04-06 华为技术有限公司 Fast rerouting method and label exchange router
CN102571401B (en) * 2010-12-24 2015-07-08 华为技术有限公司 Method and device for building backup path and method and device for selecting backup path
CN102868943B (en) * 2011-07-04 2015-11-25 华为技术有限公司 A kind of method, optical network apparatus and system obtaining PON port association relation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101316234A (en) * 2008-07-02 2008-12-03 华为技术有限公司 Route condition detecting method, device and system
CN102006268A (en) * 2009-08-28 2011-04-06 华为技术有限公司 Method, equipment and system for switching main interface and standby interface
CN101877631A (en) * 2010-06-28 2010-11-03 中兴通讯股份有限公司 Server and business switching method thereof

Also Published As

Publication number Publication date
CN103546317A (en) 2014-01-29

Similar Documents

Publication Publication Date Title
CN103944750B (en) One kind binding net card failure processing method and processing device
US6081511A (en) Load sharing for redundant networks
US7978595B2 (en) Method for processing multiple active devices in stacking system and stacking member device
US9565064B2 (en) Frame transmission apparatus and method for checking normality
CN101699786B (en) Method, device and system for detecting packet loss
CN102067523A (en) Failover and failback of communication between a router and a network switch
TR201802416T4 (en) A method and system for synchronization with a neighbor in a distributed flexible network interconnection (DRNI) link collection group.
CN105337785A (en) Path connectivity detection method and device
CN104518936B (en) Link dynamic aggregation method and apparatus
CN101771604B (en) Routing detection method, system and intermediate routing device
CN103840976B (en) Communication means, light device and the network equipment
CN103166826A (en) Methods and apparatus for implementing a fibre channel zone policy
CN106453156A (en) Communication method and apparatus between virtual devices
CN106685693A (en) Network anomaly detection method, system and network device
CN102215130B (en) CFD (connectivity fault detection) protocol configuration method and device thereof
CN106470170A (en) Method for switching network and device
CN106330604A (en) Port connectivity test method and device
CN106534301A (en) Method and device for balancing network outbound load
CN102209003A (en) Link detection method, system and loopback initiation equipment
CN107612772A (en) The node state detection method and device of payment system
CN106301857A (en) A kind of method of network protection, network node and system
CN105991678A (en) Distributed equipment service processing method, distributed equipment service processing device and distributed equipment
CN106656659A (en) Network path selection method and network video recorder (NVR)
CN103546317B (en) A kind of path loading method and server
CN108933714A (en) It is a kind of to detect the method, apparatus and storage medium that IP address whether there is

Legal Events

Date Code Title Description
C06 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