CN101425970A - Method, apparatus and system for implementing remote loop - Google Patents

Method, apparatus and system for implementing remote loop Download PDF

Info

Publication number
CN101425970A
CN101425970A CNA2008101801444A CN200810180144A CN101425970A CN 101425970 A CN101425970 A CN 101425970A CN A2008101801444 A CNA2008101801444 A CN A2008101801444A CN 200810180144 A CN200810180144 A CN 200810180144A CN 101425970 A CN101425970 A CN 101425970A
Authority
CN
China
Prior art keywords
loopback
tree state
outgoing direction
state
spanning
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2008101801444A
Other languages
Chinese (zh)
Other versions
CN101425970B (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 CN2008101801444A priority Critical patent/CN101425970B/en
Publication of CN101425970A publication Critical patent/CN101425970A/en
Application granted granted Critical
Publication of CN101425970B publication Critical patent/CN101425970B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method for implementing remote RLOOP comprising standby RLOOP enables the entry direction of port to generate tree state and exit direction to generate tree state, and set the tree state of entry direction and exit direction as blocking mode; transmitting message for opening remote RLOOP to RLOOP controlled terminal; receiving response message of RLOOP controlled terminal, setting the tree generation state of exit direction of RLOOP port as relay mode. The invention generates tree state mark by multiplexing existed port, avoids redefining RLOOP control variable, thereby largely saving memory space, simplifies multiple state maintenance of remote RLOOP, and reduces complexity of instruction design for network processor.

Description

A kind of methods, devices and systems of realizing remote loopback
Technical field
The present invention relates to data communication field, relate in particular to a kind of methods, devices and systems of realizing remote loopback.
Background technology
Along with carrying out fast of ethernet technology in recent years, the proportion of Ethernet networking in networking increases gradually, the network size of Ethernet also constantly increases, from inserting, converging to and all used Ethernet to replace the ATM network equipments such as (Asynchronous Time division multiplexing, asynchronous transfer modes) the backbone network in a large number.Because the extensive application of the network equipment, network equipment user also just pays close attention to the inspection of network condition, the location and the isolation of network failure more.OAM (the OperationAdministration and Maintenance of IEEE802.3ah definition, Operations, Administration and Maintenance) sublayer, be an optional sublayer that in link layer, is used for carrying out link operation, monitoring and fault location, provide such as functions such as the indication of far-end chain circuit alarming, remote loopback controls.
Remote loopback is a kind of far-end controlling links operation of IEEE802.3ah definition, based on this loopback setting that can carry out the equipment of link opposite end.Remote equipment is under wrapped state, undesired forwarding data message, can all return to transmit port to all non-OAM messages that receive, this function can carry out in fault location with to link using when link performances such as packet loss, time-delay, shake detect, and the loopback frame that also can analyze the OAM sublayer is to determine the additional information about link health.
IEEE802.ah has defined two control variables: local_mux_action (local_multiplexer_action, current multiplexer state) and local_par_action (local_parser_action, current parser state) for the OAM sublayer.When local_mux_action was in DISCARD (abandoning) pattern, port can only send OAMPDU (OAM Protocol Data Unit, OAM Protocol Data Unit); When local_mux_action is in FWD (Forward transmits) pattern, can send any message.When local_par_action was in pattern, port abandons a of institute except that M that receives from link the ti message; When Dal_par_action is in LB (LoopBack, loopback) pattern, the message except that OAMPDU that port rebounds and receives from link.
In the prior art, the major control process that remote loopback control is initiated as shown in Figure 1, comprising:
Step S101: the state that local terminal local_mux_action and local_par_action are set is DISCARD, and sends the OAMPDU of open distal end loopback to the opposite end.
Step S102: after the OAM information frame of open distal end loopback was received in the opposite end, it was DISCARD that local_mux_action is set, and it is LB that local_par_action is set, and sent the local terminal that feeds back to remote loopback.
Step S103: after local terminal was received the OAM information frame of opposite end response remote loopback, local_mux_action was set to FWD.Since then, remote loopback is set up.
According to agreement, the realization of remote loopback depends on above-mentioned two control variables state variation, and wherein local_mux_action has 2 kinds of pattern: DISCARD and FWD; Local_par_action has 3 kinds of pattern: DISCARD, FWD and LB.During the realization remote loopback function of general networking processor, need to safeguard 5 patterns of 2 variablees.For local_mux_action, need 1 bit to indicate its state; For local_par_action, need 2 bit to indicate its state, like this,, need 3 bit could indicate 5 kinds of patterns for each port.
Prior art has following shortcoming:
Because the particularity of Computer Storage, 5 kinds of patterns of 3 bit signs need take a 32bit word.Though can come conserve space by the shifting function in the network processing unit, because 3 can not be divided exactly the complexity that the further increase instruction of meeting realizes by 32.So, when common implementation is difficult in conserve storage, reduce the complexity that instruction realizes.
Summary of the invention
The invention provides a kind of methods, devices and systems of realizing remote loopback, in the time of in order to the realization conserve storage, reduce the complexity that instruction realizes.
For achieving the above object, the invention provides a kind of method that realizes remote loopback, be applied in the system of remote loopback, comprising:
The Inbound spanning-tree state and the outgoing direction spanning-tree state of backup loopback enable port, and described Inbound and outgoing direction spanning-tree state are set to blocking model;
Send the message of open distal end loopback to the controlled end of loopback;
Receive the response message of the controlled end of described loopback, and the outgoing direction spanning-tree state of described loopback enable port is set to forward mode.
The present invention also provides a kind of method that realizes remote loopback, is applied in the system of remote loopback, comprising:
Receive the message of the open distal end loopback of loopback originating end transmission;
Backup loopback enable port outgoing direction spanning-tree state, and the outgoing direction spanning-tree state that the loopback enable port is set is blocking model, it is loopback mode that current parser state is set;
Send response message to described loopback originating end.
The embodiment of the invention provides a kind of device of realizing remote loopback, comprising:
First mode setting unit is used to back up the Inbound spanning-tree state and the outgoing direction spanning-tree state of loopback enable port, and described Inbound and outgoing direction spanning-tree state are set to blocking model;
First packet sending unit is used for the message to the controlled end transmission of loopback open distal end loopback;
The first message receiving element be used to receive the response message of the controlled end of described loopback, and the outgoing direction spanning-tree state of described loopback enable port is set to forward mode.
The embodiment of the invention also provides a kind of device of realizing remote loopback, comprising:
The second message receiving element is used to receive the message of the open distal end loopback that the loopback originating end sends;
Second mode setting unit is used to back up loopback enable port outgoing direction spanning-tree state, and the outgoing direction spanning-tree state that the loopback enable port is set is blocking model, and it is loopback mode that current parser state is set;
Second packet sending unit is used for sending response message to described loopback originating end.
The present invention also provides a kind of system that realizes remote loopback, comprises the controlled end of remote loopback originating end and remote loopback, comprising:
The remote loopback originating end is used to back up the Inbound spanning-tree state and the outgoing direction spanning-tree state of loopback enable port, and described Inbound and outgoing direction spanning-tree state be set to blocking model, sends the message of open distal end loopback to the controlled end of loopback; When receiving the response message of the controlled end of described loopback, the outgoing direction spanning-tree state of described loopback enable port is set to forward mode;
The controlled end of remote loopback, be used to receive the message of the open distal end loopback that the remote loopback originating end sends, backup loopback enable port outgoing direction spanning-tree state, and the outgoing direction spanning-tree state that the loopback enable port is set is a blocking model, it is loopback mode that current parser state is set, and sends response message to described loopback originating end.
Compared with prior art, the present invention has the following advantages:
The present invention has avoided redefining the loopback control variables, thereby has saved memory space greatly by multiplexing existing port spantree Status Flag, and the maintenance of a plurality of states when having simplified remote loopback, has reduced the complexity of network processing unit instruction design.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do one to the accompanying drawing of required use in embodiment or the description of the Prior Art below introduces simply, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart that control is initiated in remote loopback control in the prior art;
A kind of flow chart of realizing the remote loopback method that Fig. 2 provides for the embodiment of the invention;
A kind of another flow chart of realizing the remote loopback method that Fig. 3 provides for the embodiment of the invention;
A kind of structure chart of realizing the remote loopback device that Fig. 4 provides for the embodiment of the invention;
A kind of another structure chart of realizing the remote loopback device that Fig. 5 provides for the embodiment of the invention;
A kind of structure chart of realizing the remote loopback system that Fig. 6 provides for the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
The embodiment of the invention provides a kind of methods, devices and systems of realizing remote loopback, in the time of in order to the realization conserve storage, reduces the complexity that instruction realizes.
The embodiment of the invention provides a kind of method that realizes remote loopback, is applied in the remote loopback originating end, as shown in Figure 2, specifically may further comprise the steps:
Step S201, backup loopback enable port Way out spanning-tree state and Inbound spanning-tree state.
The Inbound spanning-tree state and the outgoing direction spanning-tree state of step S202, loopback enable port are set to blocked state.
Step S203, send the message of open distal end loopback to the controlled end of loopback.
Step S204, judge whether to receive the response message that the controlled end of loopback sends,, then change step S205 if receive response message; Otherwise directly change step S207.
Step S205, loopback enable port outgoing direction spanning-tree state is set is forward mode.
Step S206, negotiation finish loopback, and change step S207.
Step S207, according to the spanning-tree state reduction port outgoing direction and the Inbound spanning-tree state of backup.
The embodiment of the invention also provides a kind of method that realizes remote loopback, is applied in the controlled end of remote loopback, as shown in Figure 3, specifically may further comprise the steps:
The open distal end loopback message that step S301, reception loopback originating end send.
Step S302, judge whether to satisfy the loopback condition, then change step S303 if satisfy, otherwise directly finish this flow process.
Step S303, backup loopback enable port outgoing direction spanning-tree state, and to set out the direction spanning-tree state be blocked state.
Step S304, local_par_action is set is the LB pattern, and sends response message to the remote loopback originating end.
Step S305, negotiation finish loopback.
Step S306, according to backup information reduction loopback enable port outgoing direction spanning-tree state.
Need to prove that above-mentioned port spantree state is that each port all needs to safeguard.Because the priority of remote loopback will be higher than common forwarding, so multiplexing spanning-tree state can't impact network.
And, in embodiments of the present invention, only need be for local_par_action distribute a flag bit, expression LB and FWD state, remaining state all is mapped as the port spantree state.The method that provides by the embodiment of the invention, network processing unit only need distribute a bit just can realize 5 states, by simple shifting function in the network processing unit, each bit in 32bit word can a corresponding port the local_par_action pattern, promptly the local_par_action state of 32 ports can be represented in 32bit word.
So, the embodiment of the invention is by multiplexing existing port spantree Status Flag, only need to realize the sign of 5 states with 1 bit, thereby avoided redefining the loopback control variables, thereby saved memory space greatly, and the maintenance of a plurality of states when having simplified remote loopback has reduced the complexity that the network processing unit instruction designs.
The embodiment of the invention provides a kind of device of realizing remote loopback, and as shown in Figure 4, this device comprises:
First mode setting unit 410 is used to back up the Inbound spanning-tree state and the outgoing direction spanning-tree state of loopback enable port, and described Inbound and outgoing direction spanning-tree state are set to blocking model.
First packet sending unit 420 is used for the message to the controlled end transmission of loopback open distal end loopback.
The first message receiving element 430 be used to receive the response message of the controlled end of described loopback, and the outgoing direction spanning-tree state of described loopback enable port is set to forward mode.
The device that present embodiment provides also comprises:
First information reduction unit 440 is used for according to backup information reduction port outgoing direction spanning-tree state and Inbound spanning-tree state.
The embodiment of the invention also provides a kind of device of realizing remote loopback, and as shown in Figure 5, this device comprises:
The second message receiving element 510 is used to receive the message of the open distal end loopback that the loopback originating end sends.
Second mode setting unit 520 is used to back up loopback enable port outgoing direction spanning-tree state, and the outgoing direction spanning-tree state that the loopback enable port is set is blocking model, and it is the LB pattern that local_par_action is set.
Second packet sending unit 530 is used for sending response message to described loopback originating end.
The device of this realization remote loopback also comprises:
The second information reverting unit 540 be used for according to backup information port outgoing direction spanning-tree state being reduced, and local_par_action is set to the FWD pattern.
The device that the embodiment of the invention provides, by multiplexing existing port spantree Status Flag, avoided redefining the loopback control variables, thereby saved memory space greatly, and the maintenance of a plurality of states when having simplified remote loopback has reduced the complexity that the network processing unit instruction designs.
The embodiment of the invention also provides a kind of system that realizes remote loopback, as shown in Figure 6, comprising:
Remote loopback originating end 610 is used to back up the Inbound spanning-tree state and the outgoing direction spanning-tree state of loopback enable port, and described Inbound and outgoing direction spanning-tree state be set to blocking model, sends the message of open distal end loopback to the controlled end of loopback; When receiving the response message of the controlled end of described loopback, and the outgoing direction spanning-tree state of described loopback enable port is set to forward mode.
The controlled end 620 of remote loopback, be used to receive the message of the open distal end loopback that the remote loopback originating end sends, backup loopback enable port outgoing direction spanning-tree state, and the outgoing direction spanning-tree state that the loopback enable port is set is a blocking model, it is the LB pattern that local_par_action is set, and sends response message to described loopback originating end.
The system of the realization remote loopback that the embodiment of the invention provides, by multiplexing existing port spantree Status Flag, avoided redefining the loopback control variables, thereby saved memory space greatly, and the maintenance of a plurality of states when having simplified remote loopback has reduced the complexity that the network processing unit instruction designs.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (10)

1, a kind of method that realizes remote loopback is applied in the system of remote loopback, it is characterized in that, comprising:
The Inbound spanning-tree state and the outgoing direction spanning-tree state of backup loopback enable port, and described Inbound and outgoing direction spanning-tree state are set to blocking model;
Send the message of open distal end loopback to the controlled end of loopback;
Receive the response message of the controlled end of described loopback, and the outgoing direction spanning-tree state of described loopback enable port is set to forward mode.
2, the method for claim 1 is characterized in that, the outgoing direction spanning-tree state of described loopback enable port is set to also comprise after the forward mode:
According to backup information reduction port Enable Pin outgoing direction spanning-tree state and Inbound spanning-tree state.
3, a kind of method that realizes remote loopback is applied in the system of remote loopback, it is characterized in that, comprising:
Receive the message of the open distal end loopback of loopback originating end transmission;
Backup loopback enable port outgoing direction spanning-tree state, and the outgoing direction spanning-tree state that the loopback enable port is set is blocking model, it is loopback mode that current parser state is set;
Send response message to described loopback originating end.
4, method as claimed in claim 3 is characterized in that, describedly also comprises after the loopback originating end sends response message:
According to backup information port outgoing direction spanning-tree state is reduced, and current parser state is set to forward mode.
As claim 3 or 4 described methods, it is characterized in that 5, described current parser state is set to loopback mode or forward mode is to realize by the sign position that 1 bit is set.
6, a kind of device of realizing remote loopback is characterized in that, comprising:
First mode setting unit is used to back up the Inbound spanning-tree state and the outgoing direction spanning-tree state of loopback enable port, and described Inbound and outgoing direction spanning-tree state are set to blocking model;
First packet sending unit is used for the message to the controlled end transmission of loopback open distal end loopback;
The first message receiving element be used to receive the response message of the controlled end of described loopback, and the outgoing direction spanning-tree state of described loopback enable port is set to forward mode.
7, device as claimed in claim 6 is characterized in that, also comprises:
First information reduction unit is used for according to backup information reduction port outgoing direction spanning-tree state and Inbound spanning-tree state.
8, a kind of device of realizing remote loopback is characterized in that, comprising:
The second message receiving element is used to receive the message of the open distal end loopback that the loopback originating end sends;
Second mode setting unit is used to back up loopback enable port outgoing direction spanning-tree state, and the outgoing direction spanning-tree state that the loopback enable port is set is blocking model, and it is loopback mode that current parser state is set;
Second packet sending unit is used for sending response message to described loopback originating end.
9, device as claimed in claim 8 is characterized in that, also comprises:
The second information reverting unit be used for according to backup information port outgoing direction spanning-tree state being reduced, and current parser state is set to forward mode.
10, a kind of system that realizes remote loopback comprises the controlled end of remote loopback originating end and remote loopback, it is characterized in that, comprising:
The remote loopback originating end is used to back up the Inbound spanning-tree state and the outgoing direction spanning-tree state of loopback enable port, and described Inbound and outgoing direction spanning-tree state be set to blocking model, sends the message of open distal end loopback to the controlled end of loopback; When receiving the response message of the controlled end of described loopback, the outgoing direction spanning-tree state of described loopback enable port is set to forward mode;
The controlled end of remote loopback, be used to receive the message of the open distal end loopback that the remote loopback originating end sends, backup loopback enable port outgoing direction spanning-tree state, and the outgoing direction spanning-tree state that the loopback enable port is set is a blocking model, it is loopback mode that current parser state is set, and sends response message to described loopback originating end.
CN2008101801444A 2008-12-01 2008-12-01 Method, apparatus and system for implementing remote loop Active CN101425970B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101801444A CN101425970B (en) 2008-12-01 2008-12-01 Method, apparatus and system for implementing remote loop

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101801444A CN101425970B (en) 2008-12-01 2008-12-01 Method, apparatus and system for implementing remote loop

Publications (2)

Publication Number Publication Date
CN101425970A true CN101425970A (en) 2009-05-06
CN101425970B CN101425970B (en) 2011-03-16

Family

ID=40616313

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101801444A Active CN101425970B (en) 2008-12-01 2008-12-01 Method, apparatus and system for implementing remote loop

Country Status (1)

Country Link
CN (1) CN101425970B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025569A (en) * 2010-12-15 2011-04-20 中兴通讯股份有限公司 Point-to-point remote loopback test method, system and device
CN102780622A (en) * 2012-07-24 2012-11-14 中兴通讯股份有限公司 Message processing method and message processing device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025569A (en) * 2010-12-15 2011-04-20 中兴通讯股份有限公司 Point-to-point remote loopback test method, system and device
CN102025569B (en) * 2010-12-15 2016-03-30 中兴通讯股份有限公司 The far-end loopback test method of point-to-point and system and device
CN102780622A (en) * 2012-07-24 2012-11-14 中兴通讯股份有限公司 Message processing method and message processing device
CN102780622B (en) * 2012-07-24 2015-01-28 中兴通讯股份有限公司 Message processing method and message processing device

Also Published As

Publication number Publication date
CN101425970B (en) 2011-03-16

Similar Documents

Publication Publication Date Title
CN101964713B (en) Network method and system
CN104980372A (en) Relay System And Switching Device
CN105323080B (en) A kind of link backup, power supply backup method, apparatus and system
EP2479925B1 (en) Dynamic power management in a communications device
CN102415056A (en) Pon system, station-end apparatus and subscriber-end apparatus
CN101427499A (en) System and method of multi-nodal APS control protocol signalling
KR20090041163A (en) Power saving method for ont and olt in optical access network
CN103067956A (en) Internet Protocol Security (IPSec) tunnel backing up and switching method and equipment in 3rd generation telecommunication (3G) network
CN106656311A (en) Data link backup apparatus and method
CN101425970B (en) Method, apparatus and system for implementing remote loop
CN105049367A (en) Traffic distribution method of aggregated link and access device
CN102407868A (en) Hot-standby dual-connection method suitable for communication protocol of modern monitoring system of rail transit
CN101222405B (en) Module for fast recovering looped network redundancy and its use method
CN106533771A (en) Network device and control information transmission method
CN102577235A (en) Network apparatus and method
JP5388189B2 (en) Network equipment
CN101795209B (en) Networking method and system
CN111163003A (en) Topology discovery method of wireless multi-control-domain SDN
CN109922157A (en) A kind of data transmission system based on wireless backup
CN103618630A (en) Data safe transmission method and device based on double up links
CN102609388A (en) Slave node circuit, communication method and communication device
CN209930282U (en) System for automatically protecting data plane link by using control plane link
CN102271045A (en) Virtual private network (VPN)-instance-based inter-equipment backup method, equipment and system
CN214101473U (en) Wireless network access device and network telephone system
CN113794634B (en) Load sharing method and equipment

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