CN107493177B - Communication method and device of network equipment - Google Patents

Communication method and device of network equipment Download PDF

Info

Publication number
CN107493177B
CN107493177B CN201610406693.3A CN201610406693A CN107493177B CN 107493177 B CN107493177 B CN 107493177B CN 201610406693 A CN201610406693 A CN 201610406693A CN 107493177 B CN107493177 B CN 107493177B
Authority
CN
China
Prior art keywords
control unit
main control
port
network management
network
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
CN201610406693.3A
Other languages
Chinese (zh)
Other versions
CN107493177A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610406693.3A priority Critical patent/CN107493177B/en
Priority to PCT/CN2017/081744 priority patent/WO2017215352A1/en
Publication of CN107493177A publication Critical patent/CN107493177A/en
Application granted granted Critical
Publication of CN107493177B publication Critical patent/CN107493177B/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/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements

Abstract

The invention provides a communication method and a device of network equipment, wherein the communication method comprises the following steps: detecting port state information of a network management port of the current master control unit in the at least two master control units, wherein the network management ports of the at least two master control units are connected with network equipment, the master control units are mutually connected, and the current master control unit is a master control unit which is currently communicated with the network equipment; and controlling the current main control unit to communicate with the network equipment through the network management port of the current main control unit or controlling the current main control unit to communicate with the network equipment through the network management port of another main control unit according to the port state information of the network management port of the current main control unit. The current main control unit can communicate with the network equipment through any one of the two communication links, so that when one communication link fails, the current main control unit can automatically communicate with the network equipment through the other communication link without manual switching.

Description

Communication method and device of network equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a communication method and apparatus for a network device.
Background
In many current network devices, in order to achieve the effect of protecting redundancy, a dual-master mode is usually adopted, only the current primary master of two masters is reflected in a communication network, and only the current primary master can be seen for network management, and the devices are managed through a network management port on the primary master. It is now common practice to connect the network interface of the management device to the current master.
However, the current method for managing the device by using the network management port of the main master control has the following problems: if only the network port of the main master control is connected to the outside currently, when the network management link of the main master control fails, the management link cannot be automatically switched, so that the equipment loses control, or if only the network port of the standby master control is connected to the outside currently, when the network management link of the standby master control fails, the management link cannot be automatically switched, and manual switching is needed. In addition, when the primary-standby relationship between the primary main control and the standby main control changes, the management port of the network also needs to be manually switched to the current primary main control, and automatic switching cannot be performed.
Disclosure of Invention
The invention aims to provide a communication method and a communication device of network equipment, which are used for solving the problem that a management link needs to be manually switched when a network management link of a main master control or a standby master control fails.
In order to achieve the above object, the present invention provides a communication method of a network device, including:
detecting port state information of a network management port of a current main control unit in at least two main control units, wherein the network management ports of the at least two main control units are both connected with network equipment, the main control units are mutually connected, and the current main control unit is a main control unit which is currently communicated with the network equipment;
and controlling the current main control unit to communicate with the network equipment through the network management port of the current main control unit or controlling the current main control unit to communicate with the network equipment through the network management port of another main control unit according to the port state information of the network management port of the current main control unit.
Wherein, the step of controlling the current main control unit to communicate with the network device through the network management port of the current main control unit or controlling the current main control unit to communicate with the network device through the network management port of another main control unit according to the port state information of the network management port of the current main control unit comprises:
if the port state information of the network management port of the current main control unit indicates that the network management port of the current main control unit is normally connected with the network equipment, controlling the current main control unit to communicate with the network equipment through the network management port of the current main control unit;
and if the port state information of the network management port of the current main control unit indicates that the connection between the network management port of the current main control unit and the network equipment is abnormal, controlling the current main control unit to communicate with the network equipment through the network management port of the other main control unit.
Wherein, the step of controlling the current main control unit to communicate with the network device through the network management port of the current main control unit or controlling the current main control unit to communicate with the network device through the network management port of another main control unit according to the port state information of the network management port of the current main control unit comprises:
adding the port information of the network management port of the current main control unit into a two-layer forwarding domain according to the port state information of the network management port of the current main control unit to obtain a first forwarding address table, controlling the current main control unit to communicate with the network equipment through the network management port of the current main control unit according to the first forwarding address table, or adding the port information of the connection port of the current main control unit into the two-layer forwarding domain to obtain a second forwarding address table, and controlling the current main control unit to communicate with the network equipment through the network management port of another main control unit according to the second forwarding address table, wherein the current main control unit is connected with the other main control unit through the connection port.
After the step of controlling the current main control unit to communicate with the network device through the network management port of the current main control unit or controlling the current main control unit to communicate with the network device through the network management port of another main control unit according to the port state information of the network management port of the current main control unit, the communication method further includes:
if the port state information of the network management port of the current main control unit is monitored to be changed, the current main control unit is detected again in at least two main control units, and the current main control unit detected again is controlled to communicate with the network equipment.
Before the step of detecting the port state information of the network management port of the current master control unit in the at least two master control units, the communication method further includes:
acquiring master/standby state information of at least two master control units;
and detecting one main control unit and at least one standby main control unit in the at least two main control units according to the main/standby state information, and taking the main control unit as the current main control unit.
After the step of detecting one active main control unit and at least one standby main control unit in the at least two main control units according to the active/standby state information and using the active main control unit as the current main control unit, the communication method further includes:
if the main/standby state information is monitored to be changed, the main/standby state information of at least two main control units is obtained again;
and according to the re-acquired main and standby state information, re-detecting one main control unit and at least one standby main control unit in the at least two main control units, and taking the re-detected main control unit as the current main control unit.
An embodiment of the present invention further provides a communication apparatus of a network device, including:
the system comprises a detection module, a network equipment and a network equipment, wherein the detection module is used for detecting port state information of a network management port of a current main control unit in at least two main control units, the network management ports of the at least two main control units are connected with the network equipment, the main control units are mutually connected, and the current main control unit is a main control unit which is currently communicated with the network equipment;
and the control module is used for controlling the current main control unit to communicate with the network equipment through the network management port of the current main control unit or controlling the current main control unit to communicate with the network equipment through the network management port of another main control unit according to the port state information of the network management port of the current main control unit.
Wherein the control module comprises:
the first control submodule is used for controlling the current main control unit to communicate with the network equipment through the network management port of the current main control unit if the port state information of the network management port of the current main control unit indicates that the network management port of the current main control unit is normally connected with the network equipment;
and the second control submodule is used for controlling the current main control unit to communicate with the network equipment through the network management port of the other main control unit if the port state information of the network management port of the current main control unit indicates that the network management port of the current main control unit is abnormally connected with the network equipment.
The control module is configured to add port information of a network management port of the current master control unit to a two-layer forwarding domain according to port state information of the network management port of the current master control unit to obtain a first forwarding address table, control the current master control unit to communicate with the network device through the network management port of the current master control unit according to the first forwarding address table, or add port information of a connection port of the current master control unit to the two-layer forwarding domain to obtain a second forwarding address table, and control the current master control unit to communicate with the network device through the network management port of another master control unit according to the second forwarding address table, where the current master control unit is connected with the another master control unit through the connection port.
The communication device of the network device further includes:
and the first processing module is used for detecting the current main control unit in at least two main control units again and controlling the re-detected current main control unit to communicate with the network equipment if the change of the port state information of the network management port of the current main control unit is monitored.
The communication device of the network device further includes:
the first acquisition module is used for acquiring the master/standby state information of at least two master control units;
and the determining module is used for detecting one main control unit and at least one standby main control unit in the at least two main control units according to the main/standby state information, and taking the main control unit as the current main control unit.
The communication device of the network device further includes:
the second obtaining module is used for obtaining the main/standby state information of at least two main control units again if the main/standby state information is monitored to change;
and the second processing module is used for detecting one main control unit and at least one standby main control unit again in the at least two main control units according to the newly acquired main/standby state information, and taking the newly detected main control unit as the current main control unit.
The embodiment of the invention has the following beneficial effects:
in the above scheme of the embodiment of the present invention, in at least two main control units, port state information of a network management port of a current main control unit is detected; and controlling the current main control unit to communicate with the network equipment through the network management port of the current main control unit or controlling the current main control unit to communicate with the network equipment through the network management port of another main control unit according to the port state information of the network management port of the current main control unit. In the embodiment of the invention, the current main control unit can communicate with the network equipment through any one of the two communication links, so that when one communication link fails, the current main control unit can automatically communicate with the network equipment through the other communication link without manual switching.
Drawings
Fig. 1 is a first workflow diagram of a communication method of a network device according to an embodiment of the present invention;
FIG. 2 is a block diagram of a main control unit according to an embodiment of the present invention;
fig. 3 is a second workflow diagram of a communication method of a network device according to an embodiment of the present invention;
fig. 4 is a third flowchart of a communication method of a network device according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a first flow direction of a network management message in the embodiment of the present invention;
fig. 6 is a second flow direction diagram of a network management message in the embodiment of the present invention;
fig. 7 is a schematic diagram of all possible flow directions of a network management message in the embodiment of the present invention;
fig. 8 is a block diagram of a communication device of a network device according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings.
The embodiment of the invention provides a communication method and a communication device of network equipment, which solve the problem that a management link needs to be manually switched when a network management link of a main master control or a standby master control fails.
The first embodiment:
as shown in fig. 1, a communication method of a network device according to an embodiment of the present invention includes:
step 11: the method comprises the steps that port state information of a network management port of a current main control unit is detected in at least two main control units, wherein the network management ports of the at least two main control units are connected with network equipment, the main control units are connected with each other, and the current main control unit is a main control unit which is communicated with the network equipment at present.
In an embodiment of the present invention, as shown in fig. 2, each of the main control units (including the primary main control and the standby main control) may include a CPU processing unit, an ethernet L2 switching module, and an ethernet L3 switching module, where the CPU processing unit processes network packets between the network management system and the main control unit, and is responsible for initializing the ethernet L2 switching module and the ethernet L3 switching module after the device is powered on; the Ethernet L3 switching module is responsible for forwarding the network management message, can identify whether the network management message is the message of the device or other network element devices, can upload the local network management message to the CPU processing unit, and transfers the network management message of the non-access network element to other network elements according to the routing information of the network; the ethernet L2 switch module may specifically include three ports, i.e., a P1 port, a P2 port, and a P3 port, wherein the ethernet L2 switch module performs connection and communication with the ethernet L3 switch module through a P2 port, the ethernet L2 switch module connects with the network device through a P1 port, and the ethernet L2 switch module connects with the P3 port of the ethernet L2 switch module of another master control unit through a P3 port, i.e., in the embodiment of the present invention, the connection between the two master control units is realized through the P3 port of the ethernet L2 switch module, and each master control unit connects with the network device through the P1 port of the ethernet L2 switch module, so as to achieve the purpose that the network management port of each master control unit simultaneously accesses into the management network of the network management system, so that the current master control unit can communicate with the network device through any one of the two communication links, thereby when one of the two communication links fails, the communication with the network device can be automatically carried out through another communication link without manual switching.
Step 12: and controlling the current main control unit to communicate with the network equipment through the network management port of the current main control unit or controlling the current main control unit to communicate with the network equipment through the network management port of another main control unit according to the port state information of the network management port of the current main control unit.
In a specific embodiment of the present invention, the network management port of the current main control unit is specifically the above-mentioned P1 port, and the port state information of the network management port may include an up state and a down state, where the up state indicates that the network management port of the current main control unit is normally connected to the network device, and at this time, the current main control unit is controlled to communicate with the network device through the network management port of the current main control unit; and the down state indicates that the network management port of the current main control unit is abnormally connected with the network equipment, and at the moment, the current main control unit is controlled to communicate with the network equipment through the network management port of the other main control unit.
Specifically, according to the port state information of the network management port of the current main control unit, adding the port information of the network management port of the current main control unit into a two-layer forwarding domain to obtain a first forwarding address table, and controlling the current main control unit to communicate with the network device through the network management port of the current main control unit according to the first forwarding address table, or adding the port information of the connection port of the current main control unit into the two-layer forwarding domain to obtain a second forwarding address table, and controlling the current main control unit to communicate with the network device through the network management port of another main control unit according to the second forwarding address table, wherein the current main control unit is connected with the other main control unit through the connection port.
Assuming that the port state information of the P1 port of the current master control unit is in a down state, the P2 port and the P3 port of the current master control unit (the port information of the connection port of the current master control unit) need to be set to the same two-layer forwarding domain a, so as to obtain the second forwarding address table (at this time, the second forwarding address table includes the P2 port and the P3 port of the current master control unit); if the management port of the current main control unit is in the up state, adding the P1 port and the P2 port of the current main control unit into the two-layer forwarding domain A, removing the P3 port from the two-layer forwarding domain A to obtain a first forwarding address table (at the moment, the first forwarding address table comprises the P1 port and the P2 port of the current main control unit), and aging a media access control mac forwarding table to ensure that only one of two management links is in a working state, thereby effectively preventing mac drift.
Further, if it is monitored that the port state information of the network management port of the current master control unit changes, the current master control unit is detected again in at least two master control units, and the detected current master control unit is controlled to communicate with the network device.
In the above scheme of the embodiment of the present invention, in at least two main control units, port state information of a network management port of a current main control unit is detected; and controlling the current main control unit to communicate with the network equipment through the network management port of the current main control unit or controlling the current main control unit to communicate with the network equipment through the network management port of another main control unit according to the port state information of the network management port of the current main control unit. In the embodiment of the invention, the current main control unit can communicate with the network equipment through any one of the two communication links, so that when one communication link fails, the current main control unit can automatically communicate with the network equipment through the other communication link without manual switching.
Second embodiment:
as shown in fig. 3, a communication method of a network device according to an embodiment of the present invention includes:
step 31: the method comprises the steps that port state information of a network management port of a current main control unit is detected in at least two main control units, wherein the network management ports of the at least two main control units are connected with network equipment, the main control units are connected with each other, and the current main control unit is a main control unit which is communicated with the network equipment at present.
This step is the same as step 11 in the first embodiment, and is not described herein again.
Step 32: and if the port state information of the network management port of the current main control unit indicates that the connection between the network management port of the current main control unit and the network equipment is normal, controlling the current main control unit to communicate with the network equipment through the network management port of the current main control unit.
Specifically, if the network state information of the P1 port of the current main control unit is in the up state, it indicates that the network management port of the current main control unit is normally connected to the network device, and the current main control unit can communicate with the network device through the P1 port, at this time, the P1 port and the P2 port of the current main control unit are added into a two-layer forwarding domain, so that the network device communicates with the CPU of the current main control unit through the P1 port of the current main control unit, that is, the communication link at this time is the network device, the P1 port of the current main control unit, the P2 port of the current main control unit, the ethernet L3 switching module of the current main control unit, and the CPU processing unit of the current main control unit.
Step 33: and if the port state information of the network management port of the current main control unit indicates that the connection between the network management port of the current main control unit and the network equipment is abnormal, controlling the current main control unit to communicate with the network equipment through the network management port of the other main control unit.
Specifically, if the network state information of the P1 port of the current main control unit is in a down state, it indicates that the connection between the network management port of the current main control unit and the network device is abnormal, and the current main control unit cannot communicate with the network device through the P1 port, at this time, the P3 port and the P2 port of the current main control unit are added into a two-layer forwarding domain, so that the network device communicates with the CPU of the current main control unit through another main control unit connected to the P3 port of the main control unit, that is, the communication link at this time is the network device, the P1 port of another main control unit, the P3 port of another main control unit, the P3 port of the current main control unit, the P2 port of the current main control unit, the ethernet L3 switching module of the current main control unit, and the CPU processing unit of the current main control unit.
In the specific embodiment of the present invention, when the P1 port of the current main control unit is connected to the network device normally, the CPU processing unit of the current main control unit acquires the network packet through the P1 port of the current main control unit and interacts with the network device, and when the P1 port of the current main control unit is connected to the network device abnormally, the CPU processing unit of the current main control unit acquires the network packet through the P1 port of another main control unit and interacts with the network device, and when one of the management links fails, the CPU processing unit can be automatically switched to the other management link, thereby achieving the purpose of automatic switching between the two management links.
The third embodiment:
as shown in fig. 4, a communication method of a network device according to an embodiment of the present invention includes:
step 41: acquiring master/standby state information of at least two master control units;
the communication method of the network equipment of the embodiment of the invention can be realized based on the following architecture: a CPU processing unit; a timing query unit; an ethernet L3 switching unit; a protection decision unit; ethernet L2 switching unit.
The CPU processing unit processes network management messages of the network management system and the device, can process various management messages of the network management, and is responsible for initializing the ethernet L3 switching unit and the ethernet L2 switching unit after the device is powered on.
The ethernet L3 switching unit is responsible for forwarding the network management message, can identify whether the network management message is a message of the device or other network element devices, can upload the local network management message to the CPU processing unit, and forwards the network management message of the non-accessed network element to other network elements according to the routing information of the network.
The timing query unit is mainly used for regularly querying the port state of the current main control unit and whether the current main control unit is the main control unit or the standby main control unit, wherein the port state is mainly obtained from the port detection unit and information is transmitted to the protection decision unit.
The protection decision unit regularly acquires the current master/standby state and the link establishment state of the network management port from the query unit, and decides the forwarding domain and the forwarding state of the current Ethernet L2 switching unit according to the queried information, and the rule is as follows:
1. ensuring that the currently used network management link message can be sent to the current master Ethernet L2 switching unit;
2. currently, the main master control can only select one link from the network pipe orifice of the local board and the network pipe orifice of the back board to send the network management message to the Ethernet L3 switching unit, and if the management orifice on the main master control is in an up state for the sending direction, the management orifice is preferred;
3. the messages of the management link of the standby master control cannot be sent to the ethernet L3 switching unit of the standby master control, and when the management port of the active master control is in the up state, it needs to be ensured that the messages of the management port can be sent to the active master control.
The Ethernet L2 switching unit configures the switching domain of the unit according to the configuration information of the protection decision unit.
Specifically, after the device is powered on, the ethernet L3 switching unit and the ethernet L2 switching unit are initialized to enable the switching units to work normally, a timer is started, and the protection decision unit acquires the master/standby state information through the timing query unit.
Step 42: and detecting one main control unit and at least one standby main control unit in the at least two main control units according to the main/standby state information, and taking the main control unit as the current main control unit.
Specifically, the protection decision unit determines whether the current board is the primary main control or the standby main control according to the primary and standby information reported by the timing query unit.
Step 43: the method comprises the steps that port state information of a network management port of a current main control unit is detected in at least two main control units, wherein the network management ports of the at least two main control units are connected with network equipment, the main control units are connected with each other, and the current main control unit is a main control unit which is communicated with the network equipment at present.
The port state information of the network management port of the current main control unit specifically refers to information on whether the network management port of the current main control unit is normally connected with the network device.
Step 44: and controlling the current main control unit to communicate with the network equipment through the network management port of the current main control unit or controlling the current main control unit to communicate with the network equipment through the network management port of another main control unit according to the port state information of the network management port of the current main control unit.
Specifically, if the current board is the master control, and the state information of the current on-board network management port reported by the timing query unit is down, the P2 port and the P3 port of the current master control unit need to be set to the same two-layer forwarding domain a, and at this time, the network management link channel refers to fig. 5; if the management port of the current master control unit is in the up state, the P1 port and the P2 port of the current master control unit are added into the two-layer forwarding domain a, meanwhile, the P3 port is removed from the two-layer forwarding domain a, and the mac forwarding table is aged, and at this time, the network management link channel refers to fig. 6.
If the current master control board is a standby master control, the protection decision unit removes the P2 port of the Ethernet L2 switching unit from the two-layer forwarding domain A, sets the P1 port and the P3 port to be the same forwarding domain A, and ages the forwarding table of the Ethernet L2 switching unit to ensure that only one management link works.
Further, if it is monitored that the master/standby state information changes, the master/standby state information of at least two master control units is obtained again;
and according to the re-acquired main and standby state information, re-detecting one main control unit and at least one standby main control unit in the at least two main control units, and taking the re-detected main control unit as the current main control unit.
In a specific embodiment of the present invention, when the active/standby state information of the main control unit changes, the active main control unit is detected again, and the network device is controlled to communicate with the network device through the CPU of the current active main control unit. In the embodiment of the invention, when the main and standby main control boards are switched, the link state can be switched in time, and the normal device management channel is ensured. Specifically, referring to fig. 7, it shows all flow directions of the network management message in the embodiment of the present invention, where the flow directions of the management message when the main and standby main control boards are switched are included, and it is assumed that the left main control unit in fig. 7 is the main master, and the right main control unit is the standby master, at this time, the CPU processing unit of the main master communicates with the network device, if the main-standby relationship of the main control units changes, that is, the left main control unit becomes the standby master, and the right main control unit becomes the main master, at this time, the CPU of the right main control unit communicates with the network device.
The communication method of the network equipment of the embodiment of the invention can simultaneously access the network management port to the network for the equipment with the main and standby main control, when a certain link is broken, manual switching is not needed, and the equipment can automatically select the other management link; the network communication method of the embodiment of the invention is simple to realize, is easy to realize by combining the existing modules of the current network equipment and has high practicability.
The fourth embodiment:
the following describes an implementation flow of the communication method of the network device according to the embodiment of the present invention.
The above process specifically includes: the method comprises the following steps: after the equipment is powered on, the software of the single board is loaded, after necessary software modules all run normally, the timer is started, the software of the main control single board timing query unit acquires the current main and standby state information of the main control board from the related modules of the single board, and the timing query module stores the current main and standby state information and the up/down state of the management port. If the current single board is the main master control, turning to the step two; if the master control is the standby master control, the step three is carried out.
Step two: under the condition that the current master control is the main master control and the query module normally operates, if the port of the port P1 is in a down state, the port P2 and the port P3 need to be set to be the same two-layer forwarding domain vlan4094, if the current management port is in an up state, the port P1 and the port P2 are added into the two-layer forwarding domain vlan4094, meanwhile, the port P3 is removed from the two-layer forwarding domain vlan4094, and meanwhile, the mac forwarding table is aged.
Step three: if the current master is the standby master, the port P2 is removed from the two-layer forwarding domain vlan4094, and the port P1 and the port P3 are set to the same forwarding domain vlan4094, while the mac forwarding table is aged out.
Step four: when the state of the network management port of the board is inquired to be changed by the timing inquiry module, the protection decision unit is required to be sent upwards, the protection decision unit judges whether the current board is a main master control or a standby master control again, and if the current board is the main master control, the step II is switched to; if the master control is the standby master control, the step three is carried out.
Step five: when the current query module queries that the main/standby state of the current single board changes, the current information needs to be uploaded to a protection decision unit, the protection decision unit judges whether the current single board is a main master control or a standby master control again, and if the current single board is the main master control, the step II is switched to; if the master control is the standby master control, the step three is carried out.
The communication method of the network equipment of the embodiment of the invention can simultaneously access the network management port to the network for the equipment with the main and standby main control, when a certain link is broken, manual switching is not needed, and the equipment can automatically select the other management link; the network communication method of the embodiment of the invention is simple to realize, is easy to realize by combining the existing modules of the current network equipment and has high practicability.
Fifth embodiment:
as shown in fig. 8, an embodiment of the present invention further provides a communication apparatus of a network device, including:
the detection module 81 is configured to detect port state information of a network management port of a current master control unit in at least two master control units, where the network management ports of the at least two master control units are both connected to a network device, the master control units are connected to each other, and the current master control unit is a master control unit currently communicating with the network device;
a control module 82, configured to control, according to port state information of the network management port of the current main control unit, the current main control unit to communicate with the network device through the network management port of the current main control unit, or control the current main control unit to communicate with the network device through the network management port of another main control unit.
In the communication apparatus of a network device according to an embodiment of the present invention, the control module 82 includes:
a first control submodule 821, configured to control the current main control unit to communicate with the network device through the network management port of the current main control unit if the port state information of the network management port of the current main control unit indicates that the network management port of the current main control unit is normally connected to the network device;
a second control submodule 822, configured to control the current main control unit to communicate with the network device through the network management port of the another main control unit if the port state information of the network management port of the current main control unit indicates that the network management port of the current main control unit is abnormally connected with the network device.
In the communication apparatus of network device in the embodiment of the present invention, the control module 82 is configured to add the port information of the network management port of the current main control unit to the second-layer forwarding domain according to the port state information of the network management port of the current main control unit, to obtain the first forwarding address table, and controls the current main control unit to communicate with the network device through the network management port of the current main control unit according to the first forwarding address table, or adding the port information of the connection port of the current main control unit into a second layer forwarding domain to obtain a second forwarding address table, and controls the current main control unit to communicate with the network device through the network management port of the other main control unit according to the second forwarding address table, and the current main control unit is connected with the other main control unit through the connecting port.
The communication device of the network device of the embodiment of the invention further comprises:
the first processing module 83 is configured to detect a current master control unit again in at least two master control units if it is monitored that the port state information of the network management port of the current master control unit changes, and control the detected current master control unit to communicate with the network device.
The communication device of the network device of the embodiment of the invention further comprises:
a first obtaining module 84, configured to obtain active/standby state information of at least two main control units;
the determining module 85 is configured to detect one active main control unit and at least one standby main control unit in the at least two main control units according to the active-standby state information, and use the active main control unit as the current main control unit.
The communication device of the network device of the embodiment of the invention further comprises:
a second obtaining module 86, configured to obtain the active-standby state information of at least two main control units again if it is monitored that the active-standby state information changes;
the second processing module 87 is configured to detect one active main control unit and at least one standby main control unit again in the at least two main control units according to the obtained active/standby state information, and use the detected active main control unit as the current main control unit.
It should be noted that the apparatus is an apparatus corresponding to the above method embodiment, and all the implementations in the above method embodiment are applicable to the embodiment of the apparatus, and the same technical effect can be achieved.
In the network communication method and the device of the embodiment of the invention, port state information of a network management port of a current main control unit is detected in at least two main control units; and controlling the current main control unit to communicate with the network equipment through the network management port of the current main control unit or controlling the current main control unit to communicate with the network equipment through the network management port of another main control unit according to the port state information of the network management port of the current main control unit. In the embodiment of the invention, the current main control unit can communicate with the network equipment through any one of the two communication links, so that when one communication link fails, the current main control unit can automatically communicate with the network equipment through the other communication link without manual switching.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (12)

1. A communication method of a network device, comprising:
when a main control unit and a standby main control unit which are connected with each other are respectively connected with the same network equipment through respective network management ports, the main control unit which is currently communicated with the network equipment detects port state information of the network management port of the main control unit;
if the port state information of the network management port of the main control unit is in the up state, the main control unit communicates with the network equipment through the network management port of the main control unit;
and if the port state information of the network management port of the main control unit is in a down state, the main control unit communicates with the network equipment through the network management port of the standby main control unit.
2. The communication method of the network device according to claim 1, wherein if the port state information of the network management port of the active main control unit is in an up state, the communicating between the active main control unit and the network device through the network management port of the active main control unit comprises:
adding the port information of the network management port of the main control unit into a two-layer forwarding domain according to the port state information of the network management port of the main control unit to obtain a first forwarding address table;
and the main master control unit communicates with the network equipment through the network management port of the main master control unit according to the first forwarding address table.
3. The communication method of the network device according to claim 1, wherein if the port state information of the network management port of the active main control unit is in a down state, the communicating between the active main control unit and the network device through the network management port of the standby main control unit comprises:
adding the port information of the connection port of the main control unit into a second-layer forwarding domain to obtain a second forwarding address table;
and the main control unit communicates with the network equipment through a network management port of the standby main control unit according to the second forwarding address table, wherein the main control unit is connected with the standby main control unit through the connection port.
4. The communication method of network equipment according to claim 1, wherein after the active main control unit communicates with the network equipment through the network management port of the active main control unit if the port state information of the network management port of the active main control unit is in an up state, and communicates with the network equipment through the network management port of the standby main control unit if the port state information of the network management port of the active main control unit is in a down state, the communication method further comprises:
if the port state information of the network management port of the main control unit is monitored to be changed, the main control unit is detected again, and the detected main control unit is controlled to communicate with the network equipment.
5. The communication method of network equipment according to claim 1, wherein before the detecting the port state information of the network management port of the active main control unit, the communication method further comprises:
acquiring master/standby state information of at least two master control units;
and detecting one main control unit and at least one standby main control unit in the at least two main control units according to the main/standby state information.
6. The communication method of network equipment according to claim 5, wherein after detecting one active main control unit and at least one standby main control unit in at least two main control units according to the active-standby state information, the communication method further comprises:
if the main/standby state information is monitored to be changed, the main/standby state information of at least two main control units is obtained again;
and according to the re-acquired main and standby state information, re-detecting one main control unit and at least one standby main control unit in the at least two main control units.
7. A communication apparatus of a network device, comprising:
the detection module is used for detecting port state information of a network management port of the main control unit which is currently communicated with the network equipment when the main control unit and the standby main control unit which are connected with each other are respectively connected with the same network equipment through respective network management ports;
and the control module is used for controlling the main control unit to communicate with the network equipment through the network management port of the main control unit if the port state information of the network management port of the main control unit is in an up state, and controlling the main control unit to communicate with the network equipment through the network management port of the standby main control unit if the port state information of the network management port of the main control unit is in a down state.
8. The communication apparatus of claim 7, wherein the control module is configured to add port information of the network management port of the active main control unit to a two-layer forwarding domain according to port state information of the network management port of the active main control unit to obtain a first forwarding address table, so that the active main control unit communicates with the network device through the network management port of the current main control unit according to the first forwarding address table.
9. The communication apparatus of claim 7, wherein the control module is configured to add port information of a connection port of the active main control unit to a two-layer forwarding domain to obtain a second forwarding address table, so that the active main control unit communicates with the network device through a network management port of the standby main control unit according to the second forwarding address table, where the active main control unit is connected to the standby main control unit through the connection port.
10. The communication apparatus of the network device according to claim 7, further comprising:
and the first processing module is used for detecting the main master control unit again and controlling the detected main master control unit to communicate with the network equipment if the change of the port state information of the network management port of the main master control unit is monitored.
11. The communication apparatus of the network device according to claim 7, further comprising:
the first acquisition module is used for acquiring the master/standby state information of at least two master control units;
and the determining module is used for detecting one main control unit and at least one standby main control unit in the at least two main control units according to the main/standby state information.
12. The communication apparatus of the network device according to claim 11, further comprising:
the second obtaining module is used for obtaining the main/standby state information of at least two main control units again if the main/standby state information is monitored to change;
and the second processing module is used for detecting one main control unit and at least one standby main control unit again in the at least two main control units according to the newly acquired main/standby state information.
CN201610406693.3A 2016-06-12 2016-06-12 Communication method and device of network equipment Active CN107493177B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610406693.3A CN107493177B (en) 2016-06-12 2016-06-12 Communication method and device of network equipment
PCT/CN2017/081744 WO2017215352A1 (en) 2016-06-12 2017-04-24 Communication method and apparatus for network device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610406693.3A CN107493177B (en) 2016-06-12 2016-06-12 Communication method and device of network equipment

