CN109347734A - A kind of file transmitting method, device, the network equipment and computer-readable medium - Google Patents

A kind of file transmitting method, device, the network equipment and computer-readable medium Download PDF

Info

Publication number
CN109347734A
CN109347734A CN201810998252.6A CN201810998252A CN109347734A CN 109347734 A CN109347734 A CN 109347734A CN 201810998252 A CN201810998252 A CN 201810998252A CN 109347734 A CN109347734 A CN 109347734A
Authority
CN
China
Prior art keywords
port
identifier information
equipment
corresponding relationship
forwarded
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
CN201810998252.6A
Other languages
Chinese (zh)
Other versions
CN109347734B (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 Information 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 CN201810998252.6A priority Critical patent/CN109347734B/en
Publication of CN109347734A publication Critical patent/CN109347734A/en
Application granted granted Critical
Publication of CN109347734B publication Critical patent/CN109347734B/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
    • 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
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports

Abstract

Present disclose provides a kind of file transmitting method, device, the network equipment and computer-readable mediums, it is related to the technical field of communication equipment, it include: after getting STP protocol message to be forwarded, inquire the first corresponding relationship between first identifier information and first object port, wherein, first object port is the port connecting in main DR equipment corresponding to first identifier information with network device communications;If inquiring the first corresponding relationship, port corresponding with first identifier information is inquired based on the first corresponding relationship;Port to be forwarded is determined from the port corresponding with first identifier information inquired, and STP protocol message is sent by port to be forwarded.STP protocol message to be forwarded by the disclosure by main DR equipment, and to reduce the transparent transmission of protocol massages, the bandwidth for improving IPL link is used, and guarantees the stabilization of DR system.

Description

A kind of file transmitting method, device, the network equipment and computer-readable medium
Technical field
This disclosure relates to which the technical field of communication equipment, sets more particularly, to a kind of file transmitting method, device, network Standby and computer-readable medium.
Background technique
DRNI (Distributed Resilient Network Interconnect, distribution polymerization) technology passes through Ethernet link clustering, which connects two physical equipments, invents a logical device, realizes striding equipment link aggregation.Its In, it forms between two physical equipments of distributed polymerization through Ethernet link clustering real-time synchronization data, device level is provided Redundancy protecting.Two physical equipments form a DR system by Ethernet link clustering in RNI typical case's networking (Distributed-Relay System, distributed paradigmatic system).
As shown in Figure 1, the aggregation port in C equipment carries out transmission STP in selection port after DR system is normally established It is that selection is carried out according to Hash at random, if Hash when (Spanning Tree Protocol, Spanning-Tree Protocol) message Port onto link 2, then STP protocol message can first be sent to equipment B (from DR equipment), then equipment B is thoroughly set again Standby A (main DR equipment) finally handles STP protocol message on equipment A.If it is PVST (Per-VLAN Spanning Tree, each vlan spanning-tree) mode, a large amount of PVST protocol massages can be sent when enabling a large amount of VLAN, on device B The meeting a large amount of protocol massages of transparent transmission give equipment A, thus will affect IPL (Intra-Portal Link, internal control link) The bandwidth of link uses, or even influences the stabilization of DR system.
Summary of the invention
In view of this, the disclosure is designed to provide a kind of file transmitting method, device, the network equipment and computer Readable medium, to reduce the transparent transmission of protocol massages, improves IPL to be forwarded STP protocol message by main DR equipment The bandwidth of link uses, and guarantees the stabilization of DR system.
In a first aspect, the embodiment of the present disclosure provides a kind of file transmitting method, it is applied to the network equipment, comprising: obtaining After getting STP protocol message to be forwarded, the first corresponding relationship between first identifier information and first object port is inquired, Wherein, the first object port be corresponding to the first identifier information in main DR equipment with the network device communications The port of connection;If inquiring first corresponding relationship, based on first corresponding relationship inquiry and first mark Know the corresponding port of information;Port to be forwarded is determined from the port corresponding with the first identifier information inquired, And the STP protocol message is sent by the port to be forwarded.
Further, the method also includes: if not inquiring first corresponding relationship, inquire second identifier The second corresponding relationship between information and the second target port, wherein second target port is the second identifier information The port being connect in corresponding slave DR equipment with the network device communications;If there is second corresponding relationship, then from Port to be forwarded is determined in second target port, and institute's STP protocol message is sent by the port to be forwarded.
Further, port packet to be forwarded is determined from the port corresponding with the first identifier information inquired Include: Hash calculation carried out to the port corresponding with the first identifier information that inquires, with according to Hash calculation result from The true port to be forwarded in the corresponding port.
Further, if carrying the first identifier information in the LACP message that the network equipment is got, pass through Following methods determine first corresponding relationship: obtaining the LACP report for the carrying first identifier information that the main DR equipment is sent Text;Establish first object end corresponding to the first identifier information and the first identifier information carried in the LACP message Corresponding relationship between mouthful, obtains first corresponding relationship.
Further, it establishes the first identifier information carried in the LACP message and the first identifier information institute is right The corresponding relationship between first object port answered, obtaining first corresponding relationship includes: according to polymerization where main DR equipment Group is grouped each LACP message for carrying the first identifier information, thus by the belonging same aggregation group LACP message is grouped into the same group, and obtains multiple groupings of belonging each aggregation group;LACP message in each grouping is established to carry First identifier information and first object port corresponding to it between corresponding relationship, obtain and each aggregation group phase Corresponding first corresponding relationship.
Second aspect, the embodiment of the present disclosure additionally provide a kind of packet transmission device, are set to the network equipment, the device It include: the first query unit, for inquiring first identifier information and the first mesh after getting STP protocol message to be forwarded Mark the first corresponding relationship between port, wherein the first object port is main DR corresponding to the first identifier information The port being connect in equipment with the network device communications;Second query unit, if for inquiring the described first corresponding pass Port corresponding with the first identifier information is then inquired based on first corresponding relationship by system;Determination unit, for from Port to be forwarded is determined in the port corresponding with the first identifier information inquired, and passes through the port to be forwarded Send the STP protocol message.
Further, described device is also used to: if not inquiring first corresponding relationship, inquiring second identifier The second corresponding relationship between information and the second target port, wherein second target port is the second identifier information The port being connect in corresponding slave DR equipment with the network device communications;If there is second corresponding relationship, then from Port to be forwarded is determined in second target port, and institute's STP protocol message is sent by the port to be forwarded.
Further, the determination unit is used for: to the port corresponding with the first identifier information inquired into Row Hash calculation, with according to Hash calculation result from the corresponding port the true port to be forwarded.
Further, described device is also used to: carrying described first in the LACP message that the network equipment is got In the case where identification information, first corresponding relationship is determined by the following method: obtaining the carrying that the main DR equipment is sent The LACP message of first identifier information;Establish the first identifier information and the first identifier information carried in the LACP message Corresponding relationship between corresponding first object port obtains first corresponding relationship.
Further, described device is also used to: according to aggregation group where main DR equipment, being believed the first identifier is carried Each LACP message of breath is grouped, so that the LACP message of the belonging same aggregation group is grouped into the same group, obtains institute Belong to multiple groupings of each aggregation group;It establishes corresponding to the first identifier information and its that LACP message carries in each grouping First object port between corresponding relationship, obtain the first corresponding relationship corresponding with each aggregation group.
The third aspect, the embodiment of the present disclosure additionally provide a kind of network equipment, including memory, processor and are stored in On the memory and the computer program that can run on the processor, the processor execute the computer program Method described in any one of above-mentioned first aspect of Shi Shixian.
Fourth aspect, the embodiment of the present disclosure provide a kind of non-volatile program code that can be performed with processor Computer-readable medium, said program code make the processor execute method described in any one of above-mentioned first aspect.
In the embodiments of the present disclosure, after getting STP protocol message to be forwarded, inquiry first identifier information and the The first corresponding relationship between one target port, wherein first object port is main DR equipment corresponding to first identifier information In the port that is connect with network device communications;If inquiring the first corresponding relationship, based on the first corresponding relationship inquiry and the The corresponding port of one identification information;Port to be forwarded is determined from the port corresponding with first identifier information inquired, And STP protocol message is sent by port to be forwarded.
As can be seen from the above description, in the present embodiment, it by inquiring the first corresponding relationship, can be based on inquiring The first corresponding relationship inquire the port of main DR equipment in the case where, STP protocol message is turned by main DR equipment Hair, to reduce the transparent transmission of protocol massages, the bandwidth for improving IPL link is used, and guarantees the stabilization of DR system, and then is solved existing Have in technology due to from DR equipment thoroughly to main DR equipment when caused DR stability be affected and the bandwidth of IPL link The technical issues of using being affected.
Other feature and advantage of the disclosure will illustrate in the following description, also, partly become from specification It obtains it is clear that being understood by implementing the disclosure.The purpose of the disclosure and other advantages are in specification, claim Specifically noted structure is achieved and obtained in book and attached drawing.
To enable the above objects, features, and advantages of the disclosure to be clearer and more comprehensible, preferred embodiment is cited below particularly, and match Appended attached drawing is closed, is described in detail below.
Detailed description of the invention
It, below will be to tool in order to illustrate more clearly of disclosure specific embodiment or technical solution in the prior art Body embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing be the disclosure some embodiments, for those of ordinary skill in the art, what is do not made the creative labor Under the premise of, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of DRNI typical case's networking schematic diagram;
Fig. 2 is a kind of working principle diagram of DRNI typical case's networking;
Fig. 3 is the flow chart according to a kind of file transmitting method of the embodiment of the present disclosure;
Fig. 4 is the working principle diagram according to a kind of DRNI typical case's networking of the embodiment of the present disclosure;
Fig. 5 is the schematic diagram according to a kind of packet transmission device of the embodiment of the present disclosure;
Fig. 6 is the schematic diagram according to a kind of network equipment of the embodiment of the present disclosure.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present disclosure clearer, below in conjunction with attached drawing to the disclosure Technical solution be clearly and completely described, it is clear that described embodiment is disclosure a part of the embodiment, rather than Whole embodiments.Based on the embodiment in the disclosure, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, belong to the disclosure protection range.
Two physical equipments form a DR system by Ethernet link clustering in DRNI typical case's networking.On network, DR system external is rendered as an equipment.
As shown in Figure 1, DR system includes following several parts:
DR equipment (Distributed Relay device, distribution polymerization member device): DR equipment is for forming The physical equipment of DR system, and neighbours each other.The previous distributed paradigmatic system of mesh only supports two member devices.Such as 1 institute Show, Device A (being known as equipment A in following embodiment) and Device B (being known as equipment B in following embodiment) are DR system Member device.
DR interface (Distributed Relay interface, distributed aggregation interface): DR interface is set with outside Standby connected two layers of polymer interface.
DR group (Distributed-Relay group, distributed aggregation group): member device is connected with external equipment Distributed aggregation group belonging to two layers of polymer interface.
IPL (Intra-Portal Link, internal control link): the two layers of polymer chain between the member device of DR system DRNI protocol massages are transmitted for DR equipment room in road.There can only be an IPL in one system.
Two stratas of two layers of polymer link where IPP (Intra-Portal Port, internal control link port): IPL Splice grafting mouth receives and dispatches the protocol massages of DRNI by the port.
Keep alive link: the keep-alive link of DR system passes through link detecting DR equipment state.
In order to ensure reliability, the network equipment needs to consider the redundancy backup of link when accessing network, using deployment The modes such as MSTP may be implemented, but the utilization rate of link is very low under this mode, waste a large amount of bandwidth resources.For reality Existing redundancy backup improves the utilization rate of link simultaneously.As shown in Figure 1, disposing DRNI between A equipment and B device, equipment is realized Polymerization.A equipment and B equipment form load balancing in this way, common to carry out flow forwarding, when a wherein device fails, Flow can be quickly switched into another equipment, guarantee the normal operation of business.
DR system the inside is all that 2 stratas are healed up at present, will necessarily be with the 2 layer loop agreement such as MSTP for anti-loops Combined application.DR system when STP is calculated, is handled as an equipment, and DR interface is only joined in main DR equipment at present It is calculated with STP, is not involved in STP from the DR mouth in DR equipment and calculates, therefore the STP protocol message received from DR equipment, need to lead to IPL link is crossed thoroughly in main DR equipment.For example, as shown in Fig. 2, STP protocol message can first be sent to equipment B (sets from DR It is standby), then equipment B thoroughly gives equipment A (main DR equipment) again.At this point, will a large amount of protocol massages of transparent transmission in main DR equipment It is used to the bandwidth that from DR equipment, thus will affect IPL link, or even influences the stabilization of DR system.Based on this, in this reality Apply in example, propose a kind of file transmitting method, this method STP protocol message to be forwarded by main DR equipment, To reduce the transparent transmission of protocol massages, the bandwidth for improving IPL link is used, and guarantees the stabilization of DR system, below in conjunction with specific reality It applies example and introduces this method.
This application provides a kind of embodiments of file transmitting method, it should be noted that illustrates in the process of attached drawing The step of can execute in a computer system such as a set of computer executable instructions, although also, showing in flow charts Go out logical order, but in some cases, it can be with the steps shown or described are performed in an order that is different from the one herein.
Fig. 3 is the flow chart according to a kind of file transmitting method of the embodiment of the present disclosure.In the present embodiment, Xia Shubu Rapid S302 to step S306 can be applied in equipment C as shown in Figure 2, equipment C can at least one DR system DR equipment is connected.As shown in figure 3, this method comprises the following steps:
Step S302, after getting STP protocol message to be forwarded, inquiry first identifier information and first object end The first corresponding relationship between mouthful, wherein the first object port is main DR equipment corresponding to the first identifier information In the port that is connect with the network device communications.
In the present embodiment, the first corresponding relationship between first identifier information and first object port can reflect In one mapping table.It include identification information and the port list corresponding to it in the mapping table.The identification information is for characterizing it Equipment belonging to corresponding port is main DR equipment in DR system, from DR equipment, is also non-DR equipment.For example, for characterizing Main DR equipment is first identifier information (for example, 01), for characterize from DR equipment be second identifier information (for example, 10), It is third identification information (for example, 00) for characterizing conventional equipment.
It should be noted that can only include above-mentioned first identifier information and first in the mapping table in the present embodiment The first corresponding relationship between target port.It in addition to this, can also be right with it comprising second identifier information in the mapping table Corresponding relationship (that is, second following corresponding relationships) between the port answered, alternatively, can also include third in the mapping table Corresponding relationship between identification information and port corresponding to it.
Further, equipment C can be connect with multiple DR system communications simultaneously, alternatively, logical with multiple conventional equipments simultaneously Letter connection.So in the disclosure, mapping table is constructed according to DR system, for example, by main in the same DR system The port composition a port being connect in first identifier information corresponding to DR equipment and the main DR equipment with network device communications List.
In the present embodiment, identification information be in advance LACP (Link Aggregation Control Protocol, Link aggregate control protocol) field information that is arranged in message.Wherein, LACP message is the end of DR equipment or non-DR equipment The message that mouth is sent to the network equipment.LACP is a kind of agreement for realizing link dynamic convergence, and LACP agreement passes through LACPDU (Link Aggregation Control Protocol Data Unit, link aggregate control protocol data cell) and opposite end Interactive information.
After the LACP agreement for enabling certain port, which will pass through the transmission LACPDU system of noticing oneself to opposite end Priority, system MAC Address, port priority, port numbers and Operational Key.After opposite end receives these information, these are believed It ceases to select the port that can polymerize compared with the information that other ports are saved, so that both sides can be added or move back to port Some dynamic aggregation group (or DR group) is reached an agreement out.Therefore, in the present embodiment, the network equipment can be reported by LACP Text communicates the port of connection to determine in the equipment for being sent to it LACP message.
Step S304, if inquiring first corresponding relationship, based on first corresponding relationship inquiry with it is described The corresponding port of first identifier information;
Step S306 determines port to be forwarded from the port corresponding with the first identifier information inquired, and The STP protocol message is sent by the port to be forwarded.
As can be seen from the above description, in the present embodiment, it by inquiring the first corresponding relationship, can be based on inquiring The first corresponding relationship inquire the port of main DR equipment in the case where, STP protocol message is turned by main DR equipment Hair, to reduce the transparent transmission of protocol massages, the bandwidth for improving IPL link is used, and guarantees the stabilization of DR system, and then is solved existing Have in technology due to from DR equipment thoroughly to main DR equipment when caused DR stability be affected and the bandwidth of IPL link The technical issues of using being affected.
In the present embodiment, it when the network equipment executes method described in above-mentioned steps S302 to step S306, needs First establish the first corresponding relationship.Then, after getting STP protocol message to be forwarded, based on the first corresponding pass inquired Port corresponding with first identifier information is inquired by system.
It, can described method building first as follows in an optional embodiment of the present embodiment Corresponding relationship:
Obtain the LACP message for the carrying first identifier information that the main DR equipment is sent;
Establish the first mesh corresponding to the first identifier information and the first identifier information carried in the LACP message The corresponding relationship between port is marked, first corresponding relationship is obtained.
Optionally, it establishes corresponding to the first identifier information and the first identifier information carried in the LACP message First object port between corresponding relationship, obtaining first corresponding relationship includes:
According to aggregation group where main DR equipment, each LACP message for carrying the first identifier information is grouped, To which the LACP message of the belonging same aggregation group to be grouped into the same group, multiple groupings of belonging each aggregation group are obtained; Establish first identifier information that LACP message in each grouping carries with its corresponding to first object port between corresponding close System obtains the first corresponding relationship corresponding with each aggregation group.
Specifically, identification information is the field information being arranged in LACP message in advance.
In the present embodiment, it needs to be extended LACP message, the new field in the reserved field of LACP message Then role makes LACP message carry the identification information of principal and subordinate DR equipment (that is, above-mentioned first identifier using the new field Information).The reserved field of LACP message has 3 bytes at present.In the present embodiment, 1bit or 2bit therein can be selected ?.For example, 00 (0) indicates that the LACP message does not carry the identification information of master and slave DR equipment (for example, third mark letter Breath), it is consistent with original;What 01 (1) indicated LACP message carrying is the identification information of main DR equipment in DR system (that is, above-mentioned first identifier information);What 10 (2) indicated LACP message carrying is in DR system from the identification information of DR equipment (for example, second identifier information).
Based on this, in the present embodiment, after the foundation of DR system, DR interface is with opposite equip. (for example, the equipment in Fig. 2 C) it is connected, the LACP message that DR equipment is sent in DR system can carry new field, and the role value that main DR equipment carries is 1, from The role value that DR equipment carries is 2, and the role value that conventional equipment carries is 0.
It should be noted that in the present embodiment, do not limit first identifier information one and be set to 1, second identifier information one It is set to 2, third identification information one is set to 0, and first identifier information, second identifier information and third identification information can also be selected Other numerical value or symbol are not specifically limited in the present embodiment.
Equipment C establishes the first identifier information and first identifier information carried in LACP message after receiving LACP message Corresponding relationship between corresponding first object port, and then obtain the first corresponding relationship.
Specifically, in the present embodiment, each LACP message can be grouped according to entrained identification information, The LACP message for carrying same identification information is grouped into the same group, multiple groupings are obtained.For example, first identifier information will be carried LACP message be divided into one group, obtain grouping A1, or by carry second identifier information LACP message be divided into one group, obtain It is grouped A2, or the LACP message for carrying third identification information is divided into one group, obtains grouping A3.
After obtaining above-mentioned grouping A1, A2 or A3, so that it may establish the first identifier information in grouping A1 and its institute Corresponding relationship between corresponding first object port, obtains the first corresponding relationship.And the second identifier established in grouping A2 is believed Corresponding relationship between breath and the second target port corresponding to it, obtains the second corresponding relationship, wherein the second target port For the port being connect in slave DR equipment corresponding to the second identifier information with the network device communications.And it establishes and divides Corresponding relationship between third identification information in group A3 and the third target port corresponding to it obtains the corresponding pass of third System, wherein third target port is and the port that connect in non-DR equipment corresponding to third identification information with the network equipment.
Explanation is needed further exist for, since a network equipment may connect multiple DR systems (that is, aggregation group), often A DR system includes main DR equipment and from DR equipment.It, in the present embodiment, can also be according to aggregation group, to carrying based on this Each LACP message of identification information is grouped, thus by the belonging same aggregation group, and same identification information will be carried LACP message be grouped into the same group, obtain multiple groupings.For example, the LACP message for being 2 by role value in identical aggregation group It is divided into one group, the LACP message that role value is 1 is divided into another set, and the LACP message that role value is 0 is divided into third group.? To after multiple groupings, so that it may determine mapping table based on multiple groupings.
In the present embodiment, will be according to aggregation group, the side that each LACP message for carrying identification information is grouped Message in same polymeric group from the equipment of same type can be classified as one group by formula, in turn, be based on multiple groupings It when determining mapping table, just no longer needs to be grouped mapping table according to aggregation group, can be directly determined by multiple groupings Mapping table, it is simple and fast.
For example, above-mentioned corresponding relationship can indicate are as follows:
DR group 1:
In DR group 1, set in first identifier information (for example, 01) corresponding to main DR equipment and the main DR equipment with network First corresponding relationship of each port of standby communication connection;
In DR group 1, the second identifier information (for example, 10) corresponding to the DR equipment, and should be set from DR equipment with network Second corresponding relationship of each port of standby communication connection.
DR group 2:
In DR group 2, set in first identifier information (for example, 01) corresponding to main DR equipment and the main DR equipment with network First corresponding relationship of each port of standby communication connection;
In DR group 2, the second identifier information (for example, 10) corresponding to the DR equipment, and should be set from DR equipment with network Second corresponding relationship of each port of standby communication connection.
Conventional equipment 1:
In third identification information (for example, 00) and the conventional equipment 1 corresponding to conventional equipment 1 with network device communications The third corresponding relationship of each port of connection.
In the present embodiment, after obtaining this and establishing above-mentioned corresponding relationship, so that it may get STP to be forwarded The first corresponding relationship after protocol massages, first between inquiry first identifier information and first object port.And inquiring After one corresponding relationship, port corresponding with the first identifier information is inquired based on the first corresponding relationship.
Explanation is needed further exist for, in the present embodiment, which is not fixed and invariable, and is dynamic Variation, the network equipment can dynamically adjust in the first corresponding relationship according to the LACP message got from main DR equipment With first object port corresponding to first identifier information.
In the present embodiment, if inquired based on first corresponding relationship corresponding with the first identifier information Port;Then determine port to be forwarded from the port corresponding with the first identifier information inquired, and by it is described to Port is forwarded to send the STP protocol message.
Specifically, in the present embodiment, Hash calculation can be carried out to corresponding port, according to Hash calculation knot Fruit true port to be forwarded from the corresponding port.
In another optional embodiment, this method further includes following steps:
Step S21 inquires second identifier information and the second target side if not inquiring first corresponding relationship The second corresponding relationship between mouthful, wherein second target port is slave DR equipment corresponding to the second identifier information In the port that is connect with the network device communications;
Step S22 then determines end to be forwarded if there is second corresponding relationship from second target port Mouthful, and institute's STP protocol message is sent by the port to be forwarded.
In the present embodiment, if not inquiring the first corresponding relationship in the mapping table, show to be not present in mapping table The port of main DR equipment, that is, the link in the network equipment and DR system between main DR equipment is obstructed.The second mark of inquiry at this time Know the second corresponding relationship between information and the second target port.If there is the second corresponding relationship, then from the second target port Middle determination port to be forwarded, and institute's STP protocol message is sent by the port to be forwarded.
As can be seen from the above description, in the present embodiment, when data message carries out the Hash of flow forwarding, with original Be consistent, do not distinguish role value.When carrying out which port of Hash calculation to send STP protocol message, preferentially from role Value is that the group the inside of 1 (first identifier information) goes Hash to select, can be this in Hash if this group is not sky Role value is taken into account, it is ensured that the value after Hash can be only several ports inside this group;If the group that role is 1 is Sky illustrates that this equipment is obstructed with the link of principal and subordinate's DR equipment room of DR system, does not then consider the role value, in the case, One optional embodiment is to determine according to mode described in above-mentioned steps S21 and step 22 for E-Packeting Port, another optional embodiment are that Hash calculation is consistent with initial, wherein initially refer to and do not consider Role carries out Hash calculation according to original hash algorithm.
By above-mentioned processing mode, it can be avoided and do not inquiring above-mentioned first corresponding relationship, and calculated according to original Hash It still can be STP protocol report to be forwarded in the case that method is also at broken string state carrying out the port that Hash calculation obtains Text determines that the port of normal communication carries out the forwarding of message.
As can be seen from the above description, in the present embodiment, in the LACP message that DR equipment or non-DR equipment are sent out A field is increased newly, for distinguishing main DR equipment that the LACP message is DR system or sending from DR equipment, either What conventional equipment was sent.It after the network equipment receives the LACP message, records corresponding label and is grouped, which uses in Hash When a port sends STP protocol massages, select to receive role preferentially as 1 interface progress Hash, it is ensured that the knot being hashing onto Fruit reduces protocol massages from the transparent transmission in DR equipment, the bandwidth for improving IPL link uses, and improves DR inside these interfaces The stability of system.It, can be in the case where there is main DR device link by the technical solution, it can be ensured that be hashing onto and main D On the port of equipment adjacent links, the transparent transmission of protocol massages is reduced, the bandwidth for improving IPL link uses, and improves DR system Stability.
It is further explained and illustrates above-described embodiment, will be specifically described in conjunction with Fig. 2 and Fig. 4.
As shown in Fig. 2, equipment A is main DR equipment, equipment B be from DR equipment, before being not optimised, aggregation port on equipment C, When sending STP protocol message, it is hashing onto the port on link 2, such STP protocol message will be from DR equipment C to equipment B, then equipment B is being transparent to equipment A, is equivalent to protocol massages and detours, and increases the burden of IPL link.
After the present embodiment institute providing method, the LACP message that equipment A and equipment B are sent carries new field Role, wherein equipment A sends the LACP message for carrying that identification information is 1 (first identifier information), and equipment B, which is sent, carries mark Information is the LACP message of 2 (second identifier information).It can be into after equipment C receives these LACP messages, inside identical aggregation group Row grouping, role are one group of 1, and role is one group of 2.The aggregation port of equipment C carries out STP protocol report in selection member port When text is sent, can first search corresponding aggregation group, the port that role is 1 be not it is empty, then preferentially select role for 1 these ends Mouth carries out Hash, it is ensured that the interface that last Hash comes out is inside this group that role is 1.It is hashing on equipment C in this way Outgoing interface is the port of link 1, and STP protocol message issues DR system by the port, and equipment A can be directly received, not needed Pass through equipment B transparent transmission.The transparent transmission for reducing protocol massages inside DR system, the bandwidth for reducing IPL link are used, are mentioned The stability of high DR system.Message forwarding after optimization is as shown in Figure 4.
The embodiment of the present disclosure additionally provides a kind of packet transmission device, which is mainly used for executing this public affairs File transmitting method provided by embodiment above content is opened, the packet transmission device provided below the embodiment of the present disclosure is done It is specific to introduce.
Fig. 5 is according to a kind of schematic diagram of packet transmission device of the embodiment of the present disclosure, as shown in figure 5, the message is sent Device mainly includes the first query unit 10, the second query unit 20 and determination unit 30, in which:
First query unit, for after getting STP protocol message to be forwarded, inquiry first identifier information and the The first corresponding relationship between one target port, wherein the first object port is corresponding to the first identifier information The port being connect in main DR equipment with the network device communications;
Second query unit, if looked into for inquiring first corresponding relationship based on first corresponding relationship Ask port corresponding with the first identifier information;
Determination unit, for determining end to be forwarded from the port corresponding with the first identifier information inquired Mouthful, and the STP protocol message is sent by the port to be forwarded.
As can be seen from the above description, in the present embodiment, it by inquiring the first corresponding relationship, can be based on inquiring The first corresponding relationship inquire the port of main DR equipment in the case where, STP protocol message is turned by main DR equipment Hair, to reduce the transparent transmission of protocol massages, the bandwidth for improving IPL link is used, and guarantees the stabilization of DR system, and then is solved existing Have in technology due to from DR equipment thoroughly to main DR equipment when caused DR stability be affected and the bandwidth of IPL link The technical issues of using being affected.
Optionally, which is also used to: if not inquiring first corresponding relationship, inquiring second identifier information The second corresponding relationship between the second target port, wherein second target port is right for the second identifier information The port being connect in the slave DR equipment answered with the network device communications;If there is second corresponding relationship, then from described Port to be forwarded is determined in second target port, and institute's STP protocol message is sent by the port to be forwarded.
Optionally, the determination unit is used for: being carried out to the port corresponding with the first identifier information inquired Hash calculation, with according to Hash calculation result from the corresponding port the true port to be forwarded.
Optionally, described device is also used to: first mark is carried in the LACP message that the network equipment is got In the case where knowing information, first corresponding relationship is determined by the following method: obtaining carrying that the main DR equipment is sent the The LACP message of one identification information;Establish the first identifier information and the first identifier information carried in the LACP message Corresponding relationship between corresponding first object port obtains first corresponding relationship.
Optionally, described device is also used to: according to aggregation group where main DR equipment, to the carrying first identifier information Each LACP message be grouped, so that the LACP message of the belonging same aggregation group is grouped into the same group, obtain belonging to In multiple groupings of each aggregation group;It establishes corresponding to the first identifier information and its that LACP message carries in each grouping Corresponding relationship between first object port obtains the first corresponding relationship corresponding with each aggregation group.
The technical effect and preceding method embodiment of device provided by the embodiment of the present disclosure, realization principle and generation Identical, to briefly describe, Installation practice part does not refer to place, can refer to corresponding contents in preceding method embodiment.
Referring to Fig. 6, the embodiment of the present disclosure also provides a kind of network equipment 100, comprising: processor 60, memory 61, always Line 62 and communication interface 63, the processor 60, communication interface 63 and memory 61 are connected by bus 62;Processor 60 is used The executable module stored in execution memory 61, such as computer program.
Wherein, memory 61 may include high-speed random access memory (RAM, Random Access Memory), It may further include non-labile memory (non-volatile memory), for example, at least a magnetic disk storage.Pass through At least one communication interface 63 (can be wired or wireless) is realized between the system network element and at least one other network element Communication connection, can be used internet, wide area network, local network, Metropolitan Area Network (MAN) etc..
Bus 62 can be isa bus, pci bus or eisa bus etc..The bus can be divided into address bus, number According to bus, control bus etc..To scheme only to be indicated with a four-headed arrow in XX, it is not intended that only one total convenient for indicating Line or a type of bus.
Wherein, memory 61 is for storing program 601, and the processor 60 is after receiving and executing instruction, described in execution Program 601, method performed by the device that the stream process that aforementioned embodiment of the present disclosure any embodiment discloses defines can be applied It is realized in processor 60, or by processor 60.
Processor 60 may be a kind of IC chip, the processing capacity with signal.It is above-mentioned during realization Each step of method can be completed by the integrated logic circuit of the hardware in processor 60 or the instruction of software form.On The processor 60 stated can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal Processing, abbreviation DSP), specific integrated circuit (Application Specific Integrated Circuit, abbreviation ASIC), ready-made programmable gate array (Field-Programmable Gate Array, abbreviation FPGA) or Person other programmable logic device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute Disclosed each method, step and logic diagram in the embodiment of the present disclosure.General processor can be microprocessor or should Processor is also possible to any conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present disclosure, can be direct Be presented as that hardware decoding processor executes completion, or in decoding processor hardware and software module combination execute completion. Software module can be located at random access memory, and flash memory, read-only memory, programmable read only memory or electrically-erasable can be compiled In the storage medium of this fields such as journey memory, register maturation.The storage medium is located at memory 61, and processor 60 is read Information in memory 61, in conjunction with the step of its hardware completion above method.
In addition, in the description of the embodiment of the present disclosure unless specifically defined or limited otherwise, term " installation ", " phase Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected; It can be mechanical connection, be also possible to be electrically connected;It can be directly connected, can also indirectly connected through an intermediary, it can be with It is the connection inside two elements.For the ordinary skill in the art, it can understand that above-mentioned term exists with concrete condition Concrete meaning in the disclosure.
In the description of the disclosure, it should be noted that term " center ", "upper", "lower", "left", "right", "vertical", The orientation or positional relationship of the instructions such as "horizontal", "inner", "outside" be based on the orientation or positional relationship shown in the drawings, be only for Convenient for the description disclosure and simplify description, rather than the device or element of indication or suggestion meaning there must be specific side Position is constructed and operated in a specific orientation, therefore should not be understood as the limitation to the disclosure.In addition, term " first ", " the Two ", " third " is used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance.
It is apparent to those skilled in the art that for convenience and simplicity of description, foregoing description is The specific work process of system, device and unit, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.The apparatus embodiments described above are merely exemplary, for example, the division of the unit, Only a kind of logical function partition, there may be another division manner in actual implementation, in another example, multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some communication interfaces, device or unit Indirect coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, as unit The component of display may or may not be physical unit, it can and it is in one place, or may be distributed over more In a network unit.Some or all of unit therein can be selected to realize this embodiment scheme according to the actual needs Purpose.
It, can also be in addition, each functional unit in each embodiment of the disclosure can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can if the function is realized in the form of SFU software functional unit and when sold or used as an independent product To be stored in the executable non-volatile computer-readable storage medium of a processor.Based on this understanding, this public affairs Substantially the part of the part that contributes to existing technology or the technical solution can be with soft in other words for the technical solution opened The form of part product embodies, which is stored in a storage medium, including some instructions are to make It obtains a computer equipment (can be personal computer, server or the network equipment etc.) and executes each embodiment of the disclosure The all or part of the steps of the method.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. it is various It can store the medium of program code.
Finally, it should be noted that embodiment described above, the only specific embodiment of the disclosure, to illustrate this public affairs The technical solution opened, rather than its limitations, the protection scope of the disclosure are not limited thereto, although right with reference to the foregoing embodiments The disclosure is described in detail, those skilled in the art should understand that: any technology for being familiar with the art Personnel can still modify to technical solution documented by previous embodiment in the technical scope that the disclosure discloses Or variation or equivalent replacement of some of the technical features can be readily occurred in;And these modifications, variation or replacement, The spirit and scope for embodiment of the present disclosure technical solution that it does not separate the essence of the corresponding technical solution, should all cover in this public affairs Within the protection scope opened.Therefore, the protection scope of the disclosure shall be subject to the protection scope of the claim.

