CN102938737B - Two layers of looped network Proxy Method and equipment - Google Patents

Two layers of looped network Proxy Method and equipment Download PDF

Info

Publication number
CN102938737B
CN102938737B CN201210478769.5A CN201210478769A CN102938737B CN 102938737 B CN102938737 B CN 102938737B CN 201210478769 A CN201210478769 A CN 201210478769A CN 102938737 B CN102938737 B CN 102938737B
Authority
CN
China
Prior art keywords
network
layer network
network device
port
layer
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
CN201210478769.5A
Other languages
Chinese (zh)
Other versions
CN102938737A (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

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 present invention relates to a kind of two layers of looped network Proxy Method, be applied to two-layer network device, when two-layer network device changes in the topological structure that running status perceives two layers of looped network or three-layer network, be switched 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, it is switched to running status from learning state, performs agent functionality.The method provided by the embodiment of the present invention, it is possible to achieve realize IGMP proxy agent functionality in two layers of looped network of 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) is mutual The main frame that networking protocol (Internet Protocol, IP) multicast uses at user's network segment is to router Signaling mechanism, by realizing group membership management function at host computer side and router top-cross mutual IGMP message. Subscriber's main station by send internet set managerial protocol report IGMP Report certain channel of message program request, Leave (Leave) message by transmission and leave this channel;Router timing sends the Internet group to main frame Management agreement inquiry IGMP Query message, subscriber's main station, with IGMP Report message response, is safeguarded The existing state of user.
In actual use, a Layer2 switching network is generally set between main frame and router, uses Access and convergence in subscriber's main station.In order to avoid multicast data message floods in double layer network, logical Often affix one's name to IGMP proxy igmp Proxy in Layer 2 switch its upper side.IGMP Proxy, by intercepting IGMP message mutual between user and router on two-layer network device, obtains Know and be connected to group membership's main frame under which port, set up forwarding-table item, then only by the multicast of correspondence group Data are forwarded to these ports, thus avoid group data message broadcast in double layer network.
Prior art IGMP Proxy may be only available for tree network, because IGMP Proxy requires net Network is wanted can strictly distinguish network-side port and user-side port, the otherwise agency of IGMP Proxy The IGMP Query message that behavior may cause IGMP Proxy to send sends from network-side port And processed by upstream router reception, may interfere with the election of igmp querying device in network, trigger net Network fault.
Summary of the invention
The present invention provides a kind of two layers of looped network Proxy Method, to realize in two layers of looped network of non-tree structure Realize IGMP Proxy function.
First aspect present invention provides a kind of two layers of looped network Proxy Method, is applied in two layers of looped network, institute The method of stating includes:
Two-layer network device in described looped network perceives opening up of two layers of looped network or three-layer network in running status Flutter structure when changing, be switched to learning state from running status;
Described two-layer network device, under described learning state, determines the network side of described two-layer network device Port;
After determining the network-side port of described two-layer network device, described two-layer network device is from study State is switched to running status, performs agent functionality.
Alternatively, under described learning state, determine that the network-side port of described two-layer network device includes:
The first router from three-layer network is received internet group management association by described two-layer network device The port study of view query message IGMP Query is first network side ports;
Described two-layer network device is by other from described first network side ports of described IGMP Query The second two-layer network device that non-port blocked is transmitted in looped network and subscriber's main station, in order to described second Two-layer network device will receive the port of the described IGMP Query that described two-layer network device forwards Practise the network-side port for the described second layer network equipment.
Alternatively, the topological structure that described two-layer network device perceives three-layer network in running status occurs During change, described under described learning state, determine the network of two-layer network device in described two layers of looped network Side ports, farther includes:
The second router from three-layer network is received internet group management association by described two-layer network device The port study of view query message IGMP Query is the second network-side port;
Described two-layer network device is by other from described second network-side port of described IGMP Query The second two-layer network device that non-port blocked is transmitted in looped network and subscriber's main station, in order to described second Two-layer network device will receive the end of the described IGMP Query message that described two-layer network device forwards The network-side port that mouth study is the described second layer network equipment.
Alternatively, the topological structure that described two-layer network device perceives two layers of looped network in running status occurs During change, after running status is switched to learning state, determine the network side of described two-layer network device Before port, also include: the former network-side port removing in described two-layer network device
Alternatively, the method for described first aspect also includes: under described running status, described two layers of net The query message received from first network side ports is forwarded by network equipment to other network-side port, described First network side ports receives and is elected as the inquiry report that the router of requestor sends in described three-layer network Literary composition.
Alternatively, when described two-layer network device learns under operation to new network-side port, sentence The topological structure of fixed described three-layer network changes.
Alternatively, described two-layer network device is by the topological structure of two layers of looped network described in looped network protocol detection Whether change.
Alternatively, under described learning state, send out if described two-layer network device receives subscriber's main station After the internet set managerial protocol report message IGMP Report sent, by described IGMP Report to institute State network-side port to forward.
Alternatively, described under described learning state, determine the network-side port of described two-layer network device Afterwards, described method also includes: judge whether complete requestor election in described three-layer network, described After requestor has been elected in three-layer network, it is switched to running status from learning state, performs agent functionality.
Alternatively, in described learning state, if described two-layer network device perceives described two layers of net Network topological structure changes, then remove the former network-side port that described two-layer network device learns.
Alternatively, in described learning state, if described two-layer network device perceives described three-layer network Network topological structure changes, then maintain learning state.
Second aspect present invention provides a kind of two-layer network device, and described two-layer network device includes:
First status toggle unit, for perceiving two layers of looped network or the topology of three-layer network in running status When structure changes, it is switched to learning state from running status;
Port determines unit, under described learning state, determines the network side of described two-layer network device Mouthful;
Second status toggle unit, is used for after determining the network-side port of described two-layer network device, It is switched to running status from learning state, performs agent functionality.
Alternatively, described port determines that unit is specifically for receiving the first router from three-layer network Port to IGMP query message IGMP Query learns as first network side ports;Will Described IGMP Query other non-port blockeds from described first network side ports are transmitted in looped network The second two-layer network device and subscriber's main station, in order to described second two-layer network device will receive institute The port study stating the described IGMP Query that two-layer network device forwards is the described second layer network equipment Network-side port.
Alternatively, described port determine unit specifically for: the second router from three-layer network is connect The port study receiving IGMP query message IGMP Query is the second network-side port; Described IGMP Query other non-port blockeds from described second network-side port are transmitted to looped network In the second two-layer network device and subscriber's main station, in order to described second two-layer network device will receive The port study of the described IGMP Query message that described two-layer network device forwards is described second layer net The network-side port of network equipment.
Alternatively, the topological structure that described two-layer network device perceives two layers of looped network in running status occurs During change, by described first status toggle unit after running status is switched to learning state, determine Before the network-side port of described two-layer network device, described port determines that unit is additionally operable to: remove described Former network-side port in two-layer network device.
Alternatively, described two-layer network device also includes also including message retransmission unit, is used for:
Under described running status, by the query message that receives from first network side ports to other networks Side ports forwards, and described first network side ports receives the road being elected as requestor in described three-layer network The query message sent by device.
Alternatively, described second status toggle unit is additionally operable to:
Judge whether described three-layer network completes requestor election, requestor choosing in described three-layer network After act completes, it is switched to running status from learning state, performs agent functionality.
Two layers of looped network Proxy Method that the embodiment of the present invention provides, by the state demarcation of two-layer network device be Learning state and running status, in running status, if two-layer network device perceives two layers of looped network or three When the topological structure of layer network changes, it is switched to learning state from running status, afterwards in described Under habit state, determine the network-side port of two-layer network device in described two layers of looped network;Determining described two In layer looped network after the network-side port of two-layer network device, it is switched to running status from learning state, holds Row agent functionality, thus accurately determine that the two-layer network device performing IGMP Proxy function accurately determines net Network side ports and subscriber computer side ports, it is to avoid the IGMP Query that IGMP Proxy sends in loop network Message sends from network-side port and is processed by upstream router reception, therefore IGMP in interference network The election of requestor, the problem triggering network failure.
Accompanying drawing explanation
Fig. 1 is multicast forwarding schematic diagram in two-layer network device network;
Fig. 2 is multicast agent schematic diagram in 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 present invention;
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 present invention Flow chart;
The another kind of enforcement of step 302 in two layers of looped network Proxy Method that Fig. 3 B provides for the embodiment of the present invention The flow chart of example;
Fig. 4 is a kind of schematic diagram implementing state of the embodiment of the present invention;
Fig. 5 is the schematic diagram of the another kind of enforcement state of the embodiment of the present invention;
Fig. 6 is the schematic diagram of the another kind of enforcement state of the embodiment of the present invention;
The structural representation of the two-layer network device that Fig. 7 provides for the embodiment of the present invention;
The structural representation of the two-layer network device that Fig. 8 provides for another embodiment of the present invention.
Detailed description of the invention
Below by drawings and Examples, technical scheme is described in further detail.
Fig. 1 is multicast forwarding schematic diagram in two-layer network device network, as seen from Figure 1, works as network In only main frame certain multicast channel of Host1 program request time, two-layer network device dispose IGMP Proxy and When not disposing IGMP Proxy, the forwarding of multicast data message flows to.As seen from Figure 1, double layer network sets When not disposing IGMP Proxy in Bei, owing to multicast data message is broadcasted on two-layer network device, institute Although there is no program request with main frame Host2 but it also may receive multicast data message, but in two layers of looped network set After deploying IGMP proxy, the only main frame of program request just can receive multicast data message.
As in figure 2 it is shown, for subscriber's main station, the two-layer network device deploying IGMP Proxy is played the part of Router role, is responsible for subscriber's main station downstream and sends IGMP Query, and process from subscriber's main station receipts The IGMP Report/Leave arrived, safeguards that multicast forwarding list item is to instruct message to forward.For router, The IGMP Query that two-layer network device termination receives from router, the multicast forward table preserved according to oneself , the subscriber's main station acting on behalf of downstream responds IGMP Report to described router, uses householder when downstream is all After machine all leaves, upstream server sends IGMP Leave.
In an embodiment of the present invention, two-layer network device can be switch or other can dispose The network equipment of IGMP Proxy.Framework shown in Fig. 2 is the double layer network applied in tree network Work framework, and for loop network, be relatively difficult to distinguish network-side port and user-side port.Wherein Network-side port is the port on two-layer network device towards router side, and user-side port is double layer network Towards the port of subscriber's main station on equipment.
As it is shown on figure 3, the embodiment of the present invention provides a kind of two layers of looped network Proxy Method, it is applied to ring network In network, described method includes:
Step 301, two-layer network device perceives the topology knot of two layers of looped network or three-layer network in running status When structure changes, it is switched to learning state from running status;
Specifically, two layers of described loop network topology structure change, including but not limited to: two layers Looped network adds certain port failure in new two-layer network device or two-layer network device block Etc. problem, affect the network-side port towards router side under running status and configure and user oriented side User-side port configures.Reason is, two-layer network device comprises multiple port, when normal use this A little ports should be respectively configured as network-side port and user-side port, but when two layers of ring-network topology are sent out During changing, certain port in two-layer network device can not be it is determined that still use as network-side port Family side ports.Two-layer network device can pass through looped network detection protocol, such as rapid ring protection protocol (Rapid ring protection protocol, RRPP) detects whether the topological structure of two layers of looped network occurs Change.
Described three-layer network topological structure changes, such as router has been increased or decreased in three-layer network, Cause the requestor election state in three-layer network that change occurs, three-layer network is elected as requestor The two-layer network device transmission IGMP Query that one router is responsible in two layers of looped network, works as three-layer network Middle increase or after decreasing router, it is necessary to reselect a router as sending IGMP The requestor of Query.
Requestor election refers in three-layer network, in order to avoid different routers sends looking into of repetition repeatedly Ask message, through the requestor election mechanism within three-layer network, selected only by multiple routers Individual router sends query message as requestor, and remaining router is only by receiving two-layer network device The described query message forwarded is to maintain the state of the requestor elected.Generally, at requestor voting machine In system, requestor determines according to IP address size, maximum or minimum with IP address in three-layer network A router as the requestor in three-layer network.When increasing occurs in the router number in three-layer network It is necessary to re-start requestor election when subtracting.Under normal circumstances, the two-layer network device in two layers of looped network Upper only one of which port is able to receive that IGMP Query, receives when there being two or more ports During IGMP Query, illustrate in three-layer network that requestor election there is a problem, three-layer network increases or Decrease router number.Therefore, whether two-layer network device can be new by having in two-layer network device Port receive query message, judge whether the topological structure in three-layer network there occurs change.
Therefore, in order to avoid user-side port and network-side port are chaotic, two layers be under running status The network equipment, such as switch is when perceiving above-mentioned situation, is switched to study from running running state Learning state, relearns network-side port.
Step 302, under described learning state, determines the network of two-layer network device in described two layers of looped network Side ports;
Specifically, two-layer network device, in learning state, relearns the net in two-layer network device Network side ports, the port namely interacted with the router in three-layer network.
Step 303, in determining described two layers of looped network after the network-side port of two-layer network device, from Habit state is switched to running status, performs agent functionality.
Specifically, after the network-side port of the overall network equipment in two layers of looped network all determines, special It not that after the requestor in three-layer network has been elected, two-layer network device is switched to from learning state Running state, performs agent functionality, and described agent functionality is identical with the agent functionality shown in Fig. 2, Seldom repeat.
By above-described embodiment, the two-layer network device in loop network, perceive two layers in running status When the topological structure of looped network or three-layer network changes, it is switched to learning state from running status, afterwards Under described learning state, determine the network-side port of two-layer network device in described two layers of looped network;Really In fixed described two layers of looped network after the network-side port of two-layer network device, it is switched to run from learning state State, performs agent functionality.. thus accurately determine the double layer network performing IGMP Proxy agent functionality Network-side port on equipment and user-side port, it is to avoid in loop network, perform IGMP Proxy agency The IGMP Query message that the two-layer network device of function sends sends from network-side port and upper The router reception of trip processes, and disturbs the election of igmp querying device in network, triggers network failure Problem.
As shown in Figure 3A, in the preferred implementation of the embodiment of the present invention, described step 302 is further Including:
3021, the first router from three-layer network is received the Internet group by described two-layer network device The port study of management agreement query message IGMP Query is first network side ports;
3022, described two-layer network device by described IGMP Query from described first network side ports The second two-layer network device that other non-port blockeds are transmitted in looped network and subscriber's main station, in order to described Second two-layer network device will receive the end of the described IGMP Query that described two-layer network device forwards The network-side port that mouth study is the described second layer network equipment, afterwards by described IGMP Query to the 3rd Two-layer network device and/or subscriber's main station forward.
As a example by Fig. 4, Fig. 4 is a kind of schematic diagram implementing state of the embodiment of the present invention, loop network In may comprise in two or more two-layer network device, the such as embodiment shown in Fig. 4, two Layer looped network comprises two two-layer network device S1 and S2.A router is only comprised in three-layer network R1.The wherein each self-contained multiple ports of S1 and S2, section ports is for, part mutual with subscriber's main station Port for and looped network in other two-layer network devices interact, section ports for and three-layer network In router interact.By looped network agreement by the Port2 port block of S2, the S2's after obstruction Port2 becomes the broken circling point of looped network.IGMP Proxy is enabled on S1 and S2.
After enabling IGMP Proxy on S1, S2, IGMP Proxy initially enters learning state, This state I GMP Proxy does not perform agent functionality, only carries out monitor function, if the most useful householder Program request initiated by machine, S1 and S2 only intercepts, and the IGMP Report message sent by subscriber's main station is to net Network side ports forwards, and does not performs " agency " function.
After the IGMP Query message that R1 sends arrives S1, S1 is by the inbound port of message, i.e. S1 Port1 study becomes network-side port.After generally two-layer network device determines according to network-side port one section The setting time judges whether the requestor election in three-layer network completes, and therefore its Port1 is being learnt by S1 While network-side port, record this port and receive the time of IGMP Query message, this port is received Time to IGMP Query message elects, as judgement requestor, the initial foundation whether completed.
The Port1 of S1 is learnt as after network-side port by S1, by the IGMP Query that receives from S1 Other non-port blockeds in addition to the inbound port that IGMP Query enters S1 forward.IGMP Query Link along between S1 to S2 is arrived S2.In the same way, the Port1 of S2 is learnt into by S2 For the network-side port of S2, record this port simultaneously and receive the time of IGMP Query.Afterwards, S2 will IGMP Query forwards from the non-port blocked in addition to the inbound port that IGMP Query enters S2.By In the Port2 port of S2 as broken circling point, having blocked, therefore IGMP Query can't be at looped network Middle Infinite Cyclic, but send to subscriber's main station port.
It is pointed out that S1, S2 are under learning state: if having subscriber's main station by with householder Program request initiated by machine, S1 and S2 only intercepts, and the IGMP Report sent by subscriber's main station is to network side Port forwards, and does not performs " agency " function.
After in network, requestor has been elected, IGMP Proxy i.e. switches to running state, because of As long as not sending IGMP Query to the router being elected as requestor for IGMP Proxy, would not The requestor election of interference network.In embodiments of the present invention, exist when certain port on two-layer network device The IGMP Query quantity received in one setting time is equal to IGMP stalwartness coefficient, and when this section Other ports on interior described two-layer network device do not receive GMP Query, it is possible to judge three layers Requestor in network has been elected.
In running state, two-layer network device performs agent functionality, described agent functionality and Fig. 2 institute The agent functionality shown is identical, seldom repeats.
If under running state, two-layer network device detects two layers of ring-network topology change, such as, scheme In state shown in 5, the Port1 port failure of S2, now.S1 and S2 passes through looped network agreement weight New negotiation determines new broken circling point, and after decontroling the Port2 of port blocked S2 after negotiation, S1, S2 remove Learning records, receives the note of IGMP Query including the former network-side port learnt and former network-side port Record, is switched to learning state, then maintains learning state, relearn, and S1 is by S1's Port3 study is network-side port, and the Port2 of S2 is learnt the network-side port for S2 by S2.
As shown in Figure 3 B, in another preferred embodiment of the embodiment of the present invention, described two layers of net Network equipment when the topological structure that running status perceives three-layer network changes, described step 302, enter One step includes:
3023, the second router from three-layer network is received the Internet group by described two-layer network device The port study of management agreement query message IGMP Query is the second network-side port;
3024, described two-layer network device by described IGMP Query message from described second network-side port The second two-layer network device that other outer non-port blockeds are transmitted in looped network and subscriber's main station, in order to Described second two-layer network device will receive the described IGMP Query that described two-layer network device forwards Port study be the network-side port of the described second layer network equipment, afterwards by described IGMP Query to 3rd two-layer network device and/or subscriber's main station forward.
As shown in Figure 6, it is the schematic diagram of another kind of enforcement state of the embodiment of the present invention, for the ease of Distinguish, using S2 as the second two-layer network device.If under running state, two-layer network device Detect in three-layer network change in topology, the such as embodiment shown in Fig. 6, except route in three-layer network Outside device R1, add as backup or as the router R2 of ancillary equipment.Such as S1 is except S1's Outside Port3 port, the Port4 of S1 also have received IGMP Query, then prove that three-layer network topological structure is sent out Changing.Two-layer network device S1, S2 are switched to learning state, then maintain learning state, Relearn network-side port, but be not required to remove the former network-side port learnt.For S1, In addition to the Port3 of S1, study is to the Port4 of new network-side port S1 again, for S2, keeps The Port1 of S2 is network-side port.Afterwards, wait that requestor has been elected, switch back into running afterwards State, performs agent functionality.
Special needs to be pointed out is, if under learning state, two-layer network device detects two layers of looped network Topological structure changes, then maintain learning state, removes the former network-side port learnt, and Embodiment shown in Fig. 5 is identical, the most seldom repeats.
If under learning state, two-layer network device detects that three-layer network topological structure changes, Then maintain learning state, it is not necessary to remove the former network-side port learnt, and the reality shown in Fig. 6 Execute example identical, the most seldom repeat.
As it is shown in fig. 7, the embodiment of the present invention additionally provides a kind of two-layer network device, described double layer network sets Standby 700 can be switch, and described two-layer network device 700 includes:
First status toggle unit 701, for perceiving opening up of two layers of looped network or three-layer network in running status Flutter structure when changing, be switched to learning state from running status;
Port determines unit 702, under described learning state, determines the network side of described two-layer network device Port;
Second status toggle unit 703, for determine described two-layer network device network-side port it After, it is switched to running status from learning state, performs agent functionality.
Described port determines that the first router from three-layer network is received the Internet group pipe by unit 702 The port study of reason agreement query message IGMP Query is first network side ports;By described IGMP Be transmitted in looped network the two or two layer of Query other non-port blockeds from described first network side ports The network equipment and subscriber's main station, in order to described second two-layer network device will receive described double layer network The network side that port study is the described second layer network equipment of the described IGMP Query of device forwards Mouthful.
Described port determines that the second router from three-layer network is also received the Internet group by unit 702 The port study of management agreement query message IGMP Query is the second network-side port;By described IGMP Be transmitted in looped network the two or two layer of Query other non-port blockeds from described second network-side port The network equipment and subscriber's main station, in order to described second two-layer network device will receive described double layer network The network that port study is the described second layer network equipment of the described IGMP Query message of device forwards Side ports.
Described two-layer network device when the topological structure that running status perceives two layers of looped network changes, By the first status toggle unit 701 after running status is switched to learning state, determine described two layers Before the network-side port of the network equipment, described port determines that unit 702 removes described two-layer network device In former network-side port.
Described second status toggle unit 703 also judges whether complete requestor election in described three-layer network, After requestor has been elected in described three-layer network, it is switched to running status from learning state, performs generation Reason function.
The two-layer network device that the embodiment of the present invention provides can also include also including message retransmission unit, should Message retransmission unit under described running status, by the query message that receives from first network side ports to Other network-side port forward, to maintain the requestor state elected in described three-layer network, and described the One network-side port receives and is elected as the inquiry report that the router of requestor sends in described three-layer network Literary composition.
Fig. 8 is the schematic diagram of embodiment of the present invention management control system, as it can be seen, the present embodiment includes Network interface 81, processor 82 and memorizer 83.System bus 84 is used for connecting network interface 81, place Reason device 82 and memorizer 83.
Memorizer 83 can be permanent memory, such as hard disk drive and flash memory, has in memorizer 83 There are software module and device driver.Software module is able to carry out the various functions of said method of the present invention Module;Device driver can be network and interface drive program.
On startup, these component softwares are loaded in memorizer 83, are then accessed by processor 82 And perform the method shown in Fig. 3:
When the topological structure that running status perceives two layers of looped network or three-layer network changes, from operation State is switched to learning state;
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, cut from learning state Change to running status, perform agent functionality.
Professional should further appreciate that, describes in conjunction with the embodiments described herein The unit of each example and algorithm steps, it is possible to come with electronic hardware, computer software or the combination of the two Realize, in order to clearly demonstrate the interchangeability of hardware and software, the most according to function Generally describe composition and the step of each example.These functions are come with hardware or software mode actually Perform, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can be to often Individual specifically should being used for uses different methods to realize described function, but this realization it is not considered that Beyond the scope of this invention.
The method described in conjunction with the embodiments described herein or the step of algorithm can use hardware, process The software module that device performs, or the combination of the two implements.Software module can be placed in random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable In ROM, depositor, hard disk, moveable magnetic disc, CD-ROM or technical field well known to any In the storage medium of other form.
Above-described detailed description of the invention, is carried out the purpose of the present invention, technical scheme and beneficial effect Further describe, be it should be understood that the foregoing is only the present invention detailed description of the invention and , the protection domain being not intended to limit the present invention, all within the spirit and principles in the present invention, done Any modification, equivalent substitution and improvement etc., should be included within the scope of the present invention.

Claims (16)

1. two layers of looped network Proxy Method, it is characterised in that be applied in two layers of looped network, described method Including:
Two-layer network device in described looped network perceives opening up of two layers of looped network or three-layer network in running status Flutter structure when changing, be switched to learning state from running status;
Described two-layer network device, under described learning state, determines the network side of described two-layer network device Port;
After determining the network-side port of described two-layer network device, described two-layer network device is from study State is switched to running status, performs agent functionality;
In described learning state, if described two-layer network device perceives described double layer network topology knot Structure changes, then remove the former network-side port that described two-layer network device learns.
2. the method for claim 1, it is characterised in that described under described learning state, really The network-side port of fixed described two-layer network device includes:
The first router from three-layer network is received internet group management association by described two-layer network device The port study of view query message IGMP Query is first network side ports;
Described two-layer network device is by other from described first network side ports of described IGMP Query The second two-layer network device that non-port blocked is transmitted in looped network and subscriber's main station, in order to described second Two-layer network device will receive the port of the described IGMP Query that described two-layer network device forwards Practise the network-side port for described second two-layer network device.
3. method as claimed in claim 2, it is characterised in that described two-layer network device is running shape State perceives the topological structure of three-layer network when changing, described under described learning state, determines institute State the network-side port of two-layer network device in two layers of looped network, farther include:
The second router from three-layer network is received internet group management association by described two-layer network device The port study of view query message IGMP Query is the second network-side port;
Described two-layer network device is by other from described second network-side port of described IGMP Query The second two-layer network device that non-port blocked is transmitted in looped network and subscriber's main station, in order to described second Two-layer network device will receive the end of the described IGMP Query message that described two-layer network device forwards The network-side port that mouth study is described second two-layer network device.
4. method as claimed in claim 2, it is characterised in that described two-layer network device is running shape State perceives the topological structure of two layers of looped network when changing, after running status is switched to learning state, Before determining the network-side port of described two-layer network device, also include:
Remove the former network-side port in described two-layer network device.
5. the method as described in any one of claim 2-4, it is characterised in that also include:
Under described running status, described two-layer network device is by looking into of receiving from first network side ports Asking message to forward to other network-side port, described first network side ports receives quilt in described three-layer network The query message that the router that election is requestor sends.
6. the method as described in any one of claim 1-4, it is characterised in that described two-layer network device When new network-side port is arrived in study under operation, it is determined that the topological structure of described three-layer network occurs Change.
7. the method as described in any one of claim 1-4, it is characterised in that described two-layer network device Whether changed by the topological structure of two layers of looped network described in looped network protocol detection.
8. the method as described in any one of claim 1-4, it is characterised in that under described learning state, If described two-layer network device receives the internet set managerial protocol report message that subscriber's main station sends After IGMP Report, described IGMP Report is forwarded to described network-side port.
9. the method as described in any one in claim 1-4, it is characterised in that described in described Under habit state, after determining the network-side port of described two-layer network device, also include:
Judge whether described three-layer network completes requestor election, requestor choosing in described three-layer network After act completes, it is switched to running status from learning state, performs agent functionality.
10. the method as described in any one in claim 1-4, it is characterised in that at described study shape In state, if described two-layer network device perceives described three-layer network topological structure and changes, then tie up Hold learning state.
11. 1 kinds of two-layer network devices, it is characterised in that including:
First status toggle unit, for perceiving two layers of looped network or the topology of three-layer network in running status When structure changes, it is switched to learning state from running status;
Port determines unit, under described learning state, determines the network side of described two-layer network device Mouthful;
Second status toggle unit, is used for after determining the network-side port of described two-layer network device, It is switched to running status from learning state, performs agent functionality;
Described port determines unit, is additionally operable in described learning state, if perceiving described two layers of net Network topological structure changes, then remove the former network-side port that study is arrived.
12. two-layer network devices as claimed in claim 11, it is characterised in that described port determines Unit specifically for:
The first router from three-layer network is received IGMP query message IGMP The port study of Query is first network side ports;
Described IGMP Query other non-port blockeds from described first network side ports are transmitted to The second two-layer network device in looped network and subscriber's main station, in order to described second two-layer network device will connect Receive the port study of the described IGMP Query that described two-layer network device forwards for described two or two layer The network-side port of the network equipment.
13. two-layer network devices as claimed in claim 11, it is characterised in that described port determines list Unit specifically for:
The second router from three-layer network is received IGMP query message IGMP The port study of Query is the second network-side port;
Described IGMP Query other non-port blockeds from described second network-side port are transmitted to The second two-layer network device in looped network and subscriber's main station, in order to described second two-layer network device will connect Receive the port study of the described IGMP Query message that described two-layer network device forwards for described second The network-side port of two-layer network device.
14. two-layer network devices as claimed in claim 11, it is characterised in that described double layer network sets Standby when the topological structure that running status perceives two layers of looped network changes, cut by described first state Change unit after running status is switched to learning state, determine the network side of described two-layer network device Before Kou, described port determines that unit is additionally operable to:
Remove the former network-side port in described two-layer network device.
15. two-layer network devices as described in any one of claim 11-14, it is characterised in that also include Message retransmission unit, is used for:
Under described running status, by the query message that receives from first network side ports to other networks Side ports forwards, and described first network side ports receives the road being elected as requestor in described three-layer network The query message sent by device.
16. two-layer network devices as described in any one in claim 11-14, it is characterised in that institute State the second status toggle unit to be additionally operable to:
Judge whether described three-layer network completes requestor election, requestor choosing in described three-layer network After act completes, it is switched to running status from learning state, performs agent functionality.
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 CN102938737A (en) 2013-02-20
CN102938737B true 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)

Families Citing this family (3)

* 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
CN107919972B (en) * 2016-10-09 2022-04-05 中兴通讯股份有限公司 Method and device for acquiring ring system affiliation of physical port
CN114760207A (en) * 2022-05-05 2022-07-15 烽火通信科技股份有限公司 Ring network damage method and system of Ethernet

Citations (2)

* 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
CN102223286A (en) * 2010-04-16 2011-10-19 华为技术有限公司 Method, exchange equipment and system for realizing multicast forwarding

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8345540B2 (en) * 2010-04-13 2013-01-01 Calix, Inc. Virtual snooping bridge in computer networks
CN102938737B (en) * 2012-11-22 2016-09-14 华为技术有限公司 Two layers of looped network Proxy Method and equipment

Patent Citations (2)

* 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
CN102223286A (en) * 2010-04-16 2011-10-19 华为技术有限公司 Method, exchange equipment and system for realizing multicast forwarding

Also Published As

Publication number Publication date
WO2014079193A1 (en) 2014-05-30
CN102938737A (en) 2013-02-20

Similar Documents

Publication Publication Date Title
EP2560325B1 (en) Method, system and apparatus for managing addresses in ethernet ring network
EP2129049B1 (en) A protecting method and device for ethernet tree service
US8539088B2 (en) Session monitoring method, apparatus, and system based on multicast technologies
CN104009926B (en) Multicast method in EVI network and edge device ED
US10931545B2 (en) Policy-based sampling of network flows at a network visibility node
EP2555476A1 (en) Method, system and device for protecting multicast in communication network
EP2738978A1 (en) Ring network failover method and apparatus
CN101695036B (en) Method and device for detecting IRF links
CN104243334B (en) The method and apparatus for preventing link congestion
EP3783837B1 (en) Service fault locating method and apparatus
JP5862445B2 (en) Communication device
CN101425942A (en) Method, apparatus and system for bidirectional forwarding detection implementation
CN103873333B (en) Ring network three-layer convergence method and device
CN104852855B (en) Jamming control method, device and equipment
CN102938737B (en) Two layers of looped network Proxy Method and equipment
CN106341249A (en) Redundant port switching method and device
Alasadi et al. SSED: Servers under software-defined network architectures to eliminate discovery messages
CN105897580B (en) A kind of unrelated forwarding network quick fault testing of agreement and traffic protection switching method
CN104883337B (en) The implementation method and device of looped network user security
EP2858302A1 (en) Connectivity check method of service stream link, related apparatus and system
US8649285B2 (en) Tracking packet sequence numbers
CN104767720A (en) OpenFlow message tracking and filtering method in software defined network
EP3258654B1 (en) Method and system for reducing pim protocol dr change
Popovic Redundancy in communication networks for smart grids
CN101931560A (en) Method and device for acquiring connection relationship between network 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