WO2014086041A1 - 一种报文的流转发方法及报文转发设备 - Google Patents

一种报文的流转发方法及报文转发设备 Download PDF

Info

Publication number
WO2014086041A1
WO2014086041A1 PCT/CN2012/086183 CN2012086183W WO2014086041A1 WO 2014086041 A1 WO2014086041 A1 WO 2014086041A1 CN 2012086183 W CN2012086183 W CN 2012086183W WO 2014086041 A1 WO2014086041 A1 WO 2014086041A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
primary
forwarding
packet
standby
Prior art date
Application number
PCT/CN2012/086183
Other languages
English (en)
French (fr)
Inventor
宋卿
李文涛
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2012/086183 priority Critical patent/WO2014086041A1/zh
Priority to CN201280002846.8A priority patent/CN104040967B/zh
Publication of WO2014086041A1 publication Critical patent/WO2014086041A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/64Hybrid switching systems
    • H04L12/6418Hybrid transport

Definitions

  • the present invention belongs to the field of communications, and in particular, to a packet forwarding method and a packet forwarding device.
  • the flow entry in the flow table is used to implement the accelerated forwarding of packets.
  • This method of using the flow entries in the flow table to implement accelerated forwarding of packets is usually called flow forwarding.
  • the packet is forwarded according to the forwarding information recorded in the flow entry.
  • the above multi-group is a quintuple, and the quintuple may include: a source internet protocol (English: Internet) Protocol, abbreviated as: IP address, destination IP address, protocol, source port address, and destination port address.
  • the forwarding information may include: the IP address of the outbound interface and the next hop device, and the media access control of the next hop device. Media Access control, referred to as: MAC) address.
  • the packet forwarding device When the packet forwarding device receives a packet received by a forwarding interface, the packet is parsed to obtain a quintuple of the packet, and the packet forwarding device, such as a router, queries the flow table for the presence of the packet. If the flow table entry matches the quintuple of the packet, the packet forwarding device determines that the flow entry corresponding to the quintuple has not been created in the flow table, and the packet is forwarded. The device forwards packets according to the basic forwarding process.
  • the basic forwarding process refers to the normal packet forwarding (English: packet Forwarding) process.
  • the packet forwarding device obtains the IP address and the outbound interface of the next hop device of the packet according to the quintuple query IP routing table, and queries the address resolution protocol according to the IP address of the next hop device (English: Address Resolution The protocol (ARP) table obtains the MAC address of the next hop device and forwards the packet from the outbound interface.
  • the packet forwarding device may be specifically a router or another network device with a flow forwarding function, such as a wireless access device.
  • the packet forwarding device After the packet forwarding device completes the basic forwarding of the packet, the packet forwarding device establishes the quintuple-matched flow entry in the flow table, where the flow entry includes: a quintuple and forwarding information.
  • the packet forwarding device can be queried according to the flow table because the flow entry corresponding to the quintuple has been stored by the packet forwarding device.
  • the quintuple-matched flow entry is forwarded by the packet, and the forwarding process is flow forwarding.
  • the outbound interface of the flow entry in the flow table has only one outbound interface, that is, the outbound interface that is queried by the basic forwarding.
  • the packet forwarding device updates the outbound interface in the flow table.
  • the related flow entry may be updated in the manner that the packet forwarding device forwards the packet according to the basic forwarding process, and records the forwarding information obtained by the basic forwarding query into the flow entry to complete the update of the flow entry.
  • the above plurality of tables may include, but are not limited to, an IP routing table and an ARP table.
  • the number of outbound interfaces of the packet forwarding device is limited, and the number of packets of different quintuple packets forwarded by the packet forwarding device is very large, which causes the forwarding information of multiple flow entries of the packet forwarding device flow table to be forwarded. If the outbound interface of the packet forwarding device fails, a large number of flow entries are updated at the same time. In this case, the packet forwarding device consumes a large amount of system resources at this time. As a result, the forwarding performance of the packet forwarding device is greatly reduced.
  • An object of the present invention is to provide a method for forwarding a packet, which is to solve the problem that the forwarding performance of the packet forwarding device is greatly reduced when a large number of flow entries are updated simultaneously when the primary outgoing interface fails.
  • a first aspect of the present invention provides a method for forwarding a packet, where the method includes:
  • the flow entry corresponding to the packet includes: a primary outbound interface forwarding information and an alternate outbound interface forwarding information;
  • the primary outbound interface in the forwarding information of the primary outbound interface is normal, the information is forwarded according to the primary outbound interface, and if the primary outgoing interface is invalid, the information is forwarded according to the outgoing outgoing interface. .
  • the primary outbound interface of the primary outbound interface forwarding information in the flow entry is normal, according to the primary The outbound interface forwards the information forwarding packet. If the primary outbound interface is invalid, forwarding the information according to the outgoing outbound interface specifically includes:
  • the primary outgoing interface forwarding information entry is set before the standby outgoing interface forwarding information entry; if the primary outgoing interface is invalid, the primary outgoing interface is invalid.
  • the entry of the alternate outgoing interface forwarding information is set before the entry of the primary outgoing interface forwarding information.
  • the method further includes: after forwarding the packet by the backup outbound interface forwarding information :
  • the device After the primary egress interface recovers from the failure, the device forwards the information according to the primary egress interface.
  • the method after receiving the packet to be forwarded, further includes:
  • the outbound interface obtains the MAC address of the standby next hop device according to the IP address of the standby next hop device, and the forwarding information of the standby outbound interface includes: the standby outbound interface and the standby next hop device. MAC address.
  • a second aspect of the present invention provides a packet forwarding device, where the packet forwarding device includes:
  • a receiving unit configured to receive a packet to be forwarded
  • a querying unit configured to query, in the flow table, the flow entry corresponding to the packet received by the receiving unit; the flow entry corresponding to the packet includes: a primary outbound interface forwarding information and an alternate outbound interface forwarding information;
  • the forwarding unit is configured to: if the primary outgoing interface in the forwarding information of the primary outgoing interface in the flow entry is normal, forward the information forwarding packet according to the primary outgoing interface of the flow entry that is queried by the querying unit, as described above.
  • the primary egress interface is invalid, and the information is forwarded according to the outbound interface of the flow entry that is queried by the query unit.
  • the forwarding unit specifically includes:
  • the forwarding module is configured to forward the packet according to the forwarding information at the top position
  • a location setting module configured to: when the primary outgoing interface is normal, set the primary outgoing interface forwarding information entry before the standby outgoing interface forwarding information entry; when the primary outgoing interface fails, the standby setting The entry of the interface forwarding information is set before the entry of the primary outgoing interface to forward information.
  • the forwarding unit is further configured to:
  • the device After the primary egress interface recovers from the failure, the device forwards the information according to the primary egress interface.
  • the device further includes:
  • An establishing unit configured to obtain an IP address and a primary egress interface according to the multi-group query routing table after the receiving unit receives the to-be-sent packet, and obtain the IP address according to the IP address.
  • the IP address of the device of the first hop is obtained by the IP address of the primary outbound interface
  • the MAC address of the standby next hop device is obtained by querying the address resolution protocol table according to the IP address of the standby next hop device.
  • the standby outbound interface forwarding information includes: a MAC address of the standby outbound interface and the standby next hop device.
  • a routing device comprising: a processor, a memory, a communication interface, and a bus; wherein:
  • the processor queries, in the flow table stored in the memory, the flow entry corresponding to the packet; the flow entry corresponding to the packet includes: the primary outbound interface forwarding information and the standby outbound interface forwarding information; The primary outbound interface in the forwarding information of the primary outbound interface in the flow entry is normal. The primary outbound interface of the flow entry is forwarded by the query unit. The standby outbound interface of the flow entry that is queried by the querying unit forwards the information forwarding packet.
  • the processor forwards the packet according to the forwarding information of the top position; when the primary outgoing interface is normal, the primary The outbound interface forwarding information entry is set before the standby outgoing interface forwarding information entry; when the primary outgoing interface fails, the entry of the standby outgoing interface forwarding information is set before the entry of the primary outgoing interface forwarding information.
  • the processor after the primary egress interface recovers from the failure, is performed according to the The primary outbound interface forwards information and forwards packets.
  • the processor obtains an IP address and a primary egress interface according to the multi-group query routing table, according to the IP Obtaining the IP address of the standby next hop device of the IP address, obtaining the standby outbound interface of the primary outgoing interface according to the primary outgoing interface, and querying the address resolution protocol table according to the IP address of the standby next hop device
  • the technical solution provided by the present invention improves the forwarding performance of the packet forwarding device.
  • FIG. 1 is a flowchart of a method for forwarding a packet according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a flow entry entry provided by a specific embodiment of the present invention.
  • FIG. 3 is a structural diagram of a message forwarding device according to an embodiment of the present invention.
  • FIG. 4 is a hardware structural diagram of a message forwarding device according to an embodiment of the present invention.
  • a specific embodiment of the present invention provides a packet forwarding method of a packet, which is completed by a packet forwarding device.
  • the method is shown in Figure 1, and includes:
  • the packet forwarding device receives the packet to be forwarded, and queries the flow table for the flow entry corresponding to the packet.
  • the flow entry corresponding to the foregoing packet includes: a multi-group of the packet, a forwarding information of the primary outgoing interface, and forwarding information of the secondary outgoing interface.
  • the flow entry corresponding to the packet may be: the packet forwarding device matches the flow entry in the multi-group query flow table of the packet according to the multi-group.
  • the forwarding information of the primary and outgoing interfaces is the MAC address of the primary and secondary hops.
  • the primary outbound interface is the outbound interface that the packet is queried according to the basic forwarding process.
  • the MAC address of the next hop device is the MAC address that the packet is queried according to the basic forwarding process.
  • the forwarding information of the standby outbound interface is the MAC address of the standby outbound interface and the standby next hop device.
  • the standby outbound interface is the standby outbound interface of the primary outbound interface preset by the manufacturer or the user.
  • the MAC address of the standby next hop device is the MAC address obtained from the APR table according to the IP address of the standby next hop device.
  • the IP address of the standby next hop device is a preset IP address of the manufacturer or the user, and the IP address is the IP address of the standby next hop device of the next hop device.
  • the outbound interface is the outbound interface with the primary outbound interface, and the standby next hop device is the device corresponding to the standby outbound interface.
  • the process of generating the forwarding information of the primary interface may be: after receiving the packet, the packet forwarding device queries the flow table for the flow entry matching the multi-group of the packet, if there is no multi-group with the packet The matching flow entry, the packet forwarding device determines that the flow entry of the multi-group match has not been established in the flow table, and the packet forwarding device forwards the packet according to the basic forwarding process. After the packet forwarding device completes the basic forwarding of the packet, the device forwards the flow entry of the packet to the outbound interface and the MAC address of the next hop device. The primary outbound interface forwarding information is stored in the flow entry.
  • the process of generating the forwarding information of the standby outgoing interface may be: after receiving the packet, the packet forwarding device searches the flow table for the flow entry that matches the multi-group of the packet, such as the existence of the multi-group of the packet. A matching flow entry, and there is no match with the multi-group of the packet, including the forwarding information of the outbound interface.
  • the packet forwarding device forces the packet to be forwarded according to the alternate basic forwarding process. After the forwarding process is performed, the MAC address of the standby outbound interface and the standby next hop device that are queried in the standby basic forwarding process are stored in the flow entry.
  • the foregoing basic forwarding process may be: the packet forwarding device obtains the IP address of the outbound interface and the next hop device according to the multi-group query IP routing table, and then obtains the standby output of the outbound interface configured by the user or the manufacturer according to the outbound interface query.
  • the interface obtains the IP address of the standby next hop device configured by the user or the manufacturer according to the IP address of the next hop device, and obtains the MAC address of the standby next hop device from the ARP table according to the IP address of the standby next hop device.
  • the packet is forwarded from the standby outbound interface.
  • the packet is forwarded according to the forwarding information of the primary outbound interface. If the primary outgoing interface fails, the packet is forwarded according to the forwarding information of the secondary outgoing interface.
  • the method for determining whether the primary outgoing interface is normal or invalid is specifically: an Ethernet physical layer in the packet forwarding device (English: physical The layer (referred to as the PHY) chip detects whether the physical link of the primary egress interface and the next hop device is disconnected. If the PHY chip in the packet forwarding device detects that the physical link of the primary egress interface and the next hop device is disconnected. The main outbound interface is invalid. For example, the PHY chip in the packet forwarding device detects that the physical link of the primary outbound interface and the next hop device is not disconnected, and determines that the primary outgoing interface is normal.
  • an Ethernet physical layer in the packet forwarding device (English: physical The layer (referred to as the PHY) chip detects whether the physical link of the primary egress interface and the next hop device is disconnected. If the PHY chip in the packet forwarding device detects that the physical link of the primary egress interface and the next hop device is disconnected. The main outbound interface is invalid. For example, the PHY chip in the packet forwarding device detects that
  • the technical solution provided by the specific embodiment of the present invention adds the alternate outbound interface forwarding information in the current flow entry. If the outbound interface fails, the packet forwarding device can forward the packet according to the forwarding information of the outbound interface. The packet forwarding device then forwards the packet forwarding information from the primary outbound interface to the outbound interface. Rather than updating the forwarding information of the primary and outgoing interfaces, the large number of flow entries in the prior art are not updated at the same time, so that the packet forwarding device does not update the large-scale flow entries in a small period of time, that is, avoid The method of the present invention provides an advantage of reducing the system resource occupancy rate and improving the forwarding efficiency of the packet forwarding device when the primary outgoing interface fails.
  • the foregoing method may further include:
  • the outbound interface obtains the MAC address of the standby next hop device according to the IP address of the standby next hop device, and the forwarding information of the standby outbound interface includes: the standby outbound interface and the standby next hop device.
  • the routing table may be specifically: an IP routing table. Of course, in actual applications, according to different network protocols of the application, other routing tables may also be used.
  • the manner of implementing S12 can be multiple, for example:
  • the outbound interface is invalid. If the outbound interface fails, the port state table is obtained.
  • the label of the outbound interface of the table abbreviated as: PST, is modified to be invalid.
  • the packet forwarding device queries the flow entry corresponding to the packet, and obtains the information in the forwarding information of the primary interface of the flow entry.
  • the outbound interface is configured to check whether the flag of the primary outbound interface in the PST is invalid. For example, if the identifier of the primary outbound interface is invalid in the PST, the packet is forwarded according to the outbound interface, such as the primary outbound interface in the PST. The packet is not invalid. The packet is forwarded based on the primary outbound interface.
  • the PST may be: a table indicating whether all outbound interfaces of the packet forwarding device are invalid. All outbound interfaces of the packet forwarding device have corresponding outbound interface entries in the PST.
  • the outbound interface is invalid.
  • the invalidation flag is added to the forwarding information of the primary outbound interface. For example, when the primary outgoing interface is normal, the primary outbound interface of the primary outgoing interface sends the invalidation flag. If the value of the primary outbound interface is 0, the value of the invalidation flag in the primary outbound interface forwarding information of the primary outbound interface is 1.
  • the packet forwarding device queries the flow entry corresponding to the packet, and obtains the value of the invalidation flag bit in the forwarding information of the primary interface of the flow entry, such as the value of the invalidation flag bit in the forwarding information of the primary interface. If the value is 0, the device forwards the information according to the outbound interface. If the value of the invalidation flag is 1 in the forwarding information of the primary interface, the primary outbound interface is invalid.
  • the forwarding information in the flow entry of the packet forwarding device is the forwarding information according to the forwarding packet, and the forwarding information in the foregoing location may be forwarded by the primary outgoing interface or the outgoing outgoing interface. information. If the primary outbound interface is normal, the packet forwarding device sets the primary outbound interface forwarding information entry before the standby outbound interface forwarding information entry. If the primary outgoing interface fails, the packet forwarding device sets the entry of the outgoing outgoing interface forwarding information before the entry of the primary outgoing interface forwarding information, as shown in Figure 2A. If the primary outbound interface fails, the packet will be forwarded automatically according to the forwarding information of the primary outgoing interface.
  • the packet forwarding device puts the entry of the primary outbound interface forwarding information of the flow entry before the entry of the outgoing outgoing interface, as shown in Figure 2B.
  • the first forwarding information that is, the primary outbound interface forwards the information forwarding packet.
  • the foregoing method may further include: after S12:
  • the packet forwarding device forwards the packet based on the primary outbound interface.
  • the embodiment of the present invention further provides a packet forwarding device, which may be implemented by a router or a network switch.
  • the packet forwarding device is as shown in FIG. 3, and includes:
  • the receiving unit 31 is configured to receive a packet to be forwarded.
  • the querying unit 32 is configured to query, in the flow table, the flow entry corresponding to the packet received by the receiving unit 31, where the flow entry corresponding to the packet includes: the primary outbound interface forwarding information and the standby outbound interface forwarding information;
  • the forwarding unit 33 is configured to: if the primary outgoing interface in the forwarding information of the primary outgoing interface in the flow entry is normal, forward the information forwarding packet according to the primary outgoing interface of the flow entry that is queried by the querying unit 32, as described above.
  • the primary outbound interface is invalid, and the information is forwarded according to the outbound interface of the flow entry that is queried by the query unit 32.
  • the packet forwarding device provided by the specific embodiment of the present invention adds the backup outbound interface forwarding information to the current flow entry. If the outbound interface fails, the packet forwarding device can forward the packet according to the forwarding information of the outbound interface. The packet forwarding device then forwards the packet forwarding information from the primary outbound interface to the outbound interface. Rather than updating the forwarding information of the primary and outgoing interfaces, the large number of flow entries in the prior art are not updated at the same time, so that the packet forwarding device does not update the large-scale flow entries in a small period of time, that is, avoid
  • the message forwarding device provided by the embodiment of the present invention has the advantages of reducing the system resource occupancy rate and improving the forwarding efficiency of the packet forwarding device when the primary outgoing interface fails.
  • the forwarding unit 33 specifically includes:
  • the forwarding module 331 is configured to forward the packet according to the forwarding information at the top position
  • the location setting module 332 is configured to: when the primary outgoing interface is normal, set the primary outgoing interface forwarding information entry before the standby outgoing interface forwarding information entry; when the primary outgoing interface fails, the standby setting The entry of the outbound interface forwarding information is set before the entry of the primary outbound interface forwarding information.
  • the forwarding unit 33 is further configured to:
  • the device After the primary egress interface recovers from the failure, the device forwards the information according to the primary egress interface.
  • the foregoing device may further include:
  • An establishing unit configured to obtain an IP address and a primary egress interface according to the multi-group query routing table after receiving the packet to be sent, and obtain an alternate next to the IP address according to the IP address.
  • the forwarding information of the standby outbound interface includes: the MAC address of the standby outbound interface and the standby next hop device.
  • the embodiment of the present invention further provides a routing device, which may be a router or a network switch.
  • the hardware structure of the routing device is as shown in FIG. 4, and includes: a processor 401, a memory 402, a communication interface 403, and Bus 404.
  • the processor 401, the memory 402, and the communication interface 403 are connected to each other through a bus 404;
  • the bus 404 can be an industry standard architecture system (Industry Standard) Architecture, ISA) bus or peripheral component interconnection (English: Peripheral Component Interconnect, referred to as: PCI) bus.
  • Industry Standard Industry Standard
  • ISA Industry Standard
  • PCI Peripheral Component Interconnect
  • the processor 401 described above may be a general-purpose processor, including a central processing unit (English: central processing) Unit, referred to as CPU), network processor (English: network processor, referred to as NP).
  • CPU central processing unit
  • NP network processor
  • the memory 402 is configured to store programs and flow tables.
  • the program can include program code, the program code including computer operating instructions for instructing the processor 401 to issue computer operating instructions.
  • Memory 402 may contain high speed random access memory (English: random-access Memory, referred to as RAM, may also include non-volatile memory, such as at least one disk storage.
  • the communication interface 403 is configured to receive or send a message.
  • the communication interface 403 can be a communication port, that is, an outgoing interface, and the communication port further includes a PHY chip, and the PHY chip detects whether the physical link of the communication port and the next hop device is disconnected, if the PHY chip detects If the communication port is disconnected from the physical link of the next hop device, the communication port is determined to be invalid.
  • the PHY chip in the packet forwarding device detects that the physical link between the primary egress interface and the next hop device is not disconnected. The communication port is normal.
  • the communication interface 403 receives the message to be forwarded
  • the processor 401 queries the flow table stored in the memory 402 for the flow entry corresponding to the packet; the flow entry corresponding to the packet includes: the primary outbound interface forwarding information and the standby outbound interface forwarding information; The primary outbound interface in the forwarding information of the primary outbound interface is normal, and the information is forwarded according to the primary outbound interface of the flow entry that is queried by the querying unit. The outbound interface of the flow entry that is queried forwards the information forwarding packet.
  • the routing device provided by the specific embodiment of the present invention adds the alternate outbound interface forwarding information in the current flow entry. At this time, if the primary outbound interface fails, the routing device can forward the packet according to the forwarding information of the standby outbound interface. In this case, the routing device switches the forwarding of the packet from the primary outbound interface to the secondary outgoing interface instead of forwarding the packet.
  • the information of the primary outbound interface is updated, so that a large number of flow entries are updated at the same time in the prior art, so that the routing device does not update the large-scale flow entry in a small period of time, that is, the update peak is avoided. Therefore, the routing device provided by the specific embodiment of the present invention has the advantages of reducing the system resource occupancy rate and improving the forwarding efficiency of the routing device when the primary outgoing interface fails.
  • the processor 401 forwards the packet according to the forwarding information.
  • the processor 401 forwards the packet according to the forwarding information at the top position; when the primary outgoing interface is normal, the primary outgoing interface forwarding information entry is set before the standby outgoing interface forwarding information entry; When the primary outgoing interface fails, the entry of the alternate outgoing interface forwarding information is set before the entry of the primary outgoing interface forwarding information.
  • the processor 401 obtains an IP address and a primary egress interface according to the multi-group query routing table, and obtains an IP address of the standby next hop device of the IP address according to the IP address, and obtains according to the main egress interface.
  • the standby outbound interface of the primary outbound interface obtains the MAC address of the standby next hop device according to the IP address of the standby next hop device, and the forwarding information of the standby outbound interface includes: the standby outbound interface And the MAC address of the alternate next hop device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明适用于通信领域,提供了一种报文的流转发方法及报文转发设备,所述方法包括:接收待转发的报文,在流表中查询所述报文对应的流表项;所述报文对应的流表项包括:主出接口转发信息和备用出接口转发信息;如所述流表项中主出接口转发信息的主出接口正常,依据所述主出接口转发信息转发报文,如所述主出接口失效,依据所述备用出接口转发信息转发报文。本发明实施例提供的技术方案具有提高了报文转发设备的转发效率的优点。

Description

一种报文的流转发方法及报文转发设备 技术领域
本发明属于通信领域,尤其涉及一种报文的流转发方法及报文转发设备。
背景技术
在路由转发中,为了提升转发性能,使用流表中的流表项来实现报文的加速转发,这种使用流表中的流表项来实现报文的加速转发的方式通常称为流转发,对于一个报文,如果该报文的多元组(tuple)与流表项中的多元组相同,则按该流表项中记录的转发信息进行该报文的转发。举例来说,上述的多元组为五元组(quintuple),五元组可以包括:源网际协议(英文:Internet Protocol,简称:IP)地址,目的IP地址,协议,源端口地址和目的端口地址;上述转发信息可以包括:出接口和下一跳设备的IP地址,下一跳设备的介质访问控制(英文:media access control,简称:MAC)地址。
当报文转发设备接收到某个转发接口接收的报文时,解析该报文得到该报文的五元组,报文转发设备,如路由器,查询流表中是否存在与该报文的五元组匹配的流表项,如不存在与该报文的五元组匹配的流表项,报文转发设备确定还未在流表中建立该五元组对应的流表项,报文转发设备依据基础转发流程进行报文转发。基础转发流程是指通常的包转发(英文:packet forwarding)流程。基础转发流程具体为:报文转发设备依据五元组查询IP路由表获取该报文的下一跳设备的IP地址和出接口,依据下一跳设备的IP地址查询地址解析协议(英文:Address Resolution Protocol,简称:ARP)表获取下一跳设备的MAC地址,从该出接口转发该报文。上述报文转发设备具体可以为:路由器或其他的具有流转发功能的网络设备,例如无线接入设备。
报文转发设备完成该报文的基础转发后,报文转发设备在流表中建立该五元组匹配的流表项,上述流表项包括:五元组和转发信息。报文转发设备后续接收到具有该五元组的其他报文时,由于此时该五元组对应的流表项已经被报文转发设备存储,所以报文转发设备可以依据从流表中查询到的该五元组匹配的流表项进行报文转发,此转发过程为流转发。
在进行流转发时,流表中的流表项的出接口仅有一个,即基础转发所查询到的出接口,当该出接口失效时,报文转发设备会更新流表中与该出接口相关的流表项,更新的方式可以为,报文转发设备将报文按基础转发流程转发,将基础转发查询多个表获取的转发信息记录到流表项内以完成流表项的更新。上述多个表可以包括但不限于:IP路由表和ARP表。通常,报文转发设备的出接口的数量有限,而报文转发设备转发的不同五元组的报文的数量非常多,这样导致报文转发设备流表的多个流表项的转发信息中含有同一个出接口,所以,当报文转发设备的一个出接口失效时,就会出现大量流表项同时更新的情况,此时,报文转发设备在此时需要消耗大量的系统资源,也会导致报文转发设备转发性能的大幅降低。
技术问题
本发明的目的在于提供一种报文的流转发方法,旨在解决现有的技术方案的在主出接口失效时,大量流表项同时更新导致报文转发设备转发性能大幅降低的问题。
技术解决方案
本发明的第一方面提供一种报文的流转发方法,所述方法包括:
接收待转发的报文,在流表中查询所述报文对应的流表项;
所述报文对应的流表项包括:主出接口转发信息和备用出接口转发信息;
如所述流表项中主出接口转发信息中的主出接口正常,依据所述主出接口转发信息转发报文,如所述主出接口失效,依据所述备用出接口转发信息转发报文。
结合第一个方面的报文的流转发方法,在第一个方面的第一种实现方式中,所述如所述流表项中主出接口转发信息的主出接口正常,依据所述主出接口转发信息转发报文,如所述主出接口失效,依据所述备用出接口转发信息转发报文具体包括:
依据位置最前的转发信息转发报文,如果所述主出接口正常,则将所述主出接口转发信息入口设置在所述备用出接口转发信息入口之前;如果所述主出接口失效,将所述备用出接口转发信息的入口设置在所述主出接口转发信息的入口之前。
结合第一方面或第一个方面的第一种实现方式,在第一个方面的第二种实现方式中,所述方法在将所述报文按所述备用出接口转发信息转发之后还包括:
如所述主出接口从失效恢复正常后,依据所述主出接口转发信息转发报文。
结合第一方面或第一方面的任一种实现方式,在第一个方面的第三种实现方式中,所述方法在接收到待转发的报文之后还包括:
依据所述多元组查询路由表得到IP地址和主出接口,依据所述IP地址得到所述IP地址的备用下一跳设备的IP地址,依据所述主出接口获取所述主出接口的备用出接口,依据所述备用下一跳设备的IP地址查询地址解析协议表得到备用下一跳设备的MAC地址,所述备用出接口转发信息包括:所述备用出接口和备用下一跳设备的MAC地址。
本发明的第二方面提供一种报文转发设备,所述报文转发设备包括:
接收单元,用于接收待转发的报文;
查询单元,用于在流表中查询所述接收单元接收的所述报文对应的流表项;所述报文对应的流表项包括:主出接口转发信息和备用出接口转发信息;
转发单元,用于如所述流表项中主出接口转发信息中的主出接口正常,依据所述查询单元查询到的所述流表项的主出接口转发信息转发报文,如所述主出接口失效,依据所述查询单元查询到的所述流表项的备用出接口转发信息转发报文。
结合本发明的第二方面的一种报文转发设备,在第二方面的第一种可能实现的方式中,所述转发单元具体包括:
转发模块,用于依据位置最前的转发信息转发报文;
位置设置模块,用于在所述主出接口正常时,将所述主出接口转发信息入口设置在所述备用出接口转发信息入口之前;在所述主出接口失效时,将所述备用出接口转发信息的入口设置在所述主出接口转发信息的入口之前。
结合第二方面或第二方面的第一种可能实现的方式中,在第二方面第二种可能实现的方式中,所述转发单元具体还用于:
如所述主出接口从失效恢复正常后,依据所述主出接口转发信息转发报文。
结合第二方面或第二方面的任一种实现方式,在第二个方面的第三种实现方式中,所述设备还包括:
建立单元,用于在所述接收单元接收到所述待发送的报文后,依据所述多元组查询路由表得到IP地址和主出接口,依据所述IP地址得到所述IP地址的备用下一跳设备的IP地址,依据所述主出接口获取所述主出接口的备用出接口,依据所述备用下一跳设备的IP地址查询地址解析协议表得到备用下一跳设备的MAC地址,所述备用出接口转发信息包括:所述备用出接口和备用下一跳设备的MAC地址。
本发明的第三方面,提供一种路由设备,所述路由设备包括:处理器、存储器、通信接口和总线;其中:
所述通信接口接收待转发的报文;
所述处理器在所述存储器存储的流表中查询所述报文对应的流表项;所述报文对应的流表项包括:主出接口转发信息和备用出接口转发信息;如所述流表项中主出接口转发信息中的主出接口正常,依据所述查询单元查询到的所述流表项的主出接口转发信息转发报文,如所述主出接口失效,依据所述查询单元查询到的所述流表项的备用出接口转发信息转发报文。
结合本发明第三方面的路由设备,在第三个方面的第一种实现方式中,所述处理器依据位置最前的转发信息转发报文;在所述主出接口正常时,将所述主出接口转发信息入口设置在所述备用出接口转发信息入口之前;在所述主出接口失效时,将所述备用出接口转发信息的入口设置在所述主出接口转发信息的入口之前。
结合第三方面或第三方面的第一种可能实现的方式中,在第三方面第二种可能实现的方式中,所述处理器在所述主出接口从失效恢复正常后,依据所述主出接口转发信息转发报文。
结合第三方面或第三方面的任一种实现方式,在第三个方面的第三种实现方式中,处理器依据所述多元组查询路由表得到IP地址和主出接口,依据所述IP地址得到所述IP地址的备用下一跳设备的IP地址,依据所述主出接口获取所述主出接口的备用出接口,依据所述备用下一跳设备的IP地址查询地址解析协议表得到备用下一跳设备的MAC地址,所述备用出接口转发信息包括:所述备用出接口和备用下一跳设备的MAC地址。
有益效果
在本发明实施例中,本发明提供的技术方案提高报文转发设备转发性能的优点。
附图说明
图1是本发明具体实施方式提供的一种报文的流转发方法的流程图;
图2是本发明具体实施方式提供的流表项入口示意图;
图3是本发明具体实施方式提供的一种报文转发设备的结构图;
图4是本发明具体实施方式提供的一种报文转发设备的硬件结构图。
本发明的实施方式
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明具体实施方式提供一种报文的流转发方法,该方法由报文转发设备完成。该方法如图1所示,包括:
S11、报文转发设备接收待转发的报文,在流表中查询该报文对应的流表项;
上述报文对应的流表项包括:报文的多元组、主出接口转发信息和备用出接口转发信息。上述查询该报文对应的流表项具体可以为:报文转发设备依据该报文的多元组查询流表中与该多元组匹配的流表项。主出接口转发信息为:主出接口和下一跳设备的MAC地址。其中,主出接口为:报文按基础转发流程查询到的出接口,下一跳设备的MAC地址为报文按基础转发流程查询到的MAC地址。备用出接口转发信息为:备用出接口和备用下一跳设备的MAC地址。备用出接口为:厂家或用户预先设定的该主出接口的备用出接口,备用下一跳设备的MAC地址为依据备用下一跳设备的IP地址从APR表查询得到的MAC地址。其中,备用下一跳设备的IP地址为厂家或用户预先设定的IP地址,该IP地址为下一跳设备的备用下一跳设备的IP地址。其中备用出接口与主出接口为不同的出接口,备用下一跳设备是与备用出接口对应的设备。
上述主接口转发信息的生成过程可以为:报文转发设备接收到报文后,查询流表中是否存在与该报文的多元组匹配的流表项,如不存在与该报文的多元组匹配的流表项,报文转发设备确定还未在流表中建立该多元组匹配的流表项,报文转发设备依据基础转发流程进行报文转发。报文转发设备在完成报文的基础转发后,在流表中建立该报文多元组匹配的流表项,将报文按基础转发流程查询到的出接口和下一跳设备的MAC地址作为主出接口转发信息存储在该流表项内。上述备用出接口转发信息的生成过程可以为:报文转发设备接收到报文后,查询流表中是否存在与该报文的多元组匹配的流表项,如存在与该报文的多元组匹配的流表项,并且不存在与该报文的多元组匹配的,包括备用出接口转发信息的,流表项,报文转发设备强制该报文按备用基础转发流程转发,在完成备用基础转发流程后,将备用基础转发流程中查询得到的备用出接口和备用下一跳设备的MAC地址作为备用出接口转发信息存储在该流表项内。上述备用基础转发流程具体可以为:报文转发设备依据多元组查询IP路由表获取出接口和下一跳设备的IP地址,然后依据该出接口查询得到用户或厂家配置的该出接口的备用出接口,依据该下一跳设备的IP地址查询得到用户或厂家配置的备用下一跳设备的IP地址,依据备用下一跳设备的IP地址从ARP表中查询得到备用下一跳设备的MAC地址,从该备用出接口转发该报文。
S12、如流表项中主出接口转发信息中的主出接口正常,依据主出接口转发信息转发该报文,如该主出接口失效,依据备用出接口转发信息转发该报文。
可选的,确定上述主出接口正常或失效的方法具体为:报文转发设备内的以太网物理层(英文:physical layer,简称PHY)芯片检测该主出接口与下一跳设备的物理链路是否断开,如果报文转发设备内的PHY芯片检测到该主出接口与下一跳设备的物理链路断开,则确定主出接口失效,如报文转发设备内的PHY芯片检测到该主出接口与下一跳设备的物理链路未断开,确定主出接口正常。
本发明具体实施方式提供的技术方案在通常流表项内增加了备用出接口转发信息。此时,如果主出接口失效,报文转发设备可以依据备用出接口转发信息转发该报文;此时报文转发设备将报文转发的依据从主出接口转发信息切换到备用出接口转发信息,而不是进行主出接口转发信息的更新,这样就避免了现有技术中大量的流表项同时更新,这样报文转发设备不会在一个很小的时间段更新大批量流表项,即避免了更新峰值的出现,所以本发明具体实施方式提供的方法具有在主出接口失效时,减少系统资源占用率,提高报文转发设备转发效率的优点。
可选的,上述方法在S11的在接收到待转发的报文之后还可以包括:
依据所述多元组查询路由表得到IP地址和主出接口,依据所述IP地址得到所述IP地址的备用下一跳设备的IP地址,依据所述主出接口获取所述主出接口的备用出接口,依据所述备用下一跳设备的IP地址查询地址解析协议表得到备用下一跳设备的MAC地址,所述备用出接口转发信息包括:所述备用出接口和备用下一跳设备的MAC地址。上述路由表具体可以为:IP路由表,当然在实际应用中,根据应用的网络协议不同,也可以为其他形式的路由表。
可选的,实现S12的方式可以为多种,例如:
方式A、此方式中,出接口失效的标识方式为:如出接口失效,则将端口状态表(英文:port state table,简称:PST)的出接口项的标记修改成失效;当接收到报文时,报文转发设备查询到该报文对应的流表项,获取该流表项的主接口转发信息内的主出接口,查询PST中该主出接口项的标记是否为失效,如PST中该主出接口项的标识为失效,依据备用出接口转发信息转发报文,如PST中该主出接口项的标识为未失效,依据主出接口转发信息转发报文。上述PST具体可以为:标记报文转发设备所有出接口是否失效的表,报文转发设备的所有出接口在PST内均有其对应的出接口项。
方式B、此方式中,出接口失效的标识方式为:在主出接口转发信息中增加失效标志位,例如当主出接口正常时,包括该主出接口的主出接口转发信息中失效标志位的值为0,主出接口失效时,包括该主出接口的主出接口转发信息中失效标志位的值为1。当接收到报文时,报文转发设备查询到该报文对应的流表项,获取该流表项的主接口转发信息中失效标志位的值,如主接口转发信息中失效标志位的值为0,依据主出接口转发信息转发报文,如主接口转发信息中失效标志位的值为1,发现主出接口失效,依据备用出接口转发信息转发报文。
方式C、此方式中,报文转发设备的流表项中位置最前的转发信息为转发报文所依据的转发信息,上述位置最前的转发信息具体可以为主出接口转发信息或备用出接口转发信息。如果主出接口正常,则报文转发设备将主出接口转发信息入口设置在备用出接口转发信息入口之前。如果主出接口失效,报文转发设备将备用出接口转发信息的入口设置在主出接口转发信息的入口之前,如图2A所示。如果主出接口失效,报文在转发时,就会自动按最前的转发信息即备用出接口转发信息转发。当主出接口恢复后,报文转发设备将流表项的主出接口转发信息的入口放在备用出接口转发信息的入口之前,如图2B所示,这样报文在转发时,就会自动按最前的转发信息,即主出接口转发信息转发报文。
可选的,上述方法在S12之后还可以包括:
当主出接口从失效恢复正常后,报文转发设备依据主出接口转发信息转发报文。
本发明具体实施方式还提供一种报文转发设备,该报文转发设备可以由路由器实现,也可以由网络交换机实现;该报文转发设备如图3所示,包括:
接收单元31,用于接收待转发的报文;
查询单元32,用于在流表中查询接收单元31接收的所述报文对应的流表项;所述报文对应的流表项包括:主出接口转发信息和备用出接口转发信息;
转发单元33,用于如所述流表项中主出接口转发信息中的主出接口正常,依据查询单元32查询到的所述流表项的主出接口转发信息转发报文,如所述主出接口失效,依据查询单元32查询到的所述流表项的备用出接口转发信息转发报文。
本发明具体实施方式提供的报文转发设备在通常流表项内增加了备用出接口转发信息。此时,如果主出接口失效,报文转发设备可以依据备用出接口转发信息转发该报文;此时报文转发设备将报文转发的依据从主出接口转发信息切换到备用出接口转发信息,而不是进行主出接口转发信息的更新,这样就避免了现有技术中大量的流表项同时更新,这样报文转发设备不会在一个很小的时间段更新大批量流表项,即避免了更新峰值的出现,所以本发明具体实施方式提供的报文转发设备具有在主出接口失效时,减少系统资源占用率,提高报文转发设备转发效率的优点。
可选的,上述转发单元33具体包括:
转发模块331,用于依据位置最前的转发信息转发报文;
位置设置模块332,用于在所述主出接口正常时,将所述主出接口转发信息入口设置在所述备用出接口转发信息入口之前;在所述主出接口失效时,将所述备用出接口转发信息的入口设置在所述主出接口转发信息的入口之前。
可选的,转发单元33具体还用于:
如所述主出接口从失效恢复正常后,依据所述主出接口转发信息转发报文。
可选的,上述设备还可以包括:
建立单元,用于在接收单元401接收到所述待发送的报文后,依据所述多元组查询路由表得到IP地址和主出接口,依据所述IP地址得到所述IP地址的备用下一跳设备的IP地址,依据所述主出接口获取所述主出接口的备用出接口,依据所述备用下一跳设备的IP地址查询地址解析协议表得到备用下一跳设备的MAC地址,所述备用出接口转发信息包括:所述备用出接口和备用下一跳设备的MAC地址。
上述各个单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能模块的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。
本发明具体实施方式还提供一种路由设备,该路由设备具体可以是路由器或网络交换机,所述路由设备的硬件结构图如图4所示,包括:处理器401、存储器402、通信接口403和总线404。
处理器401、存储器402、通信接口403通过总线404相互连接;总线404可以是工业标准架构体系(Industry Standard Architecture,ISA)总线或外围组件互联(英文:Peripheral Component Interconnect,简称:PCI)总线等。
上述的处理器401可以是通用处理器,包括中央处理器(英文:central processing unit,简称CPU)、网络处理器(英文:network processor,简称NP)等。
存储器402,用于存放程序和流表。具体地,程序可以包括程序代码,所述程序代码包括计算机操作指令,该程序用于指示处理器401发出计算机操作指令。存储器402可能包含高速随机存储器(英文:random-access memory,简称:RAM)存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。
通信接口403,用于接收或发送报文。具体地,该通信接口403可以为通信端口,即出接口,该通信端口还包括有PHY芯片,该PHY芯片检测该通信端口与下一跳设备的物理链路是否断开,如果PHY芯片检测到该通信端口与下一跳设备的物理链路断开,则确定通信端口失效,如报文转发设备内的PHY芯片检测到该主出接口与下一跳设备的物理链路未断开,确定通信端口正常。
通信接口403接收待转发的报文;
处理器401在存储器402存储的流表中查询所述报文对应的流表项;所述报文对应的流表项包括:主出接口转发信息和备用出接口转发信息;如所述流表项中主出接口转发信息中的主出接口正常,依据所述查询单元查询到的所述流表项的主出接口转发信息转发报文,如所述主出接口失效,依据所述查询单元查询到的所述流表项的备用出接口转发信息转发报文。
本发明具体实施方式提供的路由设备在通常流表项内增加了备用出接口转发信息。此时,如果主出接口失效,路由设备可以依据备用出接口转发信息转发该报文;此时路由设备将报文转发的依据从主出接口转发信息切换到备用出接口转发信息,而不是进行主出接口转发信息的更新,这样就避免了现有技术中大量的流表项同时更新,这样路由设备不会在一个很小的时间段更新大批量流表项,即避免了更新峰值的出现,所以本发明具体实施方式提供的路由设备具有在主出接口失效时,减少系统资源占用率,提高路由设备转发效率的优点。
可选的,处理器401在所述主出接口从失效恢复正常后,依据所述主出接口转发信息转发报文。
可选的,处理器401依据位置最前的转发信息转发报文;在所述主出接口正常时,将所述主出接口转发信息入口设置在所述备用出接口转发信息入口之前;在所述主出接口失效时,将所述备用出接口转发信息的入口设置在所述主出接口转发信息的入口之前。
可选的,处理器401依据所述多元组查询路由表得到IP地址和主出接口,依据所述IP地址得到所述IP地址的备用下一跳设备的IP地址,依据所述主出接口获取所述主出接口的备用出接口,依据所述备用下一跳设备的IP地址查询地址解析协议表得到备用下一跳设备的MAC地址,所述备用出接口转发信息包括:所述备用出接口和备用下一跳设备的MAC地址。
本领域技术人员可以理解,本发明实施例提供的技术方案全部或部分步骤是可以通过程序指令相关的硬件来完成。比如可以通过计算机运行程来完成。该程序可以存储在可读取存储介质,例如,随机存储器、磁盘、光盘等。
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的具体实施方式之内所作的等同替换或改进等,均应包含在本发明的保护范围之内。

Claims (12)

  1. 一种报文的流转发方法,其特征在于,所述方法包括:
    接收待转发的报文,在流表中查询所述报文对应的流表项;
    所述报文对应的流表项包括:主出接口转发信息和备用出接口转发信息;
    如所述流表项中主出接口转发信息中的主出接口正常,依据所述主出接口转发信息转发报文,如所述主出接口失效,依据所述备用出接口转发信息转发报文。
  2. 根据权利要求1所述的方法,其特征在于,所述如所述流表项中主出接口转发信息的主出接口正常,依据所述主出接口转发信息转发报文,如所述主出接口失效,依据所述备用出接口转发信息转发报文具体包括:
    依据位置最前的转发信息转发报文,如果所述主出接口正常,则将所述主出接口转发信息入口设置在所述备用出接口转发信息入口之前;如果所述主出接口失效,将所述备用出接口转发信息的入口设置在所述主出接口转发信息的入口之前。
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法在将所述报文按所述备用出接口转发信息转发之后还包括:
    如所述主出接口从失效恢复正常后,依据所述主出接口转发信息转发报文。
  4. 根据权利要求1—3任一所述的方法,其特征在于,所述方法在接收到待转发的报文之后还包括:
    依据所述多元组查询路由表得到网际协议IP地址和主出接口,依据所述IP地址得到所述IP地址的备用下一跳设备的IP地址,依据所述主出接口获取所述主出接口的备用出接口,依据所述备用下一跳设备的IP地址查询地址解析协议表得到备用下一跳设备的介质访问控制MAC地址,所述备用出接口转发信息包括:所述备用出接口和备用下一跳设备的MAC地址。
  5. 一种报文转发设备,其特征在于,所述报文转发设备包括:
    接收单元,用于接收待转发的报文;
    查询单元,用于在流表中查询所述接收单元接收的所述报文对应的流表项;所述报文对应的流表项包括:主出接口转发信息和备用出接口转发信息;
    转发单元,用于如所述流表项中主出接口转发信息中的主出接口正常,依据所述查询单元查询到的所述流表项的主出接口转发信息转发报文,如所述主出接口失效,依据所述查询单元查询到的所述流表项的备用出接口转发信息转发报文。
  6. 根据权利要求5所述的设备,其特征在于,所述转发单元具体包括:
    转发模块,用于依据位置最前的转发信息转发报文;
    位置设置模块,用于在所述主出接口正常时,将所述主出接口转发信息入口设置在所述备用出接口转发信息入口之前;在所述主出接口失效时,将所述备用出接口转发信息的入口设置在所述主出接口转发信息的入口之前。
  7. 根据权利要求5或6所述的设备,其特征在于,所述转发单元具体还用于:
    如所述主出接口从失效恢复正常后,依据所述主出接口转发信息转发报文。
  8. 根据权利要求5-7任一所述的设备,其特征在于,所述设备还包括:
    建立单元,用于在所述接收单元接收到所述待发送的报文后,依据所述多元组查询路由表得到网际协议IP地址和主出接口,依据所述IP地址得到所述IP地址的备用下一跳设备的IP地址,依据所述主出接口获取所述主出接口的备用出接口,依据所述备用下一跳设备的IP地址查询地址解析协议表得到备用下一跳设备的介质访问控制MAC地址,所述备用出接口转发信息包括:所述备用出接口和备用下一跳设备的MAC地址。
  9. 一种路由设备,其特征在于,所述路由设备包括:处理器、存储器、通信接口和总线;其中:
    所述通信接口接收待转发的报文;
    所述处理器在所述存储器存储的流表中查询所述报文对应的流表项;所述报文对应的流表项包括:主出接口转发信息和备用出接口转发信息;如所述流表项中主出接口转发信息中的主出接口正常,依据所述查询单元查询到的所述流表项的主出接口转发信息转发报文,如所述主出接口失效,依据所述查询单元查询到的所述流表项的备用出接口转发信息转发报文。
  10. 根据权利要求9所述的路由设备,其特征在于,
    所述处理器依据位置最前的转发信息转发报文;在所述主出接口正常时,将所述主出接口转发信息入口设置在所述备用出接口转发信息入口之前;在所述主出接口失效时,将所述备用出接口转发信息的入口设置在所述主出接口转发信息的入口之前。
  11. 根据权利要求9或10所述的路由设备,其特征在于,
    所述处理器在所述主出接口从失效恢复正常后,依据所述主出接口转发信息转发报文。
  12. 根据权利要求9-11任一所述的路由设备,其特征在于,所述处理器依据所述多元组查询路由表得到网际协议IP地址和主出接口,依据所述IP地址得到所述IP地址的备用下一跳设备的IP地址,依据所述主出接口获取所述主出接口的备用出接口,依据所述备用下一跳设备的IP地址查询地址解析协议表得到备用下一跳设备的介质访问控制MAC地址,所述备用出接口转发信息包括:所述备用出接口和备用下一跳设备的MAC地址。
PCT/CN2012/086183 2012-12-07 2012-12-07 一种报文的流转发方法及报文转发设备 WO2014086041A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2012/086183 WO2014086041A1 (zh) 2012-12-07 2012-12-07 一种报文的流转发方法及报文转发设备
CN201280002846.8A CN104040967B (zh) 2012-12-07 2012-12-07 一种报文的流转发方法及报文转发设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/086183 WO2014086041A1 (zh) 2012-12-07 2012-12-07 一种报文的流转发方法及报文转发设备

Publications (1)

Publication Number Publication Date
WO2014086041A1 true WO2014086041A1 (zh) 2014-06-12

Family

ID=50882793

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/086183 WO2014086041A1 (zh) 2012-12-07 2012-12-07 一种报文的流转发方法及报文转发设备

Country Status (2)

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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109698788A (zh) * 2017-10-20 2019-04-30 华为技术有限公司 流量转发方法和流量转发装置
CN110166356A (zh) * 2018-02-11 2019-08-23 华为技术有限公司 发送报文的方法和网络设备
CN111327546A (zh) * 2020-02-25 2020-06-23 杭州迪普科技股份有限公司 一种报文转发的方法及装置

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106406825A (zh) * 2015-07-27 2017-02-15 中兴通讯股份有限公司 一种命令行的处理方法及装置
CN112260948B (zh) * 2020-10-16 2021-10-22 中国科学院声学研究所 一种基于批量更新的多核sdn交换机流表管理方法及系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009661A (zh) * 2007-01-25 2007-08-01 华为技术有限公司 基于流转发的更新流转发表项内容的方法及设备
CN102067523A (zh) * 2008-12-05 2011-05-18 思科技术公司 路由器与网络交换机之间的通信的故障转移和故障恢复
CN102413052A (zh) * 2011-11-30 2012-04-11 华为技术有限公司 一种接入网络的方法、装置及系统

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848841A (zh) * 2005-04-05 2006-10-18 华为技术有限公司 路由设备备份方法
JP4747118B2 (ja) * 2007-03-05 2011-08-17 富士通株式会社 ルータ、通信保証方法および通信保証プログラム
CN101094187B (zh) * 2007-07-30 2010-06-09 杭州华三通信技术有限公司 一种学习介质访问控制地址的方法和装置、业务板
CN101252503B (zh) * 2008-02-05 2010-12-08 华为技术有限公司 环网的业务倒换方法和装置
EP2482497B1 (en) * 2009-09-21 2013-12-04 Huawei Technologies Co., Ltd. Data forwarding method, data processing method, system and device thereof
CN102130826A (zh) * 2010-11-25 2011-07-20 华为技术有限公司 报文的发送方法和装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009661A (zh) * 2007-01-25 2007-08-01 华为技术有限公司 基于流转发的更新流转发表项内容的方法及设备
CN102067523A (zh) * 2008-12-05 2011-05-18 思科技术公司 路由器与网络交换机之间的通信的故障转移和故障恢复
CN102413052A (zh) * 2011-11-30 2012-04-11 华为技术有限公司 一种接入网络的方法、装置及系统

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109698788A (zh) * 2017-10-20 2019-04-30 华为技术有限公司 流量转发方法和流量转发装置
CN109698788B (zh) * 2017-10-20 2021-06-15 华为技术有限公司 流量转发方法、装置及计算机可读介质
US11582141B2 (en) 2017-10-20 2023-02-14 Huawei Technologies Co., Ltd. Traffic forwarding method and traffic forwarding apparatus
CN110166356A (zh) * 2018-02-11 2019-08-23 华为技术有限公司 发送报文的方法和网络设备
CN110166356B (zh) * 2018-02-11 2021-09-17 华为技术有限公司 发送报文的方法和网络设备
CN111327546A (zh) * 2020-02-25 2020-06-23 杭州迪普科技股份有限公司 一种报文转发的方法及装置
CN111327546B (zh) * 2020-02-25 2022-01-28 杭州迪普科技股份有限公司 一种报文转发的方法及装置

Also Published As

Publication number Publication date
CN104040967A (zh) 2014-09-10
CN104040967B (zh) 2017-08-18

Similar Documents

Publication Publication Date Title
WO2014121502A1 (zh) 在基站中,一种开站配置方法、基站及服务器
US9397943B2 (en) Configuring virtual media access control addresses for virtual machines
WO2014086041A1 (zh) 一种报文的流转发方法及报文转发设备
US7512078B2 (en) Flexible ethernet bridge
US11876879B2 (en) Message handler
US8249065B2 (en) Destination MAC aging of entries in a Layer 2 (L2) forwarding table
US20030174725A1 (en) IP multicast packet replication process and apparatus therefore
WO2007045146A1 (fr) Procede et dispositif de pontage de transfert
WO2007076678A1 (fr) Procede de transfert de donnees et appareil de commutation
BR112012022549B1 (pt) Método e sistema para realizar acessibilidade da rota de destino no anel de acesso da rede de transporte de pacotes
EP2100406A2 (en) Method and apparatus for improved multicast routing
WO2011035674A1 (zh) 以太环网故障时数据加速切换的方法
EP3823225A1 (en) Communication method, communication device and communication system
CN102598616A (zh) 组播实现方法、装置和系统
WO2020119644A1 (zh) 一种转发表项生成方法、装置及设备
WO2012119420A1 (zh) 一种数据包的并发处理方法及设备
WO2016026089A1 (zh) 软件定义网络与传统网络的融合方法以及装置
CN112671642A (zh) 一种报文转发方法及设备
WO2010094214A1 (zh) 一种存储设备与用户二层互通的方法、装置及系统
WO2012163000A1 (zh) 一种报文转发的方法、设备及系统
EP4057578A1 (en) Internet group management protocol host mobility in ethernet virtual private network multicast networks
JP2004159019A (ja) 拡張vlanタグswap方式
WO2011107036A2 (zh) 交换设备上的数据传输方法和装置
EP2908476B1 (en) Method and apparatus for sending multi-link transparent interconnected data frame
WO2022206405A1 (zh) 一种BIERv6报文的处理方法、设备以及系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12889591

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12889591

Country of ref document: EP

Kind code of ref document: A1