CN103067280A - Method and device of message processing - Google Patents

Method and device of message processing Download PDF

Info

Publication number
CN103067280A
CN103067280A CN2012105741078A CN201210574107A CN103067280A CN 103067280 A CN103067280 A CN 103067280A CN 2012105741078 A CN2012105741078 A CN 2012105741078A CN 201210574107 A CN201210574107 A CN 201210574107A CN 103067280 A CN103067280 A CN 103067280A
Authority
CN
China
Prior art keywords
device
forwarding
packet
information
according
Prior art date
Application number
CN2012105741078A
Other languages
Chinese (zh)
Other versions
CN103067280B (en
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 CN201210574107.8A priority Critical patent/CN103067280B/en
Publication of CN103067280A publication Critical patent/CN103067280A/en
Application granted granted Critical
Publication of CN103067280B publication Critical patent/CN103067280B/en

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. local area networks [LAN], wide area networks [WAN]
    • H04L12/46Interconnection of networks
    • H04L12/4604LAN interconnection over a backbone network, e.g. Internet, Frame Relay
    • H04L12/462LAN interconnection over a bridge based backbone

Abstract

The invention provides a method and a device of message processing. The method comprises the steps that messages transmitted by a first transmitting device are received; if the messages are determined as unknown messages according to purpose media access control (MAC) addresses in the messages, then whether the first transmitting device is a margin transmitting device can be determined, wherein the margin transmitting device is a transmitting device directly connected with a server; if the first transmitting device is determined as the margin transmitting device, the unknown messages are respectively transmitted to a second transmitting device according to a data base of the margin transmitting device; and the second transmitting device is a margin transmitting device besides the first transmitting device in a network. According to the method and the device of message processing, the unknown messages which are transmitted by a first margin transmitting device are received and only transmitted to another margin transmitting device besides the first transmitting device in a network, so bandwidth between a controller and transmitting devices is shortened, and bandwidth resources are saved.

Description

报文处理方法和装置 Packet processing method and apparatus

技术领域 FIELD

[0001] 本发明涉及通信技术,尤其涉及一种报文处理方法和装置。 [0001] The present invention relates to communication technology, particularly to a method and apparatus for packet processing.

背景技术 Background technique

[0002] 目前,控制和转发分离的网络主要包括:开放流(Openflow,简称0F)网络,该网络主要包括两类设备:0F控制器和OF交换机。 [0002] Currently, network control and forwarding separation including: an open flow (the Openflow, referred 0F) network, which includes two types of devices: 0F OF controllers and switches. 其中,OF控制器用于对网络进行集中控制,并给OF交换机下发流表,OF交换机用于根据该流表对接收到的报文进行匹配和转发;其中,OF控制器是向用户开放的。 Wherein, the controller OF centralized control for the network, and give the hair flow switch table OF, OF and switch for matching the flow forwarding table based on the received packet; wherein, the controller is user OF open . 另外,在该OF交换机接收到的报文为未知单播报文或广播报文时,将这些未知单播报文或广播报文发送给控制器,由控制器对接收到的未知单播报文或广播报文进行解析,获取源介质访问控制(Medium Access Control,简称MAC)地址之后,并采用逐跳泛洪的方式对解析后的未知单播报文或广播报文进行处理,具体的,控制器将解析后的未知单播报文或广播报文发送给与该控制器相连的所有OF交换机,再分别由每个OF交换机对接收到的解析后的未知单播报文或广播报文进行全网泛洪。 Further, the switch OF received packet is unknown unicast packet or broadcast packet, these unknown unicast packets or broadcast packets to the controller, the controller compares the received broadcast or unknown unicast packets after parsing the packet, obtains the source media access control (medium access Control, abbreviated MAC) address, and by-hop manner unknown flooding parsed single multicast packet or a broadcast packet is processed, specifically, the controller parsed unknown unicast packets or broadcast packets towards all connected to the controller switches oF, respectively, and then docking the parsed received unknown unicast packet or broadcast packet switch by each network-wide oF flooding .

[0003] 但是,由于控制器是采用逐跳泛洪的方式对未知单播报文或者广播报文进行处理,从而占用的大量数据通道的带宽以及控制通道的带宽,造成了信道资源的浪费。 [0003] However, since the controller is a by-hop manner flooding unknown unicast packets or broadcast packets processed to take up large amounts of data channel bandwidth and the bandwidth of the control channel, resulting in a waste of channel resources.

发明内容 SUMMARY

[0004] 本发明实施例提供一种报文处理方法和装置,用于解决现有技术中控制器由于采用逐跳泛洪的方式对未知单播报文或者广播报文进行处理,而占用的大量数据通道的带宽以及控制通道的带宽问题。 [0004] A number of embodiments of the present invention provides a packet processing method and apparatus for solving the prior art controller as used by the flooding hop manner unknown unicast packets or broadcast packets for processing, while occupying channel bandwidth, and bandwidth issues a control data channel.

[0005] 本发明第一方面提供一种报文处理方法,包括: [0005] In a first aspect the present invention provides a packet processing method, comprising:

[0006] 接收第一转发设备发送的报文; [0006] receiving a first message sent by forwarding;

[0007] 若根据所述报文中的目的介质访问控制MAC地址,判断出所述报文为未知报文,则判断所述第一转发设备是否为边沿转发设备,其中,所述边沿转发设备为与服务器直接相连接的转发设备; [0007] If the packet according to the destination Media Access Control MAC address, it is determined that the packet is unknown the packet, it is determined whether the first device is a forwarding device to forward edge, wherein the edge forwarding device the server is connected directly to the forwarding device;

[0008] 若判断出所述第一转发设备为边沿转发设备,则根据转发设备的信息库,将所述未知报文分别发送给第二转发设备;所述第二转发设备为网络中除所述第一转发设备之外的边沿转发设备。 [0008] If it is determined that the first device forwarding to forward edge device, the device according to the forwarding information database, the unknown packets are forwarded to the second device; the second network forwarding device in addition to the forwarding said edge than the first device forwarding device.

[0009] 结合第一方面的第一种实现方式中,所述方法还包括: A first implementation of the [0009] connection with the first aspect, the method further comprising:

[0010] 获取所述网络中每个转发设备的信息,并根据每个所述转发设备的信息,生成所述转发设备的信息库;所述每个转发设备的信息均包括:转发设备的ID信息和转发设备的IP地址。 [0010] acquiring the forwarding information of each network device, and the forwarding information database apparatus according to each of the forwarding information of the device generating; each of the information transfer apparatus includes: ID forwarding device IP address information and forwarding devices.

[0011] 结合第一方面或第一方面的第一种实现方式的第二种实现方式中,所述判断所述第一转发设备是否为边沿转发设备,包括: [0011] A second implementation manner of the first aspect or the first implementation of the first aspect, the determining whether the first device is a forwarding edge forwarding device, comprising:

[0012] 根据所述报文中的所述第一转发设备的IP地址,获取所述第一转发设备的ID信息;[0013] 根据所述ID信息,判断所述第一转发设备是否为边沿转发设备。 [0012] According to the first packet forwarding device IP address, acquires the ID information of the first device forwarding; [0013] according to the ID information, the first forwarding device determines whether the edge forwarding device.

[0014] 结合第一方面的第二种实现方式的第三种实现方式中,所述根据转发设备的信息库,将所述未知报文分别发送第二转发设备,包括: [0014] A third implementation manner of a second implementation of the first aspect, the device according to the forwarding information database, the unknown packets are transmitted a second forwarding apparatus, comprising:

[0015] 根据所述转发设备的信息库中的ID信息,确定所述第二转发设备; [0015] The device ID information of the forwarding information base, determining said second forwarding apparatus;

[0016] 根据每个所述第二转发设备对应的ID信息,将所述未知报文分别发送给所述第二转发设备。 [0016] The ID information of each of said second forwarding apparatus corresponding to the unknown packets are transmitted to the second forwarding apparatus. 本发明实施例第二方面提供一种报文处理装置,包括: It provides a packet processing device of a second aspect of embodiments of the invention, comprising:

[0017] 接收模块,用于接收第一转发设备发送的报文; [0017] a receiving module, configured to receive a first message sent by forwarding;

[0018] 判断模块,用于根据所述接收模块接收到的所述报文中的目的介质访问控制MAC地址,判断所述报文是否为未知报文;若判断出所述报文为未知报文,判断所述第一转发设备是否为边沿转发设备,其中,所述边沿转发设备为与服务器直接相连接的转发设备; [0018] The determining module, the receiving module according to the destination Media Access packets received control MAC address, determining whether the packet is unknown the packet; if it is determined that the packet is a packet Unknown text, determining whether the first forwarding device to forward to the edge device, wherein the device is a rim forwarding forwarding device directly connected to the server;

[0019] 发送模块,用于若所述判断模块判断出所述第一转发设备为边沿转发设备,则根据转发设备的信息库,将所述未知报文分别发送给第二转发设备;所述第二转发设备为网络中除所述第一转发设备之外的边沿转发设备。 [0019] The transmitting module configured to, if the determination means determines that the first device forwarding to forward edge device, the device according to the forwarding information database, are transmitted to the forwarding unknown packet to the second device; the forwarding the second edge device in a network other than the first device forwarding forwarding device.

[0020] 结合第二方面的第一种实现方式中,所述报文处理装置还包括: [0020] combination with the first implementation of the second aspect, the packet processing apparatus further comprises:

[0021] 获取模块,用于获取所述网络中每个转发设备的信息; [0021] acquiring module, for acquiring the forwarding information of each network device;

[0022] 生成模块,用于根据所述获取模块获取到的每个所述转发设备的信息,生成所述转发设备的信息库;所述每个转发设备的信息均包括:转发设备的ID信息。 [0022] The generating module, for acquiring information according to the forwarding device of each of said acquired module, said forwarding apparatus to generate information base; said each information transfer device comprises: forwarding information of the device ID .

[0023] 结合第二方面或第二方面的第一种实现方式的第二种实现方式中,所述判断模块,还包括: [0023] A second implementation manner of the second aspect or the first implementation of the second aspect, the determining module further comprises:

[0024] 获取单元,用于根据所述报文中的所述第一转发设备的IP地址,获取所述第一转发设备的ID信息; [0024] acquiring unit, according to the IP address of the packet forwarding device first acquires the ID information of the first device forwarding;

[0025] 判断单元,用于根据所述ID信息,判断所述第一转发设备是否为边沿转发设备。 [0025] The determination means according to said ID information, determining whether the first forwarding device to forward to the edge of the device.

[0026] 结合第二方面的第二种实现方式的第三种实现方式中,所述报文处理装置还包括: [0026] A third implementation manner of a second implementation of the second aspect, the packet processing apparatus further comprises:

[0027] 确定模块,用于根据所述转发设备的信息库中的ID信息,确定所述第二转发设备; [0027] The determining module, according to ID information of the forwarding information base device, determining said second forwarding apparatus;

[0028] 则所述发送模块还用于根据每个所述第二转发设备对应的ID信息,将所述未知报文分别发送给所述第二转发设备。 [0028] the sending module is further configured to each of said second forwarding apparatus corresponding to the ID information, the unknown packets are transmitted to the second forwarding apparatus.

[0029] 本发明实施例中,通过接收到第一转发设备发送的报文后,若根据报文中的MAC地址,判断出报文为未知报文,且该第一转发设备为边沿转发设备时,根据转发设备的信息库,将该报文分别发送给第二转发设备,其中,该第二转发设备为网络中除第一转发设备之外的边沿转发设备,从而解决了现有技术中控制器由于采用逐跳泛洪的方式对未知单播报文或者广播报文进行处理,而占用的大量数据通道的带宽以及控制通道的带宽问题,有效地节省了带宽资源。 [0029] The embodiments of the present invention, by forwarding the received message sent by the first, if the MAC address of the packet, determines that the packet is unknown the packet, and forwarding the first edge device as the forwarding device when, according to the forwarding information database device, the packet will be forwarded to the second device are transmitted, wherein the second forwarding device to forward to a network device other than the first edge device forwards, so as to solve the prior art channel bandwidth, and bandwidth issues a control channel of a large amount of data as used by the controller hop flooding manner unknown unicast packets or broadcast packets for processing, the occupied bandwidth resources are saved effectively. 附图说明 BRIEF DESCRIPTION

[0030] 为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。 [0030] In order to more clearly illustrate the technical solutions in the embodiments or the prior art embodiment of the present invention, the accompanying drawings for illustrating the prior art described or needed to be used in an embodiment will be briefly introduced hereinafter, the description below the figures show some embodiments of the present invention, those of ordinary skill in the art is concerned, without creative efforts, can derive from these drawings other drawings.

[0031] 图1为本发明报文处理方法所基于的控制和转发分离的网络的架构示意图; Separation of control and forwarding architecture of a network [0031] Figure 1 is a message packet processing method of the invention is based on a schematic diagram;

[0032] 图2为本发明报文处理方法的一个实施例的流程图; [0032] FIG 2 is a flowchart of a processing method of the embodiment of the invention message packets;

[0033] 图3为本发明报文处理装置的一个实施例的结构示意图; [0033] FIG. 3 is a schematic structural diagram of one embodiment of the invention, packets of the packet processing device;

[0034] 图4为本发明报文处理装置的另一个实施例的结构示意图; A schematic view of another configuration example of [0034] Figure 4 is a message packet processing device according to the invention;

[0035] 图5为本发明报文处理装置的又一个实施例的结构示意图。 [0035] The message processing apparatus of FIG. 5 a schematic structural diagram of another embodiment of the invention.

具体实施方式 Detailed ways

[0036] 为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。 [0036] In order that the invention object, technical solutions, and advantages of the embodiments more clearly, the following the present invention in the accompanying drawings, technical solutions of embodiments of the present invention are clearly and completely described, obviously, the described the embodiment is an embodiment of the present invention is a part, but not all embodiments. 基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 Based on the embodiments of the present invention, those of ordinary skill in the art to make all other embodiments without creative work obtained by, it falls within the scope of the present invention.

[0037] 图1为本发明报文处理方法所基于的控制和转发分离的网络的架构示意图,如图1所示,该网络可以是OF网络,具体的,该网络包括转发设备10、控制器20和服务器30。 Separation of control and forwarding architecture diagram of a network [0037] Figure 1 is a message packet processing method of the invention is based, shown in Figure 1, the network may be a network OF particular, the network comprising a forwarding device 10, the controller 20 and 30 servers. 其中,转发设备10可以是OF网络中的OF交换机,控制器20对网络进行集中控制,在OF网络中,可以存在多个转发设备10和多个服务器30,图1中以5个转发设备10和3个服务器30为例,但并不以此为限。 Wherein, the forwarding device 10 may be an OF OF network switch, the network controller 20 centralized control network in the OF, there may be a plurality of forwarding devices 10 and a plurality of servers 30, FIG. 1 to 5 in the forwarding device 10 and three server 30, for example, but not limited thereto.

[0038] 服务器30如果想要获取某个报文,会提前将包含源介质访问控制(MediaAccessControl,简称MAC)地址的请求消息通过转发设备10上报给控制器20,以供控制器20保存该服务器30对应源MAC地址。 Request message [0038] If you want to get a server 30 packets, in advance including source media access control (MediaAccessControl, abbreviated MAC) address reported by forwarding device 10 to the controller 20, the controller 20 holds for the server 30 corresponding to the source MAC address. 另外,在本实施例中,将与服务器30直接相连接的转发设备10称之为边沿转发设备,而不与服务器30直接相连的转发设备10称之为非边沿转发设备。 Further, in the present embodiment, the forwarding device and the server 30 is directly connected to the edge of the forwarding device 10 referred embodiment, the server 30 without forwarding device directly connected to the forwarding device 10 is called non-edge.

[0039] 图2为本发明报文处理方法的一个实施例的流程图,在上述图1所示网络的基础上,如图2所示,在本实施例中该方法的执行主体为控制器,则该方法包括: [0039] FIG 2 is a flowchart of a message packet invention embodiment of a processing method, based on the network shown in Figure 1, the Figure 2, in this embodiment, the method is performed in the controller body , the method comprising:

[0040] 步骤201、接收第一转发设备发送的报文。 [0040] Step 201, forwarding the received message sent by the first.

[0041 ] 在实施例中,当转发设备接收到报文后,会发送给控制器,此处报文可以为单播报文或广播报文。 [0041] In an embodiment, when the device receives the forwarded packets, it sends to the controller, where the message can be broadcast or multicast packets as single packets.

[0042] 步骤202、若根据该报文中的目的MAC地址,判断出该报文为未知报文,则判断该第一转发设备是否为边沿转发设备,其中,该边沿转发设备为与服务器直接相连接的转发设备。 [0042] Step 202, according to the destination MAC address if the packet, determines that the packet is unknown the packet, it is determined whether the first device is a forwarding device to forward edge, wherein the edge is forwarded directly to a server device forwarding device connected phase.

[0043] 在本实施例中,具体实现过程中,控制器在接收到上述报文,对上述报文解析之后,会先对报文的源MAC地址进行保存,进而查询之前控制器接收的服务器发送的请求消息中携带的源MAC,判断是否存在与上述报文的源MAC地址相同的MAC地址,如果判断出存在,则将请求消息中的MAC地址以单播的形式回复给上述第一转发设备,如果判断出不存在,则认为该报文为未知报文。 Server [0043] In the present embodiment, the specific implementation process, the controller receiving the packets after said packets of resolution, will first source MAC address of the packet is saved, and thus before the controller receives the query carried in the request message sent to the source MAC, it determines whether there is packet and the source MAC address of the same MAC address, if it is determined that there is, the MAC address in the unicast message in the form of a first reply to said request will be forwarded equipment, if it is judged not present, consider these packets as unknown messages.

[0044] 步骤203、若判断出该第一转发设备为边沿转发设备,则根据转发设备的信息库,将该未知报文分别发送给第二转发设备,该第二转发设备为网络中除该第一转发设备之外的边沿转发设备。 [0044] Step 203, if it is determined that the first device is a forward edge of a forwarding device, the device according to the forwarding information database, the unknown packets are transmitted to the second forwarding device forwards the second network device, in addition to the forwarding the edge than the first device forwarding device.

[0045] 需要说明的是,若判断出该第一转发设备不是边沿转发设备,则不对报文作任何处理,可以是将该报文丢弃。 [0045] Incidentally, if it is determined that the device is not the first forward edge forwarding device, the packet is not any processing, the packet may be discarded. 另外,控制器在将该未知报文发送给第二转发设备的同时,指示第二转发设备将上述未知报文泛洪出去。 Further, while the controller is unknown packet to a second forwarding apparatus, the above-described device indicating that the second forwarding unknown packets flooding out.

[0046] 在本实施例中,通过接收到第一转发设备发送的报文后,若根据报文中的MAC地址,判断出报文为未知报文,且该第一转发设备为边沿转发设备时,根据转发设备的信息库,将该报文分别发送给第二转发设备,其中,该第二转发设备为网络中除第一转发设备之外的边沿转发设备,从而解决了现有技术中控制器由于采用逐跳泛洪的方式对未知单播报文或者广播报文进行处理,而占用的大量数据通道的带宽以及控制通道的带宽问题,有效地节省了带宽资源。 [0046] In the present embodiment, by first forwarding the received message sent by the device, if the MAC address of the packet, determines that the packet is unknown the packet, and forwarding the first edge device as the forwarding device when, according to the forwarding information database device, the packet will be forwarded to the second device are transmitted, wherein the second forwarding device to forward to a network device other than the first edge device forwards, so as to solve the prior art channel bandwidth, and bandwidth issues a control channel of a large amount of data as used by the controller hop flooding manner unknown unicast packets or broadcast packets for processing, the occupied bandwidth resources are saved effectively.

[0047] 进一步的,在本发明的另一个实施例中,在上述图2所示实施例的基础上,该方法还可以包括: [0047] Further, in another embodiment of the present invention, on the basis of the above-described embodiment shown on FIG. 2, the method may further comprise:

[0048] 获取该网络中每个转发设备的信息,并根据每个转发设备的信息,生成转发设备的信息库,每个转发设备的信息均包括:转发设备的身份标识(Identity,简称ID)信息和转发设备的网络之间互连的协议(Internet Protocol,简称IP)地址;另外,每个转发设备的信息中还包括:转发设备的路径接口标识、并标记该转发设备是否为边沿转发设备,这些信息可以是由转发设备主动上报给控制器的。 [0048] The network access information each forwarding device and forwarding the information to each device, the device generating the forwarding information base, each of the information transfer device includes: forwarding the identity of the device (the Identity, referred to as ID) forwarding information between the network interconnection apparatus and protocol (Internet protocol, abbreviated IP) address; further, each information forwarding device further comprises: forwarding path interface device identification, and whether the marking device is a forwarding device to forward edge This information can be actively report forwarded by the device to the controller.

[0049] 更进一步的,在本发明的还一个实施例中,在上述图2所示实施例的基础上,步骤202中判断该第一转发设备是否为边沿转发设备的具体实现方式为: [0049] Further still, in a further embodiment of the present invention, on the basis of the above-described embodiment shown in FIG. 2, the step 202 it is determined whether the specific implementation of the first device forwarding device to forward to the edge:

[0050] 根据该报文中的第一转发设备的IP地址,获取该第一转发设备的ID信息;根据该ID信息,判断该第一转发设备是否为边沿转发设备,具体的,上述第一转发设备在给控制器发送上述报文时,会在报文中携带该第一转发设备的IP地址,控制器根据该IP地址,可以在转发设备的信息库中获取到该第一转发设备的ID信息,再根据该ID信息,在上述转发设备的信息库中查看该转发设备是否为边沿转发设备。 [0050] The IP address of the first packet forwarding device, acquires the ID information of the first device forwarding; based on the ID information, determining whether the first device is a forward edge of a forwarding device, specifically, the first forwarding device when transmitting the packet to the controller, carries the first IP address in the packet forwarding device, the controller can be implemented according to the IP address in the forwarding information base of the device to the first device forwarding ID information, and then based on the ID information, to see whether the forwarding device to forward to the edge devices in said forwarding information base apparatus.

[0051] 优选的,步骤203中根据转发设备的信息库,将该未知报文分别发送给第二转发设备的具体实现方式为:` DETAILED implementation [0051] Preferably, the step of forwarding information base 203 according to the device, the unknown packets are forwarded to the second device is: `

[0052] 根据该转发设备的信息库中的ID信息,确定该第二转发设备; [0052] The ID information database apparatus in the forwarding, determining that the second forwarding apparatus;

[0053] 将该未知报文分别发送给该第二转发设备。 [0053] The unknown packets are transmitted to the second forwarding apparatus.

[0054] 在本实施例中,控制器先根据该转发设备的信息库中的ID信息,确定转发设备的信息库中的哪些转发设备是第二转发设备,上述转发设备的信息库中标记有哪些转发设备是边沿转发设备,只要根据上述第一转发设备的ID信息,将该第一转发设备排除,就可确定哪些转发设备为第二转发设备;在确定出哪些转发设备是第二转发设备后,根据该ID信息,将该未知报文分别发送给该第二转发设备,同时控制器通知第二转发设备将上述未知报文进行泛洪处理,即将该未知报文从转发设备的每一个数据路径接口进行发送。 [0054] In the present embodiment, the controller according to the first ID information repository in the repeater apparatus, determine a forwarding device which forwards the information in the library is a second forwarding apparatus, said forwarding information base device marked with forwarding device which is edge forwarding device based on the ID information of the first long forwarding device, the first device forwarding exclusion, which can determine the forwarding apparatus forwards a second device; determining an apparatus which is a second forwarding apparatus forwards after, according to the ID information, the unknown packets are transmitted to the second forwarding device, while the controller notifies the second forwarding apparatus described above unknown messages flooding process, i.e. the unknown packets from each transponder device data transmission path interface.

[0055] 本实施例中,通过接收到第一转发设备发送的报文后,若根据报文中的MAC地址,判断出报文为未知报文,且该第一转发设备为边沿转发设备时,根据转发设备的信息库,将该报文分别发送给第二转发设备,从而解决了现有技术中控制器由于采用逐跳泛洪的方式对未知单播报文或者广播报文进行处理,而占用的大量数据通道的带宽以及控制通道的带宽问题,有效地节省了带宽资源。 [0055] In this embodiment, by forwarding the received message sent by the first, if the MAC address of the packet, determines that the packet is unknown the packet, and forwarding the first device is an edge device forwards the forwarding information base device, the packet will be forwarded to the second device are transmitted, thereby solving the prior art controller as used by the flooding hop manner unknown unicast packets or broadcast packets for processing, and control channel bandwidth, and bandwidth issues occupied a large number of data channels, effectively saving bandwidth resources.

[0056] 图3为本发明报文处理装置的一个实施例的结构示意图,该报文处理装置可以是上述控制器,如图3所示,该报文处理装置包括:接收模块301、判断模块302和发送模块303。 [0056] FIG. 3 is a schematic structural diagram of a message packet invention embodiment example of the processing apparatus, the packet processing apparatus may be the above controller, as shown in Figure 3, the packet processing apparatus comprising: a receiving module 301, a determining module 302 and a sending module 303.

[0057] 其中,接收模块301,用于接收第一转发设备发送的报文;判断模块302,,用于根据上述接收模块301接收到的上述报文中的目的介质访问控制MAC地址,判断该报文是否为未知报文;若判断出上述报文为未知报文,判断上述第一转发设备是否为边沿转发设备,其中,该边沿转发设备为与服务器直接相连接的转发设备。 [0057] wherein, the receiving module 301, configured to receive a first message sent by the forwarding device; ,, determining module 302 for the purpose of the above-described medium access message received in the control based on the MAC address of the receiving module 301, which determines whether the packet is unknown the packet; if it is determined that the above-described packet is unknown the packet, it is determined whether the forwarding device to forward to the first edge device as a forwarding device, wherein the forward edge of the device connected directly to a server. 发送模块303,用于上述判断模块302判断出上述第一转发设备为边沿转发设备,根据转发设备的信息库,将上述未知报文分别发送给第二转发设备;需要说明的是,该第二转发设备为网络中除上述第一转发设备之外的边沿转发设备。 Sending module 303, the determining module 302 for determining that said first device is a forward edge forwarding device according to the forwarding information database device, known respectively transmits the packet to the second forwarding apparatus; Incidentally, the second forwarding device to forward to the network edge device other than the first device forwarding.

[0058] 本实施的报文处理装置可以执行图2所示方法实施例的技术方案,其实现原理相类似,此处不再赘述。 Packet processing apparatus [0058] according to the present embodiment may perform the method shown in FIG. 2 technical solutions of the embodiments, which implements the principle is similar, will not be repeated here.

[0059] 本实施例中,通过接收到第一转发设备发送的报文后,若根据报文中的MAC地址,判断出报文为未知报文,且该第一转发设备为边沿转发设备时,根据转发设备的信息库,将该报文分别发送给第二转发设备,从而解决了现有技术中控制器由于采用逐跳泛洪的方式对未知单播报文或者广播报文进行处理,而占用的大量数据通道的带宽以及控制通道的带宽问题,有效地节省了带宽资源。 [0059] In this embodiment, by forwarding the received message sent by the first, if the MAC address of the packet, determines that the packet is unknown the packet, and forwarding the first device is an edge device forwards the forwarding information base device, the packet will be forwarded to the second device are transmitted, thereby solving the prior art controller as used by the flooding hop manner unknown unicast packets or broadcast packets for processing, and control channel bandwidth, and bandwidth issues occupied a large number of data channels, effectively saving bandwidth resources.

[0060] 图4为本发明报文处理装置的另一个实施例的结构示意图,在上述图3所示实施例的基础上,该装置还包括:获取模块304、生成模块305和确定模块306,其中,上述判断模块302还具体包括:获取单元401和判断单元402,具体地, A schematic view of another configuration example of [0060] Figure 4 is a message packet processing device according to the invention, in the above embodiment shown in FIG. 3 of the embodiment, the apparatus further comprising: an obtaining module 304, a generation module 305 and a determining module 306, wherein the determination module 302 further comprises: obtaining unit 401 and judgment unit 402, in particular,

[0061] 获取模块304,用于获取所述网络中每个转发设备的信息;生成模块305,用于根据所述获取模块301获取到的每个上述转发设备的信息,生成该转发设备的信息库;上述每个转发设备的信息均包括:转发设备的ID信息。 [0061] The acquisition module 304, configured to obtain forwarding information for each device in the network; generation module 305, the forwarding information for each of said acquired apparatus 301 according to the acquisition module, generate forwarding information of the device library; the information of each forwarding apparatus comprises: forwarding information of the device ID.

[0062] 进一步地,判断模块302中,获取单元401,用于根据所述报文中的上述第一转发设备的IP地址,获取该第一转发设备的ID信息;判断单元402,用于根据所述ID信息,判断所述第一转发设备是否为边沿转发设备。 [0062] Further, a determination module 302, the obtaining unit 401, according to the IP address of the first packet forwarding device, acquires the ID information of the first forwarding apparatus; a judging unit 402, according to said ID information, determining whether the first forwarding device to forward to the edge of the device.

[0063] 更为优选的,该装置还可以包括:确定模块306,用于根据上述转发设备的信息库中的ID信息,确定上述第二转发设备; [0063] More preferably, the apparatus may further include: a determining module 306, based on the ID information database for said forwarding apparatus, determining said second forwarding apparatus;

[0064] 则发送模块303还用于根据每个第二转发设备对应的ID信息,将上述未知报文分别发送给各第二转发设备。 [0064] The sending module 303 is further configured to each of the device ID corresponding to the second forwarding information, respectively transmits the message to each of the second unknown forwarding device.

[0065] 本实施的报文处理装置可以执行图2所示方法实施例的技术方案,其实现原理相类似,此处不再赘述。 Packet processing apparatus [0065] according to the present embodiment may perform the method shown in FIG. 2 technical solutions of the embodiments, which implements the principle is similar, will not be repeated here.

[0066] 本实施例中,通过接收到第一转发设备发送的报文后,若根据报文中的MAC地址,判断出报文为未知报文,且该第一转发设备为边沿转发设备时,根据转发设备的信息库,将该报文分别发送给第二转发设备,其中,该第二转发设备为网络中除第一转发设备之外的边沿转发设备,从而解决了现有技术中控制器由于采用逐跳泛洪的方式对未知单播报文或者广播报文进行处理,而占用的大量数据通道的带宽以及控制通道的带宽问题,有效地节省了带宽资源。 [0066] In this embodiment, by forwarding the received message sent by the first, if the MAC address of the packet, determines that the packet is unknown the packet, and forwarding the first device is an edge device forwards the forwarding information base device, respectively, will be sent to the second packet forwarding device, wherein the second forwarding device to forward to a network device other than the first edge device forwards, so as to solve the prior art control channel bandwidth, and bandwidth issues of large amounts of data control channel is because by-hop manner flooding unknown unicast packets or broadcast packets for processing, the occupied bandwidth resources are saved effectively.

[0067] 图5为本发明报文处理装置的又一个实施例的结构示意图,如图5所示,该装置包括:接收器501、处理器502和发送器503,其中,接收器501用于接收第一转发设备发送的报文;处理器502用于根据接收到的所述报文中的目的介质访问控制MAC地址,判断所述报文是否为未知报文;若判断出所述报文为未知报文,判断所述第一转发设备是否为边沿转发设备,其中,所述边沿转发设备为与服务器直接相连接的转发设备;发送器503,用于若判断出所述第一转发设备为边沿转发设备,则根据转发设备的信息库,将所述未知报文分别发送给第二转发设备;所述第二转发设备为网络中除所述第一转发设备之外的边沿转发设备。 [0067] FIG. 5 of the present invention as hereinbefore packet processing apparatus and a schematic structure of an embodiment shown in Figure 5, the apparatus comprising: a receiver 501, a processor 502 and a transmitter 503, wherein the receiver 501 for receiving a first packet forwarding transmission device; processor 502 for controlling the MAC address in the packet according to the received media access object, determining whether the packet is unknown the packet; if it is determined that the packet unknown packet forwarding device determines whether the first edge forwarding device, wherein the device is a rim forwarding forwarding device directly connected to the server; a transmitter 503 for forwarding the first device if it is determined that forwarding edge for the device, the device according to the forwarding information database, are transmitted to the forwarding unknown packet to the second device; the second forwarding device forwards the network device other than the first edge of the forwarding device.

[0068] 优选地,上述处理器502还用于获取所述网络中每个转发设备的信息;根据获取到的每个所述转发设备的信息,生成所述转发设备的信息库;所述每个转发设备的信息均包括:转发设备的ID信息和转发设备的IP地址。 [0068] Preferably, the processor 502 is further configured to obtain forwarding information of said each network device; forwarding information base of the apparatus according to the forwarding information of each device is acquired, generating; each of information transponder device includes: IP address forwarding device ID information and forwarding devices.

[0069] 更为优选地,处理器502具体用于根据所述报文中的所述第一转发设备的IP地址,获取所述第一转发设备的ID信息;根据所述ID信息,判断所述第一转发设备是否为边沿转发设备。 [0069] More preferably, the processor 502 according to the particular packet forwarding IP address of the device first acquires the ID information of the first device forwarding; according to the ID information, whether the whether the forwarding device forwards said first edge equipment.

[0070] 更为优选地,处理器502用于根据所述转发设备的信息库中的ID信息,确定所述第二转发设备;发送器503,还用于根据每个所述第二转发设备对应的ID信息,将所述未知报文分别发送给所述第二转发设备。 [0070] More preferably, the ID information processor 502 according to the forwarding information database device, determining said second forwarding apparatus; transmitter 503 is further configured to each of said second forwarding apparatus according to ID information corresponding to the unknown packets are transmitted to the second forwarding apparatus.

[0071] 本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。 [0071] Those of ordinary skill in the art will be appreciated that: each of the foregoing methods to complete all or part of the hardware can step through the program instructions relating to the implementation. 前述的程序可以存储于一计算机可读取存储介质中。 The program may be stored in a computer readable storage medium. 该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:R0M、RAM、磁碟或者光盘等各种可以存储程序代码的介质。 When the program is executed, comprising the step of performing the above-described method of the embodiment; and the storage medium comprising: a variety of medium may store program codes R0M, RAM, magnetic disk, or optical disk.

[0072] 最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。 [0072] Finally, it should be noted that: the above embodiments only describe the technical solutions in embodiments of the present invention, rather than limiting;. Although the embodiments of the present invention has been described in detail, those of ordinary skill in the art should appreciated: it still may be made to the technical solutions described embodiments modifications, or to some or all of the technical features equivalents; as such modifications or replacements do not cause the essence of corresponding technical solutions to depart from embodiments of the present invention range of technical solutions.

Claims (8)

1. 一种报文处理方法,其特征在于,包括: 接收第一转发设备发送的报文; 若根据所述报文中的目的介质访问控制MAC地址,判断出所述报文为未知报文,则判断所述第一转发设备是否为边沿转发设备,其中,所述边沿转发设备为与服务器直接相连接的转发设备; 若判断出所述第一转发设备为边沿转发设备,则根据转发设备的信息库,将所述未知报文分别发送给第二转发设备;所述第二转发设备为网络中除所述第一转发设备之外的边沿转发设备。 A packet processing method, comprising: receiving a first packet forwarding device transmitted; if the control according to the MAC address of the packet based on the destination media access, it is determined that the packet is unknown the packet , it is determined whether the first device is a forwarding device to forward edge, wherein the device is a rim forwarding forwarding device directly connected to the server; if it is determined that the first device forwarding to the edge forwarding device according to the forwarding device repository, the unknown packets are transmitted to a second forwarding apparatus; forwarding device forwards the second device is a network other than the first edge forwarding device.
2.根据权利要求1所述的方法,其特征在于,还包括: 获取所述网络中每个转发设备的信息,并根据每个所述转发设备的信息,生成所述转发设备的信息库;所述每个转发设备的信息均包括转发设备的ID信息和转发设备的IP地址。 2. The method according to claim 1, characterized in that, further comprising: acquiring the information of each network forwarding device, according to the forwarding information of each device, the device generating the forwarding information base; each of said information transfer device ID information includes the IP address and forwarding apparatus forwarding device.
3.根据权利要求1或2所述的方法,其特征在于,所述判断所述第一转发设备是否为边沿转发设备,包括: 根据所述报文中的所述第一转发设备的IP地址,获取所述第一转发设备的ID信息; 根据所述ID信息,判断所述第一转发设备是否为边沿转发设备。 3. The method of claim 1 or claim 2, wherein said determining whether the first device is a forwarding edge forwarding device, comprising: IP address according to the first packet forwarding device acquiring the first device forwarding the ID information; according to the ID information, determining whether the first forwarding device to forward edge devices.
4.根据权利要求3所述的方法,其特征在于,所述根据转发设备的信息库,将所述未知报文分别发送第二转发设备,包括: 根据所述转发设备的信息库中的ID信息,确定所述第二转发设备; 根据每个所述第二转发设备对应的ID信息,将所述未知报文分别发送给所述第二转发设备。 4. The method according to claim 3, characterized in that the device according to the forwarding information database, the unknown packets are transmitted a second forwarding apparatus, comprising: ID information of the forwarding device repository in accordance with information, determining said second forwarding apparatus; according to each of said second forwarding apparatus corresponding to the ID information, the unknown messages are transmitted to the second forwarding apparatus.
5. 一种报文处理装置,其特征在于,包括: 接收模块,用于接收第一转发设备发送的报文; 判断模块,用于根据所述接收模块接收到的所述报文中的目的介质访问控制MAC地址,判断所述报文是否为未知报文;若判断出所述报文为未知报文,判断所述第一转发设备是否为边沿转发设备,其中,所述边沿转发设备为与服务器直接相连接的转发设备; 发送模块,用于若所述判断模块判断出所述第一转发设备为边沿转发设备,则根据转发设备的信息库,将所述未知报文分别发送给第二转发设备;所述第二转发设备为网络中除所述第一转发设备之外的边沿转发设备。 A packet processing apparatus comprising: a receiving module, configured to receive a first message sent by the forwarding device; determining module for objects in the packet received by the receiving module media access control MAC address, determining whether the packet is unknown the packet; if it is determined that the packet is unknown the packet, determining whether the first forwarding device to forward to the edge of the device, wherein said device is a forward edge forwarding device directly connected to the server; and a sending module, configured to, if the determination means determines that the first device forwarding to forward edge device, the device according to the forwarding information database, respectively send the packet to the first unknown two forwarding apparatus; forwarding device forwards the second device is a network other than the first edge forwarding device.
6.根据权利要求5所述的报文处理装置,其特征在于,还包括: 获取模块,用于获取所述网络中每个转发设备的信息; 生成模块,用于根据所述获取模块获取到的每个所述转发设备的信息,生成所述转发设备的信息库;所述每个转发设备的信息均包括:转发设备的ID信息和转发设备的IP地址。 The packet processing apparatus according to claim 5, characterized in that, further comprising: an acquiring module, for acquiring the forwarding information of each network device; generating module, configured to acquire the acquisition module according to the forwarding information for each device, the forwarding information base generating device; said each information forwarding device comprises: forwarding information and forwarding the IP address of the device ID of the device.
7.根据权利要求5或6所述的报文处理装置,其特征在于,所述判断模块,还包括: 获取单元,用于根据所述报文中的所述第一转发设备的IP地址,获取所述第一转发设备的ID信息; 判断单元,用于根据所述ID信息,判断所述第一转发设备是否为边沿转发设备。 The packet processing device of claim 5 or claim 6, wherein the determining module further comprises: an acquisition unit for IP address based on the first packet forwarding device, acquiring the first device forwarding the ID information; determining means, according to said ID information, determining whether the first forwarding device to forward edge devices.
8.根据权利要求7所述的报文处理装置,其特征在于,还包括:确定模块,用于根据所述转发设备的信息库中的ID信息,确定所述第二转发设备; 则所述发送模块还用于根据每个所述第二转发设备对应的ID信息,将所述未知报文分别发送给所述第二转发设备。 8. The packet processing apparatus according to claim 7, characterized in that, further comprising: a determining module, according to ID information of the forwarding information base device, determining said second forwarding apparatus; then the the sending module is further for each of said second forwarding apparatus corresponding to the ID information, the unknown packets are transmitted to the second forwarding apparatus.
CN201210574107.8A 2012-12-26 2012-12-26 Packet processing method and apparatus CN103067280B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210574107.8A CN103067280B (en) 2012-12-26 2012-12-26 Packet processing method and apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210574107.8A CN103067280B (en) 2012-12-26 2012-12-26 Packet processing method and apparatus
PCT/CN2013/090232 WO2014101733A1 (en) 2012-12-26 2013-12-23 Message processing method and device

Publications (2)

Publication Number Publication Date
CN103067280A true CN103067280A (en) 2013-04-24
CN103067280B CN103067280B (en) 2016-06-08

Family

ID=48109748

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210574107.8A CN103067280B (en) 2012-12-26 2012-12-26 Packet processing method and apparatus

Country Status (2)

Country Link
CN (1) CN103067280B (en)
WO (1) WO2014101733A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014101733A1 (en) * 2012-12-26 2014-07-03 华为技术有限公司 Message processing method and device
CN106411739A (en) * 2015-07-31 2017-02-15 华为技术有限公司 Data forwarding method, apparatus and system
CN106487946A (en) * 2016-10-12 2017-03-08 重庆金美通信有限责任公司 IP resource conflict detection method, system and equipment for large-scale communication network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459592A (en) * 2007-12-12 2009-06-17 华为技术有限公司 Method, system and equipment for transmitting packets between supplier edge devices
US20110019676A1 (en) * 2009-07-21 2011-01-27 Cisco Technology, Inc. Extended subnets
CN102150399A (en) * 2008-09-12 2011-08-10 思科技术公司 Reducing flooding in a bridged network
CN102195867A (en) * 2010-03-15 2011-09-21 株式会社日立制作所 Network system, edge node, and relay node

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102347889B (en) * 2010-08-04 2014-08-13 杭州华三通信技术有限公司 Message forwarding method, system and device in H-VPLS (Hierarchical Virtual Private local area network service)
CN101924699B (en) * 2010-08-05 2013-01-02 福建星网锐捷网络有限公司 Message forwarding method, system and provider edge equipment
CN103067280B (en) * 2012-12-26 2016-06-08 华为技术有限公司 Packet processing method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459592A (en) * 2007-12-12 2009-06-17 华为技术有限公司 Method, system and equipment for transmitting packets between supplier edge devices
CN102150399A (en) * 2008-09-12 2011-08-10 思科技术公司 Reducing flooding in a bridged network
US20110019676A1 (en) * 2009-07-21 2011-01-27 Cisco Technology, Inc. Extended subnets
CN102195867A (en) * 2010-03-15 2011-09-21 株式会社日立制作所 Network system, edge node, and relay node

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014101733A1 (en) * 2012-12-26 2014-07-03 华为技术有限公司 Message processing method and device
CN106411739A (en) * 2015-07-31 2017-02-15 华为技术有限公司 Data forwarding method, apparatus and system
CN106487946A (en) * 2016-10-12 2017-03-08 重庆金美通信有限责任公司 IP resource conflict detection method, system and equipment for large-scale communication network

Also Published As

Publication number Publication date
CN103067280B (en) 2016-06-08
WO2014101733A1 (en) 2014-07-03

Similar Documents

Publication Publication Date Title
CN101247321B (en) Method, device and system for routing diagnosis in network based on diameter protocol
CN1291574C (en) Multipoint communication method and device
US9798572B2 (en) Virtual machine migration method, switch, and virtual machine system
US7418003B1 (en) PIM sparse mode to source specific multicast conversion
JP2004179811A (en) Packet repeating device
CN101459618B (en) Data packet forwarding method and device for virtual machine network
EP2093963A1 (en) A method, system and path computation element for obtaining path information
CN102474464B (en) Apparatus, system, and method for establishing point to point connections in FCOE
CN102870377A (en) Monitoring method and device for virtual port
CN101272291B (en) Network appliance testing method and system
CN1549501A (en) Distributed central management method for special shaped network equipment in distributing network environment
US9237025B2 (en) Source routing in multicast transmissions
CN101577722B (en) Method for realizing MAC forced forwarding function and device
CN101605103B (en) Method and apparatus for static forwarding multicast data
CN101789874B (en) Multicast tree switching realization method, device and routing equipment in PIM-SM
CN102946356B (en) CB-PE (controlling bridge-port extender) network-based multicast message transmitting method and device
CN102217253B (en) Message forwarding method, equipment and network device
CN101841520B (en) Domain name system and information processing method and device for domain name system
US8730979B2 (en) Method and system for increasing forwarding efficiency of virtual private LAN service network
CN102665213B (en) Through data processing method, apparatus and system for
CN101707537B (en) Positioning method of failed link and alarm root cause analyzing method, equipment and system
CN101291240B (en) Multicast flow transmission method and system
CN102647355B (en) LACP (Link Aggregation Control Protocol) consultation processing method, relay node and system
CN102027711B (en) Multicast group management method and apparatus
CN103581021A (en) Method and equipment for detecting services in software defined network

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model