Claims (12)

1. a kind of file transmitting method, which is characterized in that be applied to the network equipment, comprising:
After getting STP protocol message to be forwarded, first pair between first identifier information and first object port is inquired It should be related to, wherein the first object port is to set in main DR equipment corresponding to the first identifier information with the network The port of standby communication connection;
If inquiring first corresponding relationship, based on first corresponding relationship inquiry and the first identifier information phase Corresponding port;
Port to be forwarded is determined from the port corresponding with the first identifier information inquired, and by described to be forwarded Port sends the STP protocol message.
2. the method according to claim 1, wherein the method also includes:
If not inquiring first corresponding relationship, second pair between second identifier information and the second target port is inquired It should be related to, wherein second target port is to set in slave DR equipment corresponding to the second identifier information with the network The port of standby communication connection;
If there is second corresponding relationship, then port to be forwarded is determined from second target port, and by described Port to be forwarded sends institute's STP protocol message.
3. the method according to claim 1, wherein corresponding with the first identifier information from what is inquired Determine that port to be forwarded includes: in port
Hash calculation is carried out to the port corresponding with the first identifier information that inquires, with according to Hash calculation result from The true port to be forwarded in the corresponding port.
4. the method according to claim 1, wherein if being taken in the LACP message that the network equipment is got With the first identifier information, first corresponding relationship is determined by the following method:
Obtain the LACP message for the carrying first identifier information that the main DR equipment is sent;
Establish first object end corresponding to the first identifier information and the first identifier information carried in the LACP message Corresponding relationship between mouthful, obtains first corresponding relationship.
5. according to the method described in claim 4, it is characterized in that, establishing the first identifier information carried in the LACP message With the corresponding relationship between first object port corresponding to the first identifier information, the first corresponding relationship packet is obtained It includes:
According to aggregation group where main DR equipment, each LACP message for carrying the first identifier information is grouped, thus The LACP message of the belonging same aggregation group is grouped into the same group, multiple groupings of belonging each aggregation group are obtained;
Establish pair in each grouping between the first identifier information of LACP message carrying and the first object port corresponding to it It should be related to, obtain the first corresponding relationship corresponding with each aggregation group.
6. a kind of packet transmission device, which is characterized in that be set to the network equipment, comprising:
First query unit, for inquiring first identifier information and first object after getting STP protocol message to be forwarded The first corresponding relationship between port, wherein the first object port is that main DR corresponding to the first identifier information is set The port being connect in standby with the network device communications;
Second query unit, if for inquiring first corresponding relationship, based on first corresponding relationship inquiry with The corresponding port of the first identifier information;
Determination unit, for determining port to be forwarded from the port corresponding with the first identifier information inquired, and The STP protocol message is sent by the port to be forwarded.
7. device according to claim 6, which is characterized in that described device is also used to:
If not inquiring first corresponding relationship, second pair between second identifier information and the second target port is inquired It should be related to, wherein second target port is to set in slave DR equipment corresponding to the second identifier information with the network The port of standby communication connection;
If there is second corresponding relationship, then port to be forwarded is determined from second target port, and by described Port to be forwarded sends institute's STP protocol message.
8. device according to claim 6, which is characterized in that the determination unit is used for:
Hash calculation is carried out to the port corresponding with the first identifier information that inquires, with according to Hash calculation result from The true port to be forwarded in the corresponding port.
9. device according to claim 6, which is characterized in that described device is also used to:
In the case where carrying the first identifier information in the LACP message that the network equipment is got, by the following method Determine first corresponding relationship:
Obtain the LACP message for the carrying first identifier information that the main DR equipment is sent;
Establish first object end corresponding to the first identifier information and the first identifier information carried in the LACP message Corresponding relationship between mouthful, obtains first corresponding relationship.
10. device according to claim 9, which is characterized in that described device is also used to:
According to aggregation group where main DR equipment, each LACP message for carrying the first identifier information is grouped, thus The LACP message of the belonging same aggregation group is grouped into the same group, multiple groupings of belonging each aggregation group are obtained;
Establish pair in each grouping between the first identifier information of LACP message carrying and the first object port corresponding to it It should be related to, obtain the first corresponding relationship corresponding with each aggregation group.
11. a kind of network equipment, including memory, processor and it is stored on the memory and can transports on the processor Capable computer program, which is characterized in that the processor realizes the claims 1 to 2 when executing the computer program Any one of described in method.
12. a kind of computer-readable medium for the non-volatile program code that can be performed with processor, which is characterized in that described Program code makes the processor execute method described in any one of the claims 1 to 5.
CN201810998252.6A 2018-08-29 2018-08-29 Message sending method, device, network equipment and computer readable medium Active CN109347734B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810998252.6A CN109347734B (en) 2018-08-29 2018-08-29 Message sending method, device, network equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810998252.6A CN109347734B (en) 2018-08-29 2018-08-29 Message sending method, device, network equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN109347734A true CN109347734A (en) 2019-02-15
CN109347734B CN109347734B (en) 2021-05-07

Family

ID=65292000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810998252.6A Active CN109347734B (en) 2018-08-29 2018-08-29 Message sending method, device, network equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN109347734B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109951819A (en) * 2019-03-19 2019-06-28 新华三技术有限公司 A kind of message forwarding method and device
CN112953883A (en) * 2019-12-10 2021-06-11 中兴通讯股份有限公司 Equipment protocol intercommunication method, equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050041665A1 (en) * 2003-08-20 2005-02-24 3Com Corporation System and method for distributed multicast routing
CN101753453A (en) * 2009-12-23 2010-06-23 中兴通讯股份有限公司 Networking method for ring network of packet transport network
CN102710507A (en) * 2012-05-17 2012-10-03 杭州华三通信技术有限公司 Method and network equipment for achieving consistency of message forwarding paths
US20130095747A1 (en) * 2011-10-17 2013-04-18 Mehran Moshfeghi Method and system for a repeater network that utilizes distributed transceivers with array processing
CN103152210A (en) * 2013-03-29 2013-06-12 杭州华三通信技术有限公司 Method for repairing spanning tree protocol (STP) forwarding state abnormalities and stacking equipment
CN103501250A (en) * 2013-09-30 2014-01-08 杭州华三通信技术有限公司 Data flow processing method and device in distribution type link aggregation network
CN103532851A (en) * 2013-09-30 2014-01-22 杭州华三通信技术有限公司 Method and device for processing data flow in distributed link aggregation network
US20140313938A1 (en) * 2013-04-23 2014-10-23 Telefonaktiebolaget L M Ericsson (Publ) Packet data unit (pdu) structure for supporting distributed relay control protocol (drcp)
CN107547452A (en) * 2017-07-11 2018-01-05 新华三技术有限公司 A kind of distributed communication equipment and its message forwarding method and device
CN107995111A (en) * 2016-10-26 2018-05-04 中兴通讯股份有限公司 Business forwarding, link change notifying method, convergence device and access device
CN108259299A (en) * 2017-06-23 2018-07-06 新华三技术有限公司 A kind of forwarding-table item generation method, device and machine readable storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050041665A1 (en) * 2003-08-20 2005-02-24 3Com Corporation System and method for distributed multicast routing
CN101753453A (en) * 2009-12-23 2010-06-23 中兴通讯股份有限公司 Networking method for ring network of packet transport network
US20130095747A1 (en) * 2011-10-17 2013-04-18 Mehran Moshfeghi Method and system for a repeater network that utilizes distributed transceivers with array processing
CN102710507A (en) * 2012-05-17 2012-10-03 杭州华三通信技术有限公司 Method and network equipment for achieving consistency of message forwarding paths
CN103152210A (en) * 2013-03-29 2013-06-12 杭州华三通信技术有限公司 Method for repairing spanning tree protocol (STP) forwarding state abnormalities and stacking equipment
US20140313938A1 (en) * 2013-04-23 2014-10-23 Telefonaktiebolaget L M Ericsson (Publ) Packet data unit (pdu) structure for supporting distributed relay control protocol (drcp)
CN103501250A (en) * 2013-09-30 2014-01-08 杭州华三通信技术有限公司 Data flow processing method and device in distribution type link aggregation network
CN103532851A (en) * 2013-09-30 2014-01-22 杭州华三通信技术有限公司 Method and device for processing data flow in distributed link aggregation network
CN107995111A (en) * 2016-10-26 2018-05-04 中兴通讯股份有限公司 Business forwarding, link change notifying method, convergence device and access device
CN108259299A (en) * 2017-06-23 2018-07-06 新华三技术有限公司 A kind of forwarding-table item generation method, device and machine readable storage medium
CN107547452A (en) * 2017-07-11 2018-01-05 新华三技术有限公司 A kind of distributed communication equipment and its message forwarding method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109951819A (en) * 2019-03-19 2019-06-28 新华三技术有限公司 A kind of message forwarding method and device
CN112953883A (en) * 2019-12-10 2021-06-11 中兴通讯股份有限公司 Equipment protocol intercommunication method, equipment and storage medium

Also Published As

Publication number Publication date
CN109347734B (en) 2021-05-07

Similar Documents

Publication Publication Date Title
US9608903B2 (en) Systems and methods for recovery from network changes
US8839023B2 (en) Transmitting network information using link or port aggregation protocols
CN108574616A (en) A kind of method, equipment and the system of processing routing
WO2020073685A1 (en) Forwarding path determining method, apparatus and system, computer device, and storage medium
US10454711B2 (en) Method for obtaining port path and apparatus
CN112448900A (en) Data transmission method and device
CN103634423B (en) Three-layered interface based MPLS-TP (multi-protocol label switching-transport profile) configuration method and device
CN106209638B (en) From virtual LAN to the message forwarding method and equipment of virtual expansible local area network
CN105337853A (en) Instance establishing method and apparatus in software defined network (SDN)
CN108965134B (en) Message forwarding method and device
CN106789748A (en) A kind of distributed couple in multiplexer DAM stacking network system and its apparatus
CN103200100A (en) Method and device for packet transmitting
CN108696370B (en) Method, device and system for binding and unbinding server and service
CN105812221B (en) The device and method of data transmission in virtual expansible Local Area Network
CN109347734A (en) A kind of file transmitting method, device, the network equipment and computer-readable medium
JP2010525648A (en) System and method for identifying non-multiple spanning tree protocol control planes
CN106209554B (en) message forwarding method and device for crossing virtual extensible local area network
CN105637806A (en) Method and apparatus for determining network topology, and centralized network state information storage device
CN110380966A (en) A kind of method and its relevant device finding forward-path
CN108092896A (en) Pile system and aggregation group establish device
CN111464441A (en) Communication method and device
CN111464440A (en) Communication method and device
CN108833284A (en) A kind of communication means and device of cloud platform and IDC network
CN112422444B (en) Method and device for forwarding message across cards
CN116192721A (en) Path perception method, device and system

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230625

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.