CN110971519A - Port interconnection management method and device - Google Patents

Port interconnection management method and device Download PDF

Info

Publication number
CN110971519A
CN110971519A CN201911271733.8A CN201911271733A CN110971519A CN 110971519 A CN110971519 A CN 110971519A CN 201911271733 A CN201911271733 A CN 201911271733A CN 110971519 A CN110971519 A CN 110971519A
Authority
CN
China
Prior art keywords
port
lacp
link aggregation
aggregation group
interconnection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911271733.8A
Other languages
Chinese (zh)
Inventor
戴中亚
严云龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201911271733.8A priority Critical patent/CN110971519A/en
Publication of CN110971519A publication Critical patent/CN110971519A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/245Link aggregation, e.g. trunking
    • 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

Abstract

The invention discloses a management method and a device for port interconnection, which relate to the field of data communication.A local terminal device receives an LACP message which carries an identifier of a link aggregation group and an output port of an opposite terminal device for sending the LACP message; moreover, the invention can induce the dynamic change condition of the port interconnection relationship of the link aggregation group by introducing an aging mechanism. The invention can simplify the port interconnection method for obtaining the link aggregation group and reduce the consumption of network bandwidth.

Description

Port interconnection management method and device
Technical Field
The present invention relates to the field of data communications, and in particular, to a method and an apparatus for managing port interconnection.
Background
Link aggregation is a technology for binding a plurality of physical ports into one logical port, and the technology can treat a plurality of physical connections as a single logical connection, thereby allowing two network devices to be connected in parallel through a plurality of ports, and having the advantages of increasing network bandwidth, improving network connection reliability, load sharing flow and the like. The current link aggregation can be divided into two modes of static aggregation and dynamic aggregation. The dynamic convergence is implemented based on a Link Aggregation Control Protocol (LACP), and specifically, after a plurality of physical ports of the home device enable the LACP, the home device may send LACP messages to the peer device through the plurality of physical ports, respectively, so as to negotiate with the peer device whether the plurality of physical ports can perform Link convergence. After the opposite terminal device receives the LACP messages, the opposite terminal device can determine a physical port capable of performing link aggregation from the plurality of physical ports according to the device information carried in the LACP messages and the information of the plurality of physical ports. After the two end devices execute the above operations, the local end device and the opposite end device negotiate the physical ports capable of performing link aggregation consistently, and form a link aggregation group of the physical ports.
In an actual networking environment, after a plurality of ports of two devices form a link aggregation group through LACP, a device maintainer hopes that port information of an opposite end interconnected with each member port in the link aggregation group can be checked on the devices so as to perform processing such as connection investigation and problem positioning. Therefore, the device maintainer needs to start a Link Layer Discovery Protocol (LLDP for short) at all member ports of the Link aggregation group, and obtain the interconnection relationship in the Link aggregation group through LLDP message interaction between interconnection ports. However, in this scheme, the device maintenance personnel is required to open the LLDP on each member port of the link aggregation group, and if there are many member ports, the configuration process is very complicated and time-consuming. And after the LLDP is started, the interconnection ports can regularly exchange LLDP messages, so that precious bandwidth resources are occupied.
Disclosure of Invention
In order to solve the above problems, the present invention provides a method and an apparatus for managing port interconnection, which can discover a port interconnection relationship of a link aggregation group without occupying additional bandwidth, and can sense a dynamic change of the port interconnection relationship.
In a first aspect, the present invention provides a method for managing port interconnection, including the following steps:
the method comprises the steps that a local terminal device receives a Link Aggregation Control Protocol (LACP) message sent by an opposite terminal device, wherein the LACP message carries an identifier of a link aggregation group and information of an output port of the LACP message sent by the opposite terminal device;
and the local terminal equipment acquires an input port for receiving the LACP message, and creates an interconnection relation table item of the input port and the output port based on the link aggregation group.
Wherein, the reserved field of the LACP message carries the identifier of the link aggregation group and the information of the egress port of the LACP message sent by the opposite terminal device. The information of the egress port includes an identification of the egress port.
The method for acquiring the input port for receiving the LACP message by the local terminal equipment comprises the following steps: and after receiving the LACP message, the local terminal equipment acquires the identification of an input port for receiving the LACP message through a Mux state machine.
Preferably, after the creating an interconnection relation table entry of the ingress port and the egress port based on the link aggregation group, the method further includes: and if the input port in the interconnection relation table item does not receive the LACP message sent by the corresponding output port within a set time interval, starting aging processing on the interconnection relation table item.
In a second aspect, the present invention provides a management apparatus for port interconnection, which is applied to a home device of a link aggregation group, and specifically includes:
a receiving module, configured to receive a link aggregation control protocol LACP packet sent by an opposite end device, where the LACP packet carries an identifier of a link aggregation group and information of an egress port of the LACP packet sent by the opposite end device;
an acquisition module, configured to acquire an ingress port that receives the LACP packet;
and the management module is used for creating an interconnection relation table entry of the inlet port and the outlet port based on the link aggregation group.
Wherein, the reserved field of the LACP message carries the identifier of the link aggregation group and the information of the egress port of the LACP message sent by the opposite terminal device. The information of the egress port includes an identification of the egress port.
The acquisition module is specifically configured to: and after receiving the LACP message, the receiving module acquires the identifier of an input port for receiving the LACP message through a Mux state machine.
Preferably, the apparatus further comprises: an aging processing module; the aging processing module is specifically configured to: after the management module creates an interconnection relation table entry of the input port and the output port based on the link aggregation group, if the input port in the interconnection relation table entry does not receive the LACP message sent by the corresponding output port within a set time interval, the management module starts aging processing on the interconnection relation table entry.
In summary, in the present invention, an LACP message received by a home terminal device carries an identifier of a link aggregation group and an egress port of an opposite terminal device for sending the LACP message, and the home terminal device establishes a port interconnection relationship of the link aggregation group by acquiring an ingress port for receiving the LACP message; moreover, the invention can induce the dynamic change condition of the port interconnection relationship of the link aggregation group by introducing an aging mechanism. The invention can simplify the port interconnection method for obtaining the link aggregation group and reduce the consumption of network bandwidth.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a flowchart illustrating a method for managing port interconnection according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a management apparatus for port interconnection according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating another port interconnection management apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
The following are detailed descriptions of the respective embodiments.
Example one
The embodiment of the invention provides a management method of port interconnection, and the processing flow chart is shown in figure 1, which comprises the following steps:
step S101, a local terminal device receives a Link Aggregation Control Protocol (LACP) message sent by an opposite terminal device, wherein the LACP message carries an identifier of a link aggregation group and information of an output port of the LACP message sent by the opposite terminal device.
In this step, the reserved field of the LACP packet carries the identifier of the link aggregation group and information of an egress port of the LACP packet sent by the peer device, and may be carried in a Type-Length-Value (TLV) manner or the like. The information of the egress port may include an identification of the egress port (e.g., the name of the egress port). It may also be that the information of the egress port may include an identification of the egress port (e.g., the name of the egress port) and description information of the egress port. The egress port is a member port of the link aggregation group at the opposite device. And the local terminal equipment acquires the information of the output port of the LACP message sent by the opposite terminal equipment by analyzing the LACP message.
Step S102, the local device obtains an ingress port for receiving the LACP packet, and creates an interconnection relation table entry between the ingress port and the egress port based on the link aggregation group.
As an embodiment of the present invention, after receiving the LACP message, the home device obtains an identifier of an ingress port receiving the LACP message through a Mux (corresponding to chinese translation: multiplexer, or multiplexer) state machine, where the ingress port is a member port of the link aggregation group in the home device. When the local terminal equipment acquires an input port for receiving the LACP message and an output port for sending the LAPC message by the opposite terminal equipment, searching an interconnection relation table item corresponding to the input port and the output port based on the link aggregation group. And if not, establishing an interconnection relation table entry of the inlet port and the outlet port based on the link aggregation group. The interconnection relation table entry may include an identification of the egress port and an identification of the ingress port. The interconnection relation table entry may further include an identifier of the egress port, description information of the egress port, and an identifier of the ingress port.
It should be noted that, in the present invention, after the home terminal device and the opposite terminal device negotiate a consistency with respect to physical ports capable of performing link aggregation, the opposite terminal device sequentially uses each member port of the link aggregation group as an egress port to send the LACP message to the home terminal device, and the home terminal device receives the LACP message respectively and sequentially creates an interconnection relationship table entry corresponding to an ingress port and an egress port of the LACP message based on the link aggregation group. If a certain member port or a certain member link in the link aggregation group fails and recovers, the opposite terminal device will send the LACP message to the home terminal device by using the member port with the recovered failure as an output port, and after receiving the LACP message, the home terminal device creates an interconnection relation table entry corresponding to the input port and the output port of the LACP message based on the link aggregation group.
As a preferred embodiment of the present invention, when the local device searches for the interconnection relationship table entry corresponding to the ingress port and the egress port based on the link aggregation group, if the interconnection relationship table entry is not found, the interconnection relationship table entry of the ingress port and the egress port is created based on the link aggregation group, and the aging time of the interconnection relationship table entry is set as a set time interval; otherwise, refreshing the aging time of the interconnection relation table entry. And if the input port in the interconnection relation table item does not receive the LACP message sent by the corresponding output port within a set time interval, starting aging processing on the interconnection relation table item.
In summary, in the present invention, an LACP message received by a home terminal device carries an identifier of a link aggregation group and an egress port of an opposite terminal device for sending the LACP message, and the home terminal device establishes a port interconnection relationship of the link aggregation group by acquiring an ingress port for receiving the LACP message; moreover, the invention can induce the dynamic change condition of the port interconnection relationship of the link aggregation group by introducing an aging mechanism. The invention can simplify the port interconnection method for obtaining the link aggregation group and reduce the consumption of network bandwidth.
Example two
An embodiment of the present invention provides a management apparatus 20 for port interconnection, which is applied to a local device of a link aggregation group, and a schematic diagram of the management apparatus is shown in fig. 2, where the management apparatus includes:
a receiving module 201, configured to receive a link aggregation control protocol LACP packet sent by an opposite end device, where the LACP packet carries an identifier of a link aggregation group and information of an egress port of the LACP packet sent by the opposite end device;
an obtaining module 202, configured to obtain an ingress port that receives the LACP packet;
a management module 203, configured to create an interconnection relation table entry between the ingress port and the egress port based on the link aggregation group.
Wherein, the reserved field of the LACP message carries the identifier of the link aggregation group and the information of the egress port of the LACP message sent by the opposite terminal device. The information of the egress port includes an identification of the egress port.
The obtaining module 202 is specifically configured to: after receiving the LACP message, the receiving module 201 obtains an identifier of an ingress port that receives the LACP message through a Mux state machine.
As a preferred embodiment of the present invention, as shown in fig. 3, the apparatus 20 further includes: an aging processing module 204; the aging processing module 204 is specifically configured to: after the management module 203 creates an interconnection relationship table entry between the input port and the output port based on the link aggregation group, if the input port in the interconnection relationship table entry does not receive the LACP message sent by the corresponding output port within a set time interval, the management module starts aging processing on the interconnection relationship table entry. The usage of the other modules in fig. 3 is the same as that of the corresponding modules in the second embodiment, and is not described herein again.
In summary, in the present invention, an LACP message received by a home terminal device carries an identifier of a link aggregation group and an egress port of an opposite terminal device for sending the LACP message, and the home terminal device establishes a port interconnection relationship of the link aggregation group by acquiring an ingress port for receiving the LACP message; moreover, the invention can induce the dynamic change condition of the port interconnection relationship of the link aggregation group by introducing an aging mechanism. The invention can simplify the port interconnection method for obtaining the link aggregation group and reduce the consumption of network bandwidth.
All parts of the specification are described in a progressive mode, the same and similar parts of all embodiments can be referred to each other, and each embodiment is mainly introduced to be different from other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the description of the method embodiment section.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for managing port interconnections, the method comprising:
the method comprises the steps that a local terminal device receives a Link Aggregation Control Protocol (LACP) message sent by an opposite terminal device, wherein the LACP message carries an identifier of a link aggregation group and information of an output port of the LACP message sent by the opposite terminal device;
and the local terminal equipment acquires an input port for receiving the LACP message, and creates an interconnection relation table item of the input port and the output port based on the link aggregation group.
2. The method of claim 1, wherein a reserved field of the LACP packet carries an identifier of the link aggregation group and information of an egress port from which the opposite end device sends the LACP packet.
3. The method of claim 1, wherein the information of the egress port includes an identification of the egress port.
4. The method of claim 1, wherein the acquiring, by the home device, an ingress port for receiving the LACP packet comprises: and after receiving the LACP message, the local terminal equipment acquires the identification of an input port for receiving the LACP message through a Mux state machine.
5. The method of any of claims 1-4, wherein after the creating an interconnection relationship table entry for the ingress port and the egress port based on the link aggregation group, the method further comprises:
and if the input port in the interconnection relation table item does not receive the LACP message sent by the corresponding output port within a set time interval, starting aging processing on the interconnection relation table item.
6. The utility model provides a management device of port interconnection which characterized in that, is applied to the home terminal equipment of link aggregation group, includes:
a receiving module, configured to receive a link aggregation control protocol LACP packet sent by an opposite end device, where the LACP packet carries an identifier of a link aggregation group and information of an egress port of the LACP packet sent by the opposite end device;
an acquisition module, configured to acquire an ingress port that receives the LACP packet;
and the management module is used for creating an interconnection relation table entry of the inlet port and the outlet port based on the link aggregation group.
7. The apparatus of claim 6, wherein a reserved field of the LACP packet carries an identifier of the link aggregation group and information of an egress port from which the opposite end device sends the LACP packet.
8. The apparatus of claim 6, wherein the information of the egress port includes an identification of the egress port.
9. The apparatus of claim 6, wherein the acquisition module is specifically configured to: and after receiving the LACP message, the receiving module acquires the identifier of an input port for receiving the LACP message through a Mux state machine.
10. The apparatus of any of claims 6-9, wherein the apparatus further comprises: an aging processing module;
the aging processing module is specifically configured to: after the management module creates an interconnection relation table entry of the input port and the output port based on the link aggregation group, if the input port in the interconnection relation table entry does not receive the LACP message sent by the corresponding output port within a set time interval, the management module starts aging processing on the interconnection relation table entry.
CN201911271733.8A 2019-12-12 2019-12-12 Port interconnection management method and device Pending CN110971519A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911271733.8A CN110971519A (en) 2019-12-12 2019-12-12 Port interconnection management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911271733.8A CN110971519A (en) 2019-12-12 2019-12-12 Port interconnection management method and device

