CN104040967A - Stream forwarding method for message, and message forwarding device - Google Patents

Stream forwarding method for message, and message forwarding device Download PDF

Info

Publication number
CN104040967A
CN104040967A CN201280002846.8A CN201280002846A CN104040967A CN 104040967 A CN104040967 A CN 104040967A CN 201280002846 A CN201280002846 A CN 201280002846A CN 104040967 A CN104040967 A CN 104040967A
Authority
CN
China
Prior art keywords
outgoing interface
forwarding information
standby
message
main
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
CN201280002846.8A
Other languages
Chinese (zh)
Other versions
CN104040967B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN104040967A publication Critical patent/CN104040967A/en
Application granted granted Critical
Publication of CN104040967B publication Critical patent/CN104040967B/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
    • H04L12/00Data switching networks
    • H04L12/64Hybrid switching systems
    • H04L12/6418Hybrid transport

Abstract

The present invention is suitable for the field of communications. Provided are a stream forwarding method for a message and a message forwarding device. The method includes: receiving a message to be forwarded, and querying a stream list item corresponding to the message in a stream list, the stream list item corresponding to the message including main outbound interface forwarding information and backup outbound interface forwarding information; and if a main outbound interface of the main outbound interface forwarding information in the stream list item is normal, forwarding the message according to the main outbound interface forwarding information, and if the main outbound interface has failed, forwarding the message according to the backup outbound interface forwarding information. The technical solution provided in the embodiments of the present invention has an advantage of improving the forwarding efficiency of the message forwarding device.

Description

