CN102938737A - Layer-2 ring network proxy method and equipment - Google Patents

Layer-2 ring network proxy method and equipment Download PDF

Info

Publication number
CN102938737A
CN102938737A CN2012104787695A CN201210478769A CN102938737A CN 102938737 A CN102938737 A CN 102938737A CN 2012104787695 A CN2012104787695 A CN 2012104787695A CN 201210478769 A CN201210478769 A CN 201210478769A CN 102938737 A CN102938737 A CN 102938737A
Authority
CN
China
Prior art keywords
layer network
network
network device
layer
port
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
CN2012104787695A
Other languages
Chinese (zh)
Other versions
CN102938737B (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 CN201210478769.5A priority Critical patent/CN102938737B/en
Publication of CN102938737A publication Critical patent/CN102938737A/en
Priority to PCT/CN2013/074117 priority patent/WO2014079193A1/en
Application granted granted Critical
Publication of CN102938737B publication Critical patent/CN102938737B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1886Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with traffic restrictions for efficiency improvement, e.g. involving subnets or subdomains

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a layer-2 ring network proxy method which is applied to layer-2 network equipment. The method comprises the following steps of: when the layer-2 network equipment in a running state perceives that a topological structure of a layer-2 ring network or layer-3 network is changed, switching to a learning state from the running state; determining the network side port of the layer-2 network equipment in the layer-2 ring network in the learning state; and after the network side port of the layer-2 network equipment in the layer-2 ring network is determined, switching to the running state from the learning state and executing proxy functions. According to the method provided by the embodiments of the invention, the proxy functions of an IGMP (Internet Group Management Protocol) proxy can be realized in the layer-2 ring network of a non-tree structure.

Description

Two layers of looped network Proxy Method and equipment
Technical field
The present invention relates to internet arena, be specifically related to a kind of two layers of looped network Proxy Method and equipment.
Background technology
IGMP (Internet Group Management Protocol, IGMP) be Internet protocol (Internet Protocol, IP) main frame that uses at user's network segment of multicast is to the signaling mechanism of router, by realizing the group membership management function at host computer side and the mutual IGMP message of router top-cross.Subscriber's main station leaves (Leave) message by transmission and leaves this channel by sending certain channel of internet set managerial protocol report IGMP Report message program request; Router regularly sends IGMP inquiry IGMP Query message to main frame, and subscriber's main station is with IGMP Report message response, maintenance customer's existing state.
In actual use, two layers of switching network are set between main frame and router usually, are used for the access of subscriber's main station and converge.Flood in double layer network for fear of multicast data message, usually at the IGMP proxy igmp Proxy of Layer 2 switch its upper side administration.IGMPProxy is by IGMP message mutual between listen for user on the two-layer network device and router, know and connected group membership's main frame under which port, set up forwarding-table item, then only with the transmitting multicast data of correspondence group to these ports, thereby avoided the broadcasting of group data message in double layer network.
Prior art IGMP Proxy can only be applicable to tree network, because IGMP Proxy requires network to want strictly to distinguish network-side port and user-side port, otherwise the act of agency of IGMP Proxy may cause IGMP Query message that IGMP Proxy sends to send and by the upstream router reception ﹠ disposal from network-side port, may disturb the election of igmp querying device in the network, the trigger network fault.
Summary of the invention
The invention provides a kind of two layers of looped network Proxy Method, to realize IGMP Proxy function in two layers of looped network that are implemented in non-tree structure.
First aspect present invention provides a kind of two layers of looped network Proxy Method, is applied in two layers of looped network, and described method comprises:
When the topological structure that the two-layer network device in the described looped network perceives two layers of looped network or three-layer network in running status changes, switch to learning state from running status;
Described two-layer network device is determined the network-side port of described two-layer network device under described learning state;
After the network-side port of determining described two-layer network device, described two-layer network device switches to running status from learning state, the agents function.
Alternatively, under described learning state, determine that the network-side port of described two-layer network device comprises:
Described two-layer network device is the first network side ports with the port study that the first router from three-layer network receives IGMP query message IGMP Query;
Described two-layer network device to the second two-layer network device and subscriber's main station the looped network, is the network-side port of the described second layer network equipment so that described the second two-layer network device will receive the port study of the described IGMP Query of described two-layer network device forwarding with described IGMP Query other unblock port repeats outside described first network side ports.
Alternatively, described under described learning state when the topological structure that described two-layer network device perceives three-layer network in running status changes, determine further to comprise the network-side port of two-layer network device in described two layers of looped network:
Described two-layer network device is the second network side ports with the port study that the second router from three-layer network receives IGMP query message IGMP Query;
Described two-layer network device to the second two-layer network device and subscriber's main station the looped network, is the network-side port of the described second layer network equipment so that described the second two-layer network device will receive the port study of the described IGMP Query message of described two-layer network device forwarding with described IGMP Query other unblock port repeats outside described second network side ports.
Alternatively, when the topological structure that described two-layer network device perceives two layers of looped network in running status changes, after running status switches to learning state, determine also to comprise before the network-side port of described two-layer network device: remove the former network-side port in the described two-layer network device
Alternatively, the method of described first aspect also comprises: under described running status, described two-layer network device will be transmitted to other network-side port from the query message that the first network side ports receives, and described first network side ports receives the query message of the router transmission that is elected as requestor in the described three-layer network.
Alternatively, when described two-layer network device is learnt new network-side port under running status, judge that the topological structure of described three-layer network changes.
Alternatively, whether described two-layer network device changes by the topological structure of the described two layers of looped network of looped network protocol detection.
Alternatively, under described learning state, if after described two-layer network device receives the internet set managerial protocol report message IGMP Report of subscriber's main station transmission, described IGMP Report is transmitted to described network-side port.
Alternatively, described under described learning state, determine after the network-side port of described two-layer network device, described method also comprises: judge whether finish the requestor election in the described three-layer network, after the requestor election is finished in described three-layer network, switch to running status from learning state, the agents function.
Alternatively, in described learning state, change if described two-layer network device perceives described double layer network topological structure, then remove the former network-side port that described two-layer network device is learnt.
Alternatively, in described learning state, change if described two-layer network device perceives described three-layer network topological structure, then keep learning state.
Second aspect present invention provides a kind of two-layer network device, and described two-layer network device comprises:
The first state switch unit when changing for the topological structure that perceives two layers of looped network or three-layer network in running status, switches to learning state from running status;
The port determining unit under described learning state, is determined the network-side port of described two-layer network device;
The second state switch unit is used for switching to running status from learning state, the agents function after the network-side port of determining described two-layer network device.
Alternatively, described port determining unit specifically is the first network side ports for the port study that will receive from the first router of three-layer network IGMP query message IGMP Query; Described IGMP Query other unblock port repeats outside described first network side ports to the second two-layer network device and subscriber's main station the looped network, so that will receiving the port study of the described IGMP Query of described two-layer network device forwarding, described the second two-layer network device are the network-side port of the described second layer network equipment.
Alternatively, described port determining unit specifically is used for: the port study that will receive from the second router of three-layer network IGMP query message IGMP Query is the second network side ports; Described IGMP Query other unblock port repeats outside described second network side ports to the second two-layer network device and subscriber's main station the looped network, so that will receiving the port study of the described IGMP Query message of described two-layer network device forwarding, described the second two-layer network device are the network-side port of the described second layer network equipment.
Alternatively, when the topological structure that described two-layer network device perceives two layers of looped network in running status changes, by described the first state switch unit after running status switches to learning state, determine before the network-side port of described two-layer network device that described port determining unit also is used for: the former network-side port of removing described two-layer network device.
Alternatively, described two-layer network device also comprises and also comprises the message repeating unit, is used for:
Under described running status, will transmit to other network-side port from the query message that the first network side ports receives, described first network side ports receives the query message of the router transmission that is elected as requestor in the described three-layer network.
Alternatively, described the second state switch unit also is used for:
Judge whether finish the requestor election in the described three-layer network, after the requestor election is finished in described three-layer network, switch to running status from learning state, the agents function.
Two layers of looped network Proxy Method that the embodiment of the invention provides, the state of two-layer network device is divided into learning state and running status, in running status, if two-layer network device perceives the topological structure of two layers of looped network or three-layer network when changing, switch to learning state from running status, under described learning state, determine the network-side port of two-layer network device in described two layers of looped network afterwards; In determining described two layers of looped network after the network-side port of two-layer network device, switch to running status from learning state, the agents function, thereby the two-layer network device of accurately determining execution IGMP Proxy function is accurately determined network-side port and subscriber computer side ports, avoid IGMP Query message that in loop network IGMP Proxy sends to send and by the upstream router reception ﹠ disposal from network-side port, therefore disturb the election of igmp querying device in the network, the problem of trigger network fault.
Description of drawings
Fig. 1 is multicast forwarding schematic diagram in the two-layer network device network;
Fig. 2 is multicast agent schematic diagram in the two-layer network device network;
The flow chart of two layers of a kind of embodiment of looped network Proxy Method that Fig. 3 provides for the embodiment of the invention;
The flow chart of a kind of embodiment of step 302 in two layers of looped network Proxy Method that Fig. 3 A provides for the embodiment of the invention;
The flow chart of the another kind of embodiment of step 302 in two layers of looped network Proxy Method that Fig. 3 B provides for the embodiment of the invention;
Fig. 4 is a kind of schematic diagram of implementing state of the embodiment of the invention;
Fig. 5 is the schematic diagram that the another kind of the embodiment of the invention is implemented state;
Fig. 6 is the schematic diagram that the another kind of the embodiment of the invention is implemented state;
The structural representation of the two-layer network device that Fig. 7 provides for the embodiment of the invention;
The structural representation of the two-layer network device that Fig. 8 provides for another embodiment of the present invention.
Embodiment
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Fig. 1 is multicast forwarding schematic diagram in the two-layer network device network, as seen from Figure 1, when only having certain multicast channel of main frame Host1 program request in the network, two-layer network device when disposing IGMP Proxy and not disposing IGMP Proxy, the forwarding flow of multicast data message to.As seen from Figure 1, when not disposing IGMP Proxy in the two-layer network device, because multicast data message is broadcasted at two-layer network device, so although main frame Host2 does not have program request, but also can receive multicast data message, but after in two layers of looped network are established, having disposed IGMP proxy, only have the main frame of program request just can receive multicast data message.
As shown in Figure 2, for subscriber's main station, to dispose the two-layer network device of IGMP Proxy and played the part of the router role, the subscriber's main station of being responsible for downstream sends IGMP Query, and process the IGMP Report/Leave that receives from subscriber's main station, safeguard that the multicast forwarding list item is to instruct message repeating.For router, the IGMP Query that the two-layer network device termination is received from router, according to the multicast forwarding list item of oneself preserving, act on behalf of the subscriber's main station in downstream and respond IGMP Report to described router, after all subscriber's main stations of downstream all left, upstream server sent IGMP Leave.
In an embodiment of the present invention, two-layer network device can be that switch or other can be disposed the network equipment of IGMP Proxy.Framework shown in Figure 2 is the work framework that is applied in the double layer network in the tree network, and for loop network, relatively is difficult to diffServ network side ports and user-side port.Wherein network-side port be on the two-layer network device towards the port of router side, user-side port is towards the port of subscriber's main station on the two-layer network device.
As shown in Figure 3, the embodiment of the invention provides a kind of two layers of looped network Proxy Method, is applied in the loop network, and described method comprises:
Step 301 when the topological structure that two-layer network device perceives two layers of looped network or three-layer network in running status changes, switches to learning state from running status;
Specifically, described two layers of loop network topology structure change, including but not limited to: increase new two-layer network device or certain port in two-layer network device problems such as obstruction that break down in two layers of looped network, affected disposing towards the network-side port configuration of router side and the user-side port of user oriented side under the running status.Reason is, two-layer network device comprises a plurality of ports, these ports should be configured to respectively network-side port and user-side port when normal the use, but when two layers of ring-network topology changed, certain port in the two-layer network device be can not determine should be as network-side port or user-side port.Two-layer network device can pass through the looped network detection protocol, and for example whether rapid ring protection protocol (Rapid ring protection protocol, the RRPP) topological structure that detects two layers of looped network changes.
Described three-layer network topological structure changes, for example increase or reduced router in the three-layer network, cause the requestor election state in the three-layer network to occur changing, the two-layer network device that a router that is elected as requestor in the three-layer network is responsible in two layers of looped network sends IGMP Query, after increasing in the three-layer network or having reduced router, just need to reselect a router as the requestor that sends IGMPQuery.
The requestor election refers in the three-layer network, repeatedly send the query message of repetition for fear of different routers, requestor election mechanism through three-layer network inside, selected only send query message by a router in a plurality of routers as requestor, remaining router is only by receiving described query message that two-layer network device transmits to keep the state of the requestor that elects.Usually, in the requestor election mechanism, requestor determines according to the IP address size, with the maximum or minimum router in IP address in the three-layer network as the requestor in the three-layer network.When increase and decrease appears in the router number in the three-layer network, will re-start the requestor election.Under normal circumstances, only have a port can receive IGMP Query on the two-layer network device in two layers of looped network, when having two or more ports to receive IGMP Query, illustrate that problem has appearred in the requestor election in the three-layer network, increase or reduced the router number in the three-layer network.Therefore, two-layer network device can receive query message by whether new port is arranged in the two-layer network device, judges whether the topological structure in the three-layer network variation has occured.
Therefore, chaotic for fear of user-side port and network-side port, be in the two-layer network device under the running status, for example switch switches to study learning state from operation running state when perceiving above-mentioned situation, relearns network-side port.
Step 302 under described learning state, is determined the network-side port of two-layer network device in described two layers of looped network;
Particularly, two-layer network device relearns the network-side port in the two-layer network device at the learning state, namely with three-layer network in router carry out mutual port.
Step 303 after the network-side port of two-layer network device, switches to running status from learning state, the agents function in determining described two layers of looped network.
Particularly, after the network-side port of the overall network equipment in two layers of looped network is all determined, after particularly the election of the requestor in the three-layer network is finished, two-layer network device switches to the running state from the learning state, the agents function, described agent functionality is identical with agent functionality shown in Figure 2, seldom gives unnecessary details.
Pass through above-described embodiment, two-layer network device in the loop network, when the topological structure that perceives two layers of looped network or three-layer network in running status changes, switch to learning state from running status, under described learning state, determine the network-side port of two-layer network device in described two layers of looped network afterwards; In determining described two layers of looped network, after the network-side port of two-layer network device, switch to running status from learning state, the agents function.Thereby. determine to carry out exactly network-side port and user-side port on the two-layer network device of IGMP Proxy agent functionality, avoiding in loop network carrying out IGMP Query message that the two-layer network device of IGMP Proxy agent functionality sends sends and by the router reception ﹠ disposal of upstream from network-side port, and the election of igmp querying device in the interference network, the problem of trigger network fault.
As shown in Figure 3A, in the preferred implementation of the embodiment of the invention, described step 302 further comprises:
3021, described two-layer network device is the first network side ports with the port study that the first router from three-layer network receives IGMP query message IGMP Query;
3022, described two-layer network device with described IGMP Query other unblock port repeats outside described first network side ports to the second two-layer network device and subscriber's main station the looped network, be the network-side port of the described second layer network equipment so that described the second two-layer network device will receive the port study of the described IGMP Query of described two-layer network device forwarding, afterwards described IGMP Query transmitted to the 3rd two-layer network device and/or subscriber's main station.
Take Fig. 4 as example, Fig. 4 is a kind of schematic diagram of implementing state of the embodiment of the invention, may comprise two or more two-layer network devices in the loop network, for example among the embodiment shown in Figure 4, comprises two two-layer network device S1 and S2 in two layers of looped network.In three-layer network, only comprise a router R1.Each self-contained a plurality of port of S1 and S2 wherein, part port are used for and subscriber's main station is mutual, the part port is used for and other two-layer network devices of looped network carry out alternately, the part port for and the router of three-layer network carry out alternately.By the Port2 port block of looped network agreement with S2, the Port2 of the S2 behind the obstruction becomes the broken circling point of looped network.Enable IGMP Proxy on S1 and the S2.
After S1, S2 enable IGMP Proxy, IGMP Proxy at first enters the learning state, this state I GMP Proxy is the agents function not, only carry out monitor function, if namely being arranged, subscriber's main station initiates program request, S1 and S2 only intercept, and the IGMP Report message that subscriber's main station sends is transmitted to network-side port, do not carry out " agency " function.
After the IGMP Query message that R1 sends arrived S1, S1 was with the inbound port of message, i.e. the Port1 of S1 study becomes network-side port.Usually one section setting-up time after two-layer network device is determined according to network-side port judges whether the requestor election in the three-layer network is finished, therefore S1 is when being network-side port with its Port1 study, record this port and receive the time of IGMP Query message, this port is received the time of IGMP Query message is as the initial foundation for judging whether the requestor election is finished.
S1 for after the network-side port, goes out with the IGMP Query that receives the Port1 of S1 study from upper other unblock port repeats except IGMP Query enters the inbound port of S1 of S1.IGMP Query will arrive along S1 to the link between S2 S2.In the same way, S2 records the time that this port is received IGMP Query simultaneously with the network-side port that the Port1 of S2 learns to become S2.Afterwards, S2 goes out the unblock port repeat of IGMP Query from the inbound port that enters S2 except IGMP Query.Because the Port2 port of S2 blocks as broken circling point, thus IGMP Query can't be in looped network Infinite Cyclic, but send to the subscriber's main station port.
It is pointed out that S1, S2 are under the learning state: if there is subscriber's main station to initiate program request by subscriber's main station, S1 and S2 only intercept, and the IGMP Report that subscriber's main station is sent transmits to network-side port, does not carry out " agency " function.
After the requestor election was finished in the network, IGMP Proxy namely switched to the running state, because as long as IGMP Proxy does not send IGMP Query to the router that is elected as requestor, just can not disturb the requestor election of network.In embodiments of the present invention, the IGMP Query quantity of receiving in a setting-up time when certain port on the two-layer network device equals the healthy and strong coefficient of IGMP, and during this period of time other ports on the described two-layer network device are not received GMP Query, just can judge that the requestor election in the three-layer network is finished.
At the running state, two-layer network device agents function, described agent functionality is identical with agent functionality shown in Figure 2, seldom gives unnecessary details.
If under the running state, two-layer network device detects two layers of ring-network topology to be changed, and for example in the state shown in Figure 5, the Port1 port of S2 breaks down, at this moment.S1 and S2 consult to determine new broken circling point again by the looped network agreement, after decontroling the Port2 of port blocked S2 after consulting, S1, S2 remove learning records, comprise study to former network-side port and the former network-side port record of receiving IGMP Query, switch to the learning state, then keep the learning state, relearn, S1 is network-side port with the Port3 study of S1, and S2 is the network-side port of S2 with the Port2 study of S2.
Shown in Fig. 3 B, in another preferred embodiment of the embodiment of the invention, when the topological structure that described two-layer network device perceives three-layer network in running status changed, described step 302 further comprised:
3023, described two-layer network device is the second network side ports with the port study that the second router from three-layer network receives IGMP query message IGMP Query;
3024, described two-layer network device with described IGMP Query message other unblock port repeats outside described second network side ports to the second two-layer network device and subscriber's main station the looped network, be the network-side port of the described second layer network equipment so that described the second two-layer network device will receive the port study of the described IGMP Query of described two-layer network device forwarding, afterwards described IGMP Query transmitted to the 3rd two-layer network device and/or subscriber's main station.
As shown in Figure 6, it is the schematic diagram that the another kind of the embodiment of the invention is implemented state, for the ease of distinguishing, with S2 as the second two-layer network device.If under the running state, two-layer network device detects the three-layer network change in topology, for example among the embodiment shown in Figure 6, except router R1, has increased as backup or the router R2 of equipment as a supplement in the three-layer network.For example S1 is except the Port3 port of S1, and the Port4 of S1 has also received IGMP Query, proves that then the three-layer network topological structure changes.Two-layer network device S1, S2 switch to the learning state, then keep the learning state, relearn network-side port, but do not need to remove the former network-side port of having learnt.For S1, except the Port3 of S1, study is to the Port4 of new network-side port S1 again, and for S2, keeping the Port1 of S2 is network-side port.Afterwards, the election of wait requestor is finished, and switches back the running state afterwards, the agents function.
Special needs to be pointed out is that if under learning state, two-layer network device detects two layers of loop network topology structure and changes, and then keeps learning state, remove the former network-side port of having learnt, identical with embodiment shown in Figure 5, therefore seldom give unnecessary details.
If under learning state, two-layer network device detects the three-layer network topological structure and changes, and then keeps learning state, does not need to remove the former network-side port of having learnt, and is identical with embodiment shown in Figure 6, therefore seldom gives unnecessary details.
As shown in Figure 7, the embodiment of the invention also provides a kind of two-layer network device, and described two-layer network device 700 can be switch, and described two-layer network device 700 comprises:
The first state switch unit 701 when changing for the topological structure that perceives two layers of looped network or three-layer network in running status, switches to learning state from running status;
Port determining unit 702 under described learning state, is determined the network-side port of described two-layer network device;
The second state switch unit 703 is used for switching to running status from learning state, the agents function after the network-side port of determining described two-layer network device.
Described port determining unit 702 is the first network side ports with the port study that the first router from three-layer network receives IGMP query message IGMP Query; Described IGMPQuery other unblock port repeats outside described first network side ports to the second two-layer network device and subscriber's main station the looped network, so that will receiving the port study of the described IGMP Query of described two-layer network device forwarding, described the second two-layer network device are the network-side port of the described second layer network equipment.
The port study that described port determining unit 702 also receives the second router from three-layer network IGMP query message IGMP Query is the second network side ports; Described IGMPQuery other unblock port repeats outside described second network side ports to the second two-layer network device and subscriber's main station the looped network, so that will receiving the port study of the described IGMP Query message of described two-layer network device forwarding, described the second two-layer network device are the network-side port of the described second layer network equipment.
When the topological structure that described two-layer network device perceives two layers of looped network in running status changes, by the first state switch unit 701 after running status switches to learning state, determine before the network-side port of described two-layer network device the former network-side port that described port determining unit 702 is removed in the described two-layer network device.
Described the second state switch unit 703 also judges whether finish the requestor election in the described three-layer network, after the requestor election is finished in described three-layer network, switches to running status from learning state, the agents function.
The two-layer network device that the embodiment of the invention provides can also comprise and also comprises the message repeating unit, this message repeating unit is under described running status, to transmit to other network-side port from the query message that the first network side ports receives, to keep the requestor state that elects in the described three-layer network, described first network side ports receives the query message of the router transmission that is elected as requestor in the described three-layer network.
Fig. 8 is the schematic diagram of embodiment of the invention management control system, and as shown in the figure, present embodiment comprises network interface 81, processor 82 and memory 83.System bus 84 is used for interconnection network interface 81, processor 82 and memory 83.
Memory 83 can be permanent memory, and for example hard disk drive and flash memory have software module and device driver in the memory 83.Software module can be carried out the various functional modules of said method of the present invention; Device driver can be network and interface drive program.
When starting, these component softwares are loaded in the memory 83, are then accessed and carry out method shown in Figure 3 by processor 82:
When the topological structure that perceives two layers of looped network or three-layer network in running status changes, switch to learning state from running status;
Under described learning state, determine the network-side port of two-layer network device in described two layers of looped network;
In determining described two layers of looped network, after the network-side port of two-layer network device, switch to running status from learning state, the agents function.
The professional should further recognize, unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein, can realize with electronic hardware, computer software or the combination of the two, for the interchangeability of hardware and software clearly is described, composition and the step of each example described in general manner according to function in the above description.These functions are carried out with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.The professional and technical personnel can specifically should be used for realizing described function with distinct methods to each, but this realization should not thought and exceeds scope of the present invention.
The method of describing in conjunction with embodiment disclosed herein or the step of algorithm can use the software module of hardware, processor execution, and perhaps the combination of the two is implemented.Software module can place the storage medium of any other form known in random asccess memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or the technical field.
Above-described embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is the specific embodiment of the present invention; the protection range that is not intended to limit the present invention; within the spirit and principles in the present invention all, any modification of making, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (17)

1. two layers of looped network Proxy Method is characterized in that, are applied in two layers of looped network, and described method comprises:
When the topological structure that the two-layer network device in the described looped network perceives two layers of looped network or three-layer network in running status changes, switch to learning state from running status;
Described two-layer network device is determined the network-side port of described two-layer network device under described learning state;
After the network-side port of determining described two-layer network device, described two-layer network device switches to running status from learning state, the agents function.
2. the method for claim 1 is characterized in that, and is described under described learning state, determines that the network-side port of described two-layer network device comprises:
Described two-layer network device is the first network side ports with the port study that the first router from three-layer network receives IGMP query message IGMP Query;
Described two-layer network device to the second two-layer network device and subscriber's main station the looped network, is the network-side port of the described second layer network equipment so that described the second two-layer network device will receive the port study of the described IGMP Query of described two-layer network device forwarding with described IGMP Query other unblock port repeats outside described first network side ports.
3. method as claimed in claim 2, it is characterized in that, when the topological structure that described two-layer network device perceives three-layer network in running status changes, described under described learning state, determine the network-side port of two-layer network device in described two layers of looped network, further comprise:
Described two-layer network device is the second network side ports with the port study that the second router from three-layer network receives IGMP query message IGMP Query;
Described two-layer network device to the second two-layer network device and subscriber's main station the looped network, is the network-side port of the described second layer network equipment so that described the second two-layer network device will receive the port study of the described IGMP Query message of described two-layer network device forwarding with described IGMP Query other unblock port repeats outside described second network side ports.
4. method as claimed in claim 2, it is characterized in that, when the topological structure that described two-layer network device perceives two layers of looped network in running status changes, after running status switches to learning state, determine also to comprise before the network-side port of described two-layer network device:
Remove the former network-side port in the described two-layer network device.
5. such as each described method of claim 2-4, it is characterized in that, also comprise:
Under described running status, described two-layer network device will be transmitted to other network-side port from the query message that the first network side ports receives, and described first network side ports receives the query message of the router transmission that is elected as requestor in the described three-layer network.
6. such as each described method of claim 1-5, it is characterized in that, when described two-layer network device is learnt new network-side port under running status, judge that the topological structure of described three-layer network changes.
7. such as each described method of claim 1-5, it is characterized in that whether described two-layer network device changes by the topological structure of the described two layers of looped network of looped network protocol detection.
8. such as each described method of claim 1-4, it is characterized in that, under described learning state, if after described two-layer network device receives the internet set managerial protocol report message IGMP Report of subscriber's main station transmission, described IGMP Report is transmitted to described network-side port.
9. such as the described method of any one among the claim 1-8, it is characterized in that, described under described learning state, determine also to comprise after the network-side port of described two-layer network device:
Judge whether finish the requestor election in the described three-layer network, after the requestor election is finished in described three-layer network, switch to running status from learning state, the agents function.
10. such as the described method of any one among the claim 1-8, it is characterized in that, in described learning state, if perceiving described double layer network topological structure, described two-layer network device changes, then remove the former network-side port that described two-layer network device is learnt.
11. such as the described method of any one among the claim 1-8, it is characterized in that, in described learning state, if perceiving described three-layer network topological structure, described two-layer network device changes, then keep learning state.
12. a two-layer network device is characterized in that, comprising:
The first state switch unit when changing for the topological structure that perceives two layers of looped network or three-layer network in running status, switches to learning state from running status;
The port determining unit under described learning state, is determined the network-side port of described two-layer network device;
The second state switch unit is used for switching to running status from learning state, the agents function after the network-side port of determining described two-layer network device.
13. two-layer network device as claimed in claim 12 is characterized in that, described port determining unit specifically is used for:
The port study that the first router from three-layer network is received IGMP query message IGMP Query is the first network side ports;
Described IGMP Query other unblock port repeats outside described first network side ports to the second two-layer network device and subscriber's main station the looped network, so that will receiving the port study of the described IGMP Query of described two-layer network device forwarding, described the second two-layer network device are the network-side port of the described second layer network equipment.
14. two-layer network device as claimed in claim 12 is characterized in that, described port determining unit specifically is used for:
The port study that the second router from three-layer network is received IGMP query message IGMP Query is the second network side ports;
Described IGMP Query other unblock port repeats outside described second network side ports to the second two-layer network device and subscriber's main station the looped network, so that will receiving the port study of the described IGMP Query message of described two-layer network device forwarding, described the second two-layer network device are the network-side port of the described second layer network equipment.
15. two-layer network device as claimed in claim 12, it is characterized in that, when the topological structure that described two-layer network device perceives two layers of looped network in running status changes, by described the first state switch unit after running status switches to learning state, determine before the network-side port of described two-layer network device that described port determining unit also is used for:
Remove the former network-side port in the described two-layer network device.
16. such as each described two-layer network device of claim 12-15, it is characterized in that, also comprise the message repeating unit, be used for:
Under described running status, will transmit to other network-side port from the query message that the first network side ports receives, described first network side ports receives the query message of the router transmission that is elected as requestor in the described three-layer network.
17., it is characterized in that described the second state switch unit also is used for such as the described two-layer network device of any one among the claim 12-15:
Judge whether finish the requestor election in the described three-layer network, after the requestor election is finished in described three-layer network, switch to running status from learning state, the agents function.
CN201210478769.5A 2012-11-22 2012-11-22 Two layers of looped network Proxy Method and equipment Active CN102938737B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210478769.5A CN102938737B (en) 2012-11-22 2012-11-22 Two layers of looped network Proxy Method and equipment
PCT/CN2013/074117 WO2014079193A1 (en) 2012-11-22 2013-04-12 Layer-2 ring network proxy method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210478769.5A CN102938737B (en) 2012-11-22 2012-11-22 Two layers of looped network Proxy Method and equipment

Publications (2)

Publication Number Publication Date
CN102938737A true CN102938737A (en) 2013-02-20
CN102938737B CN102938737B (en) 2016-09-14

Family

ID=47697607

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210478769.5A Active CN102938737B (en) 2012-11-22 2012-11-22 Two layers of looped network Proxy Method and equipment

Country Status (2)

Country Link
CN (1) CN102938737B (en)
WO (1) WO2014079193A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014079193A1 (en) * 2012-11-22 2014-05-30 华为技术有限公司 Layer-2 ring network proxy method and equipment
CN107919972A (en) * 2016-10-09 2018-04-17 中兴通讯股份有限公司 The loop system ownership acquisition methods and device of a kind of physical port
CN114760207A (en) * 2022-05-05 2022-07-15 烽火通信科技股份有限公司 Ring network damage method and system of Ethernet

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988464A (en) * 2006-11-23 2007-06-27 华为技术有限公司 Method and device for automatically identifying multicast agent device interface types
US20110249551A1 (en) * 2010-04-13 2011-10-13 Calix, Inc. Virtual snooping bridge in computer networks
CN102223286A (en) * 2010-04-16 2011-10-19 华为技术有限公司 Method, exchange equipment and system for realizing multicast forwarding

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102938737B (en) * 2012-11-22 2016-09-14 华为技术有限公司 Two layers of looped network Proxy Method and equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988464A (en) * 2006-11-23 2007-06-27 华为技术有限公司 Method and device for automatically identifying multicast agent device interface types
US20110249551A1 (en) * 2010-04-13 2011-10-13 Calix, Inc. Virtual snooping bridge in computer networks
CN102223286A (en) * 2010-04-16 2011-10-19 华为技术有限公司 Method, exchange equipment and system for realizing multicast forwarding

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014079193A1 (en) * 2012-11-22 2014-05-30 华为技术有限公司 Layer-2 ring network proxy method and equipment
CN107919972A (en) * 2016-10-09 2018-04-17 中兴通讯股份有限公司 The loop system ownership acquisition methods and device of a kind of physical port
CN114760207A (en) * 2022-05-05 2022-07-15 烽火通信科技股份有限公司 Ring network damage method and system of Ethernet

Also Published As

Publication number Publication date
WO2014079193A1 (en) 2014-05-30
CN102938737B (en) 2016-09-14

Similar Documents

Publication Publication Date Title
CN112615818B (en) SDN-based DDOS attack protection method, device and system
EP1919138B1 (en) A method for implementing backup of the uplink
CN102265555B (en) Conversion method between an main communicational equipment and a spare communicational equipment, the communicational equipments and a service request equipment
EP2555476A1 (en) Method, system and device for protecting multicast in communication network
US9407538B2 (en) Ring network failure switching method and apparatus
US20090213855A1 (en) Method and switch for implementing internet group management protocol snooping
CN102257848B (en) Main and secondary apparatuses conversion method betwenn communication equipment, communication equipment and system, and request equipment of system and service
CN103916275A (en) BFD detection device and method
CN102255757B (en) Link switching method and device
CN104283738A (en) Link detecting method and device
CN100574249C (en) virtual router redundancy protocol message transmission method and device
CN102904818A (en) Method and device for updating ARP (Address Resolution Protocol) information table
CN102195857A (en) Network topology structure and node information gathering method
CN101854283B (en) Communication method and equipment of RPR (Resilient Packet Ring) looped network
CN101197733A (en) Automatic detection method and device for network connectivity
CN103873333B (en) Ring network three-layer convergence method and device
CN102694664B (en) Multicast method and multicast equipment
CN102137009A (en) Method, system and equipment for processing Dual-layer service in network
CN101072154A (en) Loop Ethernet switching method
EP2618523B1 (en) Method, network device and system for ethernet ring protection switching
CN102265556B (en) Conversion method between an main communicational equipment and a spare communicational equipment, the communicational equipments and a service request equipment
CN104243334A (en) Method and equipment for preventing link congestion
CN102938737A (en) Layer-2 ring network proxy method and equipment
CN103220189A (en) Multi-active detection (MAD) backup method and equipment
CN112995002B (en) Switch ring network design method, switch and storage medium

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