CN101163038B - Ethernet equipment link protecting method - Google Patents

Ethernet equipment link protecting method Download PDF

Info

Publication number
CN101163038B
CN101163038B CN2007101387577A CN200710138757A CN101163038B CN 101163038 B CN101163038 B CN 101163038B CN 2007101387577 A CN2007101387577 A CN 2007101387577A CN 200710138757 A CN200710138757 A CN 200710138757A CN 101163038 B CN101163038 B CN 101163038B
Authority
CN
China
Prior art keywords
link
equipment
state
ethernet
control module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2007101387577A
Other languages
Chinese (zh)
Other versions
CN101163038A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2007101387577A priority Critical patent/CN101163038B/en
Publication of CN101163038A publication Critical patent/CN101163038A/en
Application granted granted Critical
Publication of CN101163038B publication Critical patent/CN101163038B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a protection method for Ethernet equipment link. The invention is used for a network which comprises at least two Ethernet equipments and an upward-joint equipment. The Ethernet equipments are all provided with a networking controlling module. The Ethernet equipments are communicated with each other through the networking controlling module, so the link state with the end on is obtained. The networking mode among the Ethernet equipments is set or adjusted according to the link state. Using the method of the invention solves the problems that the link state of the end on is not known and circuitry switch can not be preceded at time to protect the link. In addition a link redundancy is avoided; the resource of link is saved; less time of processor is occupied and the reaction time is short. The reliability of the equipment in the circumstance of networking is improved.

Description