The stream forwarding method and message forwarding equipment of a kind of message Technical field
The invention belongs to the stream forwarding method and message forwarding equipment of the communications field, more particularly to a kind of message.
Background technology
In routing forwarding, in order to lift forwarding performance, the mode that the flow table item in the acceleration forwarding of message, this use flow table is realized using the flow table item in flow table to realize the acceleration forwarding of message is commonly referred to as circulation hair, for a message, if the multi-component system of the message(tuple)It is identical with the multi-component system in flow table item, then the forwarding of the message is carried out by the forwarding information recorded in the flow table item.For example, above-mentioned multi-component system is five-tuple(quintuple), five-tuple can include:Source Internet protocol(English:Internet Protocol, referred to as:IP)Address, purpose IP address, agreement, source port address and destination interface address;Above-mentioned forwarding information can include:The IP address of outgoing interface and next-hop device, the medium access control (English of next-hop device:media Access control, referred to as:MAC) address.
When message forwarding equipment receives the message of some forwarding interface reception, parse the five-tuple that the message obtains the message, message forwarding equipment, such as router, with the presence or absence of the flow table item matched with the five-tuple of the message in inquiry flow table, as the flow table item matched with the five-tuple of the message is not present, message forwarding equipment determines not set up the corresponding flow table item of the five-tuple in flow table also, and message forwarding equipment carries out message forwarding according to basic forwarding process.Basic forwarding process refers to common bag forwarding(English:packet Forwarding) flow.Basic forwarding process is specially:Message forwarding equipment obtains the IP address and outgoing interface of the next-hop device of the message according to five-tuple inquiry IP route table, the IP address inquiry address resolution protocol according to next-hop device(English:Address Resolution Protocol, referred to as:ARP)Table obtains the MAC Address of next-hop device, and the message is forwarded from the outgoing interface.Above-mentioned message forwarding equipment is specifically as follows:Router or other network equipments with stream forwarding capability, such as radio reception device.
Message forwarding equipment is completed after the basis forwarding of the message, and message forwarding equipment sets up the flow table item of five-tuple matching in flow table, and above-mentioned flow table item includes:Five-tuple and forwarding information.When message forwarding equipment is subsequently received with other messages of the five-tuple, because now the corresponding flow table item of the five-tuple is stored by message forwarding equipment, so message forwarding equipment can carry out message forwarding according to the flow table item of the five-tuple matching inquired from flow table, this repeating process is sent out for circulation.
When carrying out circulation hair, the outgoing interface of flow table item in flow table only has one, i.e. basis forwards inquired outgoing interface, when the outgoing interface fails, message forwarding equipment can update flow table item related to the outgoing interface in flow table, the mode of renewal can be that message is pressed basic forwarding process and forwarded by message forwarding equipment, and the forwarding information that the multiple tables of basic forwarding inquiries are obtained recorded in flow table item to complete the renewal of flow table item.Above-mentioned multiple tables can include but is not limited to:IP route table and ARP table.Generally, the limited amount of the outgoing interface of message forwarding equipment, and the quantity of the message of the different five-tuples of message forwarding equipment forwarding is very more, so cause message forwarding equipment flow table multiple flow table items forwarding information in contain same outgoing interface, so, when the outgoing interface failure of message forwarding equipment, a large amount of flow table items just occur while more news, now, message forwarding equipment needs to consume substantial amounts of system resource at this moment, also results in being greatly reduced for message forwarding equipment forwarding performance.
Technical problem
It is an object of the invention to provide a kind of stream forwarding method of message, it is intended to solve existing technical scheme when main outgoing interface fails, a large amount of flow table items simultaneously update cause the problem of message forwarding equipment forwarding performance is greatly reduced.
Technical solution
The first aspect of the present invention provides a kind of stream forwarding method of message, and methods described includes:
Message to be forwarded is received, the corresponding flow table item of the message is inquired about in flow table;
The corresponding flow table item of the message includes:Main outgoing interface forwarding information and standby outgoing interface forwarding information;
Main outgoing interface as described in flow table item in main outgoing interface forwarding information is normal, is E-Packeted according to the main outgoing interface forwarding information, and main outgoing interface failure, E-Packets according to the standby outgoing interface forwarding information as described.
With reference to the stream forwarding method of the message of one side, in the first implementation in the first aspect, the main outgoing interface of main outgoing interface forwarding information is normal in the flow table item as described, E-Packeted according to the main outgoing interface forwarding information, main outgoing interface failure, E-Packets according to the standby outgoing interface forwarding information and specifically includes as described:
E-Packet, if the main outgoing interface is normal, the main outgoing interface forwarding information entrance is arranged on before the standby outgoing interface forwarding information entrance according to position most preceding forwarding information;If before the main outgoing interface failure, the entrance that the entrance of the standby outgoing interface forwarding information is arranged on to the main outgoing interface forwarding information.
With reference to first aspect or the first implementation of one side, in second of implementation in the first aspect, methods described also includes after by the message by the standby outgoing interface forwarding information forwarding:
Main outgoing interface E-Packets after failure recovery is normal according to the main outgoing interface forwarding information as described.
With reference to first aspect or any implementation of first aspect, in the third implementation in the first aspect, methods described also includes after message to be forwarded is received:
IP address and main outgoing interface are obtained according to the multi-component system table of query and routing, the IP address of the standby next-hop device of the IP address is obtained according to the IP address, the standby outgoing interface of the main outgoing interface is obtained according to the main outgoing interface, IP address inquiry address analysis protocol table according to the standby next-hop device obtains the MAC Address of standby next-hop device, and the standby outgoing interface forwarding information includes:The MAC Address of the standby outgoing interface and standby next-hop device.
The second aspect of the present invention provides a kind of message forwarding equipment, and the message forwarding equipment includes:
Receiving unit, the message to be forwarded for receiving;
Query unit, for inquiring about the corresponding flow table item of the message that the receiving unit is received in flow table;The corresponding flow table item of the message includes:Main outgoing interface forwarding information and standby outgoing interface forwarding information;
Retransmission unit, it is normal for the main outgoing interface in main outgoing interface forwarding information in flow table item as described, the main outgoing interface forwarding information of the flow table item inquired according to the query unit E-Packets, main outgoing interface failure as described, the standby outgoing interface forwarding information of the flow table item inquired according to the query unit E-Packets.
With reference to a kind of message forwarding equipment of the second aspect of the present invention, in the first mode in the cards of second aspect, the retransmission unit is specifically included:
Forwarding module, for being E-Packeted according to position most preceding forwarding information;
Position setup module, for when the main outgoing interface is normal, the main outgoing interface forwarding information entrance to be arranged on before the standby outgoing interface forwarding information entrance;In the main outgoing interface failure, before the entrance that the entrance of the standby outgoing interface forwarding information is arranged on to the main outgoing interface forwarding information.
In the first mode in the cards with reference to second aspect or second aspect, in second of mode in the cards of second aspect, the retransmission unit is specifically additionally operable to:
Main outgoing interface E-Packets after failure recovery is normal according to the main outgoing interface forwarding information as described.
With reference to second aspect or any implementation of second aspect, in the third implementation in second aspect, the equipment also includes:
Set up unit, for after the receiving unit receives the message to be sent, IP address and main outgoing interface are obtained according to the multi-component system table of query and routing, the IP address of the standby next-hop device of the IP address is obtained according to the IP address, the standby outgoing interface of the main outgoing interface is obtained according to the main outgoing interface, IP address inquiry address analysis protocol table according to the standby next-hop device obtains the MAC Address of standby next-hop device, and the standby outgoing interface forwarding information includes:The MAC Address of the standby outgoing interface and standby next-hop device.
The third aspect of the present invention includes there is provided a kind of routing device, the routing device:Processor, memory, communication interface and bus;Wherein:
The communication interface receives message to be forwarded;
The processor inquires about the corresponding flow table item of the message in the flow table of the memory storage;The corresponding flow table item of the message includes:Main outgoing interface forwarding information and standby outgoing interface forwarding information;Main outgoing interface as described in flow table item in main outgoing interface forwarding information is normal, the main outgoing interface forwarding information of the flow table item inquired according to the query unit E-Packets, main outgoing interface failure as described, the standby outgoing interface forwarding information of the flow table item inquired according to the query unit E-Packets.
With reference to the routing device of third aspect present invention, in the first implementation of the 3rd aspect, the processor E-Packets according to position most preceding forwarding information;When the main outgoing interface is normal, the main outgoing interface forwarding information entrance is arranged on before the standby outgoing interface forwarding information entrance;In the main outgoing interface failure, before the entrance that the entrance of the standby outgoing interface forwarding information is arranged on to the main outgoing interface forwarding information.
In the first mode in the cards with reference to the third aspect or the third aspect, in second of mode in the cards of the third aspect, the processor after failure recovery is normal, E-Packets in the main outgoing interface according to the main outgoing interface forwarding information.
With reference to the third aspect or any implementation of the third aspect, in the third implementation of the 3rd aspect, processor obtains IP address and main outgoing interface according to the multi-component system table of query and routing, the IP address of the standby next-hop device of the IP address is obtained according to the IP address, the standby outgoing interface of the main outgoing interface is obtained according to the main outgoing interface, IP address inquiry address analysis protocol table according to the standby next-hop device obtains the MAC Address of standby next-hop device, and the standby outgoing interface forwarding information includes:The MAC Address of the standby outgoing interface and standby next-hop device.
Beneficial effect
In embodiments of the present invention, the technical scheme that the present invention is provided improves the advantage of message forwarding equipment forwarding performance.
Brief description of the drawings
Fig. 1 is a kind of flow chart of the stream forwarding method for message that the specific embodiment of the invention is provided;
Fig. 2 is the flow table item entrance schematic diagram that the specific embodiment of the invention is provided;
Fig. 3 is a kind of structure chart for message forwarding equipment that the specific embodiment of the invention is provided;
Fig. 4 is a kind of hardware structure diagram for message forwarding equipment that the specific embodiment of the invention is provided.
Embodiments of the present invention
In order to make the purpose , technical scheme and advantage of the present invention be clearer, below in conjunction with drawings and Examples, the present invention will be described in further detail.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The specific embodiment of the invention provides a kind of stream forwarding method of message, and this method is completed by message forwarding equipment.This method as shown in figure 1, including:
S11, message forwarding equipment receive message to be forwarded, and the corresponding flow table item of the message is inquired about in flow table;
The corresponding flow table item of above-mentioned message includes:The multi-component system of message, main outgoing interface forwarding information and standby outgoing interface forwarding information.The corresponding flow table item of the above-mentioned inquiry message is specifically as follows:Message forwarding equipment is according to the flow table item matched in the polynary group polling flow table of the message with the multi-component system.Main outgoing interface forwarding information is:The MAC Address of main outgoing interface and next-hop device.Wherein, main outgoing interface is:The outgoing interface that message is inquired by basic forwarding process, the MAC Address of next-hop device is the MAC Address that message is inquired by basic forwarding process.Standby outgoing interface forwarding information is:The MAC Address of standby outgoing interface and standby next-hop device.Standby outgoing interface is:Producer or the standby outgoing interface of user's main outgoing interface set in advance, the MAC Address of standby next-hop device are the MAC Address obtained according to the IP address of standby next-hop device from the inquiry of APR tables.Wherein, the IP address of standby next-hop device is producer or user's IP address set in advance, and the IP address is the IP address of the standby next-hop device of next-hop device.Wherein standby outgoing interface is different outgoing interfaces from main outgoing interface, and standby next-hop device is equipment corresponding with standby outgoing interface.
The generating process of above-mentioned main interface forwarding information can be:Message forwarding equipment is received after message, with the presence or absence of the flow table item matched with the multi-component system of the message in inquiry flow table, as the flow table item matched with the multi-component system of the message is not present, the flow table item of multi-component system matching is not set up in message forwarding equipment determination also in flow table, and message forwarding equipment carries out message forwarding according to basic forwarding process.Message forwarding equipment is after the basis forwarding of message is completed, the flow table item of message multi-component system matching is set up in flow table, the outgoing interface and the MAC Address of next-hop device that message is inquired by basic forwarding process are stored in the flow table item as main outgoing interface forwarding information.The generating process of above-mentioned standby outgoing interface forwarding information can be:Message forwarding equipment is received after message, with the presence or absence of the flow table item matched with the multi-component system of the message in inquiry flow table, as there is the flow table item matched with the multi-component system of the message, and in the absence of what is matched with the multi-component system of the message, including standby outgoing interface forwarding information, flow table item, message forwarding equipment forces the message to be forwarded by standby basic forwarding process, after standby basic forwarding process is completed, the MAC Address that obtained standby outgoing interface and standby next-hop device are inquired about in standby basic forwarding process is stored in the flow table item as standby outgoing interface forwarding information.Above-mentioned standby basic forwarding process is specifically as follows:Message forwarding equipment obtains the IP address of outgoing interface and next-hop device according to polynary group polling IP route table, then the standby outgoing interface for obtaining the outgoing interface of user or producer's configuration is inquired about according to the outgoing interface, IP address inquiry according to the next-hop device obtains the IP address of the standby next-hop device of user or producer's configuration, IP address according to standby next-hop device inquires about the MAC Address for obtaining standby next-hop device from ARP table, and the message is forwarded from the standby outgoing interface.
Main outgoing interface in S12, such as flow table item in main outgoing interface forwarding information is normal, and the message is forwarded according to main outgoing interface forwarding information, such as the main outgoing interface failure, and the message is forwarded according to standby outgoing interface forwarding information.
Optionally, determine that above-mentioned main outgoing interface is normal or method of failure is specially:Ethernet physical layer in message forwarding equipment(English:physical Layer, abbreviation PHY)Chip detects whether the physical link of the main outgoing interface and next-hop device disconnects, if the physical link that the PHY chip in message forwarding equipment detects the main outgoing interface and next-hop device disconnects, then determine main outgoing interface failure, physical link as the PHY chip in message forwarding equipment detects the main outgoing interface and next-hop device does not disconnect, determines that main outgoing interface is normal.
The technical scheme that the specific embodiment of the invention is provided adds standby outgoing interface forwarding information in usual flow table item.Now, if main outgoing interface fails, message forwarding equipment can forward the message according to standby outgoing interface forwarding information;The foundation that now message forwarding equipment is forwarded the packet is switched to standby outgoing interface forwarding information from main outgoing interface forwarding information, rather than carry out the renewal of main outgoing interface forwarding information, substantial amounts of flow table item in the prior art is so avoided to update simultaneously, so message forwarding equipment will not update high-volume flow table item in the period of a very little, avoid the appearance for updating peak value, so the method that the specific embodiment of the invention is provided has when main outgoing interface fails, system resource occupancy is reduced, the advantage of message forwarding equipment forward efficiency is improved.
Optionally, the above method can also include after message to be forwarded is received in S11:
IP address and main outgoing interface are obtained according to the multi-component system table of query and routing, the IP address of the standby next-hop device of the IP address is obtained according to the IP address, the standby outgoing interface of the main outgoing interface is obtained according to the main outgoing interface, IP address inquiry address analysis protocol table according to the standby next-hop device obtains the MAC Address of standby next-hop device, and the standby outgoing interface forwarding information includes:The MAC Address of the standby outgoing interface and standby next-hop device.Above-mentioned routing table is specifically as follows:IP route table, it is certainly in actual applications, different according to the procotol of application, or the routing table of other forms.
Optionally, realize that S12 mode can be to be a variety of, such as:
In mode A, this mode, the identification means of outgoing interface failure are:Such as outgoing interface failure, then by Port State Table(English:port state Table, referred to as:PST)The mark of outgoing interface be modified as failure;When receiving message, message forwarding equipment inquires the corresponding flow table item of the message, obtain the main outgoing interface in the main interface forwarding information of the flow table item, inquire about marking whether as failure for the main outgoing interface of this in PST, failure is designated such as the main outgoing interface of this in PST, E-Packet, as being designated for the main outgoing interface of this in PST is not failed, E-Packeted according to main outgoing interface forwarding information according to standby outgoing interface forwarding information.Above-mentioned PST is specifically as follows:The table whether mark all outgoing interfaces of message forwarding equipment fail, all outgoing interfaces of message forwarding equipment have its corresponding outgoing interface in PST.
In mode B, this mode, the identification means of outgoing interface failure are:The increase failure flag bit in main outgoing interface forwarding information, for example when main outgoing interface is normal, the value of failure flag bit is 0 in main outgoing interface forwarding information including the main outgoing interface, and the value for the flag bit that failed during main outgoing interface failure, including in the main outgoing interface forwarding information of the main outgoing interface is 1.When receiving message, message forwarding equipment inquires the corresponding flow table item of the message, obtain the value for the flag bit that failed in the main interface forwarding information of the flow table item, value such as failure flag bit in main interface forwarding information is 0, E-Packeted according to main outgoing interface forwarding information, value such as failure flag bit in main interface forwarding information is 1, finds main outgoing interface failure, is E-Packeted according to standby outgoing interface forwarding information.
In mode C, this mode, position most preceding forwarding information is the forwarding information of institute's foundation of E-Packeting in the flow table item of message forwarding equipment, and above-mentioned position most preceding forwarding information is specifically as follows main outgoing interface forwarding information or standby outgoing interface forwarding information.If main outgoing interface is normal, main outgoing interface forwarding information entrance is arranged on before standby outgoing interface forwarding information entrance by message forwarding equipment.If the entrance of standby outgoing interface forwarding information is arranged on before the entrance of main outgoing interface forwarding information by main outgoing interface failure, message forwarding equipment, as shown in Figure 2 A.If main outgoing interface failure, message, in forwarding, will be automatically that standby outgoing interface forwarding information is forwarded by most preceding forwarding information.After main outgoing interface recovers, the entrance of the main outgoing interface forwarding information of flow table item is placed on before the entrance of standby outgoing interface forwarding information by message forwarding equipment, as shown in Figure 2 B, and such message is in forwarding, will be automatically by most preceding forwarding information, i.e., main outgoing interface forwarding information E-Packets.
Optionally, the above method can also include after S12:
After main outgoing interface is normal from failure recovery, message forwarding equipment E-Packets according to main outgoing interface forwarding information.
The specific embodiment of the invention also provides a kind of message forwarding equipment, and the message forwarding equipment can be realized by router, can also be realized by the network switch;The message forwarding equipment as shown in figure 3, including:
Receiving unit 31, the message to be forwarded for receiving;
Query unit 32, for the corresponding flow table item of the message that inquire-receive unit 31 is received in flow table;The corresponding flow table item of the message includes:Main outgoing interface forwarding information and standby outgoing interface forwarding information;
Retransmission unit 33, it is normal for the main outgoing interface in main outgoing interface forwarding information in flow table item as described, the main outgoing interface forwarding information of the flow table item inquired according to query unit 32 E-Packets, main outgoing interface failure as described, the standby outgoing interface forwarding information of the flow table item inquired according to query unit 32 E-Packets.
The message forwarding equipment that the specific embodiment of the invention is provided adds standby outgoing interface forwarding information in usual flow table item.Now, if main outgoing interface fails, message forwarding equipment can forward the message according to standby outgoing interface forwarding information;The foundation that now message forwarding equipment is forwarded the packet is switched to standby outgoing interface forwarding information from main outgoing interface forwarding information, rather than carry out the renewal of main outgoing interface forwarding information, substantial amounts of flow table item in the prior art is so avoided to update simultaneously, so message forwarding equipment will not update high-volume flow table item in the period of a very little, avoid the appearance for updating peak value, so the message forwarding equipment that the specific embodiment of the invention is provided has when main outgoing interface fails, system resource occupancy is reduced, the advantage of message forwarding equipment forward efficiency is improved.
Optionally, above-mentioned retransmission unit 33 is specifically included:
Forwarding module 331, for being E-Packeted according to position most preceding forwarding information;
Position setup module 332, for when the main outgoing interface is normal, the main outgoing interface forwarding information entrance to be arranged on before the standby outgoing interface forwarding information entrance;In the main outgoing interface failure, before the entrance that the entrance of the standby outgoing interface forwarding information is arranged on to the main outgoing interface forwarding information.
Optionally, retransmission unit 33 is specifically additionally operable to:
Main outgoing interface E-Packets after failure recovery is normal according to the main outgoing interface forwarding information as described.
Optionally, the said equipment can also include:
Set up unit, for after receiving unit 401 receives the message to be sent, IP address and main outgoing interface are obtained according to the multi-component system table of query and routing, the IP address of the standby next-hop device of the IP address is obtained according to the IP address, the standby outgoing interface of the main outgoing interface is obtained according to the main outgoing interface, IP address inquiry address analysis protocol table according to the standby next-hop device obtains the MAC Address of standby next-hop device, and the standby outgoing interface forwarding information includes:The MAC Address of the standby outgoing interface and standby next-hop device.
Above-mentioned unit is simply divided according to function logic, but is not limited to above-mentioned division, as long as corresponding function can be realized;In addition, the specific name of each functional module is also only to facilitate mutually distinguish, the protection domain being not intended to limit the invention.
The specific embodiment of the invention also provides a kind of routing device, and the routing device can be specifically router or the network switch, the hardware structure diagram of the routing device as shown in figure 4, including:Processor 401, memory 402, communication interface 403 and bus 404.
Processor 401, memory 402, communication interface 403 are connected with each other by bus 404;Bus 404 can be Industry Standard Architecture system(Industry Standard Architecture, ISA)Bus or peripheral assembly interconnection(English:Peripheral Component Interconnect, referred to as:PCI)Bus etc..
Above-mentioned processor 401 can be general processor, including central processing unit(English:central processing Unit, abbreviation CPU), network processing unit(English:Network processor, abbreviation NP)Deng.
Memory 402, for depositing program and flow table.Specifically, program can include program code, and described program code includes computer-managed instruction, and the program is used to indicate that processor 401 sends computer-managed instruction.Memory 402 may include high speed random access memory(English:random-access Memory, referred to as:RAM)Memory, it is also possible to also including nonvolatile memory(non-volatile memory), for example, at least one magnetic disk storage.
Communication interface 403, for receiving or sending message.Specifically, the communication interface 403 can be COM1, that is outgoing interface, the COM1 also includes PHY chip, the PHY chip detects whether the physical link of the COM1 and next-hop device disconnects, if PHY chip detects the COM1 and the physical link of next-hop device disconnects, it is determined that COM1 fails, physical link as the PHY chip in message forwarding equipment detects the main outgoing interface and next-hop device does not disconnect, determines that COM1 is normal.
Communication interface 403 receives message to be forwarded;
Processor 401 inquires about the corresponding flow table item of the message in the flow table that memory 402 is stored;The corresponding flow table item of the message includes:Main outgoing interface forwarding information and standby outgoing interface forwarding information;Main outgoing interface as described in flow table item in main outgoing interface forwarding information is normal, the main outgoing interface forwarding information of the flow table item inquired according to the query unit E-Packets, main outgoing interface failure as described, the standby outgoing interface forwarding information of the flow table item inquired according to the query unit E-Packets.
The routing device that the specific embodiment of the invention is provided adds standby outgoing interface forwarding information in usual flow table item.Now, if main outgoing interface fails, routing device can forward the message according to standby outgoing interface forwarding information;The foundation that now routing device is forwarded the packet is switched to standby outgoing interface forwarding information from main outgoing interface forwarding information, rather than carry out the renewal of main outgoing interface forwarding information, substantial amounts of flow table item in the prior art is so avoided to update simultaneously, so routing device will not update high-volume flow table item in the period of a very little, avoid the appearance for updating peak value, so the routing device that the specific embodiment of the invention is provided has when main outgoing interface fails, system resource occupancy is reduced, the advantage of routing device forward efficiency is improved.
Optionally, processor 401 E-Packets in the main outgoing interface after failure recovery is normal according to the main outgoing interface forwarding information.
Optionally, processor 401 E-Packets according to position most preceding forwarding information;When the main outgoing interface is normal, the main outgoing interface forwarding information entrance is arranged on before the standby outgoing interface forwarding information entrance;In the main outgoing interface failure, before the entrance that the entrance of the standby outgoing interface forwarding information is arranged on to the main outgoing interface forwarding information.
Optionally, processor 401 obtains IP address and main outgoing interface according to the multi-component system table of query and routing, the IP address of the standby next-hop device of the IP address is obtained according to the IP address, the standby outgoing interface of the main outgoing interface is obtained according to the main outgoing interface, IP address inquiry address analysis protocol table according to the standby next-hop device obtains the MAC Address of standby next-hop device, and the standby outgoing interface forwarding information includes:The MAC Address of the standby outgoing interface and standby next-hop device.
It will be understood by those skilled in the art that technical scheme all or part of step provided in an embodiment of the present invention can be by the related hardware of programmed instruction to complete.Such as it can run journey to complete by computer.The program can be stored in read/write memory medium, for example, random access memory, disk, CD etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all equivalent substitutions made within the embodiment of the present invention or improvement etc., should be included in the scope of the protection.

Claims (12)

  1. A kind of stream forwarding method of message, it is characterised in that methods described includes:
    Message to be forwarded is received, the corresponding flow table item of the message is inquired about in flow table;
    The corresponding flow table item of the message includes:Main outgoing interface forwarding information and standby outgoing interface forwarding information;
    Main outgoing interface as described in flow table item in main outgoing interface forwarding information is normal, is E-Packeted according to the main outgoing interface forwarding information, and main outgoing interface failure, E-Packets according to the standby outgoing interface forwarding information as described.
  2. According to the method described in claim 1, characterized in that, the main outgoing interface of main outgoing interface forwarding information is normal in the flow table item as described, E-Packeted according to the main outgoing interface forwarding information, main outgoing interface failure, E-Packets according to the standby outgoing interface forwarding information and specifically includes as described:
    E-Packet, if the main outgoing interface is normal, the main outgoing interface forwarding information entrance is arranged on before the standby outgoing interface forwarding information entrance according to position most preceding forwarding information;If before the main outgoing interface failure, the entrance that the entrance of the standby outgoing interface forwarding information is arranged on to the main outgoing interface forwarding information.
  3. Method according to claim 1 or 2, it is characterised in that methods described also includes after by the message by the standby outgoing interface forwarding information forwarding:
    Main outgoing interface E-Packets after failure recovery is normal according to the main outgoing interface forwarding information as described.
  4. According to any described method of claim 1-3, it is characterised in that methods described also includes after message to be forwarded is received:
    Internet protocol IP address and main outgoing interface are obtained according to the multi-component system table of query and routing, the IP address of the standby next-hop device of the IP address is obtained according to the IP address, the standby outgoing interface of the main outgoing interface is obtained according to the main outgoing interface, IP address inquiry address analysis protocol table according to the standby next-hop device obtains the medium access control MAC Address of standby next-hop device, and the standby outgoing interface forwarding information includes:The MAC Address of the standby outgoing interface and standby next-hop device.
  5. A kind of message forwarding equipment, it is characterised in that the message forwarding equipment includes:
    Receiving unit, the message to be forwarded for receiving;
    Query unit, for inquiring about the corresponding flow table item of the message that the receiving unit is received in flow table;The corresponding flow table item of the message includes:Main outgoing interface forwarding information and standby outgoing interface forwarding information;
    Retransmission unit, it is normal for the main outgoing interface in main outgoing interface forwarding information in flow table item as described, the main outgoing interface forwarding information of the flow table item inquired according to the query unit E-Packets, main outgoing interface failure as described, the standby outgoing interface forwarding information of the flow table item inquired according to the query unit E-Packets.
  6. Equipment according to claim 5, it is characterised in that the retransmission unit is specifically included:
    Forwarding module, for being E-Packeted according to position most preceding forwarding information;
    Position setup module, for when the main outgoing interface is normal, the main outgoing interface forwarding information entrance to be arranged on before the standby outgoing interface forwarding information entrance;In the main outgoing interface failure, before the entrance that the entrance of the standby outgoing interface forwarding information is arranged on to the main outgoing interface forwarding information.
  7. Equipment according to claim 5 or 6, it is characterised in that the retransmission unit is specifically additionally operable to:
    Main outgoing interface E-Packets after failure recovery is normal according to the main outgoing interface forwarding information as described.
  8. According to any described equipment of claim 5-7, it is characterised in that the equipment also includes:
    Set up unit, for after the receiving unit receives the message to be sent, Internet protocol IP address and main outgoing interface are obtained according to the multi-component system table of query and routing, the IP address of the standby next-hop device of the IP address is obtained according to the IP address, the standby outgoing interface of the main outgoing interface is obtained according to the main outgoing interface, IP address inquiry address analysis protocol table according to the standby next-hop device obtains the medium access control MAC Address of standby next-hop device, and the standby outgoing interface forwarding information includes:The MAC Address of the standby outgoing interface and standby next-hop device.
  9. A kind of routing device, it is characterised in that the routing device includes:Processor, memory, communication interface and bus;Wherein:
    The communication interface receives message to be forwarded;
    The processor inquires about the corresponding flow table item of the message in the flow table of the memory storage;The corresponding flow table item of the message includes:Main outgoing interface forwarding information and standby outgoing interface forwarding information;Main outgoing interface as described in flow table item in main outgoing interface forwarding information is normal, the main outgoing interface forwarding information of the flow table item inquired according to the query unit E-Packets, main outgoing interface failure as described, the standby outgoing interface forwarding information of the flow table item inquired according to the query unit E-Packets.
  10. Routing device according to claim 9, it is characterised in that
    The processor E-Packets according to position most preceding forwarding information;When the main outgoing interface is normal, the main outgoing interface forwarding information entrance is arranged on before the standby outgoing interface forwarding information entrance;In the main outgoing interface failure, before the entrance that the entrance of the standby outgoing interface forwarding information is arranged on to the main outgoing interface forwarding information.
  11. Routing device according to claim 9 or 10, it is characterised in that
    The processor after failure recovery is normal, E-Packets in the main outgoing interface according to the main outgoing interface forwarding information.
  12. According to any described routing devices of claim 9-11, it is characterized in that, the processor obtains Internet protocol IP address and main outgoing interface according to the multi-component system table of query and routing, the IP address of the standby next-hop device of the IP address is obtained according to the IP address, the standby outgoing interface of the main outgoing interface is obtained according to the main outgoing interface, IP address inquiry address analysis protocol table according to the standby next-hop device obtains the medium access control MAC Address of standby next-hop device, and the standby outgoing interface forwarding information includes:The MAC Address of the standby outgoing interface and standby next-hop device.