Publications (2)

Publication Number Publication Date
CN107493177A CN107493177A (en) 2017-12-19
CN107493177B true CN107493177B (en) 2020-04-28

Family

ID=60642600

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610406693.3A Active CN107493177B (en) 2016-06-12 2016-06-12 Communication method and device of network equipment

Country Status (2)

Country Link
CN (1) CN107493177B (en)
WO (1) WO2017215352A1 (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100372253C (en) * 2005-06-02 2008-02-27 杭州华三通信技术有限公司 Switching method and device for service port in double master control system
CN101155109B (en) * 2006-09-30 2010-04-21 华为技术有限公司 Ethernet switching system and equipment
CN101127681B (en) * 2007-09-05 2011-01-19 杭州华三通信技术有限公司 Method and device for binding server MAC address with uplink port
CN101170394B (en) * 2007-11-27 2010-09-15 华为技术有限公司 A method and device for realizing inter-board interconnection
US7694053B2 (en) * 2008-04-14 2010-04-06 Astec International Limited Slave assembly for determining source of data received over a two-wire master-slave communications bus
JP5703201B2 (en) * 2011-12-02 2015-04-15 アラクサラネットワークス株式会社 Redundant control device and network system
CN202696905U (en) * 2012-07-23 2013-01-23 上海东洲罗顿通信股份有限公司 Master-standby switching device of indoor wireless controller
CN103744755A (en) * 2014-01-08 2014-04-23 烽火通信科技股份有限公司 Implement system for primary and standby veneer single port shared protection and method thereof

Also Published As

Publication number Publication date
WO2017215352A1 (en) 2017-12-21
CN107493177A (en) 2017-12-19

Similar Documents

Publication Publication Date Title
US9525591B2 (en) Relay system and switching device
US8213296B2 (en) Link aggregation protection
JP5350461B2 (en) Enhanced traffic indication in connection failure management
EP2663038B1 (en) Switch chip port management method, main control board, switch board, and system
US9794194B2 (en) Relay system and switching device
US9525609B2 (en) Relay system and switching device
CN104301146A (en) Link switching method and device in software defined network
WO2016165463A1 (en) Software defined network-based link failure reporting method and forwarding device
US9590815B2 (en) Relay system and switching device
US20140071810A1 (en) Communication system and processing method therefor
CN101588304A (en) Implementation method of VRRP
US10230540B2 (en) Method, device and system for communicating in a ring network
CN105024836B (en) Method and device for switching primary Service Router (SR) and standby SR and SR
CN103684716A (en) Method for transmitting messages in a redundantly operable industrial communication network and communication device for the redundantly operable industrial communication network
US9100210B2 (en) Redundant gateway system for device level ring networks
US20150312090A1 (en) Relay System and Switching Device
US20120204058A1 (en) Method and Device for Backing up User Information
US20130242798A1 (en) Apparatus for duplicating router in building automatic control system and controlling method thereof
US9225667B2 (en) Communication system and network relay apparatus
US9300529B2 (en) Communication system and network relay device
US20140269687A1 (en) Method for managing a switch chip port, main control board, switch board, and system
CN107493177B (en) Communication method and device of network equipment
WO2017215672A1 (en) Power supply method and power supply device in poe system
WO2017181778A1 (en) Method and apparatus for extending link between master controls of dual-master-control device
CN102739430B (en) Method and system for realizing Ethernet protection switching

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