CN101094121B - Method, system and device for detecting Ethernet links among not direct connected devices - Google Patents

Method, system and device for detecting Ethernet links among not direct connected devices Download PDF

Info

Publication number
CN101094121B
CN101094121B CN2007101378614A CN200710137861A CN101094121B CN 101094121 B CN101094121 B CN 101094121B CN 2007101378614 A CN2007101378614 A CN 2007101378614A CN 200710137861 A CN200710137861 A CN 200710137861A CN 101094121 B CN101094121 B CN 101094121B
Authority
CN
China
Prior art keywords
message
unicast message
ethernet link
unicast
detection
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.)
Expired - Fee Related
Application number
CN2007101378614A
Other languages
Chinese (zh)
Other versions
CN101094121A (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 CN2007101378614A priority Critical patent/CN101094121B/en
Publication of CN101094121A publication Critical patent/CN101094121A/en
Application granted granted Critical
Publication of CN101094121B publication Critical patent/CN101094121B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The method comprises: at least one of both source device and destination device is used as the test initiative side to send unicast message; said unicast message contains the physical address of test passive side; said unicast message is relayed to the test passive side corresponding to the physical address via intermediate device; the test initiative side decides if the Ethernet link is normal according to t he receiving state of the unicast message returned by the test passive side. The invention also reveals a test system and an apparatus thereof.

Description

The detection method of indirectly connected equipment room ethernet link, system and equipment
Technical field
The present invention relates to communication technical field, particularly a kind of detection method of indirectly connected equipment room ethernet link, system and equipment.
Background technology
Along with the progressively expansion of Ethernet range of application, to the also progressively raising of requirement of Ethernet OAM (Operation, Administration and Maintenance, Operations, Administration and Maintenance) function.Ethernet OAM is meant the Operations, Administration and Maintenance of Ethernet, and its function can be divided into fault management and performance management.Wherein fault management is used to detect the connectedness of network, refers to that mainly detection failure and trigger protection switch; Performance management is used for detecting parameters such as the packet loss, time delay, shake of Network Transmission, by the monitoring ruuning situation of network is provided for operator, whether the transfer capability of confirming network meets the SLA (Service Level Agreement, service-level agreement) that signs with the user.
In the present Ethernet OAM work, what be used for direct-connected equipment room ethernet link detection is the 802.3ah agreement, 802.3ah agreement is a kind of slow agreement, this agreement is lower to the hardware requirement of equipment, generally adopt general CPU (Central Processing Unit, central processing unit), and can realize detecting by the upper layer software (applications) operation, therefore 802.3ah can be applicable to detect the equipment of the overwhelming majority, is used in the ethernet link that detects the direct-connected equipment room of low side especially.Because the destination address in the standard 802.3ah protocol massages is a multicast address, and can't carry Tag (label) in this message, so can not be transmitted by bridge, and can only be used for the link detecting of direct-connected equipment room.
Usually whole network based rank is divided into some MD (Maintenance Domain when in the prior art the indirectly connected equipment room link of Ethernet being detected, maintenance field), in each MD, divide different MA (Maintenance Association at each test point, Maintenance Association), the point that detects at needs in each MA is provided with MEP (MaintenanceAssociation End Point, Maintenance association End Point), monitor between each MEP point whether have fault then.This network is divided schematic diagram as shown in Figure 1: when detecting, MEP all other MEP in MA periodically send multicast CC (Continuity Check, detection of connectivity) message, this multicast CC message is necessary for the 802.1ag protocol massages, if certain MEP does not receive the CC message of certain corresponding far-end MEP in designated period, think that then fault has appearred in this MA inside.
By foregoing description as can be known, use the link detecting that existing 802.3ah protocol massages can only carry out direct-connected equipment room, when using the 802.1ag agreement and carry out the link detecting of indirectly connected equipment room fast, owing to network need be divided into MD and MA, and further dispose MEP, so realization mechanism more complicated, the expense of whole network is relatively large, and using when the 802.1ag agreement detects the link of indirectly connected equipment room needs hardware to participate in simultaneously usually, therefore to the hardware requirement of equipment than higher, can't be applied in a lot on the not high low side devices of hardware requirement.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of detection method, system and equipment of indirectly connected equipment room ethernet link.
For realizing the purpose of the embodiment of the invention, the embodiment of the invention provides following technical scheme:
A kind of detection method of indirectly connected equipment room ethernet link comprises:
A wherein side of source device and destination device sends unicast message as detecting masters, the opposing party is as detecting the passive side, described unicast message is to have revised the 802.3ah protocol massages of destination address, and the destination address in the described unicast message is described detection passive side's a physical address;
Described unicast message is transmitted by the detection passive side of intermediate equipment to described physical address correspondence;
Whether according to unicast message reception condition detection ethernet link that described detect passive side respond normal, carry the information of the parameter configuration in the unicast message Data territory of whether accepting described detection masters transmission in the Flag territory of the unicast message that described detection passive side responds if detecting masters.
A kind of detection system of indirectly connected equipment room ethernet link comprises: source device, intermediate equipment and destination device, and a wherein side of described source device and destination device is as detecting masters, and the opposing party is as detecting masters, wherein:
Comprise as the equipment that detects masters:
Packet sending unit is used to send the unicast message of the physical address that comprises described detection passive side, and described unicast message is to have revised the 802.3ah protocol massages of destination address, and the destination address in the described unicast message is described detection passive side's a physical address;
The message detecting unit, whether normal, carry the information of the parameter configuration in the unicast message Data territory of whether accepting described detection masters transmission in the Flag territory of the unicast message that described detection passive side responds according to the unicast message reception condition that the described passive side of detection responds if being used for detecting ethernet link;
Described intermediate equipment is used for transmitting described unicast message to the detection passive side of described physical address correspondence;
Comprise as the equipment that detects the passive side:
Message is responded the unit, respond unicast message to described detection masters after being used to receive the unicast message that described packet sending unit sends, carry the information of whether accepting the parameter configuration in the unicast message Data territory that described detection masters sends in the Flag territory of described unicast message.
A kind of checkout equipment comprises:
Packet sending unit, be used for sending the unicast message of the physical address that comprises opposite equip. by intermediate equipment, described unicast message is to have revised the 802.3ah protocol massages of destination address, and the destination address in the described unicast message is described detection passive side's a physical address;
The message detecting unit, whether the unicast message reception condition that is used for responding according to opposite equip. detects ethernet link normal, carries the information of the parameter configuration in the unicast message Data territory of whether accepting described packet sending unit transmission in the Flag territory of described unicast message;
Message is responded the unit, responds unicast message to described opposite equip. after being used to receive the unicast message that opposite equip. sends.
The technical scheme that is provided by the above embodiment of the invention as seen, the embodiment of the invention sends unicast message by at least one side of source device and destination device as detecting masters, comprise physical address in this unicast message as any the opposing party who detects the passive side, this unicast message is transmitted by the detection passive side of intermediate equipment to the physical address correspondence, and whether detect masters normal according to the unicast message reception condition detection ethernet link that detects passive side's response.The embodiment of the invention has made full use of the simplicity of unicast message and the characteristics of flexibility, by with the physical address of opposite end as the destination address in the unicast message, make this unicast message to transmit to corresponding equipment according to destination address, under the situation that need not to update the equipment, realized the detection of the ethernet link of man-to-man indirectly connected equipment room by intermediate equipment.
Description of drawings
Fig. 1 is that the network during indirectly connected equipment room link detecting is divided schematic diagram in the prior art;
Fig. 2 is the first embodiment flow chart of the inventive method;
Fig. 3 is for using the networking schematic diagram that the inventive method embodiment carries out link detecting;
Fig. 4 is the second embodiment flow chart of the inventive method;
Fig. 5 is the 3rd embodiment flow chart of the inventive method;
Fig. 6 is the 4th embodiment flow chart of the inventive method;
Fig. 7 is the 5th embodiment flow chart of the inventive method;
Fig. 8 is the first embodiment block diagram of system of the present invention;
Fig. 9 is the second embodiment block diagram of system of the present invention;
Figure 10 is the 3rd embodiment block diagram of system of the present invention;
Figure 11 is the 4th embodiment block diagram of system of the present invention;
Figure 12 is the embodiment block diagram of present device.
Embodiment
In order to make those skilled in the art person understand the technical scheme that the embodiment of the invention provides better, the technical scheme that the embodiment of the invention provides is described in further detail below in conjunction with the drawings and specific embodiments.
Unicast message in the embodiment of the invention is mainly the 802.3ah protocol massages, this is because the 802.3ah protocol massages has the characteristics of simple and flexible, here " clean culture " refer to that mainly as an equipment that detects masters message being sent to corresponding with it one detects passive side's equipment, the structure of this 802.3ah protocol massages is as shown in table 1 below:
Table 1
Destination Address unicast address 6 bytes
Source Address source address 6 bytes
Type (0x8809) type 2 bytes
Subtype (0x03) subtype 1 byte
Flag field mark domain 2 bytes
Code message coding 1 byte
Data message parameter information
FCS parity check 4 bytes
In last table 1, destination address is a unicast address, and this unicast address is the physical address that detects passive side equipment corresponding with detecting masters equipment, but not the multicast address of a plurality of passive side of the detection equipment that directly link to each other with this detections masters equipment.0x8809 represents that 802.3ah is slow agreement, subtype 3 these 802.3ah messages of expression are used for OAM, the Flag territory is used to indicate detects the parameter configuration whether passive side accepts to detect the unicast message that masters sends, and these parameters are the message parameter information in the Data territory.
The first embodiment flow process of the inventive method is as shown in Figure 2:
Step 201: at least one side of source device and destination device sends unicast message as detecting masters.
Comprise physical address in the unicast message that the detection masters sends as the opposing party who detects the passive side.
Further, in source device and destination device, store the other side's physical address in advance.
Step 202: by the detection passive side device forwards unicast message of intermediate equipment to this physical address correspondence.
Concrete, when connecting for ethernet link between the intermediate equipment, unicast message is passed through intermediate equipment directly to detection passive side device forwards; When connecting for the non-Ethernet link between the intermediate equipment, set up the tunnel between the intermediate equipment in advance, unicast message is encapsulated in this tunnel to detecting passive side's device forwards.
Step 203: the detection passive side equipment of receiving unicast message is responded unicast message to detecting masters equipment.
Concrete, if the parameter configuration in the unicast message Data territory that detection passive side equipment acceptance detection masters equipment sends, then detecting passive side's equipment marks in the Flag territory of this unicast message and accepts this parameter configuration, and revise destination address in this unicast message for detecting the physical address of masters equipment, then with amended unicast message by intermediate equipment to detecting the masters device forwards; Do not accept to detect parameter configuration in the unicast message Data territory that masters equipment sends if detect passive side's equipment, then detecting passive side's equipment marks in the Flag territory of this unicast message and can not accept this parameter configuration, and revise destination address in this unicast message for detecting the physical address of masters equipment, then with amended unicast message by intermediate equipment to detecting the masters device forwards.
What wherein, unicast message can be in the unicast info message stipulated in the 802.3ah agreement, clean culture event notice message, clean culture loopback control message, the clean culture test packet is at least a.
Whether step 204: it is normal according to the unicast message reception condition detection ethernet link that detects passive side's response to detect masters equipment.
Below in conjunction with using networking schematic diagram Fig. 3 that the inventive method embodiment carries out link detecting, describe in detail by the 802.3ah protocol massages and carry out the process that indirectly connected equipment room ethernet link detects:
The physical address of configuration purpose equipment B in source device A, the physical address of source of configuration device A in destination device B can the source of configuration device A be the masters that detects further simultaneously, the passive side of corresponding target equipment B for detecting.
In the discovery stage, send the unicast info message by source device A, destination address in this unicast info message is the physical address of destination device B, after intermediate equipment C receives this unicast info message, can transmit this unicast info message according to the physical address of the destination device B in this unicast info message.If for ethernet link connects, then this unicast info message can send to destination device B by two paths in intermediate equipment between equipment C, equipment D and the equipment E, article one is to transmit to equipment D by equipment C, is transmitted to destination device B by equipment D again; Second is to transmit to equipment E by equipment C, is transmitted to equipment D by equipment E, and then is transmitted to destination device B by equipment D.If be the non-Ethernet link between equipment C, equipment D and the equipment E, then in intermediate equipment C, D, E, set up the tunnel in advance, transmit in this tunnel unicast info message encapsulation back, go out the tunnel after this unicast info transmit to this destination device B according to the physical address of destination device B again.
After destination device B receives this unicast info message, find that the destination address in this unicast info message is the physical address of self, therefore no longer this unicast info message is transmitted, and the Type according to this unicast info message is 0x0089, and Subtype is information such as 0x03, identifying this unicast info message is the 802.3ah protocol massages, therefore according to the 802.3ah agreement this unicast info message is resolved.
After destination device B resolves the unicast info message, obtained the relevant configured parameter that source device A writes in this unicast info message in the Data territory, configuration parameter comprises the information such as maximum length of message, the hypothesis goal equipment B is accepted these configuration parameters, can be by mark " 01 " in the Flag territory of this unicast info message, the configuration parameter of source device A is accepted in expression, the destination address of revising simultaneously in this unicast info message is the physical address of source device A, destination device B transmits by intermediate equipment amended unicast info message to source device A, wherein the process of transmitting by intermediate equipment is consistent with the process that source device A transmits by intermediate equipment, does not repeat them here.
Source device A is if received the unicast message that destination device B responds, and then the ethernet link between source device A and the destination device B is normal, if source device A does not receive the unicast message that destination device B responds, then this ethernet link breaks down.
Especially, if in by the indirectly connected ethernet link between transmission unicast message detection resources device A and the destination device B, also want the direct-connected ethernet link between while detection resources device A and the equipment C, then between source device A and equipment C, still detect by sending multicast message.When if source device A detects fault, can distinguish by the message that receives is the fault of destination device B or the fault of direct-connected equipment C; If source device A itself breaks down, then source device A sends unicast message to destination device B and sends multicast message to equipment C simultaneously, with announcement apparatus B and the current fault that taken place of equipment C.
The second embodiment flow process of the inventive method as shown in Figure 4, this embodiment shows the configuration parameter that destination device is accepted the unicast info of source device transmission, follow-up, the equipment both sides enter the testing process of handshake phase, and the unicast message that sends in this process is the unicast info message of stipulating in the 802.3ah agreement:
Step 401: source device and destination device dispose the other side's physical address respectively.
The purpose of configures physical address is to make any one party of source device or destination device to another transmission unicast info message the time, with the destination address of the physical address that disposes, so that this unicast info message can send on the corresponding equipment according to this physical address as this unicast info message.
Step 402: source device sends the unicast info message of the physical address that comprises destination device.
Step 403: this unicast info message is transmitted to destination device by intermediate equipment.
Step 404: destination device is revised the Flag territory in this unicast info message and revised destination address is the physical address of source device.
Destination device is revised this destination device of Flag domain representation in this unicast info message and is accepted parameter configuration in the unicast info message that source device sends, revising destination address is the physical address of source device, is the source device that can corresponding be sent to this physical address correspondence for the unicast info message that makes response.
Step 405: destination device is transmitted by intermediate equipment amended unicast info message to source device.
Step 406: after source device received the unicast info message of destination device response, source device and destination device regularly sent the unicast info message to the other side.
At this moment, enter handshake phase between source device and the destination device, both sides monitor the other side or bipartite ethernet link by timed sending unicast info message.
Step 407: judge in setting-up time, whether to receive the unicast info message that the other side sends, if then execution in step 408; If not, execution in step 409 then.
Step 408: confirm source device and destination device and between link normal, return step 406.
Step 409: confirm that source device or destination device or the link between it break down, and finish current flow process.
Be example still, the link detecting process after source device and destination device enter handshake phase be described to use networking schematic diagram Fig. 3 that the inventive method embodiment carries out link detecting:
Source device A is behind the amended unicast info message that receives destination device B response, confirm that current ethernet link is normal between the both sides, enter handshake phase between source device A and the destination device B, " shaking hands " also is a kind of mode that ethernet link is detected, between this stage source device A and destination device B, regularly send the unicast info message to the other side, intermediate equipment C, D, E transmit this unicast info message according to the physical address in this unicast info message, concrete repeating process is consistent with the aforementioned starting stage, does not repeat them here.Suppose that source device A and destination device B send a unicast info message every 1 second to the other side, and judge the unicast info message of whether receiving that in 5 seconds the other side sends respectively, if receive then illustrate that the ethernet link between source device A and the destination device B is normal, both sides continue to carry out " shaking hands ", if either party does not receive the unicast info message that the other side sends in 5 seconds, illustrate that then the ethernet link between source device A and the destination device B breaks down, both sides finish " shaking hands ", and it is unusual further can to point out the management-side ethernet link to occur by modes such as alarms.
The foregoing description two is from the testing process of the described handshake phase of step 406 beginning, whether source device and destination device be normal according to the ethernet link that the unicast message that whether receives the other side's transmission in setting-up time detects between them, whether this embodiment makes full use of the characteristics of unicast message simple and flexible, can keep normally detecting to the ethernet link between source device and the destination device.
The flow process of the inventive method the 3rd embodiment as shown in Figure 5, this embodiment shows source device and destination device realize shaking hands after, enter the process of link monitoring detection-phase between source device and the destination device, the unicast message that sends in the link monitoring testing process is the clean culture event notice message of stipulating in the 802.3ah agreement:
Step 501: source device sends the unicast info message of the physical address that comprises destination device by intermediate equipment.
Step 502: destination device is revised the Flag territory in this unicast info message and revised destination address is the physical address of source device.
Step 503: destination device is transmitted by intermediate equipment amended unicast info message to source device.
Step 504: source device and destination device confirm that by regularly sending the unicast info message to the other side both sides enter normal handshake phase.
Step 505: any one party judges whether to monitor frame error rate or the error rate surpasses the threshold value of setting, if then execution in step 506; Otherwise, return step 505.
When source device and destination device both sides enter link monitoring after the stage, both sides can monitor four class mistakes, comprise whether the code error in the unit interval surpasses threshold value, whether the frame mistake in the unit interval surpasses threshold value, whether the frame mistake in the nearest N frame surpasses threshold value, and whether the nearest frame mistake of M in second surpasses threshold value.
Step 506: monitor unusual direction the opposing party and send clean culture event notice message, finish current flow process.
Be example still, illustrate that source device and destination device enter the link detecting process of link monitoring after the stage to use networking schematic diagram Fig. 3 that the inventive method embodiment carries out link detecting:
Source device A and destination device B are after entering normal handshake phase, both sides are continuing when the other side sends the unicast info message, also whether the frame error rate of the unicast info message of both monitoring part transmission in real time or the error rate surpass the threshold value of setting, suppose that the frame error rate that source device A monitored in the unit interval has surpassed the threshold value of setting, then source device A constructs clean culture event notice message, destination address in this clean culture event notice message is the physical address of destination device B, and the error message that sign monitors in this unicast info message, source device A will construct good clean culture event notice message by intermediate equipment C, D, E is forwarded to destination device B, the process of transmitting is consistent with the aforementioned starting stage, does not repeat them here.
The foregoing description three is with the different of testing process of handshake phase from the described link monitoring testing process of step 505 beginning, and whether the frame error rate of the unicast message that source device sends according to destination device or the threshold detection whether error rate the surpasses setting ethernet link between them is normal.
The flow process of the inventive method the 4th embodiment as shown in Figure 6, this embodiment shows source device and destination device realize shaking hands after, enter the process in loopback detection stage between source device and the destination device, suppose that a side who sends clean culture loopback control message in this process is source device, the unicast message that sends in the loopback detection process comprises clean culture loopback control message and the clean culture test packet of stipulating in the 802.3ah agreement:
Step 601: source device sends the unicast info message of the physical address that comprises destination device by intermediate equipment.
Step 602: destination device is revised the Flag territory in the unicast info message and revised destination address is the physical address of source device.
Step 603: destination device is transmitted by intermediate equipment amended unicast info message to source device.
Step 604: source device and destination device confirm that by regularly sending the unicast info message to the other side both sides enter normal handshake phase.
Step 605: source device sends clean culture loopback control message by intermediate equipment to destination device.
Step 606: destination device is responded and is entered the unicast info message of wrapped state.
Step 607: source device sends the clean culture test packet be used for carrying out loopback between itself and destination device.
Step 608: whether source device judges sends consistent with the clean culture test packet number that receives, if then execution in step 609; Otherwise, execution in step 610.
Step 609: determine that the ethernet link between source device and the destination device is normal, finish current flow process.
Step 610: determine that the ethernet link between source device and the destination device breaks down, and finishes current flow process.
Be example still, illustrate that source device and destination device enter the link detecting process of loopback detection after the stage to use networking schematic diagram Fig. 3 that the inventive method embodiment detects link:
After source device A and destination device B enter normal handshake phase, two are continuing when the other side sends the unicast info message, source device A at a time carries out loopback detection to sending clean culture loopback control message by intermediate equipment C, D, E to destination device B with notice destination device B, and the destination address of this clean culture loopback control message is the physical address of destination device B; Destination device B enters the unicast info message of wrapped state to source device A response after receiving clean culture loopback control message, and the destination address in this unicast info message is the physical address of source device A; Source device A sends the clean culture test packet of some to destination device B in a period of time, entering into loopback detection during the stage, the ethernet link loopback of these clean culture test packets between source device A and destination device B a period of time of after, source device A judges whether the number that sends with the clean culture test packet that receives is consistent, illustrate then that as if inconsistent fault has appearred in the ethernet link between source device A and the destination device B, further can point out the management-side ethernet link to occur unusually by modes such as alarms.In said process, all unicast messages are consistent with the aforementioned starting stage by the process that intermediate equipment C, D, E transmit, and do not repeat them here.
The foregoing description four from the described loopback detection process of step 605 beginning and handshake phase, and the different of testing process in link monitoring stage be, source device according to send with the unicast message number that is used to test of reception whether consistent detect and destination device between ethernet link whether normal.
The flow process of the inventive method the 5th embodiment as shown in Figure 7, the testing process when this embodiment shows source device and destination device and belongs to VLAN:
Step 701: detect masters equipment the Tag that detects VLAN under passive side's equipment is set in unicast message to be sent.
The structure of unicast message of having added VLAN Tag is as shown in table 2 below:
Table 2
Destination Address unicast address 6 bytes
Source Address source address 6 bytes
VLAN Tag VLAN label 4 bytes
[0104]
Type (0x8809) type 2 bytes
Subtype (0x03) subtype 1 byte
Flag field mark domain 2 bytes
Code message coding 1 byte
Data message parameter information
FCS parity check 4 bytes
Unicast info message shown in the last table 2 is the 802.3ah protocol massages, can discern VLAN in original 802.3ah protocol massages structure, adding VLAN Tag and be for process, so that unicast message can accurately transfer to method, apparatus to the method, apparatus place in message transmissions.
Step 702: detect the unicast message that masters equipment sends the physical address that has comprised detection passive side equipment.
Step 703: this unicast message by intermediate equipment to detecting passive side's device forwards.
Step 704: the detection passive side equipment of receiving this unicast message is responded unicast message to detecting masters equipment.
Whether step 705: it is normal according to the unicast message reception condition detection ethernet link that detects the response of passive side's equipment to detect masters equipment.
The foregoing description five described ethernet link testing processes are present among the VLAN with the different source device and the destination devices of being of the link detecting process that aforementioned other embodiment describes, and unicast message can be forwarded to equipment among the corresponding VLAN by intermediate equipment by add VLAN Tag in unicast message.
The first embodiment block diagram of system of the present invention as shown in Figure 8, this embodiment shows the concrete block diagram of the system that carries out initial examination and measurement:
This detection system comprises source device 810, intermediate equipment 820 and destination device 830.Source device 810 is as detecting masters, and destination device 830 is as detecting the passive side.
Wherein, source device 810 comprises packet sending unit 811, is used to send the unicast message of the physical address that comprises destination device; Message receives detecting unit 812 and is used for whether normal according to whether receiving unicast message that destination device responds if detecting ethernet link, if it is normal to receive the then described ethernet link of described unicast message, otherwise described ethernet link breaks down.Intermediate equipment 820 is used for transmitting unicast message to the destination device of physical address correspondence.Destination device 830 comprises that message responds unit 831, responds unicast message according to the physical address of source device to this source device after being used to receive the unicast message that packet sending unit 811 sends.
Especially, when source device 810 and destination device 830 all are arranged in VLAN, also comprise the label writing unit in source device 810 and the destination device 830 respectively, be used for the VLAN Tag of VLAN under unicast message is provided for searching opposite equip..
The second embodiment block diagram of system of the present invention as shown in Figure 9, this embodiment shows the concrete block diagram that carries out the system that handshake phase detects:
This detection system comprises source device 910, intermediate equipment 920 and destination device 930.Source device 910 and destination device 930 all are to detect masters, and they receive the unicast message that method, apparatus is sent simultaneously.
Wherein, source device 910 comprises timed sending unit 911, is used for periodically sending the unicast message of the physical address that comprises destination device; Message is detecting unit 912 regularly, whether be used for detecting ethernet link according to the unicast message that whether receives the destination device transmission in setting-up time normal, if it is normal to receive the then described ethernet link of unicast message of destination device transmission in setting-up time, otherwise described ethernet link breaks down; Message is responded unit 913, is used for responding unicast message to destination device.Intermediate equipment 920 is used for transmitting unicast message to the physical address corresponding equipment.Destination device 930 comprises message timed sending unit 931, is used for periodically sending the unicast message of the physical address that comprises source device; Message is detecting unit 932 regularly, whether be used for detecting ethernet link according to the unicast message that whether receives the source device transmission in setting-up time normal, if it is normal to receive the then described ethernet link of unicast message of source device transmission in setting-up time, otherwise described ethernet link breaks down; Message is responded unit 933, is used for responding unicast message to source device.
The 3rd embodiment block diagram of system of the present invention as shown in figure 10, this embodiment shows the concrete block diagram that carries out the system that link monitoring detects:
This detection system comprises source device 1010, intermediate equipment 1020 and destination device 1030.Source device is as detecting masters, and destination device is as detecting the passive side.
Wherein, source device 1010 comprises packet sending unit 1011, is used to send the unicast message of the physical address that comprises destination device; Whether whether message parameter detecting unit 1012 be used for according to the frame error rate of the unicast message of destination device transmission or the error rate normal above the described ethernet link of setting of threshold detection, if it is normal not surpass the then described ethernet link of described threshold value, otherwise described ethernet link breaks down.Intermediate equipment 1020 is used for transmitting described unicast message to the destination device of physical address correspondence.Destination device 1030 comprises that message responds unit 1031, responds unicast message according to the physical address of source device to this source device after being used to receive the unicast message that packet sending unit 1011 sends.
The 4th embodiment block diagram of system of the present invention as shown in figure 11, this embodiment shows the concrete block diagram of the system that carries out loopback detection:
This detection system comprises source device 1110, intermediate equipment 1120 and destination device 1130.Source device is as detecting masters, and destination device is as detecting the passive side.
Wherein, source device 1110 comprises packet sending unit 1111, is used to send the unicast message of the physical address that comprises destination device; Message number detecting unit 1112 is used for whether whether consistent to detect described ethernet link normal with the unicast message number that is used to test that receives according to sending, and is normal as if the then described ethernet link of number unanimity, otherwise described ethernet link breaks down; Intermediate equipment 1120 is used for transmitting described unicast message to the destination device of physical address correspondence.Destination device 1130 comprises that message responds unit 1131, responds unicast message according to the physical address of source device to this source device after being used to receive the unicast message that packet sending unit 1111 sends.
The first embodiment block diagram of present device is as shown in figure 12:
This checkout equipment comprises packet sending unit 1210, message detecting unit 1220, message response unit 1230.
Wherein, packet sending unit 1210 is used for sending by intermediate equipment the unicast message of the physical address that comprises opposite equip.; Whether the unicast message reception condition that message detecting unit 1220 is used for responding according to opposite equip. detects ethernet link normal; Message is responded unit 1230, responds unicast message to this opposite equip. after being used to receive the unicast message that opposite equip. sends.
When this checkout equipment is used for the starting stage when detecting, this message detecting unit 1220 is specially message and receives detecting unit, be used for whether normal according to whether receiving unicast message that opposite equip. responds if detecting described ethernet link, if it is normal to receive the then described ethernet link of described unicast message, otherwise described ethernet link breaks down.
When this checkout equipment was used for the handshake phase detection, packet sending unit 1210 was specially the timed sending unit, was used for periodically sending unicast message to opposite equip.; Message detecting unit 1220 is specially regularly detecting unit of message, be used for whether according to whether receive the unicast message that method, apparatus is sent in setting-up time to detect described ethernet link normal, if it is normal to receive the then described ethernet link of unicast message of the other side's transmission in setting-up time, otherwise described ethernet link breaks down.
When this checkout equipment is used for the link monitoring detection, message detecting unit 1220 is specially message parameter detecting unit, whether whether normally be used for according to the frame error rate or the error rate of the unicast message that method, apparatus is sent above the described ethernet link of setting of threshold detection, if it is normal not surpass the then described ethernet link of described threshold value, otherwise described ethernet link breaks down.
When this checkout equipment is used for loopback detection, message detecting unit 1220 is specially message number detecting unit, be used for whether whether consistent to detect described ethernet link normal with the unicast message number that is used to test of reception according to sending, if the then described ethernet link of number unanimity is normal, otherwise described ethernet link breaks down.
Especially, this checkout equipment can further include the label writing unit, when being used for opposite equip. and belonging to virtual LAN VLAN, is provided for searching the VLAN Tag of VLAN under the opposite equip. in unicast message.
Description by the embodiment of the invention as can be known, the embodiment of the invention has made full use of the characteristics of unicast message simple and flexible, by with the physical address of opposite end as the destination address in the unicast message, make this unicast message to be forwarded to corresponding terminal according to destination address, under the situation that need not to update the equipment, realized the detection of the ethernet link of man-to-man indirectly connected equipment room by intermediate equipment; Unicast message in the embodiment of the invention adopts the 802.3ah protocol massages, therefore need not to update the equipment just to realize detection to the ethernet link between a large amount of indirectly connected low side devices, comprises functions such as realization link monitoring and loopback detection; Further, can carry out the detection of ethernet link simultaneously to direct-connected and indirectly connected equipment by sending unicast message and multicast message respectively.One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in the computer read/write memory medium, this program is when carrying out, at least one side who comprises the steps: source device and destination device sends unicast message as detecting masters, comprises the physical address as any the opposing party who detects the passive side in the described unicast message; Described unicast message is transmitted by the detection passive side of intermediate equipment to described physical address correspondence; Whether detect masters normal according to the unicast message reception condition detection ethernet link that described detection passive side responds, described storage medium, as: ROM/RAM, magnetic disc, CD etc.
Though described the present invention by embodiment, those of ordinary skills know, the present invention has many distortion and variation and do not break away from spirit of the present invention, wish that appended claim comprises these distortion and variation and do not break away from spirit of the present invention.

Claims (20)

1. the detection method of an indirectly connected equipment room ethernet link is characterized in that, comprising:
A wherein side of source device and destination device sends unicast message as detecting masters, the opposing party is as detecting the passive side, described unicast message is to have revised the 802.3ah protocol massages of destination address, and the destination address in the described unicast message is described detection passive side's a physical address;
Described unicast message is transmitted by the detection passive side of intermediate equipment to described physical address correspondence;
Whether according to unicast message reception condition detection ethernet link that described detect passive side respond normal, carry the information of the parameter configuration in the unicast message Data territory of whether accepting described detection masters transmission in the Flag territory of the unicast message that described detection passive side responds if detecting masters.
2. method according to claim 1 is characterized in that, the detection masters is a source device, and whether described detection masters detects ethernet link according to the unicast message reception condition that detects passive side's response and normally be specially:
Whether normal according to whether receiving unicast message that destination device responds if detecting described ethernet link for source device, if it is normal to receive the then described ethernet link of described unicast message, otherwise described ethernet link breaks down.
3. method according to claim 1 is characterized in that, detecting masters is source device and destination device, and described detection masters sends unicast message and is specially:
Source device and destination device periodically send unicast message;
Whether the unicast message reception condition that described detection masters is responded according to described detection passive side detects ethernet link and normally is specially:
Whether described source device and destination device detect described ethernet link according to the unicast message that whether receives the other side's transmission in setting-up time normal, if it is normal to receive the then described ethernet link of unicast message of the other side's transmission in setting-up time, otherwise described ethernet link breaks down.
4. method according to claim 1 is characterized in that, detecting masters is source device or destination device, and whether the unicast message reception condition that described detection masters is responded according to described detection passive side detects ethernet link and normally be specially:
Whether whether any one party of described source device and destination device normal above the described ethernet link of setting of threshold detection according to the frame error rate or the error rate of the unicast message that the other side sends, if it is normal not surpass the then described ethernet link of described threshold value, otherwise described ethernet link breaks down.
5. method according to claim 1 is characterized in that, detecting masters is source device or destination device, and whether the unicast message reception condition that described detection masters is responded according to described detection passive side detects ethernet link and normally be specially:
Whether whether consistent to detect described ethernet link normal with the unicast message number that is used to test of reception according to sending for any one party of described source device and destination device, if the then described ethernet link of number unanimity is normal, otherwise described ethernet link breaks down.
6. method according to claim 1 is characterized in that, for ethernet link connects, described unicast message is directly transmitted by described intermediate equipment between the described intermediate equipment; Or
For the non-Ethernet link connects, set up the tunnel between the described intermediate equipment in advance between the described intermediate equipment, described unicast message is encapsulated in the described tunnel and transmits.
7. method according to claim 1 is characterized in that described source device and destination device belong to virtual LAN VLAN, also comprises the label of described VLAN in the unicast message that described detection masters sends.
8. according to any described method of claim 1 to 7, it is characterized in that described unicast message is at least a in the unicast info message stipulated in the 802.3ah agreement, clean culture event notice message, clean culture loopback control message, the clean culture test packet.
9. the detection system of an indirectly connected equipment room ethernet link is characterized in that, comprising: source device, intermediate equipment and destination device, and a wherein side of described source device and destination device is as detecting masters, and the opposing party is as detecting the passive side, wherein:
Comprise as the equipment that detects masters:
Packet sending unit is used to send the unicast message of the physical address that comprises described detection passive side, and described unicast message is to have revised the 802.3ah protocol massages of destination address, and the destination address in the described unicast message is described detection passive side's a physical address;
The message detecting unit, whether normal, carry the information of the parameter configuration in the unicast message Data territory of whether accepting described detection masters transmission in the Flag territory of the unicast message that described detection passive side responds according to the unicast message reception condition that the described passive side of detection responds if being used for detecting ethernet link;
Described intermediate equipment is used for transmitting described unicast message to the detection passive side of described physical address correspondence;
Comprise as the equipment that detects the passive side:
Message is responded the unit, respond unicast message to described detection masters after being used to receive the unicast message that described packet sending unit sends, carry the information of whether accepting the parameter configuration in the unicast message Data territory that described detection masters sends in the Flag territory of described unicast message.
10. detection system according to claim 9 is characterized in that, described detection masters is a source device, and described message detecting unit is specially,
Message receives detecting unit, is used for whether normal according to whether receiving unicast message that destination device responds if detecting described ethernet link, if it is normal to receive the then described ethernet link of described unicast message, otherwise described ethernet link breaks down.
11. detection system according to claim 9 is characterized in that, described detection masters is source device and destination device, and described packet sending unit is specially,
The timed sending unit is used for periodically sending the unicast message that comprises the opposite equip. physical address;
Described message detecting unit is specially,
Message is detecting unit regularly, be used for whether according to whether receive the unicast message that method, apparatus is sent in setting-up time to detect described ethernet link normal, if it is normal to receive the then described ethernet link of unicast message of the other side's transmission in setting-up time, otherwise described ethernet link breaks down.
12. detection system according to claim 9 is characterized in that, described detection masters is source device or destination device, and described message detecting unit is specially,
Message parameter detecting unit, whether whether normally be used for according to the frame error rate or the error rate of the unicast message that method, apparatus is sent above the described ethernet link of setting of threshold detection, if it is normal not surpass the then described ethernet link of described threshold value, otherwise described ethernet link breaks down.
13. detection system according to claim 9 is characterized in that, described detection masters is source device or destination device, and described message detecting unit is specially,
Message number detecting unit is used for whether whether consistent to detect described ethernet link normal with the unicast message number that is used to test that receives according to sending, and is normal as if the then described ethernet link of number unanimity, otherwise described ethernet link breaks down.
14. detection system according to claim 9 is characterized in that, described detection passive side belongs to virtual LAN VLAN, and described detection masters also comprises:
The label writing unit is used for writing in the unicast message that described packet sending unit sends the label of described VLAN.
15. a checkout equipment is characterized in that, comprising:
Packet sending unit, be used for sending the unicast message of the physical address that comprises opposite equip. by intermediate equipment, described unicast message is to have revised the 802.3ah protocol massages of destination address, and the destination address in the described unicast message is the physical address of described opposite equip.;
The message detecting unit, whether the unicast message reception condition that is used for responding according to opposite equip. detects ethernet link normal, carries the information of the parameter configuration in the unicast message Data territory of whether accepting described packet sending unit transmission in the Flag territory of described unicast message;
Message is responded the unit, responds unicast message to described opposite equip. after being used to receive the unicast message that opposite equip. sends.
16. checkout equipment according to claim 15 is characterized in that, described message detecting unit is specially,
Message receives detecting unit, is used for whether normal according to whether receiving unicast message that opposite equip. responds if detecting described ethernet link, if it is normal to receive the then described ethernet link of described unicast message, otherwise described ethernet link breaks down.
17. checkout equipment according to claim 15 is characterized in that, described packet sending unit is specially,
The timed sending unit is used for periodically sending unicast message to opposite equip.;
Described message detecting unit is specially,
Message is detecting unit regularly, be used for whether according to whether receive the unicast message that method, apparatus is sent in setting-up time to detect described ethernet link normal, if it is normal to receive the then described ethernet link of unicast message of the other side's transmission in setting-up time, otherwise described ethernet link breaks down.
18. checkout equipment according to claim 15 is characterized in that, described message detecting unit is specially,
Message parameter detecting unit, whether whether normally be used for according to the frame error rate or the error rate of the unicast message that method, apparatus is sent above the described ethernet link of setting of threshold detection, if it is normal not surpass the then described ethernet link of described threshold value, otherwise described ethernet link breaks down.
19. checkout equipment according to claim 15 is characterized in that, described message detecting unit is specially,
Message number detecting unit is used for whether whether consistent to detect described ethernet link normal with the unicast message number that is used to test that receives according to sending, and is normal as if the then described ethernet link of number unanimity, otherwise described ethernet link breaks down.
20. checkout equipment according to claim 15 is characterized in that opposite equip. belongs to virtual LAN VLAN, described checkout equipment also comprises:
The label writing unit is used for writing in the unicast message that described packet sending unit sends the label of described VLAN.
CN2007101378614A 2007-07-23 2007-07-23 Method, system and device for detecting Ethernet links among not direct connected devices Expired - Fee Related CN101094121B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101378614A CN101094121B (en) 2007-07-23 2007-07-23 Method, system and device for detecting Ethernet links among not direct connected devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101378614A CN101094121B (en) 2007-07-23 2007-07-23 Method, system and device for detecting Ethernet links among not direct connected devices

Publications (2)

Publication Number Publication Date
CN101094121A CN101094121A (en) 2007-12-26
CN101094121B true CN101094121B (en) 2010-11-24

Family

ID=38992168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101378614A Expired - Fee Related CN101094121B (en) 2007-07-23 2007-07-23 Method, system and device for detecting Ethernet links among not direct connected devices

Country Status (1)

Country Link
CN (1) CN101094121B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340320B (en) * 2008-08-27 2011-08-17 北京星网锐捷网络技术有限公司 Link detection method, apparatus and system
CN102300225A (en) * 2010-06-28 2011-12-28 华为技术有限公司 Data transmission detection method and system for short distance wireless social network and relevant equipment
CN102316013A (en) * 2010-07-01 2012-01-11 杭州华三通信技术有限公司 Method and device for regulating maximum message size
CN102143019A (en) * 2010-12-30 2011-08-03 华为数字技术有限公司 Network detection method and system
CN104471874B (en) * 2013-06-29 2018-05-29 华为技术有限公司 Data forwarding method, relay node equipment and network system
CN103595507A (en) * 2013-11-15 2014-02-19 烽火通信科技股份有限公司 Internal information transmission device and internal information transmission method in packet network system
CN104579770A (en) * 2014-12-30 2015-04-29 华为技术有限公司 Method and device for managing data transmission channels
CN105991372B (en) * 2015-04-20 2020-04-03 杭州迪普科技股份有限公司 Link detection method and device
CN106549819B (en) * 2015-09-22 2019-12-17 华为技术有限公司 connectivity detection method, controller and equipment
CN106878113B (en) * 2017-04-12 2020-04-03 杭州迪普科技股份有限公司 Link connectivity detection method and device
CN110266560B (en) * 2019-06-25 2021-04-27 宁波三星医疗电气股份有限公司 Communication test method and device, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801742A (en) * 2004-12-22 2006-07-12 阿尔卡特公司 System and method for reducing OAM frame leakage in an Ethernet OAM domain
CN1855842A (en) * 2005-04-19 2006-11-01 华为技术有限公司 Method for making maintaining node labels to match with media visiting controlled addresses
CN1913453A (en) * 2006-08-22 2007-02-14 华为技术有限公司 Method and device for quickly fault detection from point-to-point

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801742A (en) * 2004-12-22 2006-07-12 阿尔卡特公司 System and method for reducing OAM frame leakage in an Ethernet OAM domain
CN1855842A (en) * 2005-04-19 2006-11-01 华为技术有限公司 Method for making maintaining node labels to match with media visiting controlled addresses
CN1913453A (en) * 2006-08-22 2007-02-14 华为技术有限公司 Method and device for quickly fault detection from point-to-point

Also Published As

Publication number Publication date
CN101094121A (en) 2007-12-26

Similar Documents

Publication Publication Date Title
CN101094121B (en) Method, system and device for detecting Ethernet links among not direct connected devices
EP1853003B1 (en) System and method for monitoring a data network segment
CN101335689B (en) Traceroute implementing method and equipment
US7869376B2 (en) Communicating an operational state of a transport service
CN101355466B (en) Method and apparatus for transmitting continuous check information message
US20070140126A1 (en) Method and system for originating connectivity fault management (CFM) frames on non-CFM aware switches
US7719956B2 (en) Trunk network system for multipoint-to-multipoint relay
CN101631069B (en) Method, system and equipment for pseudo wire parameter negotiation
CN104601394A (en) Business chain connectivity detection method, device and system
US20090282291A1 (en) Internal maintenance association end point (mep) for sharing state information
CN101132319B (en) Method for Ethernet operation and maintaining fault detection
CN105553885B (en) A kind of FC interchanger priority test method
CN109218107A (en) Link switch-over method, device, the network equipment and network system
CN101252528B (en) Method and apparatus for detecting malfunction
CN101425941B (en) Loop network link convergence time and recovery time test system
CN104869028A (en) Network device and loop detection method
JP5267065B2 (en) Communication apparatus and network test method
CN104104596B (en) A kind of IRF divides treating method and apparatus
CN104468158B (en) The method and apparatus of state advertisement between a kind of node
CN106506306A (en) A kind of method and apparatus of data-message transmission
US7626937B2 (en) System and method for network connection detection
CN102710483A (en) RS485 (Recommended Standard 485) intelligent loop
JP2015139110A (en) Relay system and switch device
CN101163057A (en) Fault notifying method and apparatus, and service receiving method and apparatus
CN103036793B (en) Be communicated with sending method and the forwarding unit of error detection protocol message

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20101124

Termination date: 20170723