CN106452862A - Method and device for determining loop network - Google Patents

Method and device for determining loop network Download PDF

Info

Publication number
CN106452862A
CN106452862A CN201610868475.1A CN201610868475A CN106452862A CN 106452862 A CN106452862 A CN 106452862A CN 201610868475 A CN201610868475 A CN 201610868475A CN 106452862 A CN106452862 A CN 106452862A
Authority
CN
China
Prior art keywords
equipment
ring
message
port
perceives
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.)
Pending
Application number
CN201610868475.1A
Other languages
Chinese (zh)
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.)
Kyland Technology Co Ltd
Original Assignee
Kyland Technology 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 Kyland Technology Co Ltd filed Critical Kyland Technology Co Ltd
Priority to CN201610868475.1A priority Critical patent/CN106452862A/en
Publication of CN106452862A publication Critical patent/CN106452862A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a method and a device for determining a loop network. The method comprises the following steps that first equipment respectively sends a first loop sensing message through ports of the first equipment after the first equipment receives a loop network detection instruction, wherein the first loop sensing message carries an equipment identifier of the first equipment; and if the first equipment receives the first loop sensing message within a preset time through a first port of the first equipment, the first equipment determines a loop network path corresponding to the first port according to the equipment identifiers of the equipment in the first loop sensing message. According to the method and the device for determining the loop network, which are provided by the embodiments of the invention, the whole loop network topology is automatically determined through sensing the loop sensing message, and the manual search and the manual configuration of various nodes of the loop network are not needed, so that the working efficiency and the accuracy are improved.

Description

A kind of method and device determining loop network
Technical field
The present invention relates to communication technical field, more particularly, to a kind of method and device determining loop network.
Background technology
Ethernet, such as the Internet, enterprise network, campus network, have been lived with people inseparable.With Ethernet in industry The extensive application of control field, in order to improve the reliability of EPA, lot of domestic and foreign research institution is in network redundancy, appearance Wrong aspect has done substantial amounts of work.
Ethernet ring network is simplest network redundancy topological structure.In a looped network, will be every by a continuous ring Individual network node links together, and any one network node all only has two adjacent nodes.Typically by a switch Serve as Redundancy Manager, during normal condition, join one of loop network port of machine by blocking Redundancy Management, make whole Loop network framework becomes a line style network, thus avoiding the generation of looped network storm;When detecting, breakpoint occurs in network Or during fault, the ring-like port blocking is opened by Redundancy Management exchange opportunity, reconstitutes a line style net from another direction Network continues communication.
However, the redundancy such as existing DRP (Distributed Redundancy Protocol, distributed redundancy protocol) Agreement is all in the upper manual configuration ring network of WEB or CLI (Command Line Interface, Command Line Interface) by artificial Network, the domain including each node and central port, have even needs configuration role.Set in manual configuration loop network and connecting For afterwards, obstruction port is calculated by agreement and ensures not occurring storm in looped network, when topology changes, by falling Change link to realize redundancy feature.
In sum, need manually to determine each node the manual configuration loop network of loop network in prior art, Process of realizing is loaded down with trivial details, efficiency is low, and error prone manual configuration adversely affects to looped network.
Content of the invention
The present invention provides a kind of method and device determining loop network, in order to solve manual configuration annular in prior art The problem that real-time performance process is loaded down with trivial details, efficiency is low.
A kind of method determining loop network of the embodiment of the present invention, including:
First equipment, after receiving looped network detection instruction, sends the first ring respectively by each port of described first equipment Perception message, described first ring perceives the device identification carrying described first equipment in message, and described first ring perception message is used Add the device identification of described second equipment after described first ring perceives message and continue to send in receiving in the second equipment;
Described first equipment receives described first ring sense by the first port of described first equipment in Preset Time Know message, then the corresponding annular of described first port is determined according to the device identification that described first ring perceives each equipment in message Network path.
It is preferred that methods described also includes:
Described first equipment receives the second ring perception message;
Described first equipment determines the device identification whether carrying described first equipment in described second ring perception message, if Do not carry, then perceive, in described second ring, the device identification sequentially increasing described first equipment in message, and send described second Ring perceives message.
It is preferred that methods described also includes:
Described first equipment receives the 3rd ring by second port in described Preset Time and perceives message;
Described first equipment determines in described 3rd ring perception message and carries the device identification of described first equipment and described First ring perceives the device identification phase of each equipment in the device identification of each equipment and described 3rd ring perception message in message With, then the central port that described first equipment determines described first port and described second port is described loop network path, institute Stating loop network path is that described first ring perceives message or described 3rd ring perceives each equipment composition of journal in message Path.
It is preferred that described first equipment determines that described first port and described second port are described ring loop network path Central port after, also include:
Described first equipment, according to the looped network setting instruction receiving, described first port is set up with described second port Cyclization;
Described first equipment sends ring by described central port and sets up message, and described ring is set up message and included described ring network Network path, so that each equipment in described loop network path is set up according to the central port with described loop network route matching Ring.
It is preferred that described looped network detection instruction triggers when equipment initializes or when network topology changes;
Receive each end that the equipment of described looped network detection instruction will stop receiving and dispatching normal data message and enabling described equipment Mouthful.
The embodiment of the present invention also provides a kind of device determining loop network, including:
Transmitting element:For the first equipment after receiving looped network detection instruction, by each port of described first equipment Send the first ring perception message respectively, described first ring perceives and carries the device identification of described first equipment in message, described the One ring perceives message and is used for receiving, in the second equipment, the equipment mark adding described second equipment after described first ring perceives message Know and continue to send;
Receiving unit:Received by the first port of described first equipment in Preset Time for described first equipment Described first ring perception message, then determine described first end according to the device identification that described first ring perceives each equipment in message The corresponding loop network path of mouth.
It is preferred that described receiving unit, it is additionally operable to:
Described first equipment receives the second ring perception message;
Described first equipment determines the device identification whether carrying described first equipment in described second ring perception message, if Do not carry, then perceive, in described second ring, the device identification sequentially increasing described first equipment in message, and send described second Ring perceives message.
It is preferred that described receiving unit, it is additionally operable to:
Described first equipment receives the 3rd ring by second port in described Preset Time and perceives message;
Described first equipment determines in described 3rd ring perception message and carries the device identification of described first equipment and described First ring perceives the device identification phase of each equipment in the device identification of each equipment and described 3rd ring perception message in message With, then the central port that described first equipment determines described first port and described second port is described loop network path, institute Stating loop network path is that described first ring perceives message or described 3rd ring perceives each equipment composition of journal in message Path.
It is preferred that described receiving unit, it is additionally operable to:
Described first equipment, according to the looped network setting instruction receiving, described first port is set up with described second port Cyclization;
Described first equipment sends ring by described central port and sets up message, and described ring is set up message and included described ring network Network path, so that each equipment in described loop network path is set up according to the central port with described loop network route matching Ring.
It is preferred that described looped network detection instruction triggers when equipment initializes or when network topology changes;
Receive each end that the equipment of described looped network detection instruction will stop receiving and dispatching normal data message and enabling described equipment Mouthful.
Embodiments provide a kind of method and device determining loop network, the first equipment is receiving looped network inspection After surveying instruction, the first ring is sent respectively by each port of the first equipment and perceives message, in the first ring perception message, carry first The device identification of equipment;First equipment receives the first ring perception report by the first port of the first equipment in Preset Time Literary composition, then determine first port corresponding loop network path according to the device identification that the first ring perceives each equipment in message.This Inventive embodiments receive looped network detection instruction after, each port of enabled device, sent by each port ring perception message, The mark receiving the equipment increase equipment that ring perceives message continues to forward, till one ring of composition or no recipient, Automatically determine out whole ring-network topology by sending ring perception message it is not necessary to manually search each node and the handss of loop network Dynamic configuration, improves work efficiency and accuracy.
Brief description
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, will make to required in embodiment description below Accompanying drawing briefly introduce it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these accompanying drawings His accompanying drawing.
Fig. 1 is a kind of method flow schematic diagram determining loop network provided in an embodiment of the present invention;
Fig. 2 is a kind of ring-like network structure schematic diagram provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram that the first ring provided in an embodiment of the present invention perceives message;
Fig. 4 is the schematic diagram that ring provided in an embodiment of the present invention sets up message;
Fig. 5 is a kind of apparatus structure schematic diagram determining loop network provided in an embodiment of the present invention.
Specific embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with accompanying drawing the present invention is made into One step ground describes in detail it is clear that described embodiment is only present invention some embodiments, rather than whole enforcement Example.Based on the embodiment in the present invention, those of ordinary skill in the art are obtained under the premise of not making creative work All other embodiment, broadly falls into the scope of protection of the invention.
It should be noted that the equipment of embodiment of the present invention indication is the network equipment that electric (light) signal forwards, including friendship Change planes, router etc..In the embodiment of the present invention, " the first equipment ", " the second equipment " are equipment, and " first " therein and " Two " term has different equipment just to difference.
The embodiment of the present invention provides a kind of method determining loop network, as shown in figure 1, being provided in an embodiment of the present invention Determine the method flow schematic diagram of loop network, including:
Step 101:First equipment, after receiving looped network detection instruction, sends the respectively by each port of the first equipment One ring perception message, the first ring perceives the device identification carrying the first equipment in message.
Specifically, the first ring perception message is used for adding the second equipment after the second equipment receives the first ring perception message Device identification and continue send.
It should be noted that for the generation preventing looped network storm, the equipment receiving looped network detection instruction will stop transmitting-receiving Normal data message simultaneously sends protocol massages, simultaneously each port of enabled device.Normal data message in the embodiment of the present invention It is different from protocol massages, be the general data message of transmission after looped network is set up.
Step 102:First equipment receives the first ring perception report by the first port of the first equipment in Preset Time Literary composition, then determine first port corresponding loop network path according to the device identification that the first ring perceives each equipment in message.
Specifically, every equipment in network topology, after receiving looped network detection instruction, sends the by each port One ring perception message, the first ring perception message carries equipment of itself mark, receives this first perception report in next node equipment Wen Hou, the mark continuing interpolation equipment of itself and continues to send to next node, by that analogy, until returning to message Just send the equipment that the first ring perceives message.Wherein, device identification is the unique mark of each node on ring, for unique Represent a node device, specifically can with the MAC of each node (Media Access Control, media access control or Physical address, hardware address) address is representing, but it is not limited to this.
Further, each port of every equipment in network topology can send the first ring in equipment initial setting up Perception message it is also possible to send the first ring perception message it is also possible to periodically send first when network topology sends change Ring perceives message, and here is not limited.
, the first equipment SW1 sends the first ring perception message from each port and carries setting of SW1 taking the first equipment SW1 as a example Standby mark ID1, the such as first ring perception message content carries { ID1 }, and the second equipment SW2 receives the first ring perception report of SW1 Wen Hou, the device identification ID2 of itself is added in this message, then amended message carries { ID1, ID2 }, and from SW2 Each port continue to send to next node SW3;SW3, SW4 same SW2 of processing mode to message.Finally, ring perception report Literary composition returns to the first port 11 of the first equipment SW1, and the content alteration wherein carrying is { ID1, ID2, ID3, ID4 }, then first set Standby determine that loop network path is SW1SW2SW3SW4.
It should be noted that in order to limit the broadcast on network, and realize partial data isolation, split the network into multiple VLAN (Virtual Local Area Network, VLAN) can meet different networking requirements.Now need to hold Mouth is divided, and different ports belongs to different VLAN groups.
In the case that port divides VLAN, the first ring perception message that each port of the first equipment sends not only carries the The device identification of one equipment, also carries the VLAN tag of each port.Now, the first ring perception message is used for connecing in the second equipment After receiving the first ring perception message, determine that the VLAN tag of described receiving port and the first ring perceive the VLAN tag one in message During cause, add the device identification of the second equipment and continue to send.Additionally, the first equipment passes through the first equipment in Preset Time First port receives the first ring perception message, if the first ring perception message carries VLAN tag, according to the first ring perception report After the device identification of each equipment in literary composition determines first port corresponding loop network path, can also be perceived according to the first ring The VLAN tag that message carries determines the corresponding VLAN of this loop network.
It is assumed that 11 ports of the first equipment SW1 adhere to virtual net VLAN A and virtual net separately taking the first equipment SW1 as a example VLAN B Liang Ge department.Transmission first ring from 11 ports for the first equipment SW1 perceive message carry the device identification ID1 of SW1 with And the VLAN tag of affiliated function, such as { ID1;VLAN A}.The port 21 of the second equipment SW2 receives the first ring sense of SW1 After knowing message, judge whether port 21 has the VLAN department consistent with VLAN A.If it is not, explanation SW1 and SW2 is not virtual at one On the net, thus a loop network can not be constituted, then SW2 directly abandons this message and does not continue to forward.If so, then setting itself Standby mark ID2 is added in this message, and amended message carries { ID1, ID2;VLAN A }, and continue from each port of SW2 Supervention delivers to next node SW3;SW3, SW4 same SW2 of processing mode to message.Finally, ring perception message returns to first and sets The first port 12 of standby SW1, the content alteration wherein carrying is { ID1, ID2, ID3, ID4;VLAN A }, then the first equipment determines Going out loop network path is SW1SW2SW3SW4, and affiliated VLAN department is VLAN A.
Further, the first equipment SW1 receives the second ring perception message, and determines in the second ring perception message whether take With the device identification ID1 of the first equipment SW1, if not carrying, perceiving in message in the second ring and sequentially increasing setting of the first equipment Standby mark ID1, and send the second ring perception message.
For example, the second equipment SW2 sends the second ring perception message { ID2 } from each port, and the first equipment SW1 receives After the second ring perception message of SW2, judge that this message does not carry the device identification ID1 of itself, then by the equipment mark of itself Know ID1 to be added in this message, then amended message carries { ID2, ID1 }, and from each port of SW1 continue to send to Next node.
Further, the first equipment SW1 receives the 3rd ring by second port 12 in Preset Time and perceives message, really Fixed 3rd ring perceives the device identification ID1 carrying the first equipment SW1 in message and the first ring perceives setting of each equipment in message The device identification that standby mark perceives each equipment in message with the 3rd ring is identical, then the first equipment SW1 determines first port 11 He Second port 12 is the central port in loop network path, and loop network path is the first ring perception message or the 3rd ring perception message The path of each equipment composition of middle journal.
For example, the second port 12 of the first equipment SW1 receive the 3rd ring perception message in carry ID1, ID4, ID3, ID2 }, and the first port 11 of SW1 receives in the first ring perception message and carries { ID1, ID2, ID3, ID4 }, due to the 3rd ring sense It is identical with the device identification that the first ring perception message carries to know message, then the first equipment SW1 determines a loop network path For SW1SW2SW3SW4, the central port 11,12 of corresponding SW1;Or SW1SW4SW3SW2, the central port 12,11 of corresponding SW1, two Person takes one.
If additionally, the 3rd port 13 of the first equipment SW1 does not receive the first ring perception message in Preset Time, will 3rd port 13 is defined as no central port, and no central port 13 is then switched to forwarding data mode.Wherein, Preset Time is permissible For the setting multiple of protocol massages transmission time, for example, it can be 1 second~3 seconds.
Behind the loop network path determining the first equipment SW1 and its corresponding central port, can choose whether to configure For ring, can be configured as automatically setting up ring.First equipment SW1 after receiving looped network setting instruction, by first port 11 and the Two-port netwerk 12 sets up cyclization, and sets up message { ID1, ID2, ID3, ID4 } by the first central port 11 transmission ring, and ring sets up message Including loop network path so that each equipment SW2, SW3 and the SW4 in loop network path according to loop network route matching Central port set up ring.
For example, SW2 receive SW1 transmission ring set up message { ID1, ID2, ID3, ID4 }, judge this loop network path Include equipment of itself mark ID2, and search this corresponding port in loop network path itself determining, for example, port 21 He Port 22.SW3, SW4 set up the same SW2 of process of message to ring.
After loop network establishes, other redundancy protocols such as DRP can be associated and carry out looped network state-maintenance.Additionally, In order to ensure the normal operation of looped network, each node on ring needs the state of the link that real-time detection itself connected.
Embodiments provide a kind of method determining loop network, the first equipment is receiving looped network detection instruction Afterwards, the first ring is sent respectively by each port of the first equipment and perceive message, in the first ring perception message, carry the first equipment Device identification;First equipment receives the first ring by the first port of the first equipment in Preset Time and perceives message, then root Determine first port corresponding loop network path according to the device identification that the first ring perceives each equipment in message.The present invention is implemented A kind of method of determination loop network that example provides, automatically determines out whole ring-network topology by sending ring perception message, is not required to Manually to search each node and the manual configuration of loop network, improve work efficiency and accuracy.
With specific embodiment, the method determining loop network provided in an embodiment of the present invention is carried out specifically below Bright, as shown in Fig. 2 being a kind of ring-like network structure schematic diagram provided in an embodiment of the present invention.Wherein, node SW1, SW2, SW3, SW4 is cascaded and constitutes a ring, and SW1, SW5, SW6, SW7 are cascaded and constitute another ring.Below for equipment SW1 The method of embodiment of the present invention annular network really is described in detail.
In equipment initial setting up, enable each port of each equipment, taking SW1 as a example, SW1 initially can from port 11,12, 13rd, 14,15 mouthfuls send the first ring perception message respectively, and the first ring perception message only carries protocol massages and do not carry data message, Message structure can be consistent with the message structure of BPDU (Bridge Protocol Data Unit, BPDU), I.e. destination address is to retain multicast, and content field is self-defined.First ring perceives the unique mark of message Portable device, such as equipment MAC Address or setting other specification.
As shown in figure 3, perceive the schematic diagram of message for the first ring provided in an embodiment of the present invention.Wherein, for the purpose of 301 MAC Address, retains MAC Address, as set form 0180-C200-0000 using BPDU;302 is source MAC, represents end The MAC Address of mouth, i.e. 00-00-00-01-00-01;303 is IEEE802.1Q (Virtual Bridged Local Area Networks, VLAN) agreement, as set form 81-00;304 is 802.1Q VLAN tag, as 00-01;305 Perceive message identification for the first ring, that is, 08-00 is it is also possible to be customized for other parameters.306 is device identification, is exemplified as herein Device mac address 02-02-02-02-02-02.
After port 11 sends the first ring perception message, through next node SW2, then add the device address of SW2, then The device address of SW3 can be added through next node SW3, the like.Finally, the first ring that 11 ports of SW1 send out Perception message, is received by 12 ports of SW1, and path is SW1SW2SW3SW4 on the way.In the same manner, 12 ports of SW1 send out Message, is received by 11 ports of SW1, and path is SW4SW3SW2SW1 on the way.By route matching, determine port 11 and port 12 is the central port of same ring, and the mapping relations of storage ring networking footpath SW1SW2SW3SW4 and central port 11,12.Equally Ground, SW2, SW3, SW4 also can this storage ring networking footpath and corresponding central port mapping relations.For example, for SW2, then storage ring Networking footpath SW1SW2SW3SW4 and the mapping relations of central port 21,22.
Additionally, for SW1 port 13 receive first ring perceive message in device identification differ with port 11,12 Sample, but as the first ring receiving with port 14 perceives the device identification in message.Similarly, SW1 storage ring networking footpath SW1SW5SW6SW7 and the mapping relations of central port 13,14.
For the port 15 of SW1, do not receive the first ring perception message within the 3 second time of Preset Time, can be by port 15 It is defined as no central port, then port 15 state is switched to forwarding.
After determining ring-network topology, SW1 equipment can provide whether intelligent selection arranges cyclization by 11,12 ports, if It is chosen as being that then equipment SW1 sends ring and sets up message, ring is set up message and guaranteed replacement looped network path SW1SW2SW3SW4, message structure Can be consistent with the message structure of BPDU (Bridge Protocol Data Unit, BPDU), i.e. destination Location is to retain multicast, and content field is self-defined.
As shown in figure 4, set up the schematic diagram of message for the first ring provided in an embodiment of the present invention.Wherein, for the purpose of 401 MAC Address, retains MAC Address, as set form 0180-C200-0000 using BPDU;402 is source MAC, represents end The MAC Address of mouth, i.e. 00-00-00-01-00-01;403 is IEEE802.1Q agreement, as set form 81-00;404 are 802.1Q VLAN tag, as 00-01;405 is the first ring perception message identification, and that is, 09-00 is it is also possible to be customized for other Parameter.406 is device identification, is exemplified as device mac address 02-02-02-02-02-02 herein.
Equipment SW2-SW4 receives ring and sets up message, the mapping relations of storage ring networking footpath and central port according to storage, all Dynamically set up the ring of path SW1SW2SW3SW4, central port is port corresponding with this routing information.As with port 11 and held Mouth 12, port 21 are respectively central port and set up with port 42 with port 32, port 41 with port 22, port 31 and be connected, and form net Network loop SW1SW2SW3SW4.Network loop SW1SW5SW6SW7 sets up process in the same manner, will not be described here.
After loop network establishes, other redundancy protocols such as DRP can be associated and carry out looped network state-maintenance.Additionally, In order to ensure the normal operation of looped network, each node on ring needs the state of the link that real-time detection itself connected.
Embodiments provide a kind of method determining loop network, the first equipment is receiving looped network detection instruction Afterwards, the first ring is sent respectively by each port of the first equipment and perceive message, in the first ring perception message, carry the first equipment Device identification;First equipment receives the first ring by the first port of the first equipment in Preset Time and perceives message, then root Determine first port corresponding loop network path according to the device identification that the first ring perceives each equipment in message.The present invention is implemented A kind of method of determination loop network that example provides, automatically determines out whole ring-network topology by sending ring perception message, is not required to Manually to search each node and the manual configuration of loop network, improve work efficiency and accuracy.
Based on same inventive concept, the embodiment of the present invention also provides a kind of device determining loop network.As Fig. 5 institute Show, the embodiment of the present invention also provides a kind of apparatus structure schematic diagram determining loop network, including:
Transmitting element 501:For the first equipment after receiving looped network detection instruction, by each end of described first equipment Mouth sends the first ring perception message respectively, and described first ring perceives the device identification carrying described first equipment in message, described First ring perceives message and is used for receiving, in the second equipment, the equipment adding described second equipment after described first ring perceives message Identify and continue to send;
Receiving unit 502:Connect by the first port of described first equipment in Preset Time for described first equipment Receive described first ring perception message, then determine described the according to the device identification that described first ring perceives each equipment in message Single port corresponding loop network path.
It is preferred that described receiving unit 502, it is additionally operable to:
Described first equipment receives the second ring perception message;
Described first equipment determines the device identification whether carrying described first equipment in described second ring perception message, if Do not carry, then perceive, in described second ring, the device identification sequentially increasing described first equipment in message, and send described second Ring perceives message.
It is preferred that described receiving unit 502, it is additionally operable to:
Described first equipment receives the 3rd ring by second port in described Preset Time and perceives message;
Described first equipment determines in described 3rd ring perception message and carries the device identification of described first equipment and described First ring perceives the device identification phase of each equipment in the device identification of each equipment and described 3rd ring perception message in message With, then the central port that described first equipment determines described first port and described second port is described loop network path, institute Stating loop network path is that described first ring perceives message or described 3rd ring perceives each equipment composition of journal in message Path.
It is preferred that described receiving unit 502, it is additionally operable to:
Described first equipment, according to the looped network setting instruction receiving, described first port is set up with described second port Cyclization;
Described first equipment sends ring by described central port and sets up message, and described ring is set up message and included described ring network Network path, so that each equipment in described loop network path is set up according to the central port with described loop network route matching Ring.
It is preferred that described receiving unit 502, it is additionally operable to:
If the 3rd port of described first equipment does not receive described first ring perception message in Preset Time, by institute State the 3rd port and be defined as no central port.
It is preferred that described looped network detection instruction triggers when equipment initializes or when network topology changes;
Receive each end that the equipment of described looped network detection instruction will stop receiving and dispatching normal data message and enabling described equipment Mouthful.
Embodiments provide a kind of device determining loop network, the first equipment is receiving looped network detection instruction Afterwards, the first ring is sent respectively by each port of the first equipment and perceive message, in the first ring perception message, carry the first equipment Device identification;First equipment receives the first ring by the first port of the first equipment in Preset Time and perceives message, then root Determine first port corresponding loop network path according to the device identification that the first ring perceives each equipment in message.The present invention is implemented Example provide a kind of determine loop network device, by send ring perceive message automatically determine out whole ring-network topology it is not necessary to Artificial each node searching loop network and manual configuration, improve work efficiency and accuracy.
The present invention is the flow process with reference to method according to embodiments of the present invention, equipment (system) and computer program Figure and/or block diagram are describing.It should be understood that can be by each stream in computer program instructions flowchart and/or block diagram Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processor instructing general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device is to produce A raw machine is so that produced for reality by the instruction of computer or the computing device of other programmable data processing device The system of the function of specifying in present one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing device with spy Determine in the computer-readable memory that mode works so that the instruction generation inclusion being stored in this computer-readable memory refers to Make the manufacture of system, this instruction system realize in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or The function of specifying in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that counting On calculation machine or other programmable devices, execution series of operation steps to be to produce computer implemented process, thus in computer or On other programmable devices, the instruction of execution is provided for realizing in one flow process of flow chart or multiple flow process and/or block diagram one The step of the function of specifying in individual square frame or multiple square frame.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then can make other change and modification to these embodiments.So, claims are intended to be construed to including excellent Select embodiment and fall into being had altered and changing of the scope of the invention.
Obviously, those skilled in the art can carry out the various changes and modification essence without deviating from the present invention to the present invention God and scope.So, if these modifications of the present invention and modification belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprise these changes and modification.

Claims (10)

1. a kind of method determining loop network is it is characterised in that include:
First equipment, after receiving looped network detection instruction, sends the first ring perception respectively by each port of described first equipment Message, described first ring perceives the device identification carrying described first equipment in message, and described first ring perception message is used for Second equipment receives and adds the device identification of described second equipment after described first ring perceives message and continue to send;
Described first equipment receives described first ring perception report by the first port of described first equipment in Preset Time Literary composition, then determine the corresponding loop network of described first port according to the device identification that described first ring perceives each equipment in message Path.
2. the method for claim 1 is it is characterised in that methods described also includes:
Described first equipment receives the second ring perception message;
Described first equipment determines the device identification whether carrying described first equipment in described second ring perception message, if not taking Band, then perceive, in described second ring, the device identification sequentially increasing described first equipment in message, and send described second ring sense Know message.
3. the method for claim 1 is it is characterised in that methods described also includes:
Described first equipment receives the 3rd ring by second port in described Preset Time and perceives message;
Described first equipment determines the device identification and described first carrying described first equipment in described 3rd ring perception message The device identification that the device identification of each equipment that ring perceives in message perceives each equipment in message with described 3rd ring is identical, then The central port that described first equipment determines described first port and described second port is described loop network path, described annular Network path is that described first ring perceives message or described 3rd ring perceives the path of each equipment composition of journal in message.
4. method as claimed in claim 3 is it is characterised in that described first equipment determines described first port and described second After port is the central port in described ring loop network path, also include:
Described first equipment, according to the looped network setting instruction receiving, described first port is created as with described second port Ring;
Described first equipment sends ring by described central port and sets up message, and described ring is set up message and included described loop network road Footpath, so that each equipment in described loop network path sets up ring according to the central port with described loop network route matching.
5. the method as described in any one of Claims 1 to 4 is it is characterised in that the detection instruction of described looped network is in equipment initialization When or network topology triggering when changing;
Receive each port that the equipment of described looped network detection instruction will stop receiving and dispatching normal data message and enabling described equipment.
6. a kind of device determining loop network is it is characterised in that include:
Transmitting element:For the first equipment after receiving looped network detection instruction, by each port of described first equipment respectively Send the first ring perception message, described first ring perceives the device identification carrying described first equipment in message, described first ring Perception message is used for receiving the device identification adding described second equipment after described first ring perceives message simultaneously in the second equipment Continue to send;
Receiving unit:Received described in Preset Time by the first port of described first equipment for described first equipment First ring perception message, then determine described first port pair according to the device identification that described first ring perceives each equipment in message The loop network path answered.
7. device as claimed in claim 6, it is characterised in that described receiving unit, is additionally operable to:
Described first equipment receives the second ring perception message;
Described first equipment determines the device identification whether carrying described first equipment in described second ring perception message, if not taking Band, then perceive, in described second ring, the device identification sequentially increasing described first equipment in message, and send described second ring sense Know message.
8. device as claimed in claim 6, it is characterised in that described receiving unit, is additionally operable to:
Described first equipment receives the 3rd ring by second port in described Preset Time and perceives message;
Described first equipment determines the device identification and described first carrying described first equipment in described 3rd ring perception message The device identification that the device identification of each equipment that ring perceives in message perceives each equipment in message with described 3rd ring is identical, then The central port that described first equipment determines described first port and described second port is described loop network path, described annular Network path is that described first ring perceives message or described 3rd ring perceives the path of each equipment composition of journal in message.
9. device as claimed in claim 8, it is characterised in that described receiving unit, is additionally operable to:
Described first equipment, according to the looped network setting instruction receiving, described first port is created as with described second port Ring;
Described first equipment sends ring by described central port and sets up message, and described ring is set up message and included described loop network road Footpath, so that each equipment in described loop network path sets up ring according to the central port with described loop network route matching.
10. the device as described in any one of claim 6~9 is it is characterised in that the detection instruction of described looped network is in equipment initialization When or network topology triggering when changing;
Receive each port that the equipment of described looped network detection instruction will stop receiving and dispatching normal data message and enabling described equipment.
CN201610868475.1A 2016-09-29 2016-09-29 Method and device for determining loop network Pending CN106452862A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610868475.1A CN106452862A (en) 2016-09-29 2016-09-29 Method and device for determining loop network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610868475.1A CN106452862A (en) 2016-09-29 2016-09-29 Method and device for determining loop network

Publications (1)

Publication Number Publication Date
CN106452862A true CN106452862A (en) 2017-02-22

Family

ID=58172754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610868475.1A Pending CN106452862A (en) 2016-09-29 2016-09-29 Method and device for determining loop network

Country Status (1)

Country Link
CN (1) CN106452862A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495322A (en) * 2018-12-25 2019-03-19 华为技术有限公司 Network failure locating method, relevant device and computer storage medium
CN109936484A (en) * 2017-12-15 2019-06-25 中国移动通信集团浙江有限公司 A kind of method and device identifying network structure risk
CN109981329A (en) * 2017-12-28 2019-07-05 华为终端有限公司 Determine the method, equipment and system of network equipment connection relationship
CN111478843A (en) * 2020-04-16 2020-07-31 中电科航空电子有限公司 Airborne network ring network detection method and system
CN112698606A (en) * 2020-12-28 2021-04-23 国网北京市电力公司 Processing method for collected message
CN112737938A (en) * 2020-11-30 2021-04-30 北京东土军悦科技有限公司 DRP switching method, device, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272352A (en) * 2008-05-20 2008-09-24 杭州华三通信技术有限公司 Looped network routing method and looped network node
CN101534226A (en) * 2009-04-14 2009-09-16 杭州华三通信技术有限公司 VLAN-based whole network loop detection method and loop detection equipment
CN101702663A (en) * 2009-11-11 2010-05-05 华为技术有限公司 Method for updating ring network topology information, device and system thereof
CN101710856A (en) * 2009-11-13 2010-05-19 中兴通讯股份有限公司 Method and equipment for detection processing of loopback of aggregation link

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272352A (en) * 2008-05-20 2008-09-24 杭州华三通信技术有限公司 Looped network routing method and looped network node
CN101534226A (en) * 2009-04-14 2009-09-16 杭州华三通信技术有限公司 VLAN-based whole network loop detection method and loop detection equipment
CN101702663A (en) * 2009-11-11 2010-05-05 华为技术有限公司 Method for updating ring network topology information, device and system thereof
CN101710856A (en) * 2009-11-13 2010-05-19 中兴通讯股份有限公司 Method and equipment for detection processing of loopback of aggregation link

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109936484A (en) * 2017-12-15 2019-06-25 中国移动通信集团浙江有限公司 A kind of method and device identifying network structure risk
CN109936484B (en) * 2017-12-15 2020-10-13 中国移动通信集团浙江有限公司 Method and device for identifying network structure risk
CN109981329A (en) * 2017-12-28 2019-07-05 华为终端有限公司 Determine the method, equipment and system of network equipment connection relationship
CN109495322A (en) * 2018-12-25 2019-03-19 华为技术有限公司 Network failure locating method, relevant device and computer storage medium
CN111478843A (en) * 2020-04-16 2020-07-31 中电科航空电子有限公司 Airborne network ring network detection method and system
CN112737938A (en) * 2020-11-30 2021-04-30 北京东土军悦科技有限公司 DRP switching method, device, equipment and medium
CN112737938B (en) * 2020-11-30 2022-09-27 北京东土军悦科技有限公司 DRP switching method, device, equipment and medium
CN112698606A (en) * 2020-12-28 2021-04-23 国网北京市电力公司 Processing method for collected message

Similar Documents

Publication Publication Date Title
CN106452862A (en) Method and device for determining loop network
CN104378296B (en) A kind of message forwarding method and equipment
CN104660508B (en) A kind of message forwarding method and device
CN104980372B (en) Relay system and exchange apparatus
US10263808B2 (en) Deployment of virtual extensible local area network
CN105162704B (en) The method and device of multicast replication in Overlay network
CN111130980B (en) Method and apparatus for implementing a combined virtual private network VPN
CN105490884B (en) A kind of VXLAN tunnel detection method and device
CN103731288A (en) Message forwarding method and device
CN104767680B (en) It route the method and apparatus being switched fast
CN104378297A (en) Message forwarding method and device
CN105991435B (en) For obtaining the method and device of port path
CN105577540B (en) A kind of method for building up of service link, apparatus and system
CN104065571B (en) A kind of broadcasting packet processing method, apparatus and system
CN103139075B (en) A kind of message transmitting method and equipment
WO2015139533A1 (en) Method for network manager to back-calculate hybrid networking services
CN109818858A (en) For realizing the methods, devices and systems of topological relation automatic Mosaic between domain
CN108075969A (en) Message forwarding method and device
CN107968751A (en) A kind of information processing method and device
CN103326940A (en) Method for forwarding message in network and edge device of operator
CN105763439B (en) The interconnected method and device of data center in a kind of multilink transparent internet
CN103457820B (en) The implementation method and device of hierarchical virtual private local area network service
US9215147B2 (en) Flexible and scalable monitoring in a TRILL network
CN103532742A (en) Collocation method of full layer 2 business in IPRAN (Internet Protocol Radio Access Network) complex scene
CN106034071A (en) Data message transmission method and edge routing bridge 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170222