A kind of method of ethernet device link protection
Technical field
The present invention relates to data communication field, relate in particular to a kind of method of ethernet device link protection.
Background technology
In the deployment occasion of some communication apparatus (such as IP DSLAM (Digital Subscriber Line AccessMultiplexer, Digital Subscriber Line Access Multiplexer)), often need two equipment cascadings line number that extends one's service together.
But general networking as shown in Figure 1; in traditional cascade system; main equipment and first line of a couplet equipment; main equipment and slave unit; all connect, under this networking mode, under the situation that the upper level link of main equipment interrupts by single-link; the business of then whole main equipment and slave unit all can be interrupted, to the link protection insufficiency of function.
If all adopt dual link on upper level link and cascaded link, as shown in Figure 2, then main equipment needs 4 ports at least, also needs a plurality of links to connect simultaneously between main equipment and slave unit, needs many to port resource and link circuit resource.
Fig. 3 is a kind of ethernet device Cascading Methods of prior art, and this ethernet device comprises A equipment, B equipment, and first line of a couplet equipment; Wherein, A equipment, B equipment, first line of a couplet equipment annular connect, i.e. two of A equipment links, link A1, A2 link to each other with first line of a couplet equipment with B equipment respectively, two links of B equipment, link B1, B2 link to each other with first line of a couplet equipment with A equipment respectively, and B equipment is by A equipment and first line of a couplet device talk.Certain bar link breaks down in circuit, and A1 breaks down as link, and it is slave unit that A equipment then can be set, and B equipment is main equipment, the direct and first line of a couplet device talk of B equipment, and A equipment is by B equipment and first line of a couplet device talk.This Cascading Methods can the simple realization communication apparatus cascade; avoid link redundancy; but owing to do not know the opposite end Link State between two equipment; so can only be by the situation of corresponding work personnel according to circuit; the switching of link artificially is set, can not carries out circuit in real time and switch to carry out link protection.
Summary of the invention
The invention provides a kind of method of ethernet device link protection, do not know the opposite end Link State between two equipment, can not carry out circuit in real time and switch to carry out the problem of link protection to solve.
In order to solve the problems of the technologies described above; the invention provides a kind of method of ethernet device link protection; be applied to comprise the network of at least two ethernet devices and a first line of a couplet equipment; at least described two ethernet devices are connected with described first line of a couplet equipment annular; the networking control module all is set on described ethernet device; between the ethernet device by the mutual communication of described networking control module; know the Link State of itself and opposite end, according to described Link State setting or adjust networking mode between the described ethernet device.
The method of the invention, wherein, between the described ethernet device by the mutual communication of described networking control module, know the Link State of itself and opposite end, if in the described ethernet device, the link of the current use of one ethernet device is in abnormal state, then switch to the reserve link of this equipment, and notify another equipment by the networking control module with the link change of this equipment, another equipment is after receiving the link change notice, determine own new upper level link, and feedback message is given this equipment.
The method of the invention wherein, by the mutual communication of described networking control module, is known the Link State of itself and opposite end between the described ethernet device, according to described Link State setting or adjust networking mode between the described ethernet device, comprises the steps:
(1) described two ethernet devices obtain the first line of a couplet state and the link information of equipment of itself by the hardware of scanning equipment of itself, and carry out the equipment room communication by described networking control module, know the Link State of opposite equip.;
(2) described networking control module judges whether the link of two ethernet devices is all normal, if described two ethernet devices all are in the link normal condition, then specifically select which the link first line of a couplet, which link-down, determine according to configuration or custom rule for the first time, no longer select later on, change step (3) then; If in the described ethernet device, the link of the current use of one ethernet device is in abnormal state, then switch to the reserve link of this equipment, and notify another equipment by the networking control module with the link change of this equipment, another equipment is after receiving the link change notice, determine own new upper level link, and feedback message changes step (3) then to this equipment; If the link of described two ethernet devices is all undesired, then change step (3);
(3) after delay a period of time, change step (1).
Further, when communication sends message between described two ethernet devices, with the character of self-defined bridge protocol address or broadcast address as purpose media access control MAC address, with the character of the MAC Address of system self as source MAC, the character that with expression is the link-state information bag is as the bag type, with the character of the coding sequence number of indication equipment as device id number, with the character of the coding sequence number of expression upper level link as upper level link number, the character that expression is sent link information is as sending link information, the link-state information of transmitting apparatus that needs is write numerical value is as link-state information, then with the target MAC (Media Access Control) address of this equipment, source MAC, the bag type, device id number, upper level link number, send link information, link-state information sends to another equipment.
Further, described link-state information comprises link 1 state information, link 2 state informations, link 3 state informations and reserved field.
Adopt the method for the invention; solved and do not known the opposite end Link State between two equipment; can not carry out circuit in real time switches to carry out the problem of link protection; avoid link redundancy; and saving link circuit resource; it is few to take the processor time, and the reaction time is short, has improved the reliability of equipment under network environment.
Description of drawings
Fig. 1 is traditional cascade system schematic diagram;
Fig. 2 is a prior art dual link cascade system schematic diagram;
Fig. 3 is a kind of ethernet device Cascading Methods schematic diagram of prior art;
Fig. 4 is the ethernet device cascade system schematic diagram after application example of the present invention adds the networking control module;
Fig. 5 is the flow chart of the network-building method of application example A equipment of the present invention and B equipment;
Fig. 6 is a kind of ethernet device cascade system of application example of the present invention schematic diagram.
Embodiment
Describe the present invention below in conjunction with accompanying drawing and specific implementation method.
As shown in Figure 4, the ethernet device cascade system after the application example adding networking control module of the present invention; Described ethernet device comprises A equipment, and B equipment also comprises first line of a couplet equipment; Wherein, described A equipment has two links, link A1, A2; B equipment also has two links, link B1, and B2 links together the link B2 of the link A2 of described A equipment and B equipment, and link A1 and B1 are connected on the described first line of a couplet equipment as upper level link; One networking control module all is set on two ethernet device A and B, realizes two mutual communications of equipment, know the Link State of own and opposite equip. mutually, with the networking mode of described A equipment of flexible adjustment and B equipment.
As shown in Figure 5, the flow process of the network-building method of application example A equipment of the present invention and B equipment comprises the steps:
Step 501, described two ethernet devices obtain the first line of a couplet state and the link information of equipment of itself by the hardware of scanning equipment of itself, and carry out the equipment room communication by described networking control module, know the Link State of opposite equip.;
Step 502, described networking control module judge whether the link of A equipment and B equipment is all normal, if described A equipment and B equipment all are in the link normal condition, then changes step 503; If in described A equipment or the B equipment, the link of the current use of an ethernet device is in abnormal state, then changes step 504; If the link of described A equipment and B equipment is all undesired, then change step 505;
Step 503 is specifically selected which the link first line of a couplet, which link-down, determines according to configuration or custom rule for the first time, no longer selects later on, changes step 505 then;
Step 504 switches to the reserve link of this equipment, and notifies another equipment with the link change of this equipment by the networking control module, another equipment is after receiving the link change notice, determine own new upper level link, and feedback message changes step 505 then to this equipment;
Step 505 after delay a period of time, is changeed step 501.
After above-mentioned two device talks start, just can obtain the state of each upper level link by mutual transmission message, with the character of self-defined bridge protocol address or broadcast address as purpose MAC (MediumAccess Control, the medium access control) address, with the character of the MAC Address of system self as source MAC, the character that with expression is the link-state information bag is as the bag type, to represent that the character of producer and unit type is as producer's facility information, with the character of the coding sequence number of indication equipment as device id (identity, identity) number, with the character of the coding sequence number of expression upper level link as upper level link number, the character that expression is sent link information is as sending link information, the link-state information of transmitting apparatus that needs is write numerical value is as link-state information, then with the target MAC (Media Access Control) address of this equipment, source MAC, the bag type, producer's facility information, device id number, upper level link number, send link information, link-state information sends to another equipment.
In addition, above-mentioned described link-state information comprises link 1 state information, link 2 state informations, link 3 state informations and reserved field; After described link 1 state information, link 2 state informations, link 3 state informations all use up, the more link-state information of filling in described transmission information equipment with described reserved field.
The message format that application example A equipment of the present invention and B device talk send when sending message is as shown in table 1 below:
Purpose MAC address MAC address, source The bag type Producer's facility information Device id number Upper level link number Send link information Link 1 state information Link 2 state informations Link 3 state informations Reserved field
The message format that table 1A equipment and B device talk send when sending message
Wherein:
Target MAC (Media Access Control) address (destination MAC address) for self-defined bridge protocol address or broadcast address, accounts for 6 bytes;
Source MAC (source MAC address) is the MAC Address of system self, accounts for 6 bytes;
Bag type (packet type) is defined as 0x8701, and expression is the link-state information bag, accounts for 2 bytes;
Producer's facility information (equipment information), expression producer and unit type account for 4 bytes;
Device id number (equipment ID), the coding sequence number of indication equipment accounts for 4 bytes;
Upper level link number (UPLinkID);
Send link information (SendLink ID), account for 2 bytes;
Link 1 state information (Link1Status) accounts for 2 bytes;
Link 2 state informations (Link2Status) account for 2 bytes;
Link 3 state informations (Link3Status) account for 2 bytes;
Reserved field (Reserved Bytes) accounts for 8 bytes.
The state that has designed 3 links herein is in form, can in the light of actual conditions fill in Link State, have only 2 links such as A equipment, so just fill out link 1 state information and two Link State fields of link 2 state informations get final product, there are 3, then fill out link 1 state information, link 2 state informations and three Link State fields of link 3 state informations, can certainly fill in more information with reserved field.
A kind of cascade system of application example of the present invention as described in Figure 6.Similar with above-mentioned Fig. 4, just A equipment band a slave unit: C equipment.A1, the A2, the A3 that suppose A equipment among Fig. 6 are good, so at first selecting link A1 is upper level link (this can by pre-configured or mobile equipment strategy accordingly), and sends message informing B equipment (at this moment just using link 3 state informations of above-mentioned table 1) according to above-mentioned form.
Suppose that B device link B1, B2 also are good, and to have set B2 according to the strategy of oneself be upper level link; When B equipment is received the message of A equipment transmission, the link information of oneself can be fed back to A equipment equally so; Two equipment of A, B have all been known the Link State that the other side connected like this.
In two equipment certain has 1 link to break down, the link A1 that supposes A equipment breaks down, the so same described networking control module of A equipment utilization is by above-mentioned message format notice B equipment, after B equipment is received this message, the upper level link of recognizing the A equipment that is connected with link B2 has broken, and B equipment itself is the first line of a couplet with link B2, this means that the link B2 first line of a couplet is with obstructed, then B equipment switches to link B1 with upper level link, and notifying A equipment oneself to change upper level link simultaneously is B1; And A equipment switches to the link A2 that is connected with B with upper level link when receiving the Link State of B, and notice B equipment; Realized like this having no progeny in certain the bar upper level link switching of each equipment upper level link has reached the purpose of link protection.
The method of the invention is not restricted to listed utilization in specification and the execution mode.Concerning the technology of the present invention those of ordinary skill in the field, can make various corresponding changes and distortion according to the present invention, and all these corresponding changes and distortion all belong to the protection range of claim of the present invention.

Claims (4)

1. the method for an ethernet device link protection; be applied to comprise the network of at least two ethernet devices and a first line of a couplet equipment; at least described two ethernet devices are connected with described first line of a couplet equipment annular; it is characterized in that; the networking control module all is set on described ethernet device; between the ethernet device by the mutual communication of described networking control module; know the Link State of itself and opposite end; according to described Link State setting or adjust networking mode between the described ethernet device, specifically may further comprise the steps:
(1) described two ethernet devices obtain the first line of a couplet state and the link information of equipment of itself by the hardware of scanning equipment of itself, and carry out the equipment room communication by described networking control module, know the Link State of opposite equip.;
(2) described networking control module judges whether the link of two ethernet devices is all normal, if described two ethernet devices all are in the link normal condition, then specifically select which the link first line of a couplet, which link-down, determine according to configuration or custom rule for the first time, no longer select later on, change step (3) then; If in the described ethernet device, the link of the current use of one ethernet device is in abnormal state, then switch to the reserve link of this equipment, and notify another equipment by the networking control module with the link change of this equipment, another equipment is after receiving the link change notice, determine own new upper level link, and feedback message changes step (3) then to this equipment; If the link of described two ethernet devices is all undesired, then change step (3);
(3) after delay a period of time, change step (1).
2. method according to claim 1, it is characterized in that, between the described ethernet device by the mutual communication of described networking control module, know the Link State of itself and opposite end, if in the described ethernet device, the link of the current use of one ethernet device is in abnormal state, then switch to the reserve link of this equipment, and notify another equipment by the networking control module with the link change of this equipment, another equipment is after receiving the link change notice, determine own new upper level link, and feedback message is given this equipment.
3. method according to claim 1, it is characterized in that, when communication sends message between described two ethernet devices, with the character of self-defined bridge protocol address or broadcast address as purpose media access control MAC address, with self the character of MAC Address as source MAC, the character that with expression is the link-state information bag is as the bag type, with the character of the coding sequence number of indication equipment as device id number, with the character of the coding sequence number of expression upper level link as upper level link number, the character that expression is sent link information is as sending link information, the link-state information of transmitting apparatus that needs is write numerical value is as link-state information, then with the described target MAC (Media Access Control) address of this equipment, described source MAC, described bag type, described device id number, described upper level link number, described transmission link information, described link-state information sends to another equipment.
4. as method as described in the claim 3, it is characterized in that described link-state information comprises link 1 state information, link 2 state informations, link 3 state informations and reserved field.
CN2007101387577A 2007-08-16 2007-08-16 Ethernet equipment link protecting method Active CN101163038B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101387577A CN101163038B (en) 2007-08-16 2007-08-16 Ethernet equipment link protecting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101387577A CN101163038B (en) 2007-08-16 2007-08-16 Ethernet equipment link protecting method

Publications (2)

Publication Number Publication Date
CN101163038A CN101163038A (en) 2008-04-16
CN101163038B true CN101163038B (en) 2010-06-02

Family

ID=39297873

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101387577A Active CN101163038B (en) 2007-08-16 2007-08-16 Ethernet equipment link protecting method

Country Status (1)

Country Link
CN (1) CN101163038B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605079B (en) * 2009-07-01 2011-12-07 中兴通讯股份有限公司 Ethernet link protecting method, system and device
CN101958888A (en) * 2010-05-21 2011-01-26 福建星网锐捷网络有限公司 Configuration method of port negotiation capacity, communication port and communication device
CN103095541B (en) * 2013-02-05 2015-10-28 江西山水光电科技有限公司 A kind of method being realized loop ethernet by intelligent positioning
CN103780345A (en) * 2014-01-21 2014-05-07 清华大学 System and method for multi-buffering non-constant-speed code transmission of real-time service in intensive communication
CN106452991A (en) * 2016-09-09 2017-02-22 武汉长光科技有限公司 Method for increasing user access number based on coaxial access network
CN115174308A (en) * 2022-07-30 2022-10-11 湖南瑞菱科技有限公司 Multi-path communication link method and integrated multifunctional controller

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848824A (en) * 2005-02-16 2006-10-18 阿尔卡特公司 Device having a high availability for translation of ip over atm data in ip over Ethernet data
CN1852141A (en) * 2005-08-16 2006-10-25 华为技术有限公司 Method for realizing upward link back-up
CN101001192A (en) * 2007-01-17 2007-07-18 华为技术有限公司 Method, system and equipment for protecting ring network link

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848824A (en) * 2005-02-16 2006-10-18 阿尔卡特公司 Device having a high availability for translation of ip over atm data in ip over Ethernet data
CN1852141A (en) * 2005-08-16 2006-10-25 华为技术有限公司 Method for realizing upward link back-up
CN101001192A (en) * 2007-01-17 2007-07-18 华为技术有限公司 Method, system and equipment for protecting ring network link

