CN108418709A - Port convergence method and device - Google Patents

Port convergence method and device Download PDF

Info

Publication number
CN108418709A
CN108418709A CN201810132807.9A CN201810132807A CN108418709A CN 108418709 A CN108418709 A CN 108418709A CN 201810132807 A CN201810132807 A CN 201810132807A CN 108418709 A CN108418709 A CN 108418709A
Authority
CN
China
Prior art keywords
port
aggregation group
network equipment
group
aggregation
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.)
Granted
Application number
CN201810132807.9A
Other languages
Chinese (zh)
Other versions
CN108418709B (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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201810132807.9A priority Critical patent/CN108418709B/en
Publication of CN108418709A publication Critical patent/CN108418709A/en
Application granted granted Critical
Publication of CN108418709B publication Critical patent/CN108418709B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • 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/0893Assignment of logical groups to network elements

Abstract

The present invention relates to a kind of port convergence method and devices, including:The syndication message that second network equipment is sent is received by the first port of the first network equipment, the syndication message is identified including the first aggregation group;It is identified according to first aggregation group, is searched in the aggregation group that the first network equipment includes and identify matched aggregation group with first aggregation group;Matched aggregation group is identified with first aggregation group if found, the first port is added into the aggregation group.A kind of port convergence method and device according to the ... of the embodiment of the present invention, can improve polymerization efficiency, and avoid the problem that the configuration error caused by manual configuration aggregation group.

Description

Port convergence method and device
Technical field
The present invention relates to network technique field more particularly to a kind of port convergence methods and device.
Background technology
Customer edge (full name in English:Customer Edge, referred to as:CE) equipment passes through Connection Service provider network Service edge (full name in English:Provider Edge, referred to as:PE) equipment provides network service access to the user.CE equipment Communication link is established between physical port and the physical port of PE equipment, realizes data forwarding.
In order to increase bandwidth and improve the reliability of communication, the redundant link between equipment is reduced.Administrative staff can distinguish Aggregation configuration is carried out to the port in CE, PE equipment, creates matched aggregation group in CE, PE equipment, and port is added pair In the aggregation group answered.Port in aggregation group is connected in parallel simultaneous transmission data, and then realizes the communication of CE, PE equipment.
But during the establishment of existing aggregation group, since the aggregation group in each equipment is that administrative staff create manually It builds, when number of devices is more, port trunking efficiency is low, there is also the situation for creating mistake.Furthermore if creating mistake also Can cause port that aggregation group can not correctly be added, but also terminal device can not normal communication, influence communication efficiency.
Invention content
In view of this, the present invention proposes a kind of port convergence method and device, to improve polymerization efficiency, and avoid manually The problem of configuring the configuration error caused by aggregation group improves communication efficiency.
In a first aspect, the present invention provides a kind of port convergence method, it is applied to first network equipment, including:
The syndication message that second network equipment is sent, the polymerization are received by the first port of the first network equipment Message is identified including the first aggregation group;
It is identified according to first aggregation group, is searched and described first in the aggregation group that the first network equipment includes Aggregation group identifies matched aggregation group;
Matched aggregation group is identified with first aggregation group if found, the first port is added to described In aggregation group.
With reference to first aspect, in the first possible implementation, the method further includes:
Matched aggregation group is identified with first aggregation group if do not found, is identified according to first aggregation group Create corresponding aggregation group;
The first port is added in the aggregation group after creating.
With reference to first aspect, or with reference to first aspect the possible realization method of the first, in second of possible reality In existing mode, the first aggregation group mark includes device identification and port trunking ability label;
It is described according to first aggregation group identify, in the aggregation group that the first network equipment includes search with it is described First aggregation group identifies matched aggregation group, including:
In the aggregation group that the first network equipment includes, search and the device identification and port trunking ability label Matched aggregation group.
The possible realization method of with reference to first aspect the first, in the third possible realization method,
The method further includes:
Obtain the port attribute information of the first port;
Using the port attribute information of the first port as the attribute information of the aggregation group middle port after creating.
The possible realization method of with reference to first aspect or with reference to first aspect the first, in the 4th kind of possible realization In mode, the method further includes:
When preset time period does not receive the data message that second network equipment is sent by the first port, obtain Take the corresponding polymerization methods mark of the first port;
When there is the port in addition to the first port in the aggregation group where the first port, according to described poly- Conjunction mode identifies, and the first port is deleted from the aggregation group;Alternatively, in aggregation group where the first port not When in the presence of port in addition to the first port, is identified according to the polymerization methods, the aggregation group is deleted.
In second aspect, the present invention provides a kind of port trunking devices, are applied to first network equipment, including:
Receiving module, for receiving the polymerization that second network equipment is sent by the first port of the first network equipment Message, the syndication message are identified including the first aggregation group;
Searching module, for being identified according to first aggregation group, in the aggregation group that the first network equipment includes It searches and identifies matched aggregation group with first aggregation group;
First aggregation module will be described if identifying matched aggregation group with first aggregation group for finding First port is added into the aggregation group.
In conjunction with second aspect, in the first possible implementation, described device further includes:
Creation module, if identifying matched aggregation group with first aggregation group for not finding, according to First aggregation group mark creates corresponding aggregation group;
Second aggregation module, for the first port to be added in the aggregation group after creating.
In conjunction with second aspect, or the first possible realization method of second aspect is combined, in second of possible reality In existing mode, the first aggregation group mark includes device identification and port trunking ability label;
The searching module, including:
Search submodule, in the aggregation group that the first network equipment includes, search with the device identification and The matched aggregation group of port trunking ability label.
In conjunction with the first possible realization method of second aspect, in the third possible realization method, described device Further include:
First acquisition module, the port attribute information for obtaining the first port;
Processing module, for using the port attribute information of the first port as the aggregation group middle port after creating Attribute information.
In conjunction with the first possible realization method of second aspect or combination second aspect, in the 4th kind of possible realization In mode, described device further includes:
Second acquisition module is sent out for not receiving second network equipment by the first port in preset time period When the data message sent, the corresponding polymerization methods mark of the first port is obtained;
Removing module, for there is the port in addition to the first port in the aggregation group where the first port When, the first port is deleted from the aggregation group according to polymerization methods mark;Alternatively, where the first port Aggregation group in when there is no port in addition to the first port, identified according to the polymerization methods, by the aggregation group It deletes.
In the third aspect, the present invention provides a kind of port trunking devices, including:Including processor and machine readable storage Medium, the machine readable storage medium are stored with the machine-executable instruction that can be executed by the processor, the processing Device can perform the machine-executable instruction to realize above-mentioned port convergence method.
In fourth aspect, the present invention provides a kind of non-volatile computer readable storage medium storing program for executing, are stored thereon with calculating Machine program instruction, the computer program instructions realize above-mentioned port convergence method when being executed by processor.
Therefore, by applying port convergence method provided in an embodiment of the present invention and device, first network equipment to pass through the Single port receives the syndication message that second network equipment is sent, and the first aggregation group for including according to syndication message is identified in local Matched aggregation group is searched, and is being found with after the matched aggregation group of the first aggregation group mark, this is added in first port and is gathered In being combined, to complete the port trunking of the first port of first network equipment.So, first network equipment can be second After the network equipment completes polymerization, the port that first network equipment is automatically performed according to the syndication message of second network equipment transmission is poly- It closes, polymerization efficiency can either be improved, and can avoid the problem that the configuration error caused by manual configuration aggregation group.
According to below with reference to the accompanying drawings becoming to detailed description of illustrative embodiments, other feature of the invention and aspect It is clear.
Description of the drawings
Including in the description and the attached drawing of a part for constitution instruction and specification together illustrate the present invention's Exemplary embodiment, feature and aspect, and principle for explaining the present invention.
Fig. 1 shows the schematic diagram that network equipment port polymerize in the embodiment of the present invention.
Fig. 2 shows the flow charts of port convergence method according to an embodiment of the invention.
Fig. 3 shows the flow chart of port convergence method according to an embodiment of the invention.
Fig. 4 shows the flow chart of port convergence method according to an embodiment of the invention.
Fig. 5 shows the flow chart of port convergence method according to an embodiment of the invention.
Fig. 6 shows the flow chart of port convergence method according to an embodiment of the invention.
Fig. 7 shows the structure diagram of port trunking device according to an embodiment of the invention.
Fig. 8 shows the structure diagram of port trunking device according to an embodiment of the invention.
Fig. 9 is a kind of hardware block diagram of port trunking device shown according to an exemplary embodiment.
Specific implementation mode
Below with reference to attached drawing various exemplary embodiments, feature and the aspect that the present invention will be described in detail.It is identical in attached drawing Reference numeral indicate functionally the same or similar element.Although the various aspects of embodiment are shown in the accompanying drawings, remove It non-specifically points out, it is not necessary to attached drawing drawn to scale.
Dedicated word " exemplary " means " being used as example, embodiment or illustrative " herein.Here as " exemplary " Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, in order to better illustrate the present invention, numerous details is given in specific implementation mode below. It will be appreciated by those skilled in the art that without certain details, the present invention can equally be implemented.In some instances, for Method, means, element and circuit well known to those skilled in the art are not described in detail, in order to highlight the purport of the present invention.
In order to solve it is existing by manual configuration complete the network equipment port trunking, caused allocative efficiency it is low and Configuration error causes the network equipment can not work normally, the low problem of communication efficiency caused by.Fig. 1 shows implementation of the present invention The schematic diagram that network equipment port polymerize in example, including first network equipment and second network equipment.First network equipment and Two network equipments include multiple ports.
As shown in Figure 1, the embodiment of the present invention second network equipment second port complete polymerization (it is understood that The port of second network equipment shown in FIG. 1 has been added in corresponding aggregation group) after, to the first port of first network equipment Send corresponding syndication message.It is automatically complete according to syndication message after first network equipment receives syndication message by first port At the polymerization of first port, the efficiency of port trunking is improved, and is alleviated since configuration error causes the network equipment can not normal work The problem of making improves communication efficiency.
Fig. 2 shows the flow charts of port convergence method according to an embodiment of the invention, are applied to first network equipment, Middle first network equipment can be specially the network equipments such as server, interchanger.As shown in Fig. 2, the port convergence method include with Lower step.
Step 201 receives the syndication message that second network equipment is sent by the first port of first network equipment, In, syndication message is identified including the first aggregation group.
Specifically, second network equipment formerly carries out the port in equipment of itself according to the configuration-direct of administrative staff's input Polymerization is handled.For example, second network equipment is according to configuration-direct, by least one of equipment of itself port (for example, second end Mouthful) be added in the first aggregation group, and store the attribute information of the first aggregation group.The attribute information of first aggregation group includes polymerization Group mark.
Wherein, aggregation group mark includes but not limited to the device identification (MAC Address of such as equipment) of second network equipment, end The information such as mouth polymerizing power mark.
In embodiments of the present invention, it is logical during being communicated with first network equipment due to second network equipment The corresponding ports crossed between two equipment carry out the transmission of signaling, data (for example, the first port of first network equipment and second The second port of the network equipment corresponds to).Therefore, the port in equipment of itself is carried out port trunking processing by second network equipment Afterwards, second network equipment sends syndication message by second port to the first port of first network equipment, in the syndication message Carry the first aggregation group mark.First network equipment is directed to second port by what first port second network equipment of reception was sent Syndication message.
Illustratively, above-mentioned syndication message can be link aggregate control protocol (full name in English:Link Aggregation Control Protocol, referred to as:LACP) message.The configuration information of network equipment aggregation group, aggregation group are carried in syndication message Configuration information include:Locally aggregated group of mark (mark and local port polymerizing power of local network device identify), opposite end Aggregation group mark (mark and Peer-Port polymerizing power of peer network device identify).
In another example, above-mentioned syndication message can be Link Layer Discovery Protocol (full name in English:Link Layer Discovery Protocol, referred to as:LLDP) message.Extended coding value (full name in English is carried in LLDP messages:Tag, Length, Value, referred to as:TLV), TLV can carry the configuration information of network equipment aggregation group.For example, it is wrapped in TLV It includes:Locally aggregated group of mark (mark and local port polymerizing power of local network device identify), opposite end aggregation group mark are (right Hold the mark and Peer-Port polymerizing power mark of the network equipment).
Step 102 is identified according to the first aggregation group, is searched in the aggregation group that first network equipment includes and is polymerize with first Group identifies matched aggregation group.
Specifically, the aggregation group that first network equipment includes refers to the aggregation group that first network equipment has created.If the first net Other ports in network equipment in addition to first port had formerly carried out the processing of port trunking, then first network equipment is local Existing second aggregation group.First network equipment is identified according to the first aggregation group and is searched and the first aggregation group in the second aggregation group Identify matched aggregation group.
For example, the attribute information of the second aggregation group includes that locally aggregated group of mark and opposite end aggregation group identify, and first After the network equipment receives syndication message, opposite end aggregation group is identified as the first aggregation group mark the is searched in the second aggregation group Dimerization is combined.
If step 103 finds and identifies matched aggregation group with first aggregation group, the first port is added Enter into the aggregation group.
Under a kind of scene, specifically, multiple first aggregation groups are formerly created in second network equipment, and multiple In the presence of matched aggregation group is identified with the first aggregation group, (aggregation group includes the third end of second network equipment in one aggregation group Mouthful).Then, at this moment, second network equipment second port can be added in the aggregation group, and according to configuration-direct in second end When mouth UP (reaching the standard grade) corresponding syndication message is sent to the first port of first network equipment.
Further, if the third port of second network equipment and the 4th port of first network equipment are formerly completed Port trunking is handled, then at this point, first network equipment local there is also the first aggregation groups to identify corresponding second aggregation group.
First network equipment is found with after matched second aggregation group of the first aggregation group mark, and first port is added should In aggregation group, the port trunking of first port is completed.
For example, second network equipment locally has the first aggregation group of 1 characterization of aggregation group mark, second network equipment will After second port is added in the first aggregation group of 1 characterization of aggregation group mark, when second port (reaches the standard grade) state for UP, the second net Network equipment sends syndication message by second port to the first port of first network equipment, and aggregation group is carried in the syndication message Mark 1.First network equipment receives syndication message by first port, and is identified as aggregation group locally searching opposite end aggregation group Second aggregation group of mark 1, if finding the second aggregation group that aggregation group is identified as 1 in local, first network equipment will First port is added the opposite end aggregation group and is identified as in the second aggregation group of aggregation group mark 1, to complete the port of first port Polymerization.
After the port trunking that first network equipment completes first port, first network equipment is by first port to second The second port data message transmission of the network equipment may include locally aggregated group of mark of the second aggregation group in the data message Know.Second network equipment receives the data message that first network equipment is sent by second port, if second network equipment creates When the first aggregation group, the opposite end aggregation group mark of the first aggregation group is initial marking (being, for example, null), then the second network is set The standby locally aggregated group of mark that the second aggregation group is obtained from above-mentioned data message, and locally aggregated group of the second aggregation group of setting It is identified as the opposite end aggregation group mark of the first aggregation group.
Therefore, by applying port convergence method provided in an embodiment of the present invention, first network equipment to pass through first port The syndication message for receiving the transmission of second network equipment, the first aggregation group mark for including according to syndication message is in locally lookup The aggregation group matched, and finding with after the matched aggregation group of the first aggregation group mark, first port is added in the aggregation group, To complete the port trunking of the first port of first network equipment.So, first network equipment can be set in the second network Standby to complete after polymerizeing, the syndication message sent according to second network equipment is automatically performed the port trunking of first network equipment, both Polymerization efficiency can be improved, and can avoid the problem that the configuration error caused by manual configuration aggregation group, improves communication efficiency.
In another embodiment, if first network equipment is not found identifies matched aggregation group with the first aggregation group, Then first network equipment can identify according to the first aggregation group and create aggregation group, and first port is added in the aggregation group, complete At the port trunking of first port.Below by way of the flow chart of port convergence method shown in Fig. 3, to the end of the embodiment of the present invention Mouth polymerization is described in detail.
Specifically, port convergence method shown in Fig. 3 includes the following steps.
Step 301 receives the syndication message that second network equipment is sent by the first port of first network equipment, In, syndication message is identified including the first aggregation group.
Step 302 is identified according to the first aggregation group, is searched in the aggregation group that first network equipment includes and is polymerize with first Group identifies matched aggregation group.
If step 303 finds and identifies matched aggregation group with the first aggregation group, first port is added to polymerization In group.
It should be noted that in the embodiment of the present invention, step 301 to step 303 and above-mentioned steps 201 to step 203 phase Similar, details are not described herein for the embodiment of the present invention.
If step 304 does not find and identifies matched aggregation group with the first aggregation group, identified according to the first aggregation group Create corresponding aggregation group.
Specifically, it after first network equipment receives above-mentioned syndication message by first port, is not finding and first When aggregation group identifies matched second aggregation group, first network equipment creates corresponding third polymerization according to the first aggregation group mark Group.
For example, opposite end aggregation group is identified as the first polymerization possessed by the third polymerization group that first network equipment creates Group mark.
First port is added in the aggregation group after creating step 305.
First port is added in the aggregation group after creating third polymerization group for first network equipment, completes first port Port trunking.For example, in embodiments of the present invention, first network equipment receives syndication message by first port, gathers It closes the aggregation group carried in message and is identified as aggregation group mark 1.First network equipment is identified as in locally lookup opposite end aggregation group Second aggregation group of aggregation group mark 1, when not finding the second aggregation group to match with aggregation group mark 1, first network Equipment creates third polymerization group, and the opposite end aggregation group of setting third polymerization group is identified as aggregation group mark 1.First network equipment will First port is added in third polymerization group, completes the port trunking of first port.
In one possible implementation, first network equipment is after creating third polymerization group, by the first aggregation group mark Know the opposite end aggregation group mark for being set as third polymerization group.So, if still being deposited in first network equipment, second network equipment It, can be at the step completing port polymerization by previous embodiment and the embodiment of the present invention in the port that corresponding aggregation group is added Reason.
Therefore, by applying port convergence method provided in an embodiment of the present invention, first network equipment to pass through first port The syndication message for receiving the transmission of second network equipment, the first aggregation group mark for including according to syndication message is in locally lookup The aggregation group matched, and do not finding with after the matched aggregation group of the first aggregation group mark, localling create the first aggregation group mark Know corresponding aggregation group, first port is added in the aggregation group created, to complete first network equipment end first port Port trunking.So, first network equipment is automatically performed first network according to the syndication message that second network equipment is sent The port trunking of equipment can either improve polymerization efficiency, and can avoid configuration error caused by manual configuration aggregation group Problem improves communication efficiency.
In another embodiment, the first aggregation group mark includes device identification and port trunking ability label, then and first The network equipment is locally being searched and device identification and the matched aggregation group of port trunking ability.Below by way of end shown in Fig. 4 The embodiment of the present invention is described in detail in the flow chart of mouth polymerization.
Specifically, port convergence method shown in Fig. 4 includes the following steps.
Step 401 receives the syndication message that second network equipment is sent by the first port of the first network equipment, The syndication message is identified including the first aggregation group;Wherein, the first aggregation group mark includes device identification and port trunking Ability label.
Specifically, device identification is the identification information for the uniqueness for characterizing second network equipment, such as:Second network equipment MAC Address.Above-mentioned port trunking ability label is the mark of the polymerizing power for the aggregation group for characterizing second network equipment, can be with It is the configuration combination generated according to the configuration (information such as rate, duplex, basic configuration, management Key) of port.Citing comes It says, for second network equipment when creating the first aggregation group, the attribute information of aggregation group includes locally aggregated group of mark (i.e. first Aggregation group identifies) and opposite end aggregation group mark.Wherein, locally aggregated group of mark includes device identification and port trunking ability mark Know, aggregation group mark in opposite end includes the port-mark of peer network device and the port trunking ability label of peer network device.
By taking second port as an example, after the first aggregation group is added in second port by second network equipment, to first network equipment First port send syndication message, the syndication message include the first aggregation group identify.
Step 402, in the aggregation group that the first network equipment includes, search with the device identification and port trunking The matched aggregation group of ability label.
Specifically, after first network equipment receives above-mentioned syndication message, aggregation group is searched in local second aggregation group Attribute information includes the second aggregation group of above equipment mark and port trunking ability label.
For example, first network equipment searches the device identification carried with the first aggregation group mark in the second aggregation group And the second aggregation group that port trunking ability label matches.
Match with the device identification of above-mentioned first aggregation group mark carrying and port trunking ability label not finding The second aggregation group when, first network equipment identifies according to the first aggregation group and creates third polymerization group, and the first aggregation group mark Know the opposite end aggregation group mark that equipment is set as third polymerization group.First network equipment also sets up the local of characterization third polymerization group Aggregation group mark (determines that the port trunking ability label of third polymerization group, setting third are poly- according to the polymerizing power of local port The local device being combined is identified as the MAC Address of first network equipment).First network equipment, will after creating third polymerization group First port is added in the third polymerization group.
If step 403 finds and identifies matched aggregation group with first aggregation group, the first port is added Enter into the aggregation group.
Illustratively, second network equipment is after the port trunking for completing second port, to the first of first network equipment Port send syndication message, the syndication message include Actor_SystemMac (Mac1) and Actor_OperKey (Key1), Partner_SystemMac (Mac2) and Partner_OperKey (Key2).First network equipment is received poly- by second port Message is closed, the polymerization that Partner_SystemMac is Mac1 in locally aggregated group and Partner_OperKey is Key1 is searched Group, after finding the aggregation group that Partner_SystemMac is Mac1 and Partner_OperKey is Key1, by first end Mouth is added in the aggregation group.
When not finding the aggregation group that Partner_SystemMac is Mac1 and Partner_OperKey is Key1, the One network equipment creates aggregation group, and the Partner_SystemMac that the aggregation group is arranged is Mac1 and Partner_OperKey is First port is added in the aggregation group after the completion of establishment by Key1.
In another embodiment, first network equipment according to the first aggregation group after identifying establishment aggregation group, the polymerization The attribute information of group middle port is sky, and first network equipment obtains the port attribute information of first port, by the end of first port Attribute information of the mouth attribute information as aggregation group middle port.Below by way of the flow chart pair of port convergence method shown in fig. 5 The embodiment of the present invention is described in detail.
Specifically, port convergence method shown in fig. 5 includes the following steps.
Step 501 receives the syndication message that second network equipment is sent by the first port of the first network equipment, The syndication message is identified including the first aggregation group.
Step 502, according to first aggregation group identify, in the aggregation group that the first network equipment includes search with First aggregation group identifies matched aggregation group.
If step 503 finds and identifies matched aggregation group with first aggregation group, the first port is added Enter into the aggregation group.
If step 504 does not find and identifies matched aggregation group with first aggregation group, poly- according to described first It is combined mark and creates corresponding aggregation group;
Step 505, the port attribute information for obtaining the first port;
Step 506, using the port attribute information of the first port as create after the aggregation group middle port category Property information.
In the embodiment of the present invention, after first network equipment identifies establishment aggregation group according to the first aggregation group, the end of aggregation group The attribute information of mouth is sky, and first network equipment obtains the port attribute information of first port, by the port attribute of first port Attribute information of the information as aggregation group middle port.Wherein, the attribute information of aggregation group middle port is the process in data transmission In, the condition of network equipment selection port is influenced, such as:The vlan information of port ownership.
For example, first network equipment is after creating aggregation group, after first port being added in the aggregation group of the establishment, Obtain the port attribute information of first port, it is assumed that the port attribute information of first port includes:The home network of first port For VLAN10, then the attribute information that the port of aggregation group is arranged in first network equipment is:Home network is VLAN10.In this way, During carrying out data transmission to second network equipment, it is ownership that first network equipment, which chooses aggregation group middle port attribute information, In the port of VLAN10 be for the port of the second network equipment transmission data.
The first port is added in the aggregation group after creating step 507.
It should be noted that the step 507 in the embodiment of the present invention is similar with above-mentioned steps 305 respectively, the present invention exists This is repeated no more.
So, first network equipment is automatically creating aggregation group, and after aggregation group is added in first port, Ke Yitong In the port attribute information to the aggregation group for walking first port, can be chosen with the port that can ensure in aggregation group to be used to pass The port of transmission of data.
In another embodiment, if first network equipment is set in preset time period to receive first network by first port When the data message that preparation is sent, if the aggregation group where first port includes other ports in addition to first port, the One network equipment deletes first port in the aggregation group, if only including first port in the aggregation group where first port This port, then first network delete first port where aggregation group.Below by way of port convergence method shown in fig. 6 Flow chart is described in detail the embodiment of the present invention.
Specifically, port convergence method shown in fig. 6 includes the following steps.
Step 601 receives the syndication message that second network equipment is sent by the first port of the first network equipment, The syndication message is identified including the first aggregation group;
Step 602, according to first aggregation group identify, in the aggregation group that the first network equipment includes search with First aggregation group identifies matched aggregation group;
If step 603 finds and identifies matched aggregation group with first aggregation group, the first port is added Enter into the aggregation group.
It should be noted that the step 601 in the embodiment of the present invention is similar to step 203 with above-mentioned steps 201 to step 603 Seemingly, details are not described herein by the present invention.
Step 604 does not receive the data that second network equipment is sent in preset time period by the first port When message, the corresponding polymerization methods mark of the first port is obtained.
As described above, polymerization methods are identified as indicating that the mark of the mode of aggregation group is added in first port.Citing comes It says, polymerization methods mark includes first identifier and second identifier.Wherein, first identifier is for indicating that first port is the first net Network equipment is automatically added to the mark of aggregation group, and second identifier is to indicate that second port is the mark that user is added to aggregation group manually Know.
For example, " TRUE " may be used to indicate first identifier, i.e., when polymerization methods are identified as " TRUE ", indicate First port is that first network equipment is automatically added to aggregation group, when polymerization methods are identified as " FALSE ", indicates first port It is added in aggregation group manually for user.Above-mentioned preset time period is the receiving time of message, can be by those skilled in the art's root According to the duration that demand is arranged, such as:Setting preset time period is 3s.First network equipment is not connect by first port in preset time period When receiving data message from second network equipment, first network equipment can determine the opposite end of first port from aggregation group LACP failures are exited or occur, first network equipment obtains the polymerization methods mark of first port.
Step 605, when there is port in addition to first port in the aggregation group where the first port, according to institute Polymerization methods mark is stated, the first port is deleted from the aggregation group;Alternatively, when the aggregation group where the first port In when there is no port in addition to the first port, identified according to the polymerization methods, the aggregation group deleted.
When the polymerization methods of first port are identified as first identifier, first network equipment determines the end in current aggregation group Mouthful, if there is also the ports in addition to first port, first network equipment to delete first port from aggregation group in aggregation group.
When only including first port during first network equipment determines aggregation group where first port, first network equipment can Directly the aggregation group to be deleted.
So, first network equipment can be in the poly- of the second port of second network equipment, second network equipment of completion After conjunction, be automatically performed the port trunking of first port corresponding with second port, and the second port of second network equipment from After being exited in aggregation group, it is automatically performed exiting for first port, polymerization efficiency can either be improved, and manual configuration can be avoided poly- The problem of being combined caused configuration error.
Fig. 7 shows the structure diagram of port trunking device according to an embodiment of the invention, is applied to first network equipment, Wherein first network equipment is specially the network equipments such as server, interchanger.As shown in fig. 7, the port trunking device include with Lower function module.
Receiving module 701 can be used for receiving second network equipment hair by the first port of the first network equipment The syndication message sent, the syndication message are identified including the first aggregation group;
Searching module 702 can be used for being identified according to first aggregation group, gather what the first network equipment included It is combined middle lookup and identifies matched aggregation group with first aggregation group;
First aggregation module 703 identifies matched aggregation group if can be used for finding with first aggregation group, The first port is added into the aggregation group.
Fig. 8 shows the structure diagram of port trunking device according to an embodiment of the invention.Wherein, receiving module 801, look into Look for module 802 and the first aggregation module 803 and above-mentioned receiving module 701, searching module 702 and the first aggregation module 703 similar Seemingly, details are not described herein for the embodiment of the present invention.
In one possible implementation, with reference to Fig. 8, above-mentioned port trunking device can also include:
Creation module 804 identifies matched aggregation group, root if can be used for not finding with first aggregation group Corresponding aggregation group is created according to first aggregation group mark;
Second aggregation module 805 can be used for the first port being added in the aggregation group after creating.
In one possible implementation, with reference to Fig. 8, the first aggregation group mark includes that device identification and port are poly- Close ability label;The searching module 802 may include:
Submodule 8021 is searched, can be used in the aggregation group that the first network equipment includes, lookup is set with described Standby mark and the matched aggregation group of port trunking ability label.
In one possible implementation, with reference to Fig. 8, above-mentioned port trunking device can also include:
First acquisition module 806 can be used for obtaining the port attribute information of the first port;
Processing module 807 can be used for using the port attribute information of the first port as the polymerization after creating The attribute information of group middle port.
In one possible implementation, with reference to Fig. 8, above-mentioned port trunking device can also include:
Second acquisition module 808 can be used for not receiving second net by the first port in preset time period When the data message that network equipment is sent, the corresponding polymerization methods mark of the first port is obtained;
Removing module 809 can be used in the aggregation group where the first port existing in addition to first port When port, the first port is deleted from the aggregation group according to polymerization methods mark;Alternatively, working as the first port When there is no the port in addition to the first port in the aggregation group at place, identified according to the polymerization methods, it will be described poly- It is combined deletion.
Fig. 9 is a kind of hardware block diagram of port trunking device shown according to an exemplary embodiment.Actually answering In, which can be realized by server.With reference to Fig. 9, which, which may include processor 1301, be stored with machine to hold The machine readable storage medium 1302 of row instruction.Processor 1301 can be via system bus with machine readable storage medium 1302 1303 communications.Also, processor 1301 passes through machine corresponding with port trunking logic in read machine readable storage medium storing program for executing 1302 Device executable instruction is to execute port convergence method described above.
Machine readable storage medium 1302 referred to herein can be that any electronics, magnetism, optics or other physics are deposited Storage device can include or store information, such as executable instruction, data, etc..For example, machine readable storage medium can be: Random access memory (English:Radom Access Memory, referred to as:RAM), volatile memory, nonvolatile memory, Flash memory, memory driver (such as hard disk drive), solid state disk, any kind of storage dish (such as CD, dvd) or class As storage medium or combination thereof.
Various embodiments of the present invention are described above, above description is exemplary, and non-exclusive, and It is not limited to disclosed each embodiment.Without departing from the scope and spirit of illustrated each embodiment, for this skill Many modifications and changes will be apparent from for the those of ordinary skill in art field.The selection of term used herein, purport In the principle, practical application or technological improvement to the technology in market for best explaining each embodiment, or this technology is made to lead Other those of ordinary skill in domain can understand each embodiment disclosed herein.

Claims (10)

1. a kind of port convergence method, which is characterized in that it is applied to first network equipment, including:
The syndication message that second network equipment is sent, the syndication message are received by the first port of the first network equipment It is identified including the first aggregation group;
It is identified according to first aggregation group, searches in the aggregation group that the first network equipment includes and polymerize with described first Group identifies matched aggregation group;
Matched aggregation group is identified with first aggregation group if found, the first port is added to the polymerization In group.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
Matched aggregation group is identified with first aggregation group if do not found, is identified and is created according to first aggregation group Corresponding aggregation group;
The first port is added in the aggregation group after creating.
3. method according to claim 1 or 2, which is characterized in that first aggregation group mark include device identification with Port trunking ability label;
It is described to be identified according to first aggregation group, it is searched and described first in the aggregation group that the first network equipment includes Aggregation group identifies matched aggregation group, including:
In the aggregation group that the first network equipment includes, search and the device identification and equal of port trunking ability label The aggregation group matched.
4. according to the method described in claim 2, it is characterized in that, the method further includes:
Obtain the port attribute information of the first port;
Using the port attribute information of the first port as the attribute information of the aggregation group middle port after creating.
5. the method according to any one of claims 1 and 2, which is characterized in that the method further includes:
When preset time period does not receive the data message that second network equipment is sent by the first port, institute is obtained State the corresponding polymerization methods mark of first port;
When there is the port in addition to the first port in the aggregation group where the first port, according to the polymerization side Formula identifies, and the first port is deleted from the aggregation group;Alternatively, not existing when in the aggregation group where the first port When port in addition to the first port, is identified according to the polymerization methods, the aggregation group is deleted.
6. a kind of port trunking device, which is characterized in that it is applied to first network equipment, including:
Receiving module disappears for receiving the polymerization that second network equipment is sent by the first port of the first network equipment Breath, the syndication message are identified including the first aggregation group;
Searching module is searched for being identified according to first aggregation group in the aggregation group that the first network equipment includes Matched aggregation group is identified with first aggregation group;
First aggregation module, if matched aggregation group is identified with first aggregation group for finding, by described first Port is added into the aggregation group.
7. device according to claim 6, which is characterized in that described device further includes:
Creation module, if matched aggregation group is identified with first aggregation group for not finding, according to described first Aggregation group mark creates corresponding aggregation group;
Second aggregation module, for the first port to be added in the aggregation group after creating.
8. the device described according to claim 6 or 7, which is characterized in that first aggregation group mark include device identification with Port trunking ability label;The searching module, including:
Submodule is searched, in the aggregation group that the first network equipment includes, searching and the device identification and port Polymerizing power identifies matched aggregation group.
9. device according to claim 7, which is characterized in that described device further includes:
First acquisition module, the port attribute information for obtaining the first port;
Processing module, for using the port attribute information of the first port as the category of the aggregation group middle port after creating Property information.
10. the device described according to claim 6 or 7, which is characterized in that described device further includes:
Second acquisition module, for not receiving what second network equipment was sent by the first port in preset time period When data message, the corresponding polymerization methods mark of the first port is obtained;
Removing module is used for when there is the port in addition to the first port in the aggregation group where the first port, The first port is deleted from the aggregation group according to polymerization methods mark;Alternatively, where the first port When there is no the port in addition to the first port in aggregation group, is identified according to the polymerization methods, the aggregation group is deleted It removes.
CN201810132807.9A 2018-02-09 2018-02-09 Port aggregation method and device Active CN108418709B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810132807.9A CN108418709B (en) 2018-02-09 2018-02-09 Port aggregation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810132807.9A CN108418709B (en) 2018-02-09 2018-02-09 Port aggregation method and device

Publications (2)

Publication Number Publication Date
CN108418709A true CN108418709A (en) 2018-08-17
CN108418709B CN108418709B (en) 2020-12-25

Family

ID=63128224

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810132807.9A Active CN108418709B (en) 2018-02-09 2018-02-09 Port aggregation method and device

Country Status (1)

Country Link
CN (1) CN108418709B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109889442A (en) * 2018-12-24 2019-06-14 广州芯德通信科技股份有限公司 A kind of Ethernet interface link aggregation method, electronic equipment, storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996925A (en) * 2006-12-25 2007-07-11 华为技术有限公司 Sending and receiving method and system for link aggregation method, device and MAC frame
CN101018228A (en) * 2006-12-22 2007-08-15 华为技术有限公司 A port convergence method and device
CN104104570A (en) * 2013-04-07 2014-10-15 杭州华三通信技术有限公司 Aggregation processing method in IRF (Intelligent Resilient Framework) system and device
CN106411599A (en) * 2016-10-31 2017-02-15 杭州华三通信技术有限公司 Aggregated link recovering method and apparatus
CN107547283A (en) * 2017-09-21 2018-01-05 新华三技术有限公司 The management method and device of distributed aggregation group

Patent Citations (6)

* 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
CN1996925A (en) * 2006-12-25 2007-07-11 华为技术有限公司 Sending and receiving method and system for link aggregation method, device and MAC frame
WO2008077347A1 (en) * 2006-12-25 2008-07-03 Huawei Technologies Co., Ltd. Link aggregation method, device, mac frame receiving/sending method and system
CN104104570A (en) * 2013-04-07 2014-10-15 杭州华三通信技术有限公司 Aggregation processing method in IRF (Intelligent Resilient Framework) system and device
CN106411599A (en) * 2016-10-31 2017-02-15 杭州华三通信技术有限公司 Aggregated link recovering method and apparatus
CN107547283A (en) * 2017-09-21 2018-01-05 新华三技术有限公司 The management method and device of distributed aggregation group

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郑涛 等: "基于LACP协议的链路聚合状态机模块的实现", 《计算机系统应用》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109889442A (en) * 2018-12-24 2019-06-14 广州芯德通信科技股份有限公司 A kind of Ethernet interface link aggregation method, electronic equipment, storage medium
CN109889442B (en) * 2018-12-24 2021-07-27 广州芯德通信科技股份有限公司 Ethernet interface link aggregation method, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108418709B (en) 2020-12-25

Similar Documents

Publication Publication Date Title
US8718071B2 (en) Method to pass virtual local area network information in virtual station interface discovery and configuration protocol
US8718061B2 (en) Data center network system and packet forwarding method thereof
CN111092801B (en) Data transmission method and device
US10454711B2 (en) Method for obtaining port path and apparatus
CN102136989B (en) Message transmission method, system and equipment
CN108270686A (en) Update the method and system of the dialogue distribution in link aggregation
CN101621414A (en) Method and apparatus for discovering network resource and topology
US20120110146A1 (en) Method and system for realizing network topology discovery
CN103634423A (en) Three-layered interface based MPLS-TP (multi-protocol label switching-transport profile) configuration method and device
CN110391997A (en) A kind of message forwarding method and device
US9135833B2 (en) Process for selecting compressed key bits for collision resolution in hash lookup table
CN106452915B (en) Method and device for discovering MPLS VPN network topology
CN1697408B (en) Method for managing routes in virtual private network based on IPv6
CN110932906A (en) Data center network topology structure discovery method based on SNMP technology and topology structure discovery system thereof
CN105812221B (en) The device and method of data transmission in virtual expansible Local Area Network
CN108462683B (en) Authentication method and device
CN108718275B (en) Message forwarding method and device
CN103490968A (en) Method and device for interconnecting across data centers in FCoE network
CN107634893A (en) The processing method and processing device of MAC address notice route
CN104486217A (en) Cross network message transmitting method and equipment
CN104579979A (en) Network topology discovery method based on MAC information
CN108418709A (en) Port convergence method and device
CN103269300A (en) Method and equipment for achieving heterogeneous network interconnection
CN113489646A (en) Segmented routing transmission method based on VXLAN, server, source node and storage medium
CN102868775B (en) Method for expanding capacity of address resolution protocol table, and message forwarding method and device

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