CN107070688B - Method for configuring node and node - Google Patents

Method for configuring node and node Download PDF

Info

Publication number
CN107070688B
CN107070688B CN201611219398.3A CN201611219398A CN107070688B CN 107070688 B CN107070688 B CN 107070688B CN 201611219398 A CN201611219398 A CN 201611219398A CN 107070688 B CN107070688 B CN 107070688B
Authority
CN
China
Prior art keywords
node
address
information
configuration information
mac address
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
CN201611219398.3A
Other languages
Chinese (zh)
Other versions
CN107070688A (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.)
Raisecom Technology Co Ltd
Original Assignee
Raisecom 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 Raisecom Technology Co Ltd filed Critical Raisecom Technology Co Ltd
Priority to CN201611219398.3A priority Critical patent/CN107070688B/en
Publication of CN107070688A publication Critical patent/CN107070688A/en
Application granted granted Critical
Publication of CN107070688B publication Critical patent/CN107070688B/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/0803Configuration setting
    • 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
    • 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/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • 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

Landscapes

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

Abstract

The present invention relates to the field of ethernet technologies, and in particular, to a method for configuring a node and a node. The method for configuring the nodes in the embodiment of the invention comprises the following steps: a node in the Ethernet ring network receives configuration information sent by other nodes in the Ethernet ring network; and the node carries out node configuration according to the received configuration information. According to the method, in the process of setting the Ethernet ring network according to G.8032, the nodes can be configured according to the configuration information sent by other nodes, manual configuration of each node is not needed, manual configuration operation is reduced, meanwhile, the efficiency of node configuration can be improved, and the accuracy of node configuration is improved.

Description