Also Published As

Publication number Publication date
CN101163038A (en) 2008-04-16

Similar Documents

Publication Publication Date Title
EP3672173B1 (en) Communication method and device, and storage medium
CN102075343B (en) An out-of-band management realization method, a system for the same and an out-of-band management switch
CN100417141C (en) Group broadcasting business realizing method
CN101163038B (en) Ethernet equipment link protecting method
JPH07202924A (en) Communication system
CN103081439B (en) Logical Link Management method and communicator
JP2001061024A (en) Dsl power feeder method
CN100525269C (en) Base band unit ring cascade resource back-up method and base band unit
CN1937782B (en) Frame device and its message transmitting method
EP2916486A1 (en) Service protection method, optical line terminal and system in passive optical network
CN101743723A (en) System and method for an adaptive access point mode
CN100515138C (en) Transmission control method for wireless network and base station
CN106533771A (en) Network device and control information transmission method
CN108337162B (en) System and method for supporting dual-homing protection
US7668079B2 (en) Multiple endpoint paths for point-to-multipoint (P2MP) SPVC
US7773555B1 (en) Extension of an ethernet backhaul system for wireless base stations over a cable television distribution network
EP3232617B1 (en) Protection switching method and system, and nodes
US9100945B2 (en) Communication node apparatus, communication system, and method for selecting destination reception interface used therefor
CN100499500C (en) Method for realizing management for multistage communication device
WO2014125761A1 (en) Wireless transmission apparatus, communication system, and communication trouble control method
CN107154871A (en) VOIP business master-slave conversion system and method based on distributed DSP
GB2332832A (en) Path protection with flexible routing
CN102315925B (en) Method for realizing VRRP (virtual router redundancy protocol) on RPR (resilient packet ring) and routing equipment
CN102136997B (en) Path state updating method and node
US7181242B2 (en) Systems and methods for communicating data at radio base station nodes

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