CN201280002846.8A 2012-12-07 2012-12-07 The stream forwarding method and message forwarding equipment of a kind of message Active CN104040967B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/086183 WO2014086041A1 (en) 2012-12-07 2012-12-07 Stream forwarding method for message, and message forwarding device

Publications (2)

Publication Number Publication Date
CN104040967A true CN104040967A (en) 2014-09-10
CN104040967B CN104040967B (en) 2017-08-18

Family

ID=50882793

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201280002846.8A Active CN104040967B (en) 2012-12-07 2012-12-07 The stream forwarding method and message forwarding equipment of a kind of message

Country Status (2)

Country Link
CN (1) CN104040967B (en)
WO (1) WO2014086041A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106406825A (en) * 2015-07-27 2017-02-15 中兴通讯股份有限公司 Command line processing method and device
CN112260948A (en) * 2020-10-16 2021-01-22 中国科学院声学研究所 Multi-core SDN switch flow table management method and system based on batch updating

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109698788B (en) * 2017-10-20 2021-06-15 华为技术有限公司 Flow forwarding method and device and computer readable medium
CN110166356B (en) * 2018-02-11 2021-09-17 华为技术有限公司 Method and network equipment for sending message
CN111327546B (en) * 2020-02-25 2022-01-28 杭州迪普科技股份有限公司 Message forwarding method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848841A (en) * 2005-04-05 2006-10-18 华为技术有限公司 Route equipment backup method
CN101009661A (en) * 2007-01-25 2007-08-01 华为技术有限公司 Method and device for updating stream forward table content based on the stream forward
CN101094187A (en) * 2007-07-30 2007-12-26 杭州华三通信技术有限公司 Method, device, and operation board capable of learning address of medium access control
CN101252503A (en) * 2008-02-05 2008-08-27 华为技术有限公司 Method and apparatus for switching traffic of looped network
US20080219273A1 (en) * 2007-03-05 2008-09-11 Fujitsu Limited Scheduling method for executing job, scheduling apparatus for executing job, and commutative recording medium having recorded thereon scheduling program for causing execution of job
WO2011032321A1 (en) * 2009-09-21 2011-03-24 华为技术有限公司 Data forwarding method, data processing method, system and device thereof
CN102067523A (en) * 2008-12-05 2011-05-18 思科技术公司 Failover and failback of communication between a router and a network switch
CN102130826A (en) * 2010-11-25 2011-07-20 华为技术有限公司 Message transmitting method and device
CN102413052A (en) * 2011-11-30 2012-04-11 华为技术有限公司 Network access method, device and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848841A (en) * 2005-04-05 2006-10-18 华为技术有限公司 Route equipment backup method
CN101009661A (en) * 2007-01-25 2007-08-01 华为技术有限公司 Method and device for updating stream forward table content based on the stream forward
US20080219273A1 (en) * 2007-03-05 2008-09-11 Fujitsu Limited Scheduling method for executing job, scheduling apparatus for executing job, and commutative recording medium having recorded thereon scheduling program for causing execution of job
CN101094187A (en) * 2007-07-30 2007-12-26 杭州华三通信技术有限公司 Method, device, and operation board capable of learning address of medium access control
CN101252503A (en) * 2008-02-05 2008-08-27 华为技术有限公司 Method and apparatus for switching traffic of looped network
CN102067523A (en) * 2008-12-05 2011-05-18 思科技术公司 Failover and failback of communication between a router and a network switch
WO2011032321A1 (en) * 2009-09-21 2011-03-24 华为技术有限公司 Data forwarding method, data processing method, system and device thereof
CN102130826A (en) * 2010-11-25 2011-07-20 华为技术有限公司 Message transmitting method and device
CN102413052A (en) * 2011-11-30 2012-04-11 华为技术有限公司 Network access method, device and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106406825A (en) * 2015-07-27 2017-02-15 中兴通讯股份有限公司 Command line processing method and device
CN112260948A (en) * 2020-10-16 2021-01-22 中国科学院声学研究所 Multi-core SDN switch flow table management method and system based on batch updating
CN112260948B (en) * 2020-10-16 2021-10-22 中国科学院声学研究所 Multi-core SDN switch flow table management method and system based on batch updating

Also Published As

Publication number Publication date
WO2014086041A1 (en) 2014-06-12
CN104040967B (en) 2017-08-18

Similar Documents

Publication Publication Date Title
WO2014121502A1 (en) Startup configuration method in base station, base station and server
EP3404879B1 (en) Metro ethernet network with virtual local area network information specifying a broadcast domain and including a service instance identifier
WO2012074198A1 (en) Terminal and intermediate node in content oriented networking environment and communication method of terminal and intermediate node
CN101115006B (en) Three-layer packet forwarding method and routing device and two-layer switch module
EP2100406B1 (en) Method and apparatus for implementing multicast routing
US20080253385A1 (en) Flexible ethernet bridge
CN104040967A (en) Stream forwarding method for message, and message forwarding device
EP2891304A1 (en) Virtual mac address, mask-based, packet forwarding
WO2007045146A1 (en) A method and a device for bridging forwarding
CN109639552B (en) Three-layer forwarding method and device
WO2009033428A1 (en) Method, system and device for removing media access control address
TWI404377B (en) Integrated switch
WO2022048412A1 (en) Method for generating table item, method for sending message, device, and system
WO2011054263A1 (en) Access method and access system for layer 3 virtual private networks(vpn)
WO2010094214A1 (en) Method, apparatus and system for layer 2 interworking between a storage device and a user
WO2017131332A1 (en) Method for transmitting downlink packet in function-separated core network
JP2004320248A (en) Communication equipment, congestion avoidance method, and transmission system
JP2004159019A (en) Extended vlan tag swap system
JP2008131614A (en) Communication device processing operation administration and maintenance frame, data structure, and program
WO2012163000A1 (en) Message forwarding method, device and system
WO2017036384A1 (en) Provider edge device and data forwarding method
JP2005252762A (en) Method and system for controlling vpn connection
JP4106632B2 (en) Communication apparatus and communication control method
EP2908476B1 (en) Method and apparatus for sending multi-link transparent interconnected data frame
JP4147495B2 (en) Communication device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant