CN107547376A - routing detection method and device - Google Patents

routing detection method and device Download PDF

Info

Publication number
CN107547376A
CN107547376A CN201710599002.0A CN201710599002A CN107547376A CN 107547376 A CN107547376 A CN 107547376A CN 201710599002 A CN201710599002 A CN 201710599002A CN 107547376 A CN107547376 A CN 107547376A
Authority
CN
China
Prior art keywords
main frame
aftr
tunnel
equipment
icmp
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710599002.0A
Other languages
Chinese (zh)
Other versions
CN107547376B (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.)
New H3C Information Technologies Co Ltd
Original Assignee
New H3C 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201710599002.0A priority Critical patent/CN107547376B/en
Publication of CN107547376A publication Critical patent/CN107547376A/en
Application granted granted Critical
Publication of CN107547376B publication Critical patent/CN107547376B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

This disclosure relates to routing detection method and device.Wherein, this method is applied to the B4 equipment in lightweight dual stack network, and this method includes:Route exploration instruction is sent to the first AFTR, the route exploration indicates to be used to make the first AFTR carry out icmp probe to the second main frame;If receiving the unreachable information of ICMP for second main frame for coming from the first AFTR, the message forwarding path of the first main frame to second main frame is switched to the second tunnel from the first tunnel.The disclosure sends route exploration instruction using B4 equipment to AFTR, so that AFTR carries out icmp probe to main frame, if B4 equipment receives the unreachable information of ICMP of the main frame of AFTR returns, it can know that AFTR is obstructed to the Host routes, and active and standby AFTR switching can be carried out automatically, ensure being normally carried out for communication, reduce the waste to system resource.

Description