Publications (1)

Publication Number Publication Date
CN110971519A true CN110971519A (en) 2020-04-07

Family

ID=70033850

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911271733.8A Pending CN110971519A (en) 2019-12-12 2019-12-12 Port interconnection management method and device

Country Status (1)

Country Link
CN (1) CN110971519A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019432A (en) * 2020-07-31 2020-12-01 深圳市风云实业有限公司 Uplink input message forwarding system based on multiport binding
CN114268536A (en) * 2020-09-16 2022-04-01 中盈优创资讯科技有限公司 Full-automatic standard equipment port description method and device in telecommunication network

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101018228A (en) * 2006-12-22 2007-08-15 华为技术有限公司 A port convergence method and device
CN101094157A (en) * 2007-08-20 2007-12-26 中兴通讯股份有限公司 Method for implementing network interconnection by using link aggregation
CN101102222A (en) * 2007-06-05 2008-01-09 中兴通讯股份有限公司 A communication network connection method and its device
CN102077521A (en) * 2008-06-27 2011-05-25 爱立信电话股份有限公司 Method and system for link aggregation
CN102647355A (en) * 2012-04-12 2012-08-22 华为技术有限公司 LACP (Link Aggregation Control Protocol) consultation processing method, relay node and system
US20120320739A1 (en) * 2011-06-17 2012-12-20 International Business Machines Corporation Fault Tolerant Communication in a Trill Network
CN103023686A (en) * 2011-09-28 2013-04-03 中兴通讯股份有限公司 Interactive method among nodes in distributed link aggregation group system and nodes
CN105379221A (en) * 2014-06-30 2016-03-02 华为技术有限公司 Link aggregation method and device
CN108337163A (en) * 2018-02-07 2018-07-27 北京百度网讯科技有限公司 Method and apparatus for link aggregation

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101018228A (en) * 2006-12-22 2007-08-15 华为技术有限公司 A port convergence method and device
CN101102222A (en) * 2007-06-05 2008-01-09 中兴通讯股份有限公司 A communication network connection method and its device
CN101094157A (en) * 2007-08-20 2007-12-26 中兴通讯股份有限公司 Method for implementing network interconnection by using link aggregation
CN102077521A (en) * 2008-06-27 2011-05-25 爱立信电话股份有限公司 Method and system for link aggregation
US20120320739A1 (en) * 2011-06-17 2012-12-20 International Business Machines Corporation Fault Tolerant Communication in a Trill Network
CN103023686A (en) * 2011-09-28 2013-04-03 中兴通讯股份有限公司 Interactive method among nodes in distributed link aggregation group system and nodes
CN102647355A (en) * 2012-04-12 2012-08-22 华为技术有限公司 LACP (Link Aggregation Control Protocol) consultation processing method, relay node and system
CN105379221A (en) * 2014-06-30 2016-03-02 华为技术有限公司 Link aggregation method and device
CN108337163A (en) * 2018-02-07 2018-07-27 北京百度网讯科技有限公司 Method and apparatus for link aggregation

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019432A (en) * 2020-07-31 2020-12-01 深圳市风云实业有限公司 Uplink input message forwarding system based on multiport binding
CN112019432B (en) * 2020-07-31 2022-02-01 深圳市风云实业有限公司 Uplink input message forwarding system based on multiport binding
CN114268536A (en) * 2020-09-16 2022-04-01 中盈优创资讯科技有限公司 Full-automatic standard equipment port description method and device in telecommunication network
CN114268536B (en) * 2020-09-16 2024-01-05 中盈优创资讯科技有限公司 Method and device for describing equipment port in full-automatic standard telecommunication network

Similar Documents

Publication Publication Date Title
US7639605B2 (en) System and method for detecting and recovering from virtual switch link failures
CN111095869A (en) Method and system for high availability enhancement for computer networks
US20090232152A1 (en) Method and apparatus for aggregating ports
CN114024880B (en) Network target range probe acquisition method and system based on proxy IP and flow table
CN110868278B (en) Method for dual-computer redundancy of communication front-end processor of rail transit comprehensive monitoring system
CN108667638A (en) A kind of network service configuration method and network management device
CN105763471A (en) Link management method, device and system in virtual machine environment
CN110971519A (en) Port interconnection management method and device
CN112383933A (en) Wireless CPE (customer premises equipment) and method for realizing load balancing based on wireless CPE
CN112769602A (en) System and method for unified configuration management of white box switch and network operating system
CN104518936A (en) Method and device for link dynamic aggregation
CN100512168C (en) Apparatus for connecting wireless network with at least one other network
CN112202877A (en) Gateway linkage method, gateway, cloud server and user terminal
CN111901395B (en) Multi-cluster switching method and device
CN111918306B (en) Method and system for realizing network element communication under IP unreachable scene
CN111092952B (en) Data interaction method and related product
CN102594696B (en) A kind of method and device managing network device link aggregation group
CN103501239B (en) A kind of port status synchronous method, relevant device and system
CN210274135U (en) Remote connection system
CN103313425B (en) Establish implementation method, the apparatus and system of service chaining
CN106304241B (en) Data transmission method, repeater and gateway
CN107590981A (en) A kind of LORAWAN ammeters communication module and its control method
CN104270255A (en) A module and method for communication between nodes based on LINX progress
CN110830602A (en) Distribution network terminal communication test system and method based on dynamic domain name resolution
CN101030970B (en) Fast database migration

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200407