Method for configuring node and node
Technical Field
The present invention relates to the field of ethernet technologies, and in particular, to a method for configuring a node and a node.
Background
G.8032 (ethernet ring protection switching protocol) is a metro ethernet technology, solves the problems of weak protection capability, long fault recovery time, and the like of the conventional data network, is compatible with the conventional ethernet protocol, and is an important technical selection and solution for the optimization and reconstruction of the metro broadband access network. According to the g.8032 protocol, under normal conditions, an RPL (Ring Protection Link) is set for the Ring network to block the Link and prevent the Link from looping, and after a fault occurs, the RPL is opened to bypass the faulty Link to transmit services. The opening or closing of the RPL is controlled by an Owner node (master node), and a node adjacent to the Owner node in the RPL is a Neighbor node and is responsible for controlling the opening or closing of the RPL in cooperation with the Owner node.
In the process of setting the ethernet ring Network according to g.8032, a ring port, an RPL link port, a Virtual Local Area Network (VLAN), a protection VLAN, an Internet Protocol (IP) address, a ring ID (Identification number), and other information need to be configured for a node in the ring Network, and at present, each node in the ethernet ring Network can only be configured manually, specifically, an Owner node, a Neighbor node, and other nodes in the ethernet ring Network can only be configured manually. However, the above configuration method needs to configure each node in the ring network, and there are too many configuration operations and a large error risk, so that the configuration of the nodes in the ring network cannot be realized quickly and accurately.
In summary, in the prior art, each node in the ring network needs to be configured in the process of setting the ethernet ring network according to g.8032, and the configuration of the nodes in the ring network cannot be quickly and accurately implemented.
Disclosure of Invention
The invention provides a method for setting nodes and nodes, which are used for solving the problem that in the prior art, each node in a ring network needs to be configured respectively in the process of setting an Ethernet ring network according to G.8032, and the configuration of the nodes in the ring network cannot be realized quickly and accurately.
The method for configuring the nodes provided by the embodiment of the invention comprises the following steps:
a node in the Ethernet ring network receives configuration information sent by other nodes in the Ethernet ring network;
and the node carries out node configuration according to the received configuration information.
Optionally, the configuration information includes some or all of the following:
the MAC address of the Owner node;
the MAC address of the Neighbor node;
protocol VLAN information;
protecting VLAN information;
ring port information;
RPL port information;
ring ID information;
and the corresponding relation between the MAC address and the IP address of the node.
Optionally, the configuration information includes protocol VLAN information, protection VLAN information, and ring port information;
the node carries out node configuration according to the configuration information, and the node configuration comprises the following steps:
the node configures a protocol VLAN according to the protocol VLAN information, configures a protection VLAN according to the protection VLAN information, sets a ring ID according to the ring ID information, and configures a ring port according to the ring port information.
Optionally, the configuration information includes an Owner node MAC address, a Neighbor node MAC address, and RPL port information;
the node carries out node configuration according to the configuration information, and the node configuration comprises the following steps:
and after determining that the node is the Owner node according to the MAC address of the Owner node or determining that the node is the Neighbor node according to the MAC address of the Neighbor node, the node sets an RPL port according to the RPL port information.
Optionally, after the node performs node configuration according to the configuration information, the method further includes:
the node sends the received configuration information to other nodes; or
If the node determines that the node is the Owner node, configuration information of eliminating the MAC address of the Owner node is sent to other nodes; or
And if the node determines that the node is the Neighbor node, sending configuration information of eliminating the MAC address of the Neighbor node to other nodes.
Optionally, the configuration information includes a correspondence between the MAC address and the IP address of the node;
the node carries out node configuration according to the configuration information, and the node configuration comprises the following steps:
after determining that the MAC address of the node exists in the corresponding relation, the node determines an IP address obtained by converting the MAC address of the node and an IP address corresponding to the MAC address of the node in the corresponding relation;
and if the two determined IP addresses are different, taking the IP address in the corresponding relation as the own IP address.
Optionally, the node is an IP address translation node; before the node sends the configuration information, the method further comprises the following steps:
the IP address conversion node receives the MAC addresses and the corresponding IP addresses sent by other nodes;
if the received IP address has a repeated IP address, the IP address conversion node converts the repeated IP address into an IP address which is not repeated with all other IP addresses;
the IP address conversion node adds the MAC address and the corresponding converted IP address into the configuration information.
An embodiment of the present invention further provides a node for configuring a node, including:
the configuration information determining module is used for receiving configuration information sent by other nodes in the Ethernet ring network;
and the configuration module is used for configuring the nodes according to the received configuration information.
Optionally, the configuration information includes some or all of the following:
the MAC address of the Owner node;
the MAC address of the Neighbor node;
protocol VLAN information;
protecting VLAN information;
ring port information;
RPL port information;
ring ID information;
and the corresponding relation between the MAC address and the IP address of the node.
Optionally, the configuration information includes protocol VLAN information, protection VLAN information, ring ID information, and ring port information;
the configuration module is specifically configured to:
configuring a protocol VLAN according to protocol VLAN information, configuring a protection VLAN according to protection VLAN information, setting a ring ID according to ring ID information, and configuring a ring port according to ring port information.
Optionally, the configuration information includes an Owner node MAC address, a Neighbor node MAC address, and RPL port information;
the configuration module is specifically configured to:
and after determining that the node is the Owner node according to the MAC address of the Owner node or determining that the node is the Neighbor node according to the MAC address of the Neighbor node, setting an RPL port according to the RPL port information.
Optionally, the configuration module is further configured to:
sending the received configuration information to other nodes; or
If the node is determined to be an Owner node, sending configuration information of eliminating an MAC address of the Owner node to other nodes; or
And if the node is determined to be the Neighbor node, sending configuration information of eliminating the MAC address of the Neighbor node to other nodes.
Optionally, the configuration information includes a correspondence between the MAC address and the IP address of the node;
the configuration module is specifically configured to:
after determining that the MAC address of the node exists in the corresponding relation, determining an IP address obtained by converting the MAC address of the node and an IP address corresponding to the MAC address of the node in the corresponding relation;
and if the two determined IP addresses are different, taking the IP address in the corresponding relation as the own IP address.
Optionally, the node is an IP address translation node;
the configuration module is specifically configured to:
receiving MAC addresses and corresponding IP addresses sent by other nodes;
if the received IP address has a repeated IP address, converting the repeated IP address into an IP address which is not repeated with all other IP addresses;
and adding the MAC address and the corresponding converted IP address into the configuration information.
According to the method for configuring the nodes provided by the embodiment of the invention, the nodes in the Ethernet ring can be configured according to the configuration information sent by other nodes. Therefore, in the process of setting the ethernet ring network according to g.8032, the method for configuring nodes of the present invention enables the nodes to be configured according to the configuration information sent by other nodes, and does not need to manually configure each node, thereby reducing manual configuration operations, improving the efficiency of node configuration, and improving the accuracy of node configuration.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic diagram illustrating steps of a method for configuring a node according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an ethernet ring network structure according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating steps for configuring an IP address according to an embodiment of the present invention;
fig. 4 is a specific flowchart of a configuration node according to an embodiment of the present invention;
fig. 5 is a schematic node structure diagram of a configuration node according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 illustrates a method configured in an embodiment of the present invention, which includes the following steps:
step 101: a node in the Ethernet ring network receives configuration information sent by other nodes in the Ethernet ring network;
step 102: and the node carries out node configuration according to the received configuration information.
In the embodiment of the invention, the nodes in the Ethernet ring network can carry out self configuration according to the received configuration information sent by other nodes, so the method for configuring the nodes in the embodiment of the invention provides a method for automatically configuring the nodes, thereby avoiding the need of manually configuring each node in the ring network, reducing the manual configuration operation, improving the efficiency of node configuration and improving the accuracy of node configuration.
For example, in the ring network shown in fig. 2, each of the node a201, the node B204, the node C202, and the node D203 can configure itself according to the received configuration information, so that it is no longer necessary to configure the nodes on each of the node a201, the node B204, the node C202, and the node D203.
Optionally, the configuration information includes some or all of the following: the MAC (Media access control) address of the Owner node; the MAC address of the Neighbor node; protocol VLAN information; protecting VLAN information; ring port information; RPL port information; a ring ID; and the corresponding relation between the MAC address and the IP address of the node.
In the method in the embodiment of the invention, in the process of setting the Ethernet ring network according to G.8032, nodes in the Ethernet ring network need to be configured according to configuration information, specifically, protocol VLAN, protection VLAN and ring port information need to be configured for all nodes on the ring, wherein the protocol VLAN is used for determining the VLAN for processing the service according to the protocol type of the service of the ring port of the node; the protection VLAN refers to a VLAN which needs to be protected by the Ethernet ring network, and the service in the protection VLAN list cannot be discarded by a ring port; the ring port information is used for indicating the node to determine a ring port; the ring ID is used for representing the ring network to which the node belongs, and the ring network IDs of the nodes in the same ring network are the same; the IP address is used for enabling the network management server to carry out node management according to the IP address; the MAC address of the Owner node is used for judging whether the node is the Owner node after receiving the configuration information; the MAC address of the Neighbor node is used for judging whether the node is the Neighbor node after receiving the configuration information; for the Owner node and the Neighbor node, RPL port information needs to be configured, so that the Owner node and the Neighbor node control the RPL link. In addition, in order to conveniently manage the nodes, an IP address needs to be set for the nodes, and the nodes are managed by the network management server according to the set IP address, wherein the IP address can be an IPv4 address.
For example, in the ring network system shown in fig. 2, assuming that the node a201 is an Owner node, the node a201 needs to set a ring ID, an RPL port, a protocol VLAN, a protection VLAN, and ring port information of the node a; assuming that the node B204 is a Neighbor node, the node B204 needs to set a ring ID, an RPL port, a protocol VLAN, a protection VLAN, and ring port information of the node B204; assuming that the node C202 and the node D203 are other nodes, the node C202 and the node D203 need to set a ring ID, a protocol VLAN, a protection VLAN, and ring port information; further, the node a201, the node B204, the node C202, and the node D203 also need to set respective IP addresses.
Optionally, the configuration information includes protocol VLAN information, protection VLAN information, ring ID information, and ring port information; the node carries out node configuration according to the configuration information, and the node configuration comprises the following steps: the node configures a protocol VLAN according to the protocol VLAN information, configures a protection VLAN according to the protection VLAN information, sets a ring ID according to the ring ID information, and configures a ring port according to the ring port information.
In the embodiment of the present invention, a protocol VLAN and a protection VLAN need to be set for all nodes in a ring network, and after receiving configuration information, a node sets the protocol VLAN according to VLAN information carried in the configuration information and sets the protection VLAN according to protection VLAN information in the configuration information, where the VLAN information may be a description character string of the VLAN. For example, after receiving the configuration information, the node determines that the description character string of the protocol VLAN and the description character string of the protection VLAN carried in the configuration information determine that the protocol VLAN and the protection VLAN are both VLAN4094, and then the node uses the VLAN with an ID of 4094 as the protocol VLAN and the protection VLAN.
The node further needs to determine a ring port according to ring port information in the configuration information, where the ring port information may be port ID information indicating a ring port number. For example, if the ring port numbers carried in the configuration information are "port 1" and "port 2", the node M can determine that the ring ports used by the node M are "port 1" and "port 2" according to the configuration information. In the embodiment of the present invention, the ring ports may be configured in the configuration information in a unified manner, for example, the ring ports are set to "port 1" and "port 2", and then all nodes in the ring system use "port 1" and "port 2" as the ring ports of the nodes in a unified manner.
In addition, the node also needs to configure a ring ID according to the configuration information, where the ring ID is used to indicate the number of the ethernet ring. For example, if the node determines that the ring ID when the configuration information is terminated is "n", the node determines that the ring network to which the node belongs is a ring network whose ID is "n".
In the process of configuring the protocol VLAN and the protection VLAN, a ring port needs to be added to the protocol VLAN and the protection VLAN. For example, after determining the protocol VLAN and the protection VLAN, the node creates the protocol VLAN and the protection VLAN, and assuming that the node determines that the ring ports are "port 1" and "port 2" according to the ring port information in the configuration information, the node further needs to add the "port 1" and the "port 2" to the created protocol VLAN and protection VLAN, so that the "port 1" and the "port 2" are under the management of the protocol VLAN and the protection VLAN.
Optionally, the configuration information includes an Owner node MAC address, a Neighbor node MAC address, and RPL port information; the node carries out node configuration according to the configuration information, and the node configuration comprises the following steps: and after determining that the node is the Owner node according to the MAC address of the Owner node or determining that the node is the Neighbor node according to the MAC address of the Neighbor node, the node sets an RPL port according to the RPL port information. Illustratively, if the MAC address of the node is consistent with the MAC address of the Owner node carried in the received configuration information, the node determines that the node is configured as the Owner node; and if the MAC address of the node is consistent with the MAC address of the Neighbor node carried in the received configuration information, the node determines that the node is configured as the Neighbor node.
In the embodiment of the invention, the Owner node and the Neighbor node also need to determine the RPL port in the ring network according to the RPL port information and set the RPL port. For example, if the node M determines that it is an Owner node according to the MAC address of the Owner node in the received configuration information, and determines that "port 3" is an RPL port according to the RPL port information in the configuration information, the node M further needs to set "port 3", for example, set "port 3" to a closed state; if the node N determines that it is a Neighbor node according to the MAC address of the Neighbor node in the received configuration information, and determines that "port 3" is an RPL port according to the RPL port information in the configuration information, the node N further needs to set "port 3", for example, set "port 3" to a closed state.
Optionally, after the node performs node configuration according to the configuration information, the method further includes: the node sends the received configuration information to other nodes; or
If the node determines that the node is the Owner node, configuration information of eliminating the MAC address of the Owner node is sent to other nodes; or
And if the node determines that the node is the Neighbor node, sending configuration information of eliminating the MAC address of the Neighbor node to other nodes.
In the embodiment of the invention, after the node configures the node according to the received configuration information, the node needs to send the configuration information to other nodes. For example, after the node C202 in the ring network system shown in fig. 2 performs configuration according to the received configuration information, the node C can send the received configuration information to the node a201 and the node B204, so that the node a201 and the node B204 determine whether to update the configuration according to the configuration information. In addition, after the Owner node performs configuration, the Owner node may delete the MAC address of the Owner node in the configuration information and then send the configuration information to other nodes. The Neighbor node may also delete the MAC address of the Neighbor node in the configuration information and then send the configuration information to other nodes.
Optionally, the node in the embodiment of the present invention may be capable of converting its MAC address into an IP address.
In the embodiment of the invention, the node in the ring network system can determine the IP address corresponding to the MAC address according to the MAC address of the node. Specifically, the node fixes the first 24-bit address in the 48-bit MAC address as a certain numerical value and uses the address as the first 8-bit address of the converted IP address, divides the second 24-bit MAC address into a group of numerical values every two bits, converts the two-bit numerical values of each group of numerical values into decimal numbers, and finally uses the combination of the determined numerical values as the second 24-bit address of the IP address of the node. For example, for a node with a MAC address of 000e.5e00.0001, the MAC address of the first 24 bits "000 e.5e" is fixed by a certain value, for example, 10; every two bits of the MAC address "00.0001" of the last 24 bits are divided into a group of numbers, namely "00", "00" and "01", each group of numbers is converted into 10-system numbers, the three groups of converted numbers are respectively "0", "0" and "1", the three groups of converted numbers are used as the last 24-bit address of the converted IP address, and the converted IP address "10.0.0.1" can be obtained.
Because the IP address can be automatically generated according to the MAC address, the method for configuring the node in the embodiment of the invention does not need to independently set the IP address for each node, thereby reducing configuration operation when the IP address of the node is configured.
Optionally, the configuration information includes a correspondence between the MAC address and the IP address of the node; the node carries out node configuration according to the configuration information, and the node configuration comprises the following steps: after determining that the MAC address of the node exists in the corresponding relation, the node determines an IP address obtained by converting the MAC address of the node and an IP address corresponding to the MAC address of the node in the corresponding relation; and if the two determined IP addresses are different, taking the IP address in the corresponding relation as the own IP address.
In the embodiment of the present invention, after determining that the corresponding relationship between the MAC address and the IP address in the received configuration information includes the MAC address of the node itself, the node needs to determine whether the IP address obtained by converting the MAC address of the node itself is the same as the IP address corresponding to the MAC address in the configuration information, and if the IP address obtained by converting the MAC address of the node itself is different from the IP address corresponding to the MAC address in the configuration information, the node uses the IP address included in the corresponding relationship in the configuration information as the IP address of the node itself.
For example, the node B determines that the IP address after the conversion is "10.0.0.1" according to the MAC address of the node B, and if the node B determines that the received configuration information includes a correspondence between the MAC address of the node B and the IP address, where the IP address in the correspondence is "10.0.0.2", the node B configures the IP address "10.0.0.2" in the correspondence as the IP address of the node B after determining that the IP address after the conversion is different from the IP address in the correspondence in the configuration information.
Optionally, the node is an IP address translation node; before the node sends the configuration information, the method further comprises the following steps: the IP address conversion node receives the MAC addresses and the corresponding IP addresses sent by other nodes; if the received IP address has a repeated IP address, the IP address conversion node converts the repeated IP address into an IP address which is not repeated with all other IP addresses; the IP address conversion node adds the MAC address and the corresponding converted IP address into the configuration information.
In the method for converting the MAC address into the IP address in the embodiment of the present invention, the first 24 bits of the MAC address need to be virtualized as a specific numerical value, wherein if the manufacturers of the nodes are the same, the first 24 bits of the MAC address of the node are necessarily the same, and then the MAC addresses of the 24 bits are necessarily different, so that even if the first 24 bits of the MAC address of the node of the same manufacturer are virtualized as the same numerical value (for example, 10), the IP address converted from the MAC address of the later 24 bits is not repeated; if the manufacturers of the nodes are different, the last 24 bits of the MAC address may be duplicated, and if the MAC address of the first 24 bits is still virtualized to be the same value, the converted IP address may collide. In order to avoid the conflict of the IP addresses after the conversion, the IP address conversion node in the embodiment of the present invention needs to collect the IP addresses after the conversion of all other nodes in the ring network, and convert the repeated IP addresses therein into IP addresses that are not repeated with the IP addresses of any other nodes in the ring network, so as to avoid the conflict of the IP addresses of the nodes in the ring network.
In the embodiment of the invention, the MAC addresses and the corresponding IP addresses of all nodes in the ring network can be collected through the IP address conversion node in the ring network system, whether the received IP addresses have repeated IP addresses or not is judged, if yes, the repeated IP addresses are converted into IP addresses which are not repeated with all other IP addresses at the IP address conversion node, and the MAC addresses and the corresponding converted IP addresses are added into the configuration information, so that the IP addresses in the corresponding relation are configured into the IP addresses of the nodes according to the corresponding relation between the MAC addresses and the converted IP addresses after the nodes to which the MAC addresses belong receive the configuration information.
Specifically, after each node in the ring network converts its own MAC Address into an IP Address, it may send a Gratuitous Address Resolution Protocol (Gratuitous Address Resolution Protocol) message to a predetermined IP Address conversion node, and after receiving the Gratuitous Address Resolution Protocol (Gratuitous Address Resolution Protocol) message, the IP Address conversion node may record a correspondence between the MAC Address of the node that sent the Gratuitous Address message and the converted IP Address. The nodes in the ring network can collect the MAC addresses and the corresponding IP addresses of all other nodes by the method.
After the MAC addresses and the corresponding IP addresses of all other nodes in the ring network are collected, the IP address conversion node creates a mapping table of the MAC addresses of all the nodes in the ring network and the converted IP addresses, and determines whether repeated IP addresses exist according to the mapping table. According to the mapping table, the IP address translation node first searches for a node MAC address different from the first 24 bits of its own MAC address (i.e., searches for a MAC address different from its manufacturer, which may cause IP address conflict due to the IP address translated by these MAC addresses), further determines whether the IP address corresponding to the searched node MAC address is duplicated with other IP addresses, and if there is a duplicated IP address, replacing the first 24 bits of the MAC address with the first 24 bits of the MAC address of the user, replacing the last 24 bits of the MAC address with a bit sequence which does not exist in the current ring network, further, according to the method for converting the MAC address to the IP address provided by the embodiment of the present invention, the replaced MAC address is converted into an IP address that is not repeated with IP addresses of other nodes in the current ring network, and the repeated IP address in the mapping table is replaced with the IP address that is not repeated after the conversion.
After that, the IP address translation node needs to add the mapping relationship between the MAC address and the IP address that have been replaced in the mapping table to the configuration information, so that after receiving the configuration information, the IP address translation node determines its own replaced IP address according to the mapping relationship between the MAC address and the replaced IP address, and rewrites the IP address of the node.
Among them, the Owner node can be used as an IP address translation node.
In addition, when a node in the ring network converts its own MAC address into an IP address, an IP address conversion node and an Owner node may not be provided, and all nodes in the ring network can send its own MAC address and the converted IP address to other nodes and receive the MAC address and the IP address sent by other nodes; after the Owner node is determined, the Owner node may determine whether duplication exists based on the previously determined IP addresses of other nodes.
Specifically, under the condition that no IP address translation node and Owner node are provided, the nodes in the ring network need to send gratuitous ARP messages to all other nodes and receive gratuitous ARP messages sent by other nodes, so that each node in the ring network can record the MAC addresses and IP addresses of other nodes.
After the Owner node is determined, the Owner node can create a mapping table of the MAC addresses of all the nodes in the ring network and the converted IP addresses according to the recorded MAC addresses and IP addresses of other nodes, and determine whether repeated IP addresses exist according to the mapping table. According to the mapping table, the Owner node firstly searches the node MAC address different from the first 24 bits of the own MAC address (namely, searches the MAC address different from the own manufacturer, and the IP address after the conversion of the MAC address may cause IP address conflict), further judges whether the IP address corresponding to the searched node MAC address is repeated with other IP addresses, if so, replacing the first 24 bits of the MAC address with the first 24 bits of the MAC address of the user, replacing the last 24 bits of the MAC address with a bit sequence which does not exist in the current ring network, further, according to the method for converting the MAC address to the IP address provided by the embodiment of the present invention, the replaced MAC address is converted into an IP address that is not repeated with IP addresses of other nodes in the current ring network, and the repeated IP address in the mapping table is replaced with the IP address that is not repeated after the conversion.
After that, the Owner node needs to add the correspondence between the MAC address and the IP address that have been replaced in the mapping table to the configuration information, so that after receiving the configuration information, the node that has been replaced by the IP address determines its own replaced IP address according to the correspondence between the MAC address and the replaced IP address, and rewrites the node IP address.
After being powered on and started, the node can convert the MAC address of the node into an IP address and send a free ARP message to other nodes.
Optionally, after the node is configured, the node in the ring network may be managed by the network management server according to the IP address of the node.
In the embodiment of the invention, the node can automatically generate the IP address according to the MAC address and replace the repeated IP address through the IP address conversion node, so that the IP address of each node in the ring network is not conflicted, and the node in the ring network can be managed according to the determined IP address through the unified network management server. For example, after determining that the IP addresses of the node a, the node B, the node C, and the node D in the ring network shown in fig. 2 are "IP 1", "IP 2", "IP 3", and "IP 4", respectively, a port configuration message can be sent to "IP 1", "IP 2", "IP 3", and "IP 4" through the network management server, so that the nodes perform corresponding configuration according to the received port configuration message.
The following describes a method for configuring an IP address by a node according to an embodiment of the present invention with reference to fig. 3:
step 301: the node converts the MAC address into an IP address;
step 302: the node determines whether the corresponding relation between the MAC address and the IP address in the received configuration information includes the MAC address of the node, if so, step 303 is executed, otherwise, step 304 is executed;
step 303: the node determines whether the IP address corresponding to the MAC address in the corresponding relationship is the same as the IP address obtained by MAC address conversion, if so, step 304 is executed, otherwise, step 305 is executed;
step 304: the node ignores the configuration of the IP address, and then ends the process;
step 305: the node replaces the IP address of the node itself with the IP address corresponding to the MAC address in the corresponding relationship, and then ends the process.
Optionally, in the embodiment of the present invention, configuration information required by all nodes on the Owner node configuration ring may be directly configured, and the Owner node may send the configuration information to other nodes, so that after receiving the configuration information sent by the Owner node, the other nodes perform node configuration according to the received configuration information.
For example, in the ring network system shown in fig. 2, the node a may be used as an Owner node, and further, the node a may configure configuration information required by all other nodes, and cause the Owner node to send the configuration information to other nodes, and the other nodes may perform their own configuration after receiving the configuration information sent by the node a.
Optionally, the Owner node writes configuration information required by other nodes into an APS (Automatic protection switching) message, and sends the APS message to the other nodes, so that the other nodes perform configuration of the nodes according to the configuration information in the APS message after receiving the APS message.
In the embodiment of the invention, the Owner node can send the configuration information to other nodes through the APS message, wherein the APS message is an interactive message sent by the Owner node to other nodes. Specifically, the Owner node may write configuration information (including, but not limited to, the Neighbor node's MAC address information, protocol VLAN information, protection VLAN information, ring port information, RPL port information, and ring ID information) into the private tlv (private tlv) field of the APS message.
The following describes, with reference to fig. 4, a step of sending configuration information from an Owner node to other nodes and configuring the other nodes in the embodiment of the present invention:
step 401: the Owner node determines configuration information of nodes in the ring network node;
step 402: the Owner node writes the configuration information into an APS message;
step 403: the Owner node sends configuration information to other nodes;
step 404: after receiving the configuration information, the node judges whether the node configuration is performed, if so, step 405 is executed, otherwise, step 406 is executed;
step 405: the node judges whether the configuration of the node is the same as the configuration information corresponding to the MAC address of the node in the configuration information, if so, step 407 is executed, otherwise, step 408 is executed;
step 406: judging whether the MAC address of the node is the same as the MAC address of the Neighbor node in the configuration information, if so, executing a step 410, otherwise, executing a step 411;
step 407: the node finishes the configuration process, and then step 409 is executed;
step 408: the node updates the self configuration according to the configuration information;
step 409: the node sends configuration information to other nodes;
step 410: the node determines that the node is a Neighbor node, the Neighbor node is set, and then step 409 is executed;
step 411: the node determines itself to be the Other node, and performs the setting of the Other node, and then performs step 409.
Optionally, after the node in the ring network performs node configuration, if the node receives the configuration information again, the node determines whether the configuration of the node is the same as the configuration information corresponding to the MAC address of the node in the configuration information, if so, the node ignores updating the configuration of the node, otherwise, the node updates the configuration of the node according to the configuration information.
In the embodiment of the present invention, a method for updating configuration by a node according to received configuration information is provided, so that a node can update its own configuration information (including but not limited to protocol VLAN information, protection VLAN information, ring port information, RPL port information, IP address information, and ring ID information). For example, after completing configuration, a node receives an APS message sent by an Owner node again, and assuming that the ring port information included in the APS message is different from the ring port currently set by the node, the node needs to reconfigure the ring port according to the ring port information in the configuration information.
Optionally, after a new node is accessed in the ring network system, the newly accessed node configures its own node according to the configuration information after receiving the configuration information sent by other nodes.
The embodiment of the invention can automatically configure the node newly accessed into the ring network. Since the configuration information includes protocol VLAN information, protection VLAN information, ring port information, RPL port information, and ring ID information of the node, the newly accessed node can perform its own configuration according to the above information in the configuration information. Therefore, by adopting the method for configuring the nodes provided by the embodiment of the invention, even if a new node is accessed in the ring network, the configuration information of all the nodes does not need to be reset, and the plug and play of the newly added equipment is realized.
Based on the same inventive concept, the embodiment of the invention also provides a node for configuring the node. Because the principle of solving the problem of the node is similar to that of the embodiment of the present invention, the implementation of the terminal may refer to the implementation of the method of the present invention, and repeated details are not described herein.
As shown in fig. 5, an embodiment of the present invention further provides a node for configuring a node, including:
a configuration information determining module 501, configured to receive configuration information sent by other nodes in the ethernet ring network;
a configuration module 502, configured to perform node configuration according to the received configuration information.
Optionally, the configuration information includes some or all of the following:
the MAC address of the Owner node;
the MAC address of the Neighbor node;
protocol VLAN information;
protecting VLAN information;
ring port information;
RPL port information;
ring ID information;
and the corresponding relation between the MAC address and the IP address of the node.
Optionally, the configuration information includes protocol VLAN information, protection VLAN information, ring ID information, and ring port information;
the configuration module 502 is specifically configured to:
configuring a protocol VLAN according to protocol VLAN information, configuring a protection VLAN according to protection VLAN information, setting a ring ID according to ring ID information, and configuring a ring port according to ring port information.
Optionally, the configuration information includes an Owner node MAC address, a Neighbor node MAC address, and RPL port information;
the configuration module 502 is specifically configured to:
and after determining that the node is the Owner node according to the MAC address of the Owner node or determining that the node is the Neighbor node according to the MAC address of the Neighbor node, setting an RPL port according to the RPL port information.
Optionally, the configuration module 502 is further configured to:
sending the received configuration information to other nodes; or
If the node is determined to be an Owner node, sending configuration information of eliminating an MAC address of the Owner node to other nodes; or
And if the node is determined to be the Neighbor node, sending configuration information of eliminating the MAC address of the Neighbor node to other nodes.
Optionally, the configuration information includes a correspondence between the MAC address and the IP address of the node;
the configuration module 502 is specifically configured to:
after determining that the MAC address of the node exists in the corresponding relation, determining an IP address obtained by converting the MAC address of the node and an IP address corresponding to the MAC address of the node in the corresponding relation;
and if the two determined IP addresses are different, taking the IP address in the corresponding relation as the own IP address.
Optionally, the node is an IP address translation node;
the configuration module 502 is specifically configured to:
receiving MAC addresses and corresponding IP addresses sent by other nodes;
if the received IP address has a repeated IP address, converting the repeated IP address into an IP address which is not repeated with all other IP addresses;
and adding the MAC address and the corresponding converted IP address into the configuration information.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (12)

1. A method of configuring a node, the method comprising:
a node in an Ethernet ring network receives configuration information sent by other nodes in the Ethernet ring network;
the node carries out node configuration according to the received configuration information;
the node sends the received configuration information to other nodes;
the configuration information comprises a Media Access Control (MAC) address of a main Owner node, an MAC address of an adjacent Neighbor node and loop protection link (RPL) port information;
the node performs node configuration according to the configuration information, including:
and after determining that the node is the Owner node according to the MAC address of the Owner node or determining that the node is the Neighbor node according to the MAC address of the Neighbor node, the node sets an RPL port according to the RPL port information.
2. The method of claim 1, wherein the configuration information includes some or all of:
protocol Virtual Local Area Network (VLAN) information;
protecting VLAN information;
ring port information;
ring number ID information;
and the corresponding relation between the MAC address of the node and the IP address of the Internet protocol.
3. The method of claim 2, wherein the configuration information includes protocol VLAN information, protection VLAN information, ring ID information, and ring port information;
the node performs node configuration according to the configuration information, including:
the node configures a protocol VLAN according to the protocol VLAN information, configures a protection VLAN according to the protection VLAN information, sets a ring ID according to the ring ID information, and configures a ring port according to the ring port information.
4. The method of claim 2, wherein after the node performs the node configuration according to the configuration information, the method further comprises:
if the node determines that the node is an Owner node, configuration information of eliminating an MAC address of the Owner node is sent to other nodes; or
And if the node determines that the node is the Neighbor node, sending configuration information of eliminating the MAC address of the Neighbor node to other nodes.
5. The method of claim 4, wherein the configuration information includes a correspondence of a MAC address and an IP address of a node;
the node performs node configuration according to the configuration information, including:
after determining that the corresponding relationship has the MAC address of the node, the node determines the IP address obtained by converting the MAC address of the node and the IP address corresponding to the MAC address of the node in the corresponding relationship;
and if the two determined IP addresses are different, taking the IP address in the corresponding relation as the own IP address.
6. The method of claim 5, wherein the node is an IP address translation node; before the node sends the configuration information, the node further includes:
the IP address conversion node receives MAC addresses and corresponding IP addresses sent by other nodes;
if the received IP address has a repeated IP address, the IP address conversion node converts the repeated IP address into an IP address which is not repeated with all other IP addresses;
and the IP address conversion node adds the MAC address and the corresponding converted IP address into the configuration information.
7. A node for configuring a node, the node comprising:
the configuration information determining module is used for receiving configuration information sent by other nodes in the Ethernet ring network;
the configuration module is used for carrying out node configuration according to the received configuration information;
the configuration module is further to:
sending the received configuration information to other nodes;
the configuration information comprises a main Owner node MAC address, an adjacent Neighbor node MAC address and loop protection link (RPL) port information;
the configuration module is specifically configured to:
and after determining that the node is the Owner node according to the MAC address of the Owner node or determining that the node is the Neighbor node according to the MAC address of the Neighbor node, setting an RPL port according to the RPL port information.
8. The node of claim 7, wherein the configuration information includes some or all of:
the MAC address of the Owner node;
the MAC address of the Neighbor node;
protocol VLAN information;
protecting VLAN information;
ring port information;
RPL port information;
ring ID information;
and the corresponding relation between the MAC address and the IP address of the node.
9. The node of claim 8, wherein the configuration information includes protocol VLAN information, protection VLAN information, ring ID information, and ring port information;
the configuration module is specifically configured to:
configuring a protocol VLAN according to the protocol VLAN information, configuring a protection VLAN according to the protection VLAN information, setting a ring ID according to the ring ID information, and configuring a ring port according to the ring port information.
10. The node of claim 8, wherein the configuration module is further to:
if the node is determined to be an Owner node, sending configuration information of eliminating an MAC address of the Owner node to other nodes; or
And if the node is determined to be the Neighbor node, sending configuration information of eliminating the MAC address of the Neighbor node to other nodes.
11. The node of claim 10, wherein the configuration information includes a correspondence of a MAC address and an IP address of the node;
the configuration module is specifically configured to:
after determining that the corresponding relation has the MAC address of the node, determining an IP address obtained by converting the MAC address of the node and an IP address corresponding to the MAC address of the node in the corresponding relation;
and if the two determined IP addresses are different, taking the IP address in the corresponding relation as the own IP address.
12. The node of claim 11, wherein the node is an IP address translation node;
the configuration module is specifically configured to:
receiving MAC addresses and corresponding IP addresses sent by other nodes;
if the received IP address has a repeated IP address, converting the repeated IP address into an IP address which is not repeated with all other IP addresses;
and adding the MAC address and the corresponding converted IP address into the configuration information.
CN201611219398.3A 2016-12-26 2016-12-26 Method for configuring node and node Active CN107070688B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611219398.3A CN107070688B (en) 2016-12-26 2016-12-26 Method for configuring node and node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611219398.3A CN107070688B (en) 2016-12-26 2016-12-26 Method for configuring node and node

Publications (2)

Publication Number Publication Date
CN107070688A CN107070688A (en) 2017-08-18
CN107070688B true CN107070688B (en) 2020-06-16

Family

ID=59623770

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611219398.3A Active CN107070688B (en) 2016-12-26 2016-12-26 Method for configuring node and node

Country Status (1)

Country Link
CN (1) CN107070688B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108234217A (en) * 2018-01-23 2018-06-29 深圳市天贝物联科技有限公司 Networking equipment method of automatic configuration, electronic equipment and storage medium
CN109274535A (en) * 2018-10-11 2019-01-25 郑州云海信息技术有限公司 A kind of netinit method and apparatus

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425953B (en) * 2008-12-09 2011-01-19 中兴通讯股份有限公司 Address updating method for Ether ring network and network node
CN101656650B (en) * 2009-09-17 2011-11-09 杭州华三通信技术有限公司 Method and main link device for realizing automatic configuration of Ethernet ring
CN101815107B (en) * 2010-05-13 2013-10-09 华为技术有限公司 Method, system and equipment for managing address in Ethernet ring
CN102014001B (en) * 2010-12-08 2012-10-17 迈普通信技术股份有限公司 Method and exchange equipment for realizing fast Ethernet ring
CN102571452B (en) * 2012-02-20 2015-04-08 华为技术有限公司 Multi-node management method and system
CN103152390B (en) * 2013-02-04 2016-03-30 华为技术有限公司 The node configuration method of distributed memory system, device, node and system

Also Published As

Publication number Publication date
CN107070688A (en) 2017-08-18

Similar Documents

Publication Publication Date Title
CN104753697B (en) A kind of method, equipment and system controlling the automatic beginning of the network equipment
US7496052B2 (en) Automatic VLAN ID discovery for ethernet ports
TWI449380B (en) Data center network system and packet forwarding method thereof
JP7416919B2 (en) Data processing methods and devices and computer storage media
US20120294192A1 (en) Method and apparatus of connectivity discovery between network switch and server based on vlan identifiers
EP2854377B1 (en) A method for centralized address resolution
US6944130B1 (en) Method and apparatus for determining a layer 2 path in a switched network
CN107579900B (en) Method, device and system for accessing VX L AN network from V L AN network
JPH09500774A (en) Communication device and communication method
JP2005006303A (en) Virtual network address
CN105337754B (en) Data communication network opening method and system
CN107733795B (en) Ethernet virtual private network EVPN and public network intercommunication method and device
CN108377262A (en) Manage the method for the service chaining at the network equipment, the corresponding network equipment
US20140317313A1 (en) Nat sub-topology management server
JP2019521619A (en) Packet forwarding
CN112887229B (en) Session information synchronization method and device
US20150030027A1 (en) Switch Device With Device-Specified Bridge Domains
US8218446B2 (en) Frame transfer route confirmation method, node, frame transfer route confirmation program and frame transfer route confirmation system
US8914503B2 (en) Detected IP link and connectivity inference
US20190215191A1 (en) Deployment Of Virtual Extensible Local Area Network
CN107070688B (en) Method for configuring node and node
CN112787930B (en) Method, device and storage medium for monitoring running state of peer
CN111404797B (en) Control method, SDN controller, SDN access point, SDN gateway and CE
CN108718275B (en) Message forwarding method and device
CN114422218A (en) Tenant isolation method, device and storage medium

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
CB02 Change of applicant information

Address after: 100094 First to Fifth Floors of Building 11, East Yard, No. 10 Wangdong Road, Northwest Haidian District, Beijing

Applicant after: Raisecom Technology Inc.

Address before: 100085 No. 2 Building, No. 28 Shangdi Sixth Street, Haidian District, Beijing

Applicant before: Raisecom Technology Inc.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant