CN111555916B - Method, device, storage medium and equipment for deploying looped network - Google Patents

Method, device, storage medium and equipment for deploying looped network Download PDF

Info

Publication number
CN111555916B
CN111555916B CN202010338842.3A CN202010338842A CN111555916B CN 111555916 B CN111555916 B CN 111555916B CN 202010338842 A CN202010338842 A CN 202010338842A CN 111555916 B CN111555916 B CN 111555916B
Authority
CN
China
Prior art keywords
port
ring
frrp
vlan
equipment
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
CN202010338842.3A
Other languages
Chinese (zh)
Other versions
CN111555916A (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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN202010338842.3A priority Critical patent/CN111555916B/en
Publication of CN111555916A publication Critical patent/CN111555916A/en
Application granted granted Critical
Publication of CN111555916B publication Critical patent/CN111555916B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • 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/0889Techniques to speed-up the configuration process
    • 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/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • 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/0893Assignment of logical groups to network elements

Abstract

The present specification provides a method, an apparatus, a storage medium and a device for deploying a ring network, in the method, a rate of each port on a device for constructing the ring network is obtained, a port with the maximum rate and a port with the rate arranged at the second position are respectively selected as a main port and an auxiliary port, the main port and the auxiliary port are configured to be in a Trunk mode, so as to support all service VLANs to be put through, thereby avoiding misoperation that constructors select unsuitable port types during configuration; after the main port and the auxiliary port are configured, a first default value and a second default value are issued and are respectively used for configuring the ring ID and the domain ID of the equipment, and through issuing a uniform default value, the ring ID and the domain ID of the equipment on the same ring both meet the protocol requirements, thereby preventing wrong configuration caused by too many equipment by constructors, and further improving the working efficiency of ring network deployment.

Description

Method, device, storage medium and equipment for deploying looped network
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a storage medium, and a device for deploying a ring network.
Background
With the rapid development of industrial ethernet technology, ethernet gradually replaces the conventional fieldbus technology to become the mainstream transmission technology of the industrial network, and provides flexible, high-speed and standardized transmission service. In a large-scale and multi-service network environment, most of the networks are deployed in a ring topology. The ring topology is characterized in that the ring topology is composed of network nodes which are connected into a closed loop along a fixed direction, each node is connected with the nodes which are adjacent to the left and the right of the node, and the ring topology is a point-to-point closed structure.
When an ethernet switch is used to construct the ring topology, the ring topology is called an ethernet ring network, also called a ring network. FRRP (Fast Ring Recovery Protocol) is a link layer Protocol specially applied to a Ring network, and when a link or a device on the Ring network fails, it can be quickly switched to a backup link, thereby ensuring quick Recovery of a service. The FRRP protocol supports VLAN division in a ring network, transmits ring network control information by using a special control channel VLAN, realizes isolation of control information and service data, and has higher technical requirements on port type configuration and FRRP ring configuration. However, in the deployment of the industrial-level ring network based on the FRRP protocol, dozens of devices and dozens of devices form a ring, which requires more complicated configuration steps, and thus, the network is easy to operate by mistake, the working efficiency is low, and even a network storm may be caused, which may cause great damage to the whole network.
Disclosure of Invention
To overcome the problems in the related art, the present specification provides a method, an apparatus, a storage medium, and a device for deploying a ring network.
According to a first aspect of embodiments of the present specification, there is provided a method for deploying a ring network, an FRRP ring is composed of a plurality of devices, and the devices include a device designated as a master node and other devices serving as forwarding nodes; the VLAN of the ring network FRRP ring comprises a service VLAN and a control VLAN, the service VLAN is used for transmitting data messages, the ID of the service VLAN is configured to be a first interval, the control VLAN is used for transmitting protocol messages, and the ID of the control VLAN is configured to be a second interval; the first interval and the second interval do not have an intersection; the method comprises the following steps:
acquiring the rate of each port on any equipment;
determining a port with the maximum rate on the device as a main port and a port with the rate arranged at a second position as an auxiliary port, and configuring the main port and the auxiliary port as Trunk modes to support the service VLAN to transmit data messages; the master port of the master node is configured to transmit a protocol message to a secondary port, and the secondary port is configured to block a data message after receiving the protocol message;
and issuing a first default value and a second default value to the equipment, wherein the first default value is used for configuring a ring ID of the equipment, the ring ID is the identifier of the FRRP ring, the second default value is used for configuring the domain ID of the equipment, and the domain ID is the identifier of the FRRP domain to which the FRRP ring belongs.
In some examples, the obtaining the rate of each port on any device comprises:
and monitoring whether each port on any equipment is occupied, if so, skipping the port when acquiring the speed of each port on the equipment.
In some examples, the protocol message includes a probe protocol message, and the probe protocol message is used for checking a link state;
the primary port of the primary node is configured to periodically send the probe protocol packet to the secondary port, and the secondary port is configured to block the data packet when the link status is detected to be normal, and transmit the data packet when the link status is detected to be faulty.
In some examples, the first interval has a value ranging from 1 to 4092, and the second interval has a value ranging from 4093 to 4094.
According to a second aspect of embodiments of the present specification, there is provided an apparatus for deploying a ring network, an FRRP ring is composed of a plurality of devices, and the devices include a device designated as a master node and other devices serving as forwarding nodes; the VLAN of the FRRP ring comprises a service VLAN and a control VLAN, the service VLAN is used for transmitting data messages, the ID of the service VLAN is configured to be a first interval, the control VLAN is used for transmitting protocol messages, and the ID of the control VLAN is configured to be a second interval; the first interval and the second interval do not have an intersection; the device comprises:
the acquisition module is used for acquiring the rate of each port on any equipment;
a configuration module, configured to determine a port with the largest rate on the device as a primary port and a port with a second-order rate as a secondary port, and configure the primary port and the secondary port in a Trunk mode to support the service VLAN; the master port of the master node is configured to transmit a protocol message to a secondary port, and the secondary port is configured to block a data message after receiving the protocol message;
the system comprises an issuing module and a control module, wherein the issuing module is used for issuing a first default value and a second default value to the equipment, the first default value is used for configuring the ring ID of the equipment, the ring ID is the identifier of the FRRP ring, the second default value is used for configuring the domain ID of the equipment, and the domain ID is the identifier of the FRRP domain to which the FRRP ring belongs.
According to a third aspect of embodiments of the present specification, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs any one of the methods of the embodiments of the specification.
According to a fourth aspect of embodiments herein, there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements any of the methods in the embodiments herein when executing the program.
The technical scheme provided by the embodiment of the specification can have the following beneficial effects:
in the embodiment of the specification, a method, a device, a storage medium and equipment for deploying a ring network are disclosed, wherein in the method, the speed of each port on the equipment for establishing the ring network is obtained, the port with the maximum speed and the port with the speed arranged at the second position are respectively selected as a main port and an auxiliary port, and the main port and the auxiliary port are configured to be in a Trunk mode so as to support the communication of all service VLANs, thereby avoiding misoperation that constructors select unsuitable port types during configuration; after the main port and the auxiliary port are configured, a first default value and a second default value are issued and are respectively used for configuring the ring ID and the domain ID of the equipment, and through issuing a uniform default value, the ring ID and the domain ID of the equipment on the same ring both meet the protocol requirements, thereby preventing wrong configuration caused by too many equipment by constructors, and further improving the working efficiency of ring network deployment.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the specification.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with this specification and, together with the description, serve to explain the principles of the specification.
Fig. 1 is a flow chart illustrating a method of deploying a ring network according to an exemplary embodiment of the present description;
FIG. 2 is a schematic diagram of a ring network topology shown in accordance with an exemplary embodiment of the present description;
fig. 3 is a hardware structure diagram of a computer device in which a device for deploying a ring network is located according to an embodiment of the present specification;
fig. 4 is a block diagram illustrating an apparatus for deploying a ring network according to an exemplary embodiment of the present specification.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the specification, as detailed in the claims that follow.
The terminology used in the description herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the description. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of the present specification. The word "if" as used herein may be interpreted as "at" \8230; "or" when 8230; \8230; "or" in response to a determination ", depending on the context.
An ethernet ring network, also called a ring network, is a ring topology composed of a group of ethernet nodes, each node is connected to two other nodes through a ring port, and all nodes can directly or indirectly communicate with each other. In network planning and practical networking applications, a ring network is mostly used to provide high reliability, and in order to prevent a broadcast storm from occurring in the ring network, a suitable Protocol is usually used to protect the topology of the network, such as the STP (Spanning Tree Protocol) that is commonly used. With the rapid development of ethernet technology, there is a Ring network technology that can better meet the service requirement, and the FRRP Protocol (Fast Ring Recovery Protocol) is one of them. The FRRP protocol is a link layer protocol specially applied to a ring network, and when a link or a device on the ring network fails, a backup link can be quickly switched to, thereby ensuring quick recovery of a service. Compared with the STP protocol, the FRRP protocol has the obvious advantages of supporting a hybrid networking mode of a plurality of topologies such as single ring, double ring, multi-ring and the like, having high topology convergence speed, having convergence time irrelevant to the number of nodes on the ring network and the like.
In the FRRP protocol, there are basic concepts such as control VLAN, service VLAN, FRRP domain, FRRP ring, host node, forwarding node, and the like:
and (3) controlling the VLAN: the FRRP protocol supports VLAN division in a ring network, and a control VLAN is a VLAN used for transmitting messages of the FRRP protocol;
service VLAN: the service VLAN is used for transmitting data messages;
FRRP field: an FRRP domain is composed of a group of switches which are configured with the same control VLAN and service VLAN, and in the same network environment, the domains are distinguished by domain IDs;
FRRP Ring: an FRRP ring is formed by a group of switch groups through link connection to form a ring topology structure, and the rings are distinguished through ring IDs; one FRRP domain may include one or more FRRP rings, and when a plurality of FRRP rings are included in one FRRP domain, one main ring is selected by user self-configuration, and the other FRRP rings are called sub-rings;
a master node: each device on the FRRP ring is called a node, the main node is a node which is responsible for main decision and control on the FRRP ring, and each FRRP ring is required to have only one main node;
the forwarding node: the forwarding nodes are all other nodes except the main node on the FRRP ring, and are responsible for transmitting the protocol message and detecting the state of the adjacent link of the forwarding nodes.
In configuring FRRP on devices constituting a ring network, the steps of port type configuration, FRRP ring configuration, and the like have higher technical requirements. When the industrial-grade ring network is deployed, dozens of equipment and dozens of equipment form a ring, the configuration is extremely complicated, the misoperation is easy to occur to constructors, the working efficiency is low, and if the wrong configuration occurs, a network storm can be caused, so that the whole network is greatly damaged.
The following provides a detailed description of examples of the present specification.
As shown in fig. 1, fig. 1 is a flowchart illustrating a method for deploying a ring network according to an exemplary embodiment.
In the method of the embodiment of the present specification, an FRRP ring is composed of several devices, including a device designated as a master node and other devices serving as forwarding nodes; the VLAN of the looped network comprises a service VLAN and a control VLAN, the service VLAN is used for transmitting data messages, the ID of the service VLAN is configured to be a first interval, the control VLAN is used for transmitting protocol messages, and the ID of the control VLAN is configured to be a second interval; the first interval and the second interval do not have an intersection;
the embodiment of the description is applied to a network deployment with a single ring, when the node roles in an FRRP ring are divided, one device is determined to be a main node, and the other devices are forwarding nodes, under the condition that the performances of the devices forming the FRRP ring are the same, the device of the main node can be randomly specified, and under the condition that the performances of the devices are different, the device with the optimal performance can be selected as the main node; when the ID of the VLAN in the FRRP ring is configured, the ID of the service VLAN is configured to be a first interval, the ID of the control VLAN is configured to be a second interval, and the first interval and the second interval have no intersection so as to avoid configuration errors caused by the fact that the IDs of the service VLAN and the control VLAN are configured to be consistent. In some examples, the value range of the first interval may include 1 to 4092, and the value range of the second interval may include 4093 to 4094. Therefore, the first interval can provide enough service VLANs for use according to the requirements of specific scenes; and the control VLAN can be divided into a main control VLAN and a sub-control VLAN in the second interval, so that the control VLAN can be respectively used for transmitting protocol messages of a main ring and a sub-ring when the intersected ring networking needs to be deployed.
The method comprises the following steps:
step 101, acquiring the speed of each port on any equipment;
the device in this step may comprise a switch. When an industrial-level ring network is deployed, the equipment usually adopts an industrial-level ring network switch, and compared with a common switch, the industrial-level ring network switch has longer service life and more available voltage types, so that the industrial-level ring network switch is more suitable for complex industrial environments.
On a FRRP ring, each device is connected to two adjacent devices through two respective ring ports, which are a primary port and a secondary port, respectively, and the roles of the ports are usually determined by the configuration of a user. That is, when connecting a device into a link, two ports on the device need to be selected. In the related technology, constructors can easily select ports which are not suitable for being used as ring ports on equipment during connection because the switch has abundant interface types and different interfaces have different performances. In the embodiments of the present specification, the rate of the port referred to in this step refers to a transmission rate from a serial port of a computer to a modem, and is also referred to as DCE rate or maximum throughput. It can be understood that when a port can reach a rate of 1000Mbps, i.e., 1Gbps, the port is a gigabit ethernet interface, i.e., a gigabit port. When a switch is used in an application scenario requiring gigabit speeds, it is clear that a hundred million port is not suitable as a ring port. In some examples, this step may be to obtain configuration information of all ports, including the rates of all ports, by sending a command to the device to query the current port configuration.
Some devices have some ports occupied, and the occupied ports obviously cannot be used as ring ports. Therefore, in some examples, before step 101, the method further comprises the steps of: and monitoring whether each port on any equipment is occupied, if so, skipping the port when acquiring the speed of each port on the equipment. Assuming that a switch has 10 ports, the serial numbers of which are 1 to 10 in sequence, when it is monitored that the ports 2 and 3 are in the occupied state, the two ports can be skipped when the speed of each port on the device is obtained in step 101, and only the speeds of the remaining 8 ports are obtained. Of course, in some examples, the occupied ports may be directly omitted by defaulting the rates of the two ports to zero.
Step 102, determining a port with the maximum rate on the device as a main port and a port with the rate arranged at a second position as an auxiliary port, and configuring the main port and the auxiliary port as Trunk modes to support the service VLAN to transmit data messages; the master port of the master node is configured to transmit a protocol message to a secondary port, and the secondary port is configured to block a data message after receiving the protocol message;
after the rates of the ports on the equipment are obtained, the ports can be arranged in a descending order according to the rates, and the ports arranged in the first two positions are respectively used as a main port and an auxiliary port, so that the selected ring ports can be fixed as the two ports of the equipment which are optimal in the aspect of the rate performance, and misoperation caused by the fact that constructors select the ports with the performance not meeting the requirements is avoided. After the primary and secondary ports are selected, the two ports are configured to be in Trunk mode to support the data message transmission of the service VLAN.
The Trunk mode is one of three link types of a switch port, and the Trunk mode port can allow multiple VLANs to pass through and can receive and send multiple VLAN messages. The other two link types are respectively an Access mode and a Hybrid mode, and a port of the Access mode can only belong to one VLAN; the only difference between the port in the Hybrid mode and the port in the Trunk mode is that when data is sent, the port in the Hybrid mode can allow a plurality of VLANs to be sent without marking a label, while the port in the Trunk mode only allows a default VLAN to be sent without marking a label.
In the device of the forwarding node, there is no difference in the functions of the primary port and the secondary port, and in the device of the primary node, the functions of the primary port and the secondary port are different, so that when the device of the primary node is configured, the primary port of the primary node needs to be configured to transmit a protocol message to the secondary port, and after the secondary port is configured to receive the protocol message, the data message is blocked. In some examples, the protocol packet may include a probe protocol packet, and the probe protocol packet is used for checking a link status; the main port of the main node is configured to periodically send the detection protocol message to the secondary port, the detection protocol message is transmitted in a link through each forwarding node, when the main node receives the detection protocol message from the secondary port within a specified time, the link state is checked to be normal, the secondary port is blocked, the secondary port cannot forward the data message, and a loop is prevented from being formed; when the main node does not receive the detection protocol message from the secondary port within the specified time, checking that the link state is a fault, releasing the blocking of the data message to ensure the connectivity of the link.
103, issuing a first default value and a second default value to the device, where the first default value is used to configure a ring ID of the device, the ring ID is an identifier of the FRRP ring, the second default value is used to configure a domain ID of the device, and the domain ID is an identifier of an FRRP domain to which the FRRP ring belongs.
Through steps 101 and 102, the constructor can complete the configuration of the port accurately, and then needs to configure the ring ID and the domain ID of the device. In the related art, each device is often configured individually by a constructor, and the configuration is prone to errors under the condition that the number of devices related to the ring network is large. The step is to provide guidance for correct configuration for constructors in a form of sending a default value. And aiming at the equipment on the same FRRP ring, uniformly issuing a first default value as the ring ID of the equipment, and uniformly issuing a second default value as the domain ID of the equipment. Therefore, the constructors do not need to independently configure each device, and the working efficiency is improved to a certain extent.
In the method of the embodiment of the present specification, the speed of each port on the device for constructing the ring network is obtained, and the selected primary port and the selected secondary port are fixed as the ports with the speed arranged in the first two positions, so that the misoperation that a constructor selects an inappropriate port type when configuring the ports is avoided; after the main port and the auxiliary port are configured, a first default value and a second default value are issued and are respectively used for configuring the ring ID and the domain ID of the equipment, and the ring ID and the domain ID of the equipment on the same ring meet the protocol requirements in a mode of issuing a uniform default value, so that the wrong configuration caused by too many pieces of equipment by constructors is prevented, and the working efficiency of ring network deployment is improved.
For convenience of understanding, the method of the present specification is described below with reference to an application example.
Referring to fig. 2, fig. 2 is a schematic diagram illustrating a topology of a Ring network according to an exemplary embodiment, and the device in fig. 2 includes four switches, SW1, SW2, SW3 and SW4, and an FRRP Ring is formed by the four devices, where the FRRP Ring is denoted as Ring1. Of course, it is understood that the number of devices in an actual scenario may be more than this, and four devices are illustrated here for simplicity and clarity. The method of the embodiments of the present specification is embodied as the following flow:
s201, SW1 is designated as a main node, and SW2, SW3 and SW4 are used as forwarding nodes; the VLAN in the ring network is divided into a control VLAN and a service VLAN, the control VLAN is used for transmitting protocol messages, the service VLAN is used for transmitting data messages, the ID of the control VLAN is configured to be 4093-4094, and the ID of the service VLAN is configured to be 1-4092;
s202, taking SW1 as an example, the SW1 comprises 6 ports which are respectively Port1, port2, port3, port4, port5 and Port6, whether each Port is occupied is monitored firstly, if yes, each Port is skipped when the speed of each Port is acquired later, and as Port3 and Port6 are occupied, the finally obtained arrangement results of each Port according to the speed descending order are Port1, port2, port4 and Port5;
s203, determining Port1 as a main Port and Port2 as an auxiliary Port, and configuring the two ports into a Trunk mode after determining;
meanwhile, as SW1 is the main node, port1 is configured to transmit protocol message to the auxiliary Port, port2 is configured to receive protocol message and block data message; the protocol message comprises a detection protocol message for checking the link state, wherein Port1 of SW1 is configured to periodically send the detection protocol message, the detection protocol message is transmitted to Port2 through SW2, SW3 and SW4 in sequence, when SW1 receives the detection protocol message from Port2 within a specified time, the link state is normal, port2 is blocked to prevent a data loop, when SW1 does not receive the detection protocol message from Port2 within the specified time, the link state is failed, and the data message is unblocked by Port 2. Since SW2, SW3 and SW4 are forwarding nodes, the primary port and the secondary port are functionally indistinguishable and do not require this additional configuration.
And S204, issuing a first default value and a second default value to the SW1, wherein the first default value and the second default value are selected as 1 in the embodiment of the present specification, and the first default value and the second default value are respectively used for configuring the ring ID and the domain ID of the SW 1.
After configuring each device, when a constructor deploys a ring network, the method of the embodiment of the present specification completes correct configuration only by performing link connection according to the determined primary port and secondary port and performing configuration of a ring ID and a domain ID according to the issued first default value and second default value, thereby avoiding a problem of configuration error caused by too many devices and improving work efficiency. Corresponding to the foregoing method embodiments, the present specification further provides embodiments of a device for deploying a ring network and a terminal applied to the device.
The embodiments of the apparatus for deploying a ring network in the present specification can be applied to a computer device, such as a server or a terminal device. The apparatus embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and as a logical device, the device is formed by reading corresponding computer program instructions in the nonvolatile memory into the memory for operation through the processor in which the file processing is located. From a hardware aspect, as shown in fig. 3, for a hardware structure diagram of a computer device in which a device for deploying a ring network is located in an embodiment of the present specification, except for the processor 510, the memory 530, the network interface 520, and the nonvolatile memory 540 shown in fig. 3, a server or an electronic device in which the device 531 is located in the embodiment may also include other hardware according to an actual function of the computer device, which is not described again.
Accordingly, the embodiments of the present specification also provide a computer storage medium, in which a program is stored, and the program, when executed by a processor, implements the method in any of the above embodiments.
Embodiments of the present description may take the form of a computer program product embodied on one or more storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having program code embodied therein. Computer-usable storage media include permanent and non-permanent, removable and non-removable media, and information storage may be implemented by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of the storage medium of the computer include, but are not limited to: phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technologies, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic tape storage or other magnetic storage devices, or any other non-transmission medium, may be used to store information that may be accessed by a computing device.
As shown in fig. 4, fig. 4 is a block diagram of an apparatus for deploying a ring network, which is shown in the present specification according to an exemplary embodiment, and an FRRP ring is composed of several devices, including a device designated as a master node and other devices serving as forwarding nodes; the VLAN of the FRRP ring comprises a service VLAN and a control VLAN, the service VLAN is used for transmitting data messages, the ID of the service VLAN is configured to be a first interval, the control VLAN is used for transmitting protocol messages, and the ID of the control VLAN is configured to be a second interval; the first interval and the second interval do not have an intersection;
the device comprises:
the acquisition module is used for acquiring the rate of each port on any equipment;
a configuration module, configured to determine a port with the maximum rate on the device as a primary port and a port with a rate ranked at a second position as a secondary port, and configure the primary port and the secondary port as Trunk modes to support the service VLAN to transmit data packets; the master port of the master node is configured to transmit a protocol message to a secondary port, and the secondary port is configured to block a data message after receiving the protocol message;
the system comprises an issuing module and a control module, wherein the issuing module is used for issuing a first default value and a second default value to the equipment, the first default value is used for configuring the ring ID of the equipment, the ring ID is the identifier of the FRRP ring, the second default value is used for configuring the domain ID of the equipment, and the domain ID is the identifier of the FRRP domain to which the FRRP ring belongs.
The implementation process of the functions and actions of each module in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in the specification. One of ordinary skill in the art can understand and implement without inventive effort.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Other embodiments of the present description will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This specification is intended to cover any variations, uses, or adaptations of the specification following, in general, the principles of the specification and including such departures from the present disclosure as come within known or customary practice within the art to which the specification pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the specification being indicated by the following claims.
It will be understood that the present description is not limited to the precise arrangements described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.
The above description is only a preferred embodiment of the present disclosure, and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present disclosure should be included in the protection scope of the present disclosure.

Claims (7)

1. A method of deploying a ring network, characterized in that an FRRP ring is composed of a number of devices, including a device designated as a master node and other devices acting as forwarding nodes; the VLAN of the FRRP ring comprises a service VLAN and a control VLAN, the service VLAN is used for transmitting data messages, the ID of the service VLAN is configured to be a first interval, the control VLAN is used for transmitting protocol messages, and the ID of the control VLAN is configured to be a second interval; the first interval and the second interval do not have an intersection;
the method comprises the following steps:
acquiring the rate of each port on any equipment;
determining a port with the maximum rate on the device as a main port and a port with the rate arranged at a second position as an auxiliary port, and configuring the main port and the auxiliary port as Trunk modes to support the service VLAN to transmit data messages; the master port of the master node is configured to transmit a protocol message to a secondary port, and the secondary port is configured to block a data message after receiving the protocol message;
and issuing a first default value and a second default value to the equipment, wherein the first default value is used for configuring a ring ID of the equipment, the ring ID is the identifier of the FRRP ring, the second default value is used for configuring the domain ID of the equipment, and the domain ID is the identifier of the FRRP domain to which the FRRP ring belongs.
2. The method of claim 1, wherein obtaining the rate of each port on any device comprises:
and monitoring whether each port on any equipment is occupied, if so, skipping the port when acquiring the rate of each port on the equipment.
3. The method of claim 1, wherein the protocol packet comprises a probe protocol packet, and wherein the probe protocol packet is used to check link status;
the primary port of the primary node is configured to periodically send the probe protocol packet to the secondary port, and the secondary port is configured to block the data packet when the link status is detected to be normal, and transmit the data packet when the link status is detected to be faulty.
4. The method of claim 1, wherein the first interval has a value in a range of 1 to 4092 and the second interval has a value in a range of 4093 to 4094.
5. An apparatus for deploying a ring network, characterized in that an FRRP ring is composed of a plurality of devices, including a device designated as a master node and other devices serving as forwarding nodes; the VLAN of the FRRP ring comprises a service VLAN and a control VLAN, the service VLAN is used for transmitting data messages, the ID of the service VLAN is configured to be a first interval, the control VLAN is used for transmitting protocol messages, and the ID of the control VLAN is configured to be a second interval; the first interval and the second interval do not have an intersection;
the device comprises:
the acquisition module is used for acquiring the rate of each port on any equipment;
a configuration module, configured to determine a port with the largest rate on the device as a primary port and a port with a second-order rate as a secondary port, and configure the primary port and the secondary port to be in a Trunk mode, so as to support the putting through of all service VLANs; the master port of the master node is configured to transmit a protocol message to a secondary port, and the secondary port is configured to block a data message after receiving the protocol message;
an issuing module, configured to issue a first default value and a second default value to the device, where the first default value is used to configure a ring ID of the device, the ring ID is an identifier of the FRRP ring, the second default value is used to configure a domain ID of the device, and the domain ID is an identifier of a FRRP domain to which the FRRP ring belongs.
6. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements the method of any one of claims 1 to 4.
7. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of any one of claims 1 to 4.
CN202010338842.3A 2020-04-26 2020-04-26 Method, device, storage medium and equipment for deploying looped network Active CN111555916B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010338842.3A CN111555916B (en) 2020-04-26 2020-04-26 Method, device, storage medium and equipment for deploying looped network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010338842.3A CN111555916B (en) 2020-04-26 2020-04-26 Method, device, storage medium and equipment for deploying looped network

Publications (2)

Publication Number Publication Date
CN111555916A CN111555916A (en) 2020-08-18
CN111555916B true CN111555916B (en) 2022-12-23

Family

ID=72007793

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010338842.3A Active CN111555916B (en) 2020-04-26 2020-04-26 Method, device, storage medium and equipment for deploying looped network

Country Status (1)

Country Link
CN (1) CN111555916B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113645312B (en) * 2021-08-25 2023-07-18 烽火通信科技股份有限公司 Sub-ring network link protection method and device based on ERPS protocol

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011076012A1 (en) * 2009-12-25 2011-06-30 中兴通讯股份有限公司 Methods, system and apparatus for protecting control virtual local network in ethernet ring network
CN102215165A (en) * 2011-05-27 2011-10-12 杭州迪普科技有限公司 Message processing method for tangent ring networks and Ethernet switch
CN106470153A (en) * 2016-09-05 2017-03-01 杭州迪普科技股份有限公司 A kind of method and apparatus of prevention temporary loop

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9876739B2 (en) * 2013-05-30 2018-01-23 Dell Products L.P. System and method for failure detection in rings

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011076012A1 (en) * 2009-12-25 2011-06-30 中兴通讯股份有限公司 Methods, system and apparatus for protecting control virtual local network in ethernet ring network
CN102215165A (en) * 2011-05-27 2011-10-12 杭州迪普科技有限公司 Message processing method for tangent ring networks and Ethernet switch
CN106470153A (en) * 2016-09-05 2017-03-01 杭州迪普科技股份有限公司 A kind of method and apparatus of prevention temporary loop

Also Published As

Publication number Publication date
CN111555916A (en) 2020-08-18

Similar Documents

Publication Publication Date Title
US8000336B2 (en) Spanning tree root selection in a hierarchical network
US6717922B2 (en) Network configuration protocol and method for rapid traffic recovery and loop avoidance in ring topologies
KR102014433B1 (en) System and method for supporting discovery and routing degraded fat-trees in a middleware machine environment
US8797845B2 (en) Failure recovery method in non revertive mode of ethernet ring network
US9218230B2 (en) Method for transmitting messages in a redundantly operable industrial communication network and communication device for the redundantly operable industrial communication network
CN101471875B (en) Passage transmission method based on loop, network system and node equipment
US7752338B2 (en) Ring topology discovery
BRPI1102911A2 (en) SYSTEM TO CONTROL A MULTI-POWER ENERGY DISTRIBUTION NETWORK
JP2005130049A (en) Node
CN101610193A (en) Ethernet ring network finds and generates the method for ring automatically
CN104079462A (en) Ring network configuration detection method and device
CN104798348A (en) Communication system, control device, method for controlling same, and program
CN106992931B (en) Switch redundancy backup method based on double-loop and double-loop system
CN111891181B (en) Train network control system based on Ethernet
US9509523B2 (en) Method for protection switching in ethernet ring network
CN104919760A (en) Virtual chassis system control protocols
CN112737944B (en) Bfd-based peer-link state detection method, device and medium
US7920464B2 (en) Method of redundancy of ring network
CN111555916B (en) Method, device, storage medium and equipment for deploying looped network
CN110912815B (en) Network element ring formation preventing method, device, equipment and readable storage medium
CN102170384B (en) Method for processing faults of intersected Ethernet ring and nodes
CN107040423B (en) Method and system for discovering network topology
CN112187646B (en) Message table item processing method and device
CN111092800B (en) EAPS distributed Ethernet ring protection switching method, equipment and medium
CN104813617A (en) Network node and method in a node operable in a virtual chassis system wherein it is determined whether to issue a warning that an administrative action triggers a virtual chassis split

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant