CN116112449A - A message forwarding method, device and storage medium - Google Patents
A message forwarding method, device and storage medium Download PDFInfo
- Publication number
- CN116112449A CN116112449A CN202111331406.4A CN202111331406A CN116112449A CN 116112449 A CN116112449 A CN 116112449A CN 202111331406 A CN202111331406 A CN 202111331406A CN 116112449 A CN116112449 A CN 116112449A
- Authority
- CN
- China
- Prior art keywords
- message
- port
- output port
- aggregation group
- link
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 230000002776 aggregation Effects 0.000 claims abstract description 79
- 238000004220 aggregation Methods 0.000 claims abstract description 79
- 238000004590 computer program Methods 0.000 claims description 17
- 238000012545 processing Methods 0.000 claims description 12
- 230000004044 response Effects 0.000 claims description 10
- 230000006870 function Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/70—Virtual switches
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/38—Flow based routing
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/50—Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本发明涉及网络通信技术领域,尤其涉及一种报文转发方法及实现该报文转发方法的装置和存储介质。The invention relates to the technical field of network communication, in particular to a message forwarding method, a device and a storage medium for realizing the message forwarding method.
背景技术Background technique
现有交换芯片中,数据链路层的转发信息是通过查找MAC地址表获得的。其中,对于链路聚合端口,MAC地址表中存储的是链路聚合组信息。而对于非链路聚合端口,MAC地址表中存放的是真实的出端口信息。当通过查找MAC地址表获得转发信息对应链路聚合组信息时,需进一步根据报文携带的信息计算哈希值并依据计算获得的哈希值从链路聚合组中选取一出端口进行转发报文。而当通过查找MAC地址表获得信息为非链路聚合组信息时,则直接获得的出端口转发报文。In the existing switching chip, the forwarding information of the data link layer is obtained by searching the MAC address table. Wherein, for the link aggregation port, the link aggregation group information is stored in the MAC address table. For non-link aggregation ports, the MAC address table stores real outgoing port information. When the link aggregation group information corresponding to the forwarding information is obtained by looking up the MAC address table, it is necessary to further calculate the hash value according to the information carried in the message, and select an outbound port from the link aggregation group to forward the message according to the calculated hash value. arts. However, when the information obtained by searching the MAC address table is non-link aggregation group information, the obtained outgoing port directly forwards the message.
当出端口出现链路中断时,采用中断的方式通知CPU,CPU进一步采取删除所有该出端口相关的MAC地址表的动作。然而,从出端口出现链路故障到MAC地址表的删除存在一定的时间间隔,在此期间内经过交换芯片的报文会出现丢包的情况。When a link interruption occurs on an outbound port, the CPU is notified in the form of an interruption, and the CPU further takes an action of deleting all MAC address tables related to the outbound port. However, there is a certain time interval from the occurrence of a link failure on the egress port to the deletion of the MAC address table, during which packet loss may occur in packets passing through the switching chip.
发明内容Contents of the invention
本发明的目的在于提供一种报文转发方法,能够有效解决出端口出现链路中断时丢包的问题,同时,还提供一种实现该报文转发方法的装置和存储介质。The purpose of the present invention is to provide a message forwarding method, which can effectively solve the problem of packet loss when the outbound link is interrupted, and meanwhile, provide a device and a storage medium for realizing the message forwarding method.
为实现上述目的,本发明提出一种报文转发方法,所述报文转发方法包括如下步骤:In order to achieve the above object, the present invention proposes a message forwarding method, and the message forwarding method includes the following steps:
接收报文并根据所述报文携带的信息查找MAC地址表,获得报文的出端口信息;Receive the message and search the MAC address table according to the information carried in the message to obtain the outgoing port information of the message;
根据所述出端口信息判断其是否为链路聚合组;judging whether it is a link aggregation group according to the egress port information;
响应于根据所述出端口信息判断其为链路聚合组,进一步判断链路聚合组中成员端口的数量是否大于零;In response to judging that it is a link aggregation group according to the outgoing port information, further judging whether the number of member ports in the link aggregation group is greater than zero;
响应于判断结果,根据报文携带的信息计算哈希值并根据哈希值选择相应成员端口转发报文,或者在相应转发域中进行泛洪。In response to the judgment result, a hash value is calculated according to the information carried in the message, and a corresponding member port is selected to forward the message according to the hash value, or flooding is performed in a corresponding forwarding domain.
优选地,报文转发方法还包括:Preferably, the message forwarding method also includes:
响应于根据所述出端口信息判断其为非链路聚合组,进一步根据出端口信息查找端口链路状态表;In response to judging that it is a non-link aggregation group according to the outgoing port information, further searching the port link status table according to the outgoing port information;
响应于查找结果,在相应转发域中进行泛洪或者将报文转发至出端口。In response to the search result, perform flooding in the corresponding forwarding domain or forward the packet to the egress port.
优选地,当查找到出端口链路状态为中断时,在相应转发域中进行泛洪;当查找到端口链路状态为非中断时,将报文转发至出端口。Preferably, when the link state of the outbound port is found to be interrupted, flooding is performed in the corresponding forwarding domain; when the state of the port link is found to be non-interrupted, the packet is forwarded to the outbound port.
优选地,当判断链路聚合组中成员端口的数量大于零时,根据报文携带的信息计算哈希值并利用哈希值和成员端口数量选择转发报文的成员端口;当判断链路聚合组中成员端口的数量等于零时,在相应转发域中进行泛洪。Preferably, when it is judged that the number of member ports in the link aggregation group is greater than zero, the hash value is calculated according to the information carried in the message and the member port for forwarding the message is selected using the hash value and the number of member ports; When the number of member ports in the group is equal to zero, flooding is performed in the corresponding forwarding domain.
优选地,所述链路聚合组中成员端口的数量通过如下步骤进行更新:Preferably, the number of member ports in the link aggregation group is updated through the following steps:
获取端口链路状态出现变化的出端口;Obtain the outgoing port whose link status has changed;
判断所述出端口是否为链路聚合组中的成员端口;judging whether the egress port is a member port in the link aggregation group;
响应于判断出端口为链路聚合组中的成员端口,根据出端口的链路状态将该出端口添加至链路聚合组中或者从链路聚合组中删除该出端口,同时更新端口链路状态表。In response to determining that the port is a member port in the link aggregation group, adding the outgoing port to the link aggregation group or deleting the outgoing port from the link aggregation group according to the link status of the outgoing port, and updating the port link state table.
优选地,当出端口的链路状态为中断时,将该出端口从链路聚合组中删除,并将端口链路状态表中该出端口对应的值配置为第一预设值;当出端口的链路状态为非中断时,将该出端口添加至链路聚合组中,并将端口链路状态表中该出端口对应的值配置为第二预设值。Preferably, when the link state of the outgoing port is interrupted, the outgoing port is deleted from the link aggregation group, and the value corresponding to the outgoing port in the port link state table is configured as a first preset value; when the outgoing port When the link state of the port is non-interrupted, the outgoing port is added to the link aggregation group, and the value corresponding to the outgoing port in the port link state table is configured as a second preset value.
优选地,还包括:Preferably, it also includes:
响应于判断出端口为链路组中的非成员端口,根据出端口的链路状态更新端口链路状态表。In response to determining that the port is a non-member port in the link group, the port link state table is updated according to the link state of the outgoing port.
优选地,其特征在于,所述报文转发装置包括:Preferably, it is characterized in that the message forwarding device includes:
出端口获取模块,用于接收报文并根据所述报文携带的信息查找MAC地址表,获得报文的出端口信息;The outgoing port acquisition module is used to receive the message and search the MAC address table according to the information carried by the message to obtain the outgoing port information of the message;
第一判断模块,用于根据所述出端口信息判断其是否为链路聚合组;A first judging module, configured to judge whether it is a link aggregation group according to the outgoing port information;
第二判断模块,用于在第一判断模块判断出端口信息为链路聚合组时,进一步判断链路聚合组中成员端口的数量是否大于零;The second judging module is used to further judge whether the number of member ports in the link aggregation group is greater than zero when the first judging module judges that the port information is the link aggregation group;
报文处理模块,用于响应于第二判断模块的判断结果,根据报文携带的信息计算哈希值并根据哈希值选择相应成员端口转发报文,或者在相应转发域中进行泛洪。The message processing module is used to respond to the judgment result of the second judgment module, calculate a hash value according to the information carried in the message, and select a corresponding member port to forward the message according to the hash value, or perform flooding in the corresponding forwarding domain.
本发明还揭示了一种报文转发装置,所述报文转发装置包括:The present invention also discloses a message forwarding device, which includes:
至少一个处理器;at least one processor;
以及至少一个存储器,所述至少一个存储器被耦合到所述至少一个处理器并且存储用于由所述至少一个处理器执行的计算机程序,所述计算机程序由所述至少一个处理器执行时,使得所述装置执行上述任一项所述的方法。and at least one memory, said at least one memory being coupled to said at least one processor and storing a computer program for execution by said at least one processor, said computer program being executed by said at least one processor such that The device performs any one of the methods described above.
本发明还揭示了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被机器执行时实现上述任一项所述的方法。The present invention also discloses a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a machine, the method described in any one of the above-mentioned methods is realized.
本发明的有益效果是:The beneficial effects of the present invention are:
本发明通过端口链路状态表来记录出端口的链路状态,在出端口的链路状态为中断,或者链路聚合组中成员端口的数量为零时,通过泛洪处理,可解决由于出端口出现链路中断时出现的丢包问题。The present invention records the link state of the outgoing port through the port link state table, and when the link state of the outgoing port is interrupted, or the number of member ports in the link aggregation group is zero, through flood processing, it can solve the problem caused by the outgoing port. The packet loss problem occurs when the link is interrupted on the port.
附图说明Description of drawings
图1是本发明一实施例中报文转发方法流程图;Fig. 1 is a flowchart of a message forwarding method in an embodiment of the present invention;
图2是报文处理流程图;Fig. 2 is a flow chart of message processing;
图3是链路聚合组中成员端口数量更新流程图;Fig. 3 is a flow chart of updating the number of member ports in the link aggregation group;
图4是本发明一实施例中报文转发装置的结构框图。Fig. 4 is a structural block diagram of a message forwarding device in an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明的附图,对本发明实施例的技术方案进行清楚、完整的描述。The technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the present invention.
本发明所揭示的一种报文转发方法,适用于出端口出现链路中断后报文的转发处理,能够有效避免出现丢包的情形。The message forwarding method disclosed by the present invention is suitable for message forwarding processing after the outbound link is interrupted, and can effectively avoid the situation of packet loss.
结合图1和图2所示,本发明所揭示的一种报文转发方法,包括如下步骤:As shown in FIG. 1 and FIG. 2, a message forwarding method disclosed by the present invention includes the following steps:
S100,接收报文并根据所述报文携带的信息查找MAC地址表,获取报文的出端口信息;S100. Receive the message and search the MAC address table according to the information carried in the message to obtain the outgoing port information of the message;
具体地,报文中携带有MAC地址、转发域编号(FID)等信息。当接收到报文后,根据报文携带的MAC地址和转发域编号进行MAC地址表的查找。通过进行MAC地址表的查找,可获得报文的出端口信息,出端口信息可用于后续报文的转发处理。Specifically, the message carries information such as a MAC address and a forwarding domain number (FID). After receiving the message, the MAC address table is searched according to the MAC address carried in the message and the forwarding domain number. By searching the MAC address table, the outbound port information of the message can be obtained, and the outbound port information can be used for forwarding and processing of subsequent messages.
S200,根据所述出端口信息判断其是否为链路聚合组;S200, judging whether it is a link aggregation group according to the outbound port information;
S300,响应于根据所述出端口信息判断其为链路聚合组,进一步判断链路聚合组中成员端口的数量是否大于零;S300, in response to judging that it is a link aggregation group according to the outgoing port information, further judge whether the number of member ports in the link aggregation group is greater than zero;
具体地,当通过查找MAC地址表获取到出端口信息后,进一步判断其是否为链路聚合组。实施时,对于链路聚合组,MAC地址表中存储的是链路聚合组对应的编号,而对于链路聚合组,MAC地址表中存储的是真实的出端口。因而,可通过MAC地址表中存储的内容,也即判断出端口信息是链路聚合组对应的编号还是真实的出端口来确定是否为链路聚合组。Specifically, after the outbound port information is obtained by searching the MAC address table, it is further judged whether it is a link aggregation group. During implementation, for a link aggregation group, the number corresponding to the link aggregation group is stored in the MAC address table, and for the link aggregation group, the actual outgoing port is stored in the MAC address table. Therefore, it can be determined whether it is a link aggregation group according to the content stored in the MAC address table, that is, whether the port information is determined to be a number corresponding to the link aggregation group or a real outgoing port.
当确定为链路聚合组时,进一步判断链路聚合组中成员端口的数量是否为零。当确定为非链路聚合组时,进一步判断出端口信息中出端口所对应的链路状态。当出端口的链路状态为中断(Down)时,将报文在MAC地址表所对应的转发域中进行泛洪(Flooding)处理。当出端口的链路状态为非中断(UP)时,将报文转发至该出端口中。When it is determined as a link aggregation group, it is further determined whether the number of member ports in the link aggregation group is zero. When it is determined that it is not a link aggregation group, the link state corresponding to the outgoing port in the port information is further judged. When the link state of the egress port is down (Down), the message is flooded (Flooding) in the forwarding domain corresponding to the MAC address table. When the link state of the egress port is uninterrupted (UP), the packet is forwarded to the egress port.
进一步地,如图3所示,链路聚合组中成员端口的数量可根据端口的链路状态进行进行更新,也即可根据端口的链路状态进行成员端口的增加或者删除,而出端口的链路状态可通过端口链路状态表进行记录。实施时,端口链路状态表可通过赋值的方式来记录出端口的链路状态,如当出端口的链路状态为中断(Down)时,该出端口对应的值为第一预设值,如第一预设值为1。当出端口的链路路状态为非中断(Up)时,该出端口对应的值为第二预设值,如第二预设值为0,第一预设值和地二预设值的具体赋值可根据实际需求进行设置。Further, as shown in Figure 3, the number of member ports in the link aggregation group can be updated according to the link status of the ports, that is, member ports can be added or deleted according to the link status of the ports, while the number of outgoing ports The link state can be recorded through the port link state table. During implementation, the port link state table can record the link state of the outgoing port by assigning a value, such as when the link state of the outgoing port is interrupted (Down), the value corresponding to the outgoing port is the first preset value, For example, the first default value is 1. When the link state of the outgoing port is non-interrupted (Up), the value corresponding to the outgoing port is the second preset value, such as the second preset value is 0, the first preset value and the second preset value The specific assignment can be set according to actual needs.
在添加或者删除成员端口时,当出端口的链路状态为中断(Down)时,判断该出端口是否属于一个链路聚合组,也即判断该出端口是否为链路聚合组中的成员端口。当确定该出端口为一链路聚合组中的成员端口时,将该链路聚合组中成员数量进行减一处理,同时将该出端口从该链路聚合组中删除,以及将该出端口的链路状态记录在端口链路状态表中,如将端口链路状态表中该出端口对应的值设置为1。当确定该出端口不是一链路聚合组中的成员端口时,将该出端口的链路状态记录在端口链路状态表中,如将端口链路状态表中该出端口对应的值设置为1。When adding or deleting a member port, when the link status of the outgoing port is down (Down), judge whether the outgoing port belongs to a link aggregation group, that is, judge whether the outgoing port is a member port in the link aggregation group . When it is determined that the outgoing port is a member port in a link aggregation group, the number of members in the link aggregation group is reduced by one, and at the same time the outgoing port is deleted from the link aggregation group, and the outgoing port The link state of the link is recorded in the port link state table, for example, the value corresponding to the outgoing port in the port link state table is set to 1. When it is determined that the outgoing port is not a member port in a link aggregation group, record the link state of the outgoing port in the port link state table, such as setting the corresponding value of the outgoing port in the port link state table to 1.
当出端口的链路状态为非中断(UP)时,判断该出端口的是否属于一个链路聚合组,也即判断该出端口是否为链路聚合组中的成员端口。当确定该出端口为一链路聚合组中的成员端口时,将该链路聚合组中成员数量进行加一处理,同时将该出端口添加至链路聚合组中,以及将该出端口的链路状态记录在端口链路状态表中,如将端口链路状态表中该出端口对应的值设置为零。当确定该出端口不是一链路聚合组中的成员端口时,将该出端口的链路状态记录在端口链路状态表中,如将端口链路状态表中该出端口对应的值设置为零。When the link state of the outgoing port is uninterrupted (UP), it is judged whether the outgoing port belongs to a link aggregation group, that is, it is judged whether the outgoing port is a member port in the link aggregation group. When it is determined that the outgoing port is a member port in a link aggregation group, the number of members in the link aggregation group is increased by one, and the outgoing port is added to the link aggregation group at the same time, and the The link state is recorded in the port link state table, for example, the value corresponding to the outgoing port in the port link state table is set to zero. When it is determined that the outgoing port is not a member port in a link aggregation group, record the link state of the outgoing port in the port link state table, such as setting the corresponding value of the outgoing port in the port link state table to zero.
S400,响应于判断结果,根据报文携带的信息计算哈希值并根据哈希值选择相应的成员端口转发报文,或者在对应转发域中进行泛洪。S400. In response to the judgment result, calculate a hash value according to the information carried in the message, and select a corresponding member port to forward the message according to the hash value, or perform flooding in a corresponding forwarding domain.
具体地,对于链路聚合组,可根据链路聚合组中成员端口的数量来确定是否在对应的转发域中进行泛洪处理。当确定链路聚合组中成员端口的数量大于零时,表示链路聚合组中存在有效的成员端口,则进一步根据报文携带的信息,如源MAC地址等,计算相应的哈希值,进一步通过该哈希值对链路聚合组成员数量进行取模处理,以选择相应的出端口。当选择出出端口后进一步将报文转发至该出端口。Specifically, for a link aggregation group, whether to perform flooding processing in a corresponding forwarding domain may be determined according to the number of member ports in the link aggregation group. When it is determined that the number of member ports in the link aggregation group is greater than zero, it means that there is a valid member port in the link aggregation group, then further calculate the corresponding hash value according to the information carried in the message, such as the source MAC address, and further The hash value is used to perform modulo processing on the number of members of the link aggregation group, so as to select the corresponding egress port. After the egress port is selected, the packet is further forwarded to the egress port.
当确定该链路聚合组中成员端口的数量为零时,表示链路聚合组中不存在有效的成员端口,则报文在对应的转发域中进行泛洪(Flooding)处理。When it is determined that the number of member ports in the link aggregation group is zero, it means that there is no valid member port in the link aggregation group, and the message is flooded in the corresponding forwarding domain.
如图4所示,本发明还揭示了一种报文转发装置,报文转发装置包括报文接收模块、出端口获取模块、第一判断模块、第二判断模块和报文处理模块。其中,报文接收模块用于接收报文;出端口获取模块用于根据报文携带的信息查找MAC地址表,获取报文的出端口信息;第一判断模块用于根据出端口信息判断其是否为链路聚合组;第二判断模块用于在第一判断模块判断出端口信息为链路聚合组时,进一步判断链路聚合组中成员端口的数量是否大于零;报文处理模块用于响应于第二判断模块的判断结果,根据报文携带的信息计算哈希值并根据哈希值选择相应成员端口转发报文,或者在相应转发域中进行泛洪。各模块如何实现相应功能,详见上述在此不再一一赘述。As shown in FIG. 4 , the present invention also discloses a message forwarding device. The message forwarding device includes a message receiving module, an outbound port acquisition module, a first judging module, a second judging module and a message processing module. Wherein, the message receiving module is used to receive the message; the output port acquisition module is used to search the MAC address table according to the information carried by the message, and obtains the output port information of the message; the first judging module is used to judge whether it is is a link aggregation group; the second judging module is used to further judge whether the number of member ports in the link aggregation group is greater than zero when the first judging module judges that the port information is a link aggregation group; the message processing module is used to respond Based on the judgment result of the second judging module, the hash value is calculated according to the information carried in the message, and the corresponding member port is selected to forward the message according to the hash value, or flooding is performed in the corresponding forwarding domain. How each module realizes the corresponding function, please refer to the above for details and will not go into details here.
进一步地,报文转发装置还包括查找处理模块,用于在第一判断模块根据出端口信息判断其为非链路聚合组时,进一步根据出端口信息查找端口链路状态表并根据查找结果在相应转发域中进行泛洪或者将报文转发至出端口。实施时,当根据出端口信息查找端口链路状态表查找到出端口链路状态为中断(Down)时,在相应转发域中进行泛洪;当根据出端口信息查找端口链路状态表查找到端口链路状态为非中断(Up)时,将报文转发至出端口。Further, the message forwarding device also includes a search processing module, which is used to further search the port link state table according to the outgoing port information when the first judging module judges that it is a non-link aggregation group according to the outgoing port information and according to the search result in the Flood in the corresponding forwarding domain or forward the packet to the egress port. During implementation, when searching the port link state table according to the outgoing port information and finding that the outgoing port link state is interrupted (Down), flooding is carried out in the corresponding forwarding domain; when searching the port link state table according to the outgoing port information and finding When the link state of the port is not interrupted (Up), the packet is forwarded to the egress port.
本发明还揭示了一种报文转发装置,包括存储器、处理器以及计算器程序,其中,计算器程序存储于处理器中并可在处理器中运行,如报文转发程序等。实施时,处理器执行该计算器程序时可实现上述报文转发方法中的各个步骤,如实现根据所述报文携带的信息查找MAC地址表,获得报文的出端口信息的步骤等等。The present invention also discloses a message forwarding device, which includes a memory, a processor and a calculator program, wherein the calculator program is stored in the processor and can run in the processor, such as a message forwarding program and the like. During implementation, when the processor executes the calculator program, various steps in the above-mentioned message forwarding method can be implemented, such as realizing the steps of searching the MAC address table according to the information carried in the message, obtaining the outgoing port information of the message, and the like.
示例性的,该计算器程序可被分割成一个或多个单元,所述一个或者多个单元被存储在所述存储器中,并由所述存储器执行,以完成本发明。其中,一个或多个单元可以是能够完成特定功能的一系列计算机程序指令段,该计算机程序指令段用于描述计算机程序在所述报文转发装置中的执行过程。Exemplarily, the computer program can be divided into one or more units, and the one or more units are stored in the memory and executed by the memory to complete the present invention. Wherein, one or more units may be a series of computer program instruction segments capable of completing specific functions, and the computer program instruction segments are used to describe the execution process of the computer program in the message forwarding device.
本发明还揭示了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,该计算机程序被处理器执行时,可实现上述报文转发方法。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、可执行文件或某些中间形式等,所述计算机可读介质可以包括能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)等等。The present invention also discloses a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the above message forwarding method can be realized. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, executable file, or some intermediate form, etc., and the computer-readable medium may include any entity capable of carrying the computer program code Or device, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), etc.
本发明通过端口链路状态表来记录出端口的链路状态,在出端口的链路状态为中断,或者链路聚合组中成员端口的数量为零时,通过泛洪处理,可解决由于出端口出现链路中断时出现的丢包问题。The present invention records the link state of the outgoing port through the port link state table, and when the link state of the outgoing port is interrupted, or the number of member ports in the link aggregation group is zero, through flood processing, it can solve the problem caused by the outgoing port. The packet loss problem occurs when the link is interrupted on the port.
本发明的技术内容及技术特征已揭示如上,然而熟悉本领域的技术人员仍可能基于本发明的教示及揭示而作种种不背离本发明精神的替换及修饰,因此,本发明保护范围应不限于实施例所揭示的内容,而应包括各种不背离本发明的替换及修饰,并为本专利申请权利要求所涵盖。The technical contents and technical characteristics of the present invention have been disclosed above, but those skilled in the art may still make various replacements and modifications based on the teachings and disclosures of the present invention without departing from the spirit of the present invention. Therefore, the protection scope of the present invention should not be limited to The content disclosed in the embodiment should include various replacements and modifications that do not depart from the present invention, and are covered by the claims of this patent application.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111331406.4A CN116112449A (en) | 2021-11-11 | 2021-11-11 | A message forwarding method, device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111331406.4A CN116112449A (en) | 2021-11-11 | 2021-11-11 | A message forwarding method, device and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116112449A true CN116112449A (en) | 2023-05-12 |
Family
ID=86253210
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111331406.4A Withdrawn CN116112449A (en) | 2021-11-11 | 2021-11-11 | A message forwarding method, device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116112449A (en) |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050286537A1 (en) * | 2004-06-09 | 2005-12-29 | Katsumi Shimada | Frame transfer processing method and device |
| CN101340377A (en) * | 2008-07-30 | 2009-01-07 | 华为技术有限公司 | A method, device and system for two-layer network data transmission |
| US20100302933A1 (en) * | 2007-10-22 | 2010-12-02 | University College Cork-National University Of Ireland, Cork | Robust Routing of Data in Wireless Networks |
| CN102412979A (en) * | 2010-09-26 | 2012-04-11 | 杭州华三通信技术有限公司 | Method and communication equipment for reducing message loss of link aggregation port |
| US20130272112A1 (en) * | 2012-04-16 | 2013-10-17 | Hitachi Cable, Ltd. | Network switch |
| CN104038426A (en) * | 2013-03-06 | 2014-09-10 | 九旸电子股份有限公司 | Network switch and data updating method |
| CN105099847A (en) * | 2014-05-05 | 2015-11-25 | 杭州华三通信技术有限公司 | Multi-homing access method and device |
| CN108306824A (en) * | 2018-01-25 | 2018-07-20 | 盛科网络(苏州)有限公司 | File transmitting method and device |
-
2021
- 2021-11-11 CN CN202111331406.4A patent/CN116112449A/en not_active Withdrawn
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050286537A1 (en) * | 2004-06-09 | 2005-12-29 | Katsumi Shimada | Frame transfer processing method and device |
| US20100302933A1 (en) * | 2007-10-22 | 2010-12-02 | University College Cork-National University Of Ireland, Cork | Robust Routing of Data in Wireless Networks |
| CN101340377A (en) * | 2008-07-30 | 2009-01-07 | 华为技术有限公司 | A method, device and system for two-layer network data transmission |
| CN102412979A (en) * | 2010-09-26 | 2012-04-11 | 杭州华三通信技术有限公司 | Method and communication equipment for reducing message loss of link aggregation port |
| US20130272112A1 (en) * | 2012-04-16 | 2013-10-17 | Hitachi Cable, Ltd. | Network switch |
| CN104038426A (en) * | 2013-03-06 | 2014-09-10 | 九旸电子股份有限公司 | Network switch and data updating method |
| CN105099847A (en) * | 2014-05-05 | 2015-11-25 | 杭州华三通信技术有限公司 | Multi-homing access method and device |
| CN108306824A (en) * | 2018-01-25 | 2018-07-20 | 盛科网络(苏州)有限公司 | File transmitting method and device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111182482A (en) | Short message distribution method, device, storage medium and short message platform | |
| US11201760B2 (en) | Data forwarding method and apparatus based on operating system kernel bridge | |
| CN111083179B (en) | Internet of Things cloud platform, device interaction method and device based on Internet of Things cloud platform | |
| US20240205292A1 (en) | Data processing method and apparatus, computer device, and computer-readable storage medium | |
| CN111343089B (en) | Method and system for solving flooding problem caused by MAC address HASH conflict | |
| CN107547364A (en) | Route sending-down method, device and the network equipment | |
| CN114500467A (en) | A kind of address conflict detection method, address conflict detection device and electronic equipment | |
| WO2024152666A1 (en) | Dynamic configuration method and apparatus for message template, and computer device and storage medium | |
| CN116996478A (en) | Tunnel encapsulation table resource management method, DPU and related equipment | |
| CN107180118A (en) | A kind of file system cache data managing method and device | |
| CN110891267A (en) | A blockchain-based business processing method and operator network node | |
| CN107547400B (en) | Virtual machine migration method and device | |
| CN116112449A (en) | A message forwarding method, device and storage medium | |
| CN115665066A (en) | Method, equipment and medium for expanding MAC address table capacity | |
| CN111767330B (en) | Data interaction method and device, electronic equipment and storage medium | |
| CN107070797A (en) | A kind of method and system of message forwarding | |
| WO2020119317A1 (en) | Message forwarding method and apparatus, storage medium, and electronic apparatus | |
| CN115599711B (en) | Cache data processing method, system, device, equipment and computer storage medium | |
| CN113438158B (en) | Message forwarding method and device | |
| CN110247826B (en) | A point-to-point network connectivity test method | |
| CN116319628A (en) | SDN network data forwarding method and device based on DPDK | |
| CN115499358B (en) | SRv6-TE message forwarding method and forwarding equipment | |
| CN112000431A (en) | Object storage and read-write method and device of distributed storage system | |
| CN110896378A (en) | Network traffic forwarding method and device, electronic equipment and machine-readable storage medium | |
| CN116055455B (en) | MAC address aging processing method and device, LPU card and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| WW01 | Invention patent application withdrawn after publication | ||
| WW01 | Invention patent application withdrawn after publication |
Application publication date: 20230512 |