Routing detection method and device
Technical field
This disclosure relates to communication technical field, more particularly to a kind of routing detection method and device.
Background technology
DS-Lite (Dual Stack Lite, lightweight dual stack) technological synthesis IPv4over IPv6 (IPv4 across More IPv6) tunneling technique and NAT (Network Address Translation, network address translation) technology.DS-Lite skills Art is realized using tunneling technique to be connected by IPv6 (Internet Protocol Version 6, Internet protocol the 6th edition) network IPv4 (Internet Protocol Version 4, Internet protocol the 4th edition) network of isolation is connect, is realized using NAT technologies Different user networks shares identical IPv4 address spaces, and that slows down IPv4 addresses exhausts speed.
Fig. 1 shows the schematic diagram of the DS-Lite networking diagrams in correlation technique.As shown in figure 1, DS-Lite networks mainly wrap Include DS-Lite tunnels, B4 (Basic Bridging BroadBand, bridge broadband substantially) equipment and AFTR (Address Family Transition Router, address family translation router).
Wherein, DS-Lite tunnels are the IPv4over IPv6 tunnels between B4 equipment and AFTR, for realizing that IPv4 is reported Text crosses over IPv6 network transmissions.
B4 equipment be positioned at user network side, for connect ISP (Internet Service Provider, internet clothes Be engaged in provider) network equipment, usually user network gateway.An end points of the B4 equipment as DS-Lite tunnels, it is responsible for The IPv4 messages of user network are packaged into another end points that IPv6 messages are sent to tunnel, while will be received from tunnel The deblocking of IPv6 messages dresses up IPv4 messages and is sent to user network.The main frame of certain user's network can also be used as B4 equipment, directly ISP network is connected in succession, and such main frame is referred to as DS-Lite main frames.
AFTR is the equipment in ISP network.AFTR is used as DS-Lite endpoint of a tunnels and NAT gateway equipment simultaneously.AFTR from After DS-Lite tunnels receive the IPv6 messages of B4 equipment transmission, tunnel ID (tunnel identifier) are distributed for the B4 equipment, And record the IPv6 addresses (the source IP v6 addresses in message) of B4 equipment and tunnel ID corresponding relation.AFTR reports to IPv6 Text is decapsulated, and the source IP v4 addresses (private net address) of the user network message after decapsulation are converted into public network address, and Message after conversion is sent to purpose IPv4 main frames.AFTR carry out NAT conversions when, while record NAT mapping relations and Tunnel ID, to realize that the user network address of different B4 equipment connections can be with overlapping.AFTR receives purpose IPv4 main frames After the response message of return, purpose IPv4 addresses (public network address) are converted into corresponding private net address, and according to record The IPv6 addresses of B4 equipment, the destination address as IPv6 messages after encapsulation corresponding to tunnel ID acquisitions.AFTR turns NAT Message after changing is packaged into IPv6 messages and is sent to B4 equipment by tunnel.Generally, DS-Lite is only supported in user network IPv4 main frames actively access the IPv4 main frames on public network;IPv4 main frames on public network can not actively access the IPv4 in user network Main frame.
The content of the invention
In view of this, the present disclosure proposes a kind of routing detection method and device.
According to the one side of the disclosure, there is provided a kind of routing detection method, methods described are applied to the double agreements of lightweight B4 equipment in stack network, the lightweight dual stack network also include the first main frame, the second main frame, the first AFTR, second AFTR, wherein, include the first tunnel and the second tunnel from the first main frame to the message forwarding path of second main frame, described Tunnel of one tunnel between the B4 equipment and the first AFTR, second tunnel are the B4 equipment and described second Tunnel between AFTR;
Methods described includes:
Route exploration instruction is sent to the first AFTR, the route exploration indicates to be used to make the first AFTR to the Two main frames carry out icmp probe;
If receiving the unreachable information of ICMP for second main frame for coming from the first AFTR, by described first The message forwarding path of main frame to second main frame is switched to second tunnel from first tunnel.
According to another aspect of the present disclosure, there is provided a kind of routing detection method, methods described are applied to the double associations of lightweight The first AFTR in stack network is discussed, the lightweight dual stack network also includes the first main frame, the second main frame, B4 equipment, the Two AFTR, wherein, include the first tunnel and the second tunnel from the first main frame to the message forwarding path of second main frame, it is described Tunnel of first tunnel between B4 equipment and the first AFTR, tunnel of second tunnel between B4 equipment and the 2nd AFTR Road;
Methods described includes:
The route exploration for coming from the B4 equipment according to receiving is indicated, icmp probe is carried out to the second main frame;
If detecting, second main frame is unreachable, and the ICMP that second main frame is sent to the B4 equipment is unreachable Information;The unreachable information of ICMP is used to notify route of the B4 equipment from the first AFTR to second main frame not It is logical, so that the message forwarding path of the first main frame to second main frame is switched to the second tunnel by the B4 equipment from the first tunnel Road.
According to another aspect of the present disclosure, there is provided a kind of route exploration device, described device are applied to the double associations of lightweight The B4 equipment in stack network is discussed, institute's lightweight dual stack network also includes the first main frame, the second main frame, the first AFTR, second AFTR, wherein, include the first tunnel and the second tunnel from the first main frame to the message forwarding path of second main frame, described Tunnel of one tunnel between B4 equipment and the first AFTR, tunnel of second tunnel between B4 equipment and the 2nd AFTR;
Described device includes:
First sending module, for sending route exploration instruction to the first AFTR, the route exploration indicates to be used for The first AFTR is set to carry out icmp probe to the second main frame;
First receiving module, if unreachable for the ICMP for receiving second main frame for coming from the first AFTR Information, then the message forwarding path of first main frame to second main frame is switched to described second from first tunnel Tunnel.
According to another aspect of the present disclosure, there is provided a kind of route exploration device, described device are applied to the double associations of lightweight The first AFTR in stack network is discussed, the lightweight dual stack network also includes the first main frame, the second main frame, B4 equipment, the Two AFTR, wherein, include the first tunnel and the second tunnel from the first main frame to the message forwarding path of second main frame, it is described Tunnel of first tunnel between B4 equipment and the first AFTR, tunnel of second tunnel between B4 equipment and the 2nd AFTR Road;
Described device includes:
3rd receiving module, for according to the route exploration for coming from the B4 equipment instruction received, being led to second Machine carries out icmp probe;
3rd sending module, if unreachable for detecting second main frame, described the is sent to the B4 equipment The unreachable information of ICMP of two main frames;The unreachable information of ICMP is used to notify the B4 equipment from the first AFTR to institute State that the route of the second main frame is obstructed so that the B4 equipment by the message forwarding path of the first main frame to second main frame from One tunnel is switched to the second tunnel.
According to another aspect of the present disclosure, there is provided a kind of realization device of routing detection method, including:Processor and machine Device readable storage medium storing program for executing, the machinable medium is stored with can be by the executable finger of the machine of the computing device Order, machine-executable instruction described in computing device is to realize the routing detection method described in disclosure any embodiment.
According to another aspect of the present disclosure, there is provided a kind of machinable medium, the machinable medium Machine-executable instruction is stored with, when being called and being performed by processor, the machine can perform the machine-executable instruction Instruction promotes the processor to realize the routing detection method described in disclosure any embodiment.
The disclosure sends route exploration instruction using B4 equipment to AFTR, so that AFTR carries out icmp probe, B4 to main frame If equipment receives the unreachable information of ICMP of the main frame of AFTR returns, it can know that AFTR is obstructed to the Host routes, and Active and standby AFTR switching can be carried out automatically so that backup AFTR can play work when main AFTR is obstructed to remote host route With, ensure communication be normally carried out, reduce the waste to system resource.
According to below with reference to the accompanying drawings becoming to detailed description of illustrative embodiments, the further feature and aspect of the disclosure It is clear.
Brief description of the drawings
Comprising in the description and the accompanying drawing of a part for constitution instruction and specification together illustrate the disclosure Exemplary embodiment, feature and aspect, and for explaining the principle of the disclosure.
Fig. 1 shows the schematic diagram of the DS-Lite networking diagrams in correlation technique.
Fig. 2 shows the flow chart of message repeating process in DS-Lite networking diagrams.
Fig. 3 shows another flow chart of message repeating process in DS-Lite networking diagrams.
Fig. 4 shows the flow chart of the routing detection method according to the embodiment of the disclosure one.
Fig. 5 shows another flow chart of the routing detection method according to the embodiment of the disclosure one.
Fig. 6 shows the flow chart of the routing detection method according to another embodiment of the disclosure.
Fig. 7 shows another flow chart of the routing detection method according to another embodiment of the disclosure.
Fig. 8 shows the schematic diagram of the application scenarios of the routing detection method according to the embodiment of the disclosure one.
Fig. 9 shows the schematic diagram of the first routing detection method according to the embodiment of the disclosure one.
Figure 10 shows the schematic diagram of second of routing detection method according to the embodiment of the disclosure one.
Figure 11 shows the flow chart of the message repeating process in DS-Lite networking diagrams according to the embodiment of the disclosure one.
Figure 12 shows the flow chart of the message repeating process in DS-Lite networking diagrams according to the embodiment of the disclosure one.
Figure 13 shows a kind of block diagram of route exploration device according to the embodiment of the disclosure one.
Figure 14 shows a kind of another block diagram of route exploration device according to the embodiment of the disclosure one.
Figure 15 shows a kind of block diagram of route exploration device according to another embodiment of the disclosure.
Figure 16 shows a kind of another block diagram of route exploration device according to another embodiment of the disclosure.
Figure 17 shows a kind of block diagram of the realization device of routing detection method according to the embodiment of the disclosure one.
Figure 18 shows a kind of block diagram of machinable medium according to the embodiment of the disclosure one.
Embodiment
Describe various exemplary embodiments, feature and the aspect of the disclosure in detail below with reference to accompanying drawing.It is identical in accompanying drawing Reference represent the same or analogous element of function.Although the various aspects of embodiment are shown in the drawings, remove Non-specifically point out, it is not necessary to accompanying drawing drawn to scale.
Special word " exemplary " is meant " being used as example, embodiment or illustrative " herein.Here as " exemplary " Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, in order to better illustrate the disclosure, numerous details is given in embodiment below. It will be appreciated by those skilled in the art that without some details, the disclosure can equally be implemented.In some instances, for Method, means, element and circuit well known to those skilled in the art are not described in detail, in order to highlight the purport of the disclosure.
Fig. 2 shows the flow chart of message repeating process in DS-Lite networking diagrams.As shown in Fig. 2 using independent gateway When equipment is as B4 equipment, source and destination IP address, source and destination port numbers change in DS-Lite message repeating process. Wherein, the committed step of DS-Lite messages repeating process includes:B4 equipment and AFTR are packaged and decapsulated to message, with And AFTR carries out NAT conversions to IPv4 messages.As shown in Fig. 2 set in user network side using independent gateway device as B4 In the case of standby, message repeating process is as described below:B4 equipment is by the IPv4 messages { IPv4dst of user network side: 30.1.1.1,IPv4 src:10.0.0.1,TCP dst:80,TCP src:10000 } it is packaged into IPv6 messages { IPv6dst: 2::1,IPv6 src:1::1,IPv4dst:30.1.1.1,IPv4src:10.0.0.1,TCP dst:80,TCP src: 10000 } AFTR is sent to by DS-Lite tunnels after.AFTR is by IPv6 messages { IPv6dst:2::1,IPv6src:1::1, IPv4 dst:30.1.1.1,IPv4src:10.0.0.1,TCP dst:80,TCP src:10000 } NAT is carried out after decapsulating to turn Change, obtain IPv4 messages { IPv4dst:30.1.1.1,IPv4src:20.1.1.1,TCP dst:80,TCP src:5000 }, and By IPv4 messages { IPv4dst:30.1.1.1,IPv4src:20.1.1.1,TCP dst:80,TCP src:5000 } it is sent to mesh IPv4 main frames.AFTR receives the IPv4 messages { IPv4dst of purpose IPv4 main frames return:20.1.1.1,IPv4src: 30.1.1.1,TCP dst:5000,TCP src:80 } NAT conversions are carried out afterwards, and are packaged into IPv6 messages { IPv6dst:1::1, IPv6src:2::1,IPv4dst:10.0.0.1,IPv4 src:30.1.1.1,TCP dst:10000,TCP src:80 } lead to afterwards Cross DS-Lite tunnels and be sent to B4 equipment.B4 equipment is by IPv6 messages { IPv6dst:1::1,IPv6src:2::1,IPv4dst: 10.0.0.1,IPv4 src:30.1.1.1,TCP dst:10000,TCP src:80 } after decapsulating, IPv4 messages are obtained {IPv4 dst:10.0.0.1,IPv4src:30.1.1.1,TCP dst:10000,TCP src:80 }, and by IPv4 messages {IPv4 dst:10.0.0.1,IPv4src:30.1.1.1,TCP dst:10000,TCP src:80 } it is sent to user network side Main frame.
Fig. 3 shows another flow chart of message repeating process in DS-Lite networking diagrams.As shown in figure 3, if host is (main Machine) it is IPv4 addresses, encapsulation when host1 (main frame 1) accesses host2 (main frame 2) by B4 equipment, it can will increase by one layer The message of IPv6 encapsulation headers is forwarded to AFTR.AFTR decapsulates conversion address and sends IPv4 messages to main frame 2 again.Above-mentioned networking In actual use, if AFTR1 is primary AFTR, AFTR2 is standby AFTR, then B4 equipment can have two tunnel (tunnels Road), tunnel destination address is respectively directed to two AFTR IPv6 addresses.Then B4 equipment is reconfigured at the static state of main frame 2 IPv4 is route, and that main next-hop walks AFTR1 is tunnel1, and that backup next-hop walks AFTR2 is tunnel2.During forwarding, data Message to each router solicitation be:(1) data message reaches B4 equipment:B4 need AFTR IPv6 route (i.e. we The static routing configured before).(2) when data message reaches AFTR equipment:AFTR needs to know the route of main frame 2.This two Individual routing relation is independent, and when data message reaches corresponding role device (such as B4), corresponding role device can't be because of another Individual equipment is without route (such as AFTR does not know the route of main frame 2) and without forwarding.
The independence of relation is route and forwarded due to more than, it is known that:When AFTR to main frame 2 path failure can not forward, The study and encapsulation forwarding of the IPv6 routes of B4 equipment can't be influenceed.B4 equipment is still forwarded the packet to path failure AFTR, cause message unreachable for a long time.Unless it is preferential that the main next-hop of static routing is revised as into another backup AFTR, treat Path will also change after recovering.Such modification mode, it is very inconvenient, when especially more than the impacted host number Wait, waste time and energy.
Fig. 4 shows the flow chart of the routing detection method according to the embodiment of the disclosure one.As shown in figure 4, the route exploration Method be applied to lightweight dual stack network in B4 equipment, the lightweight dual stack network also include the first main frame, Second main frame, the first AFTR, the 2nd AFTR, wherein, include the from the first main frame to the message forwarding path of second main frame One tunnel and the second tunnel, tunnel of first tunnel between B4 equipment and the first AFTR, the second tunnel are B4 equipment and second Tunnel between AFTR.
In one embodiment, methods described includes:
Step 101, route exploration instruction is sent to the first AFTR, the route exploration indicates to be used to make the first AFTR Icmp probe is carried out to the second main frame.
, will if step 102, the unreachable information of ICMP for receiving second main frame for coming from the first AFTR The message forwarding path of first main frame to second main frame is switched to second tunnel from first tunnel.
In one implementation, it is normal to turn after B4 equipment receives the data message of the IPv4 forms from the first main frame In the case of hair, B4 equipment carries out IPv6 to the data message of IPv4 forms and encapsulates to obtain the first data message, and passes through first Tunnel sends first data message to the first AFTR.
In order to carry out icmp probe to the second main frame, in a step 101, route exploration instruction is sent to the first AFTR, can To use following either type:
Mode one, the probe messages transmission route exploration instruction using construction.
The B4 equipment intervals first set cycle, the first data message sent according to the B4 equipment to the first AFTR Structural exploration message, the probe messages include the IPv4 heads and IPv6 heads in first data message, and the detection Message also includes ICMP heads, and the ICMP heads indicate for the route exploration.Then, B4 equipment sends institute to the first AFTR State probe messages.Wherein, the first setting cycle can be the time cycle of setting, such as be spaced 300 milliseconds, 400 milliseconds or 600 Millisecond sends a probe messages.The setting cycle can also be the message amount of setting, such as interval 10,20,40 numbers A probe messages are sent according to message.The above-mentioned time cycle and message amount cycle is only example, rather than to the setting cycle Limitation, in practical application scene, can also select other modes such as flow, particular event to determine specific week Phase.
After B4 equipment employing mode one sends route exploration instruction to the first AFTR, the first AFTR obtains from probe messages ICMP heads, knowing needs to carry out icmp probe to the second main frame.First AFTR obtains IPv4 heads and ICMP heads from probe messages, Construct icmp packet.The icmp packet constructed is sent to the second main frame (in the first AFTR and in the absence of second by the first AFTR During the route of main frame, the icmp packet can not be sent).
Mode two, route exploration instruction is sent using data message.
B4 equipment intervals second set the cycle, in the first data message that the B4 equipment is sent to the first AFTR Icmp probe mark is added, the icmp probe is identified as the route exploration instruction;The icmp probe is identified for making institute State the first AFTR and send the second data message to second main frame to carry out icmp probe to second main frame;To described One AFTR sends first data message for including the icmp probe mark.Wherein, the second setting cycle can be setting Time cycle or setting message amount, can also using other modes such as flow, particular event come really The fixed specific cycle.Have in the mode for the icmp probe mark that the first data message adds a variety of.Both the first data can be used Some existing field in message carries icmp probe mark, for example, the protocol number field in the first data message is revised as For representing the field of icmp probe mark.Icmp probe mark can also be carried in the first data message by new field.This The concrete mode of the icmp probe mark of the first data message addition is not limited in embodiment.
After B4 equipment employing mode two sends route exploration instruction to the first AFTR, the first AFTR is from the first data message Icmp probe mark is obtained, knowing needs to carry out icmp probe to the second main frame.First AFTR replicates from the first data message IPv4 heads, and ICMP marks are added, construction obtains icmp packet.After the first AFTR constructs to obtain icmp packet, the first AFTR The icmp packet constructed is sent into the second main frame (in the first AFTR and the route in the absence of the second main frame, can not send out Give the icmp packet).
For mode one or mode two, if the second main frame is not responded, or the first AFTR and the second main frame is not present Route, represent unreachable from the ICMP of the first AFTR to the second main frame, namely the route between the first AFTR and the second main frame It is obstructed.First AFTR sends back message to B4 equipment.Back message includes the unreachable information of ICMP and with described first Data message route opposite IPv4 heads and IPv6 heads.
The unreachable information of ICMP of the B4 equipment in back message and IPv4 heads, the masters of the first AFTR and second can be known Route between machine is obstructed.At this moment, in a step 102, B4 equipment by the static IP v4 of the first main frame to the second main frame route into Row modification, the second tunnel is switched to by the message forwarding path of the first main frame to the second main frame from the first tunnel.For example, such as Fig. 8 It is shown, the static routing configured in B4 equipment is changed, the next-hop that the IPv4 destination addresses of main frame 2 are 3.3.3.3 is revised as tunnel2。
In one implementation, as shown in figure 5, this method also includes:
If the source address for the data to be forwarded message that step 103, B4 equipment receive is the first main frame, destination address is described Second main frame, then according to the mapping relations of second main frame and the 2nd AFTR, second tunnel by the 2nd AFTR to Second main frame sends the data to be forwarded message.
In one implementation, B4 equipment generates interim mapping table, and second main frame is preserved in interim mapping table With the 2nd AFTR mapping relations.Subsequently, in the data to be forwarded message that B4 equipment receives, if in interim mapping table With determine the data to be forwarded message destination address be the second main frame, the second tunnel by the 2nd AFTR to described second lead Machine sends data to be forwarded message.It is other main frames of non-second main frame for destination address, is forwarded according to original flow.
As shown in figure 5, after B4 equipment knows that route between the first AFTR and the second main frame is obstructed, the second tunnel is used to make For message forwarding path, it also can indicate that the first AFTR continues detection so as to smooth switchback.In one implementation, should Method also includes:
Step 104, using situation of second tunnel as message forwarding path of first main frame to the second main frame Under, if reception comes from the ICMP of second main frame of the first AFTR up to information, by first main frame described in The message forwarding path of second main frame is from second tunnel switchback to first tunnel.Wherein, the ICMP is up to information Represent that the route between the first AFTR and second main frame is normal.
Before step 104, if the message forwarding path using second tunnel as the first main frame to the second main frame, Then B4 equipment can send route exploration instruction to the first AFTR.Wherein, route exploration instruction can also pass through detection The form of message is realized.After using the second tunnel as message forwarding path, although B4 equipment does not send number to the first AFTR According to message, still, if B4 equipment receives the data message that source address is the first main frame, destination address is the second main frame, B4 Message can also according to the IPv4 heads of the data message, in encapsulation source address be B4 equipment, destination address be the first AFTR IPv6 heads, and ICMP heads are added, construction obtains probe messages.Then, the setting cycle of B4 equipment intervals the 3rd is sent out to the first AFTR The probe messages for giving this to include route exploration instruction.Wherein, the 3rd setting cycle and the first above-mentioned setting cycle, the second setting Cycle, can be with identical, can also be different.First AFTR receive from B4 equipment route exploration instruction after, perform step 104 after It is continuous that icmp probe is carried out to the second main frame.Detecting the normal situation of route recovery between the first AFTR and the second main frame Under, the ICMP that the first AFTR sends the second main frame to B4 equipment carries out switchback up to information by B4 equipment.
In addition it is also possible to it is directly disposed as on the first AFTR, if the first AFTR knows itself between the second main frame Route it is obstructed, then periodically to the second main frame carry out icmp probe.So, B4 equipment is known between the first AFTR and the second main frame Route it is obstructed after, then need not again to the first AFTR send route exploration indicate.
The present embodiment sends route exploration instruction using B4 equipment to AFTR, so that AFTR carries out icmp probe to main frame, If B4 equipment receives the unreachable information of ICMP of the main frame of AFTR returns, it can know that AFTR is obstructed to the Host routes, And active and standby AFTR switching can be carried out automatically so that backup AFTR can play work when main AFTR is obstructed to remote host route With, ensure communication be normally carried out, reduce the waste to system resource.Further, after route recovery is normal, B4 equipment is also The automatic switchback of energy, handoff procedure is convenient, time saving and energy saving.And interim mapping relations are established in B4 equipment, spy can be directed to The message forwarding path failure of fixed main frame carries out IPv6 routed encapsulation changes, does not influence the message of other trouble-free main frames Forward-path.
Fig. 6 shows the flow chart of the routing detection method according to another embodiment of the disclosure.As shown in fig. 6, the route is visited Survey method is applied to the first AFTR in lightweight dual stack network, and the lightweight dual stack network also includes the first master Machine, the second main frame, B4 equipment, the 2nd AFTR, wherein, include the from the first main frame to the message forwarding path of second main frame One tunnel and the second tunnel, tunnel of first tunnel between B4 equipment and the first AFTR, the second tunnel are B4 equipment and second Tunnel between AFTR.
In one embodiment, methods described includes:
The route exploration for coming from the B4 equipment instruction that step 301, basis receive, ICMP is carried out to the second main frame Detection.
If step 302, detecting that second main frame is unreachable, second main frame is sent to the B4 equipment The unreachable information of ICMP.The unreachable information of ICMP is used to notify the B4 equipment to lead from the first AFTR to described second The route of machine is obstructed, so that the message forwarding path of the first main frame to the second main frame is switched to by the B4 equipment from the first tunnel Second tunnel.
After B4 equipment receives the data message of the IPv4 forms from the first main frame, in the case of normal forwarding, B4 equipment Data message progress IPv6 to IPv4 forms encapsulates to obtain the first data message, and is sent by the first tunnel to the first AFTR First data message.
In order to carry out icmp probe to the second main frame, B4 equipment sends route exploration instruction to the first AFTR, referring to above-mentioned The associated description of embodiment step 101.
In step 301, indicated according to the route exploration for coming from the B4 equipment received, the second main frame is carried out Icmp probe, following either type can be used:
Mode one, the route exploration received in probe messages carry out icmp probe after indicating.
If the first AFTR receives the probe messages for including route exploration instruction for coming from B4 equipment, by the detection IPv4 heads in message obtain icmp packet with ICMP head structures, the icmp packet are sent to second main frame, with to institute State the second main frame and carry out icmp probe.
Wherein, the probe messages be by the B4 equipment intervals first set the cycle (such as interval the very first time or Every message of the first quantity etc.), constructed to the first AFTR the first data messages sent according to the B4 equipment.The spy Observing and predicting text includes routeing identical IPv4 heads and IPv6 heads with first data message, and the probe messages also include ICMP heads, the ICMP heads indicate for the route exploration.
Mode two, the route exploration received in data message carry out icmp probe after indicating.
In the B4 equipment, the setting cycle of interval second (such as be spaced for the second time or be spaced the message of the second quantity Deng), icmp probe mark is added in the first data message that the B4 equipment is sent to the first AFTR, the ICMP is visited Survey is identified as the route exploration instruction.If the first AFTR, which is received, comes from include route exploration instruction the first of B4 equipment Data message, then the second data message is sent to second main frame, and IPv4 heads are replicated simultaneously from first data message Addition ICMP mark constructions obtain icmp packet, the icmp packet are sent to second main frame, with to second main frame Carry out icmp probe.
Have in the mode for the icmp probe mark that the first data message adds a variety of.Both can use in the first data message Some existing field carry icmp probe mark, for example, the protocol number field in the first data message is revised as to be used for table Show the field of icmp probe mark.Icmp probe mark can also be carried in the first data message by new field.The present embodiment In be not limited to the first data message addition icmp probe mark concrete mode.
After step 301, if the first AFTR obtains ICMP heads from probe messages or obtained from the first data message Icmp probe identifies, you can knowing needs to carry out icmp probe to the second main frame.In the first AFTR using aforesaid way one or side After the construction of formula two obtains icmp packet, the icmp packet constructed is sent to the second main frame (if the first AFTR by the first AFTR And can not then send the icmp packet in the absence of the route of the second main frame).If the second main frame is not responded, or first AFTR and in the absence of the route of the second main frame, represents unreachable from the ICMP of the first AFTR to the second main frame, namely the first AFTR Route between the second main frame is obstructed.
In one implementation, in step 302, it is unreachable if detecting second main frame, set to the B4 Preparation send the unreachable information of ICMP of second main frame, including:
If detecting, the second main frame is unreachable, i.e. the route of the first AFTR to the second main frame is obstructed, and the first AFTR is to described B4 equipment sends back message, and the back message includes the IPv6 opposite with the first data message (or probe messages) route Head, IPv4 heads and the unreachable information of the ICMP.
After B4 equipment receives back message, the message forwarding path of the first main frame to the second main frame is switched from the first tunnel To the second tunnel, referring to the associated description of the step 102 of above-described embodiment.Also, B4 equipment can also generate interim mapping table, To preserve the mapping relations between second main frame and the 2nd AFTR, referring to the associated description of the step 103 of above-described embodiment. If the source address for the data to be forwarded message that B4 equipment receives is the first main frame, destination address is second main frame, basis Mapping relations between second main frame and the 2nd AFTR, sent in second tunnel by the 2nd AFTR to second main frame The data to be forwarded message.If for example, after the data to be forwarded message that B4 equipment receives, if in interim mapping table With determine the data to be forwarded message destination address be the second main frame, the second tunnel by the 2nd AFTR to described second lead Machine sends data to be forwarded message.It is other main frames of non-second main frame for destination address, is forwarded according to original flow.
As shown in fig. 7, after the first AFTR informs that route between the AFTR of B4 equipment the first and the second main frame is obstructed, first AFTR can also continue icmp probe to the second main frame, so as to smooth switchback.In one implementation, this method Also include:
Step 303, in B4 equipment use message of second tunnel as first main frame to second main frame In the case of forward-path, if detected after icmp probe is carried out to the second main frame the first AFTR and second main frame it Between route it is normal, then the ICMP of second main frame is sent to the B4 equipment up to information, so that B4 equipment is by described the One main frame is to the message forwarding path of second main frame from second tunnel switchback to first tunnel.
Wherein, if B4 equipment uses message forwarding path of second tunnel as the first main frame to the second main frame, B4 equipment can send route exploration instruction to the first AFTR.Wherein, route exploration instruction can also be reported by detecting The form of text is realized.After using the second tunnel as message forwarding path, although B4 equipment does not send data to the first AFTR Message, still, if B4 equipment receives the data message that source address is the first main frame, destination address is the second main frame, B4 reports Text can also be according to the IPv4 heads of the data message, source address is B4 equipment, destination address is the first AFTR in encapsulation IPv6 Head, and ICMP heads are added, construction obtains probe messages.Then, B4 equipment is sent to the first AFTR should include route exploration instruction Probe messages.After first AFTR receives the route exploration instruction from B4 equipment, perform step 303 and continue to enter the second main frame Row icmp probe.Detect the route recovery between the first AFTR and the second main frame it is normal in the case of, the first AFTR is to B4 Equipment sends the ICMP of the second main frame up to information, and switchback is carried out by B4 equipment.
In addition it is also possible to it is directly disposed as on the first AFTR, if the first AFTR knows itself between the second main frame Route it is obstructed, then periodically to the second main frame carry out icmp probe.So, B4 equipment is known between the first AFTR and the second main frame Route it is obstructed after, then need not again to the first AFTR send route exploration indicate.
Using the routing detection method of the embodiment of the present disclosure, the route that B4 equipment can perceive AFTR to main frame is obstructed (or being link failure), follow-up data forwarding is carried out so as to automatically switch to backup path, overcomes active and standby AFTR The limitation that only can be just come into force in AFTR failures.And interim mapping relations are established in B4 equipment, for specific main The message forwarding path failure of machine carries out IPv6 routed encapsulation changes, does not influence the message forwarding road of other trouble-free main frames Footpath.Meanwhile therefore backup AFTR (the 2nd AFTR) can also play when main AFTR (the first AFTR) is obstructed to remote host route Effect.
The present embodiment AFTR carries out icmp probe to main frame after B4 equipment receives route exploration instruction, and will detection As a result it is sent to B4 equipment.If B4 equipment receives the unreachable information of ICMP of the main frame of AFTR returns, AFTR can be known Route to the main frame is obstructed, and can carry out active and standby AFTR switching automatically so that backup AFTR can be in main AFTR to distal end Played a role when the route of main frame is obstructed, ensure being normally carried out for communication, reduce the waste to system resource.Further, exist After AFTR informs that B4 equipment route recoveries are normal, B4 equipment can also automatic switchback, handoff procedure is convenient, time saving and energy saving.
Fig. 8 shows the schematic diagram of the application scenarios of the routing detection method according to the embodiment of the disclosure one.As shown in figure 8, Two IPv6 tunnel (tunnel) be present in B4 equipment.Tunnel1 IPv6 destination addresses are 2::1 (representing AFTR1), Tunnel2 IPv6 destination addresses are 2::2 (representing AFTR2).Static routing is configured in B4 equipment, IPv4 destination addresses are 3.3.3.3 (main frame 2 is represented), main next-hop is tunnel1, and backup next-hop is tunnel2.Realized using current, the configuration When can be only applied to AFTR failures, main tunnel1 routes 2::1 is changed into unreachable, meeting down (going offline), then carries out route and cuts Change.And when path failure (or obstructed etc. for link failure, route) of AFTR to host (main frame 2), tunnel IPv6 Purpose route is still reachable, and route will not switch.Flow (data message) continues to forward according to IPv6 routing configuration.It is situated between below Continue two kinds of routing detection methods, to realize that route automatically switches in path failure.
As shown in figure 9, the first routing detection method mainly includes:In send datagram (or being data traffic) During, B4 equipment sends probe messages every certain time length or at interval of certain data message quantity to AFTR, and probe messages are B4 equipment is generated according to the data message received.As shown in figure 9, the example of the detection process comprises the following steps:
When step 501, host1 (main frame 1) access host2 (main frame 2), in the data message that B4 equipment to AFTR1 is sent (pkt1) in, IPv6 heads (or first-class for IPv6 encapsulation headers, IPv6 messages) include IPv6 source addresses 1::1st, IPv6 destination addresses 2::1, IPv4 head (or being that IPv4 encapsulation headers, IPv4 messages are first-class) is 1.1.1.1, IPv4 destination including IPv4 source addresses Location is 3.3.3.3.Pkt1 is always according to needing to carry the other information such as port numbers.Under normal circumstances, B4 equipment can according to similar to Processing procedure shown in Fig. 2, the pkt1 is forwarded to main frame 2 by AFTR1.
Step 502, during sending datagram, at interval of certain time length, or at interval of certain data message Quantity, B4 equipment construct a probe messages to AFTR1.The probe messages include pkt1 IPv6 heads and IPv4 heads, and carry One layer of ICMP (Internet Control Message Protocol, Internet Control Message agreement) head (or sealed for ICMP Fill head, icmp packet head).For example, as shown in figure 8, probe messages include:IPv4 source addresses are 1.1.1.1, IPv4 destination Location is 3.3.3.3, IPv6 source address 1::1st, IPv6 destination addresses 2::1 and one layer of ping ICMP head (such as type (Type) Echo (ping) request for 8).
The probe messages are sent on AFTR1 by step 503, B4 equipment.
After step 504, AFTR1 receive probe messages, after the IPv6 encapsulation for releasing probe messages, bottom purpose IPv4 is reported Text carries out icmp probe, whether detects the IPv4 messages up to remote host 2.For example, AFTR1 receives the probe messages, find The probe messages include IPv6 heads, IPv4 heads and ICMP heads, represent to need the main frame 2 to IPv4 destination addresses are 3.3.3.3 Carry out icmp probe.AFTR1 removes the IPv6 heads in probe messages, and being sent to main frame 2 includes IPv4 heads and ICMP heads Icmp packet.For example, the icmp packet is that 1.1.1.1, IPv4 destination address are 3.3.3.3 and Echo including IPv4 source addresses (ping)。
If step 505, main frame 2 without respond or AFTR1 directly just be not present main frame 2 route, AFTR1 think from The route of AFTR1 to main frame 2 is obstructed.If IPv4 messages do not influence currently to forward, do not do extra process up to main frame 2.
IPv4 heads and ICMP heads are sealed up dress IPv6 heads response to B4 equipment by step 506, AFTR1 again.For example, AFTR1 roots Back message is constructed according to pkt1.IPv4 heads and IPv6 heads in back message and pkt1's on the contrary, and adding one layer in bottom The unreachable information of ICMP.For example, connecting example, back message includes:IPv6 source addresses 2::1st, IPv6 destination addresses 1::1、 IPv4 source addresses be 3.3.3.3, IPv4 destination address be 1.1.1.1 and the unreachable information of ICMP (such as type is 3 and code For 1, represent without 32 routes).Wherein, the implementation of the unreachable information of ICMP includes a variety of, is not limited in the present embodiment Its concrete implementation mode.
Step 507, after B4 equipment receives back message, if obtaining the unreachable information of the ICMP, parse back message The response host address (i.e. IPv4 source address 3.3.3.3) of IPv4 layers is obtained, such as finds that the inaccessible main frames of ICMP are host2.At this moment, route handoff corresponding to B4 equipment control main frame address is backup path.For example, B4 equipment locally automatically switches For host2 static routing.As shown in figure 8, the static routing configured in modification B4 equipment, by the IPv4 destination addresses of main frame 2 Tunnel2 is revised as 3.3.3.3 next-hop.
The data message that B4 equipment is successfully received walks backup path, i.e. tunnel2 is forwarded.In order to not influence other nothings Failure host forwarding, the disclosure also form a kind of interim mapping table, to specify the flow for only reaching host2, use backup Path forwards.
In step 508, such as Fig. 8 example, when generation ICMP is unreachable, B4 equipment establishes interim mapping table, is formed 3.3.3.3->2::2 mapping.The mapping, which represents to work as in B4 equipment, there is main frame flow of the IPv4 destination addresses as 3.3.3.3 (it is data message that main frame 2 forwards that i.e. B4 equipment, which is received to destination host), next-hop points to tunnel2, by AFTR2 to master Machine 2 forwards.When B4 equipment receives the data message for needing to forward to other purposes main frame, due to it is included in interim mapping table Mapping mismatch, according further to original flow forward.
It is the example of the handoff procedure of the first detection method above.The switchback process of the first detection method is described below Example.
Step 509, when route it is obstructed after, B4 equipment is still spaced certain time length, and (duration is not necessarily intended to and step 502 It is identical to detect duration) send probe messages to AFTR1.The associated description that the building method of the probe messages is seen above.
Step 510, detection process are similar with above-mentioned steps 504, if detect follow-up AFTR recovers reachable to host link, ICMP is responded up to information.For example, AFTR1 is connected in example to the route recovery of main frame 2, the reverse B4 device replieds of AFTR1 one ICMP is up to information.If periodically carrying out icmp probe to main frame 2 automatically when being arranged to route obstructed on AFTR1, do not have Step 509.
After step 511, B4 equipment receive ICMP up to information, parsing back message obtains remote host (such as main frame 2) IPv4 addresses, it is found that the address has carried out route handoff (static routing is have modified in step 507), then carry out switchback. For example, B4 equipment is recovered the route table items switched temporarily, interim mapping table is deleted, to carry out switchback.Follow-up B4 equipment Receive again to destination host be the data message that main frame 2 forwards when, next-hop points to tunnel1, by AFTR1 to 2 turns of main frame Send out the data message.
As shown in Figure 10, second of routing detection method comprises the following steps:
Step 601, send datagram to main frame 2 in main frame 1 process (environment for also referred to as squeezing into flow) of (pkt1) In, in B4 equipment, certain time length is spaced, the IPv4 protocol number words in the IPv4 heads for the data message for changing next process Section.For example, a newly-built protocol number identifies (example of route exploration instruction) as icmp probe, such as protocol number field is repaiied It is changed to identity protocol XXXX.
Step 602, AFTR1 receive carry corresponding to identity protocol number be XXXX data message after, to the data message IPv6 heads and IPv4 heads matched.Compare receive with the data message have identical IPv6 heads, upper one of IPv4 heads Message, the protocol number field of the data message is revised as to the protocol number field of a message on this.
Step 603 and then AFTR1 continue to send amended data message (according to the flow similar with Fig. 2 to main frame 2 Handled).Wherein, the pkt1 before protocol number is identified in the data message that AFTR1 is sent to main frame 2 being changed back to and change IPv4 protocol number fields are identical.
Step 604, identity protocol XXXX is received due to AFTR1, then AFTR1 constructs a icmp packet and walks detection stream Journey, it is sent to remote host 2.Wherein, the icmp packet of AFTR1 constructions replicates the IPv4 heads of pkt1 messages, and adds ICMP marks Know.
Step 505 in the follow-up step 605 of second of detection method to step 611 and the first detection method is to step Rapid 511 is similar, will not be repeated here.Wherein, in step 609, it can also construct and send in the way of similar step 509 Probe messages are detected.If periodically carrying out icmp probe to main frame 2 automatically when being arranged to route obstructed on AFTR1, There is no step 609.
Both the above detection method, for network, first method is more prone to realize.Second method only can be AFTR carries out the message of icmp probe to increase between the link of main frame 2, if directly occurring the route of off host 2 on AFTR, Any more probe messages will not be increased, therefore, second method is in B4 to some few probe messages, bandwidth occupancy between AFTR It is few.
The disclosure sends route exploration instruction using B4 equipment to AFTR, so that AFTR carries out icmp probe to main frame, and And if B4 equipment receives the unreachable information of ICMP of the main frame of AFTR returns, AFTR can be known to the route of the main frame It is obstructed.Therefore, when AFTR to main frame route is obstructed, B4 equipment can also carry out backup path switching, overcome active and standby AFTR The limitation that only can be just come into force in AFTR failures so that backup AFTR can play work when main AFTR is to remote host failure With, ensure communication be normally carried out, reduce the waste to system resource.
Figure 11 shows the flow chart of the message repeating process in DS-Lite networking diagrams according to the embodiment of the disclosure one.With Fig. 2 compares, and as shown in figure 11, the process that employing mode one (structural exploration message) is detected includes:
B4 equipment receives the IPv4 messages { IPv4dst of user network side main frame 1:30.1.1.1,IPv4 src: 10.0.0.1,TCP dst:80,TCP src:10000 } after, obtained IPv6 messages { IPv6 dst are encapsulated:2::1, IPv6src:1::1,IPv4dst:30.1.1.1,IPv4src:10.0.0.1,TCP dst:80,TCP src:10000 } it is Pkt1, constructed to obtain probe messages { IPv6dst according to pkt1:2::1,IPv6src:1::1,IPv4dst:30.1.1.1, IPv4src:10.0.0.1,Type:8(Echo(ping)request)}.Then probe messages are sent by DS-Lite tunnels To AFTR1.
After AFTR1 receives the probe messages of the IPv6 forms, icmp probe is carried out to main frame 2.AFTR1 is by IPv6 forms Probe messages { IPv6dst:2::1,IPv6src:1::1,IPv4dst:30.1.1.1,IPv4src:10.0.0.1,Type:8 (Echo (ping) request) } decapsulation after carry out NAT conversions, obtain the icmp packet { IPv4dst of IPv4 forms: 30.1.1.1,IPv4src:20.1.1.1,Type:8 (Echo (ping) request) }, and by the icmp packet of the IPv4 forms It is sent to main frame 2.
If AFTR1 does not receive the response of main frame 2, it is unreachable that expression detects main frame 2.Such as AFTR1 encapsulates to obtain Back message { the IPv6dst of IPv6 forms:1::1,IPv6src:2::1,IPv4 dst:10.0.0.1,IPv4src: 30.1.1.1,Type:3, Code:1 } after, B4 equipment is sent to by DS-Lite tunnels.
B4 equipment receives represent the inaccessible back messages of ICMP after, change static routing, forward the packet path by the One tunnel is switched to the second tunnel.
Figure 12 shows the flow chart of the message repeating process in DS-Lite networking diagrams according to the embodiment of the disclosure one.With Fig. 2 compares, and the process that employing mode two (modification data message) as shown in figure 12 is detected includes:
B4 equipment receives the IPv4 messages { IPv4dst of user network side main frame 1:30.1.1.1,IPv4 src: 10.0.0.1,TCP dst:80,TCP src:10000,Protocol:Transmission Control Protocol number } after, by the protocol number in IPv4 messages It is revised as such as XXXX and encapsulates to obtain IPv6 messages { IPv6dst:2::1,IPv6 src:1::1,IPv4dst:30.1.1.1, IPv4src:10.0.0.1,Protocol:XXXX, Type:8(Echo(ping)request)}.Then DS-Lite tunnels are passed through The IPv6 messages are sent to AFTR1.
After AFTR1 receives the IPv6 messages, icmp probe is carried out to purpose IPv4 main frames 2.In this case, AFTR1 meetings Two messages are sent out to main frame 2.One is data message, after AFTR1 decapsulates the IPv6 messages, protocol number is changeed back original Protocol number, and NAT conversions are carried out, obtain the data message { IPv4dst of IPv4 forms:30.1.1.1,IPv4src: 20.1.1.1,TCP dst:80,TCP src:5000,Protocol:Transmission Control Protocol number }.Another is the report for carrying out icmp probe Text, after AFTR1 decapsulates above-mentioned IPv6 messages, NAT conversions are carried out, and be configured to icmp packet { IPv4dst:30.1.1.1, IPv4 src:20.1.1.1,Type:8(Echo(ping)request)}.And the icmp packet is sent to main frame 2.
If AFTR1 does not receive the response of main frame 2, it is unreachable that expression detects main frame 2.Such as AFTR1 is not received The message returned to main frame 2, then encapsulation obtain the back message { IPv6dst of IPv6 forms:1::1,IPv6src:2::1, IPv4dst:10.0.0.1,IPv4src:30.1.1.1,Type:3, Code:1 } after, B4 is sent to by DS-Lite tunnels and set It is standby.
B4 equipment receives represent the inaccessible back messages of ICMP after, change static routing, forward the packet path by the One tunnel is switched to the second tunnel.
Figure 13 shows a kind of block diagram of route exploration device according to the embodiment of the disclosure one.The route exploration device application B4 equipment in lightweight dual stack network, the lightweight dual stack network also include the first main frame, the second main frame, First AFTR, the 2nd AFTR, wherein, include the first tunnel and the from the first main frame to the message forwarding path of second main frame Two tunnels, tunnel of first tunnel between B4 equipment and the first AFTR, the second tunnel is between B4 equipment and the 2nd AFTR Tunnel.
As shown in figure 13, in one embodiment, the route exploration device includes:First sending module 71, for One AFTR sends route exploration instruction, and the route exploration indicates to be used to make the first AFTR carry out ICMP spies to the second main frame Survey;First receiving module 73, if the unreachable letters of ICMP for receiving second main frame for coming from the first AFTR Breath, then be switched to second tunnel by the message forwarding path of first main frame to second main frame from first tunnel Road.
In one implementation, it is additionally operable to referring to the mode one in embodiment of the method, first sending module 71:
The setting cycle of interval first, the first data message structural exploration report sent according to the B4 equipment to the first AFTR Text, the probe messages include the IPv4 heads and IPv6 heads in first data message, and the probe messages also include ICMP heads, the ICMP heads indicate for the route exploration;
The probe messages are sent to the first AFTR.
In one implementation, it is additionally operable to referring to the mode two in embodiment of the method, first sending module 71:
In the setting cycle of interval second, added in the first data message that the B4 equipment is sent to the first AFTR Icmp probe identifies, and the icmp probe is identified as the route exploration instruction;The icmp probe is identified for making described the One AFTR sends the second data message to carry out icmp probe to second main frame to second main frame;
Being sent to the first AFTR includes first data message of the icmp probe mark.
As shown in figure 14, in one implementation, the device also includes:
Mapping block 75, for generating the mapping relations of second main frame and the 2nd AFTR;If the number to be forwarded received Source address according to message is the first main frame, destination address is second main frame, then according to second main frame and the 2nd AFTR Mapping relations, the data to be forwarded message is sent to second main frame by the 2nd AFTR in second tunnel.
As shown in figure 14, in one implementation, the device also includes:
Switchback module 79, for using message of second tunnel as first main frame to second main frame In the case of forward-path, if reception comes from the ICMP of second main frame of the first AFTR up to information, by described in First main frame to the message forwarding path of second main frame from second tunnel switchback to first tunnel, wherein, institute State ICMP and represent that the route between the first AFTR and second main frame is normal up to information.
For example, if B4 equipment uses message forwarding path of second tunnel as the first main frame to the second main frame, first AFTR periodically carries out icmp probe to the second main frame automatically, if detected, the second main frame is reachable, and the first AFTR returns to B4 equipment ICMP is returned up to information.After B4 equipment receives ICMP up to information, switchback module 79 performs switchback process.
In addition, in one implementation, the device also includes:Second sending module 77, if for using described second Message forwarding path of the tunnel as the first main frame to the second main frame, then send route exploration instruction to the first AFTR.
In one implementation, if B4 equipment uses the second tunnel to be forwarded as the message of the first main frame to the second main frame Path, B4 equipment first pass through the second sending module 77 and periodically send route exploration instruction to the first AFTR, and the first AFTR receives road Icmp probe is carried out to the second main frame again after being indicated by detection, if it is reachable to detect the second main frame, the first AFTR is to B4 equipment ICMP is returned up to information.After B4 equipment receives ICMP up to information, switchback module 79 performs switchback process.
The route exploration device of the present embodiment is arranged in B4 equipment, is indicated by sending route exploration to AFTR, so that AFTR carries out icmp probe to main frame, if receiving the unreachable information of ICMP of the main frame of AFTR returns, can know AFTR It is obstructed to the Host routes, and active and standby AFTR switching can be carried out automatically so that backup AFTR can be main to distal end in main AFTR Machine route plays a role when obstructed, ensures being normally carried out for communication, reduces the waste to system resource.Further, it is routeing After recovering normal, route exploration device can also automatic switchback, handoff procedure is convenient, time saving and energy saving.And in route exploration device On establish interim mapping relations, carry out IPv6 routed encapsulation changes for the message forwarding path failure of specific main frame, The message forwarding path of other trouble-free main frames is not influenceed.
Figure 15 shows a kind of block diagram of route exploration device according to another embodiment of the disclosure.As shown in figure 15, the road The first AFTR in lightweight dual stack network is applied to by detection device.The lightweight dual stack network also includes the One main frame, the second main frame, B4 equipment, the 2nd AFTR, wherein, include the from the first main frame to the message forwarding path of the second main frame One tunnel and the second tunnel, tunnel of first tunnel between B4 equipment and the first AFTR, the second tunnel are B4 equipment and second Tunnel between AFTR.
As shown in figure 15, in one embodiment, the route exploration device includes:3rd receiving module 91, for basis The route exploration for coming from the B4 equipment instruction received, icmp probe is carried out to the second main frame;3rd sending module 93, If unreachable for detecting second main frame, the unreachable letters of ICMP of second main frame are sent to the B4 equipment Breath;The unreachable information of ICMP is used to notify route of the B4 equipment from the first AFTR to second main frame not It is logical, so that the message forwarding path of the first main frame to the second main frame is switched to the second tunnel by the B4 equipment from the first tunnel.
In one implementation, it is additionally operable to referring to the mode one in embodiment of the method, the 3rd receiving module 91:If Receive come from B4 equipment include route exploration instruction probe messages, then by the IPv4 heads in the probe messages with ICMP head structures obtain icmp packet, and the icmp packet is sent to second main frame, to be carried out to second main frame Icmp probe.
Wherein, the probe messages be by the B4 equipment intervals first set the cycle (such as interval the very first time or Every message of the first quantity etc.), constructed to the first AFTR the first data messages sent according to the B4 equipment, the spy Observing and predicting text includes routeing identical IPv4 heads and IPv6 heads with first data message, and the probe messages also include ICMP heads, the ICMP heads indicate for the route exploration.
In one implementation, it is additionally operable to referring to the mode two in embodiment of the method, the 3rd receiving module 91:If The first data message for including route exploration instruction for coming from B4 equipment is received, then sends the second number to second main frame According to message, and replicate from first data message IPv4 heads and add ICMP mark constructions and obtain icmp packet, to described Second main frame sends the icmp packet, to carry out icmp probe to second main frame.
Wherein in the B4 equipment interval second setting the cycle (such as be spaced the second time or be spaced the second quantity report Text) etc., icmp probe mark is added in the first data message sent to the first AFTR, described in the icmp probe is identified as Route exploration indicates.
In one implementation, the 3rd sending module 93 is additionally operable to:Sent according to B4 equipment to the first AFTR First data message, back message is sent to B4 equipment, the back message includes opposite with the first data message route IPv6 heads, IPv4 heads and the unreachable information of the ICMP.
As shown in figure 16, in one implementation, the device also includes:
4th sending module 97, for using second tunnel as first main frame to described second in B4 equipment In the case of the message forwarding path of main frame, if to the second main frame carry out icmp probe after detect the first AFTR with it is described Route between second main frame is normal, then the ICMP of second main frame is sent up to information to the B4 equipment, so that B4 is set It is standby by first main frame to the message forwarding path of second main frame from second tunnel switchback to first tunnel.
For example, if B4 equipment uses message forwarding path of second tunnel as the first main frame to the second main frame, first AFTR periodically carries out icmp probe to the second main frame automatically.If detect the route between the first AFTR and second main frame Normally, the second main frame is reachable, and the first AFTR returns to ICMP up to information by the 4th sending module 97 to B4 equipment.B4 equipment is received To ICMP up to information after, perform switchback process.
In addition, in one implementation, the device also includes:
4th receiving module 95, the situation obstructed for the route between the first AFTR and second main frame Under, receive the route exploration instruction that the B4 equipment is sent.
If for example, using the second tunnel as message forwarding path, B4 equipment first periodically sends route to the first AFTR and visited Instruction is surveyed, the first AFTR the 4th receiving module 95 is received again to carrying out icmp probe to the second main frame after route exploration indicates, If it is reachable to detect the second main frame, the first AFTR returns to ICMP up to information by the 4th sending module 97 to B4 equipment.B4 After equipment receives ICMP up to information, switchback process is performed.
The route exploration device of the present embodiment is arranged on AFTR, after B4 equipment receives route exploration instruction, to master Machine carries out icmp probe, and result of detection is sent into B4 equipment.If B4 equipment receives the ICMP of the main frame of AFTR returns It unreachable information, can know that the route of AFTR to the main frame is obstructed, and active and standby AFTR switching can be carried out automatically so that be standby Part AFTR can play a role when main AFTR is obstructed to remote host route, ensure being normally carried out for communication, reduce and system is provided The waste in source.Further, after AFTR informs that B4 equipment route recoveries are normal, B4 equipment can also automatic switchback, handoff procedure It is convenient, it is time saving and energy saving.
Figure 17 shows a kind of block diagram of the realization device of routing detection method according to another embodiment of the disclosure.Reference picture 17, the realization device 900 of the routing detection method may include processor 901, be stored with the machine readable of machine-executable instruction Storage medium 902.Processor 901 can communicate with machinable medium 902 via system bus 903.Machine readable storage Medium 902 is stored with the machine-executable instruction that can be performed by processor 901.Also, processor 901 can by performing machine Machine-executable instruction corresponding with routing detection method in storage medium 902 is read, to realize described in any embodiment above Routing detection method.
Figure 18 shows a kind of block diagram of machinable medium according to the embodiment of the disclosure one.As shown in figure 18, machine Device readable storage medium storing program for executing 902 is stored with machine-executable instruction, and machine-executable instruction is being called and performed by processor 901 When, machine-executable instruction promotes processor 901 to realize above-described routing detection method.
Machinable medium 902 referred to herein can be any electronics, magnetic, optics or other physical stores Device, can be included or storage information, such as executable instruction, data, etc..For example, machinable medium can be: RAM (Radom Access Memory, random access memory), volatile memory, nonvolatile memory, flash memory, storage are driven Dynamic device (such as hard disk drive), solid state hard disc, any kind of storage dish (such as CD, dvd), or similar storage are situated between Matter, or combinations thereof.
It is described above the presently disclosed embodiments, described above is exemplary, and non-exclusive, and It is not limited to disclosed each embodiment.In the case of without departing from the scope and spirit of illustrated each embodiment, for this skill Many modifications and changes will be apparent from for the those of ordinary skill in art field.The selection of term used herein, purport The principle of each embodiment, practical application or technological improvement to the technology in market are best being explained, or is leading this technology Other those of ordinary skill in domain are understood that each embodiment disclosed herein.

Claims (14)

1. a kind of routing detection method, it is characterised in that methods described is applied to the basic bridge in lightweight dual stack network Broadband B4 equipment is connect, the lightweight dual stack network also includes the first main frame, the second main frame, first network address conversion road By device AFTR, the 2nd AFTR, wherein, include the first tunnel and the from the first main frame to the message forwarding path of second main frame Two tunnels, tunnel of first tunnel between the B4 equipment and the first AFTR, second tunnel are the B4 Tunnel between equipment and the 2nd AFTR;
Methods described includes:
Route exploration instruction is sent to the first AFTR, the route exploration indicates to be used to make the first AFTR lead to second Machine carries out Internet Control Message agreement icmp probe;
If receiving the unreachable information of ICMP for second main frame for coming from the first AFTR, by first main frame Message forwarding path to second main frame is switched to second tunnel from first tunnel.
2. according to the method for claim 1, it is characterised in that route exploration instruction is sent to the first AFTR, including:
The setting cycle of interval first, the first data message structural exploration report sent according to the B4 equipment to the first AFTR Text, the probe messages include the IPv4 heads and IPv6 heads in first data message, and the probe messages also include ICMP heads, the ICMP heads indicate for the route exploration;
The probe messages are sent to the first AFTR.
3. according to the method for claim 1, it is characterised in that route exploration instruction is sent to the first AFTR, including:
In the setting cycle of interval second, ICMP spies are added in the first data message that the B4 equipment is sent to the first AFTR Mark is known, and the icmp probe is identified as the route exploration instruction;The icmp probe is identified for making the first AFTR The second data message is sent to second main frame to carry out icmp probe to second main frame;
Being sent to the first AFTR includes first data message of the icmp probe mark.
4. according to the method in any one of claims 1 to 3, it is characterised in that also include:
In the case where using message forwarding path of second tunnel as first main frame to second main frame, if The ICMP for second main frame for coming from the first AFTR is received up to information, by first main frame to the described second master The message forwarding path of machine from second tunnel switchback to first tunnel, wherein, the ICMP up to information represent institute The route stated between the first AFTR and second main frame is normal.
5. a kind of routing detection method, it is characterised in that methods described is applied to the first net in lightweight dual stack network Network NAT router AFTR, it is wide that the lightweight dual stack network also includes the first main frame, the second main frame, basic bridge joint Band B4 equipment, the 2nd AFTR, wherein, include the first tunnel and the from the first main frame to the message forwarding path of second main frame Two tunnels, tunnel of first tunnel between the B4 equipment and the first AFTR, second tunnel are the B4 Tunnel between equipment and the 2nd AFTR;
Methods described includes:
The route exploration for coming from the B4 equipment according to receiving is indicated, Internet Control Message association is carried out to the second main frame Discuss icmp probe;
If detecting, second main frame is unreachable, and the unreachable letters of ICMP of second main frame are sent to the B4 equipment Breath;The unreachable information of ICMP is used to notify route of the B4 equipment from the first AFTR to second main frame not It is logical, so that the message forwarding path of the first main frame to second main frame is switched to the second tunnel by the B4 equipment from the first tunnel Road.
6. according to the method for claim 5, it is characterised in that also include:
Feelings of second tunnel as first main frame to the message forwarding path of second main frame are used in B4 equipment Under condition, if to detecting the route between the first AFTR and second main frame after the progress icmp probe of the second main frame just Often, then the ICMP of second main frame is sent up to information to the B4 equipment, so that B4 equipment is by first main frame to institute The message forwarding path of the second main frame is stated from second tunnel switchback to first tunnel.
7. a kind of route exploration device, it is characterised in that described device is applied to the basic bridge in lightweight dual stack network Broadband B4 equipment is connect, the lightweight dual stack network also includes the first main frame, the second main frame, first network address conversion road By device AFTR, the 2nd AFTR, wherein, include the first tunnel and the from the first main frame to the message forwarding path of second main frame Two tunnels, tunnel of first tunnel between the B4 equipment and the first AFTR, second tunnel are the B4 Tunnel between equipment and the 2nd AFTR;
Described device includes:
First sending module, for sending route exploration instruction to the first AFTR, the route exploration indicates to be used to make institute State the first AFTR and Internet Control Message agreement icmp probe is carried out to the second main frame;
First receiving module, if the unreachable letters of ICMP for receiving second main frame for coming from the first AFTR Breath, then be switched to second tunnel by the message forwarding path of first main frame to second main frame from first tunnel Road.
8. device according to claim 7, it is characterised in that first sending module is additionally operable to:
The setting cycle of interval first, the first data message structural exploration report sent according to the B4 equipment to the first AFTR Text, the probe messages include the IPv4 heads and IPv6 heads in first data message, and the probe messages also include ICMP heads, the ICMP heads indicate for the route exploration;
The probe messages are sent to the first AFTR.
9. device according to claim 7, it is characterised in that first sending module is additionally operable to:
In the setting cycle of interval second, ICMP spies are added in the first data message that the B4 equipment is sent to the first AFTR Mark is known, and the icmp probe is identified as the route exploration instruction;The icmp probe is identified for making the first AFTR The second data message is sent to second main frame to carry out icmp probe to second main frame;
Being sent to the first AFTR includes first data message of the icmp probe mark.
10. the device according to any one of claim 7 to 9, it is characterised in that also include:
Switchback module, for using message of second tunnel as first main frame to second main frame to forward road In the case of footpath, if the ICMP for receiving second main frame for coming from the first AFTR is led up to information by described first Machine to the message forwarding path of second main frame from second tunnel switchback to first tunnel, wherein, the ICMP Represent that the route between the first AFTR and second main frame is normal up to information.
11. a kind of route exploration device, it is characterised in that described device is applied to the first net in lightweight dual stack network Network NAT router AFTR, it is wide that the lightweight dual stack network also includes the first main frame, the second main frame, basic bridge joint Band B4 equipment, the 2nd AFTR, wherein, include the first tunnel and the from the first main frame to the message forwarding path of second main frame Two tunnels, tunnel of first tunnel between the B4 equipment and the first AFTR, second tunnel are the B4 Tunnel between equipment and the 2nd AFTR;
Described device includes:
3rd receiving module, for according to the route exploration for coming from the B4 equipment instruction received, entering to the second main frame Row Internet Control Message agreement icmp probe;
3rd sending module, if unreachable for detecting second main frame, second master is sent to the B4 equipment The unreachable information of ICMP of machine;The unreachable information of ICMP is used to notify the B4 equipment from the first AFTR to described the The route of two main frames is obstructed so that the B4 equipment by the first main frame to the message forwarding path of second main frame from the first tunnel Road is switched to the second tunnel.
12. device according to claim 11, it is characterised in that also include:
4th sending module, for using second tunnel as first main frame to second main frame in B4 equipment In the case of message forwarding path, if detecting the first AFTR and the described second master after icmp probe is carried out to the second main frame Route between machine is normal, then the ICMP of second main frame is sent to the B4 equipment up to information, so that B4 equipment is by institute The first main frame is stated to the message forwarding path of second main frame from second tunnel switchback to first tunnel.
A kind of 13. realization device of routing detection method, it is characterised in that including:Processor and machinable medium, institute Stating that machinable medium is stored with can be by the machine-executable instruction of the computing device, machine described in computing device Device executable instruction is to realize any described routing detection method of claim 1 to 6.
14. a kind of machinable medium, it is characterised in that the machinable medium is stored with the executable finger of machine Order, for the machine-executable instruction when being called and being performed by processor, the machine-executable instruction promotes the processor Realize any described routing detection method of claim 1 to 6.
CN201710599002.0A 2017-07-21 2017-07-21 Route detection method and device Active CN107547376B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710599002.0A CN107547376B (en) 2017-07-21 2017-07-21 Route detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710599002.0A CN107547376B (en) 2017-07-21 2017-07-21 Route detection method and device

Publications (2)

Publication Number Publication Date
CN107547376A true CN107547376A (en) 2018-01-05
CN107547376B CN107547376B (en) 2020-07-07

Family

ID=60971062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710599002.0A Active CN107547376B (en) 2017-07-21 2017-07-21 Route detection method and device

Country Status (1)

Country Link
CN (1) CN107547376B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1716954A (en) * 2005-05-27 2006-01-04 清华大学 Method for intercommunication between IP V6 network and IPV4 network based on transit mechanism
CN101207546A (en) * 2006-12-18 2008-06-25 华为技术有限公司 Method for dynamically establishing tunnel, tunnel server and system thereof
CN101447900A (en) * 2008-12-15 2009-06-03 华为技术有限公司 Method, system and device for building bidirectional forwarding detection
CN102170395A (en) * 2011-04-21 2011-08-31 中兴通讯股份有限公司 Data transmission method and network equipment
CN102377628A (en) * 2010-08-12 2012-03-14 杭州华三通信技术有限公司 Method for establishing DS-Lite tunnel and DS-Lite CGN
CN102523312A (en) * 2011-12-02 2012-06-27 清华大学 Method for optimal tunnel selection in 4over6 scene
CN102780567A (en) * 2011-05-09 2012-11-14 中兴通讯股份有限公司 Multicast service bearing method and system for DS-lite network architecture as well as network node
CN102932255A (en) * 2012-09-06 2013-02-13 华为技术有限公司 Method and device for selecting tunnel path
CN103118145A (en) * 2013-01-18 2013-05-22 清华大学 IPv4-over-IPv6 multi-tunnel automatic establishment method based on DNS (domain name system)
CN103227787A (en) * 2013-04-09 2013-07-31 清华大学 Automatic 4over6 tunnel establishment method based on ARP proxy
CN103490951A (en) * 2013-09-09 2014-01-01 神州数码网络(北京)有限公司 Bidirectional forwarding detection method in multi-hop link on basis of BFD
CN104270298A (en) * 2014-09-30 2015-01-07 杭州华三通信技术有限公司 Method and device for forwarding message in VXLAN

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1716954A (en) * 2005-05-27 2006-01-04 清华大学 Method for intercommunication between IP V6 network and IPV4 network based on transit mechanism
CN101207546A (en) * 2006-12-18 2008-06-25 华为技术有限公司 Method for dynamically establishing tunnel, tunnel server and system thereof
CN101447900A (en) * 2008-12-15 2009-06-03 华为技术有限公司 Method, system and device for building bidirectional forwarding detection
CN102377628A (en) * 2010-08-12 2012-03-14 杭州华三通信技术有限公司 Method for establishing DS-Lite tunnel and DS-Lite CGN
CN102170395A (en) * 2011-04-21 2011-08-31 中兴通讯股份有限公司 Data transmission method and network equipment
CN102780567A (en) * 2011-05-09 2012-11-14 中兴通讯股份有限公司 Multicast service bearing method and system for DS-lite network architecture as well as network node
CN102523312A (en) * 2011-12-02 2012-06-27 清华大学 Method for optimal tunnel selection in 4over6 scene
CN102932255A (en) * 2012-09-06 2013-02-13 华为技术有限公司 Method and device for selecting tunnel path
CN103118145A (en) * 2013-01-18 2013-05-22 清华大学 IPv4-over-IPv6 multi-tunnel automatic establishment method based on DNS (domain name system)
CN103227787A (en) * 2013-04-09 2013-07-31 清华大学 Automatic 4over6 tunnel establishment method based on ARP proxy
CN103490951A (en) * 2013-09-09 2014-01-01 神州数码网络(北京)有限公司 Bidirectional forwarding detection method in multi-hop link on basis of BFD
CN104270298A (en) * 2014-09-30 2015-01-07 杭州华三通信技术有限公司 Method and device for forwarding message in VXLAN

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王怀武: "运营商WLAN核心组网主备冗余技术分析", 《通信网络与信息技术》 *

Also Published As

Publication number Publication date
CN107547376B (en) 2020-07-07

Similar Documents

Publication Publication Date Title
EP3783849B1 (en) Multicast data transmission method, related apparatus and system
CN104660508B (en) A kind of message forwarding method and device
WO2018188464A1 (en) Methods and devices for realizing ioam, and storage medium
CN103685022B (en) Message forwarding method and service provider network edge equipment
WO2016165492A1 (en) Method and apparatus for implementing service function chain
CN105245452B (en) Multi-protocol label switching traffic engineering tunnel establishing method and equipment
CN113472658B (en) Message packaging method, message forwarding method and device
CN105791457B (en) A kind of data processing method and device
US8948049B2 (en) Method and systems for determining path of a virtual connection through a network
CN103546374A (en) Message forwarding method and device in two-layered edge network
US20080008168A1 (en) Methods and apparatus for providing optimal identification and processing of layer 3 control channels
CN112511444A (en) Multicast traffic transmission method, device, communication node and storage medium
CN113794637A (en) SID list processing method and device
RU2007109068A (en) WAYS AND DEVICES FOR SUPPORTING VPN WITH MOBILITY MANAGEMENT
CN111988223B (en) Virtual machine migration method and network system
WO2021143279A1 (en) Method and device for segment routing service processing, routing equipment, and storage medium
CN108718269A (en) Message processing method and device
CN110493129A (en) Update method, message forwarding method and the device in backup label path
US20130258871A1 (en) Psuedowire extended group messaging in a packet switched network
CN107547376A (en) routing detection method and device
US7701875B2 (en) OSPF unidirectional link support for unidirectional return paths
CN113660151B (en) L2VPN cross-service communication method, device, electronic equipment and readable medium
JP2017034365A (en) Network system and packet transfer method
WO2017162202A1 (en) Link state information processing
CN104639417B (en) A kind of method and apparatus of ADVPN tunnel binding public network link

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20230627

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: No. 466, Changhe Road, Binjiang District, Hangzhou, Zhejiang 310052

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right