WO2014071718A1 - Topology grading method and apparatus, and flooding processing method and apparatus - Google Patents

Topology grading method and apparatus, and flooding processing method and apparatus Download PDF

Info

Publication number
WO2014071718A1
WO2014071718A1 PCT/CN2013/073481 CN2013073481W WO2014071718A1 WO 2014071718 A1 WO2014071718 A1 WO 2014071718A1 CN 2013073481 W CN2013073481 W CN 2013073481W WO 2014071718 A1 WO2014071718 A1 WO 2014071718A1
Authority
WO
WIPO (PCT)
Prior art keywords
switch
host
port
data packet
destination
Prior art date
Application number
PCT/CN2013/073481
Other languages
French (fr)
Chinese (zh)
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 EP13852964.9A priority Critical patent/EP2863595B1/en
Publication of WO2014071718A1 publication Critical patent/WO2014071718A1/en
Priority to US14/661,374 priority patent/US9722924B2/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/32Flooding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/48Routing tree calculation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]

Landscapes

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

Abstract

Embodiments of the present invention disclose a topology grading method and apparatus, and a flooding processing method and apparatus. The method comprises: firstly, a controller receiving a data packet reported by a switch connected to a source host; then, the controller retrieving in a local device physical address (MAC address) list to determine whether a destination address of the data packet exists; if the destination address of the data packet does not exist, the controller obtaining a destination port, the destination port being a port of a switch connected to a destination host and the destination host is another host different from the source host, and finally, the controller generating a routing table by using the destination port as the destination address, and sending the routing table to the switch connected to the source host, so that the switch connected to the source host forwards the data packet according to the routing table. The present invention is applicable to the field of a communications system.

Description

拓朴分级方法、 装置及洪泛的处理方法、 装置  Topological classification method, device and flooding processing method and device
本申请要求于 2012 年 11 月 08 日提交中国专利局、 申请号为 This application is submitted to the Chinese Patent Office on November 08, 2012, and the application number is
201210444069.4、 发明名称为 "拓朴分级方法、 装置及洪泛的处理方 法、 装置" 的中国专利申请的优先权, 其全部内容通过引用结合在 本申请中。 201210444069.4, the entire disclosure of which is hereby incorporated by reference in its entirety in its entirety in its entirety in the the the the the the the the the the
技术领域 Technical field
本发明涉及通信系统领域, 特别涉及一种拓朴分级方法、 装置及洪泛 的处理方法、 装置。  The present invention relates to the field of communication systems, and in particular, to a topology grading method, apparatus, and flood processing method and apparatus.
背景技术 Background technique
传统的计算机网络中, 每个交换机只能获取到相邻交换机的信息, 对 于每个交换机没有一个全局的网络视图。 基于 SDN ( Software Defined Network, 软件定义的网络)技术的网络是未来网络发展的重要趋势之一。 SDN的核心思想是将网络设备控制面和数据转发面分离。 交换机严格基于 转发表转发; 交换机提供接口 API ( Appl icat ion Programming Interface , 应用程序编程接口 )供控制器控制;交换机和控制器之间遵循一定的协议。  In a traditional computer network, each switch can only obtain information about neighboring switches, and there is no global network view for each switch. A network based on SDN (Software Defined Network) technology is one of the important trends in the future development of the network. The core idea of SDN is to separate the network device control plane from the data forwarding plane. The switch is strictly based on the forwarding table forwarding; the switch provides an interface API (Application Programming Interface) for controller control; the switch and the controller follow a certain protocol.
在 SDN网络中, 交换机初始时路由表为空, 当收到的数据包在交换机 中找不到匹配路由表时, 上报到控制器请求转发策略。 控制器对于交换机 上报的数据包, 若在本地的设备物理地址 MAC表中能找到目的地址, 则为 交换机选择一条路, 并向交换机下发相应的路由表。 若上报的数据包在本 地的 MAC表中找不到其目的地址, 则控制器指示交换机将此数据包在除了 接收端口外的本网络内的所有其他交换机的端口泛洪出去。然而这样会导 致数据包在网络中重复的广播, 引起广播风暴。  In the SDN network, the initial routing table of the switch is empty. When the received data packet cannot find a matching routing table in the switch, it reports to the controller to request a forwarding policy. If the controller can find the destination address in the MAC address table of the local device, the switch selects a path for the switch and sends the corresponding routing table to the switch. If the reported packet cannot find its destination address in the local MAC table, the controller instructs the switch to flood the port of all other switches in the network except the receiving port. However, this can result in repeated broadcasts of packets in the network, causing broadcast storms.
发明内容 Summary of the invention
本发明实施例提供了一种拓朴分级方法、 装置及洪泛的处理方法、 装 置, 可以对网络中的交换机进行分层区分, 并且有效地抑制了洪泛, 消除 了数据包在网络中的重复广播, 增加了链路的可用率。 The embodiments of the present invention provide a topology grading method, a device, and a flooding processing method and device, which can hierarchically distinguish switches in a network, and effectively suppress flooding and eliminate The repeated broadcast of the data packet in the network increases the availability of the link.
本发明实施例采用的技术方案为:  The technical solution adopted by the embodiment of the present invention is:
一种拓朴分级方法, 包括:  A topology grading method, including:
控制器根据网络中交换机的拓朴信息, 获取与主机连接的交换机; 所述控制器配置所述与主机连接的交换机为第 1层交换机;  The controller acquires a switch connected to the host according to the topology information of the switch in the network; the controller configures the switch connected to the host as a layer 1 switch;
所述控制器获取网络中未分层的交换机, 并将所述未分层的交换机 中, 与第 N层交换机直接连接的交换机配置为第 N+ 1层交换机, 所述 N为交 换机所在的层数, 所述 N为正整数。  The controller acquires an unlayered switch in the network, and configures, in the unlayered switch, a switch directly connected to the layer N switch as an N+1 switch, where N is the number of layers in which the switch is located. , the N is a positive integer.
所述控制器根据网络中交换机的拓朴信息,获取与主机连接的交换机 包括:  The controller acquires a switch connected to the host according to the topology information of the switch in the network, including:
所述控制器根据网络中交换机的拓朴信息, 获取交换机开启的端口; 所述控制器判断所述交换机开启的端口中是否存在与主机连接的端 口;  The controller obtains a port that is opened by the switch according to the topology information of the switch in the network; and the controller determines whether a port connected to the host exists in the port opened by the switch;
若所述交换机开启的端口中存在与主机连接的端口,所述控制器确认 所述交换机为所述与主机连接的交换机。  If there is a port connected to the host in the port opened by the switch, the controller confirms that the switch is the switch connected to the host.
所述控制器获取网络中未分层的交换机, 并将所述未分层的交换机 中, 与第 N层交换机直接连接的交换机配置为第 N+ 1层交换机之后还包括: 当所述控制器接收到与源主机连接的交换机上报的数据包时,所述控 制器在本地的设备物理地址 MAC地址表中检索是否存在所述数据包的目的 地址;  The controller acquires a switch that is not layered in the network, and configures the switch that is directly connected to the layer N switch in the unlayered switch to be an N+1 layer switch, and further includes: when the controller receives When the data packet is reported by the switch connected to the source host, the controller searches whether the destination address of the data packet exists in the local device physical address MAC address table;
若不存在所述数据包的目的地址, 所述控制器获取目的端口, 所述目 的端口为与目标主机连接的交换机的端口,所述目标主机为不同于所述源 主机外的其它主机;  If the destination address of the data packet does not exist, the controller acquires a destination port, where the destination port is a port of a switch connected to the target host, and the target host is a host other than the source host;
所述控制器将所述目的端口作为目的地址, 生成路由表, 并将所述路 由表发送给所述与源主机连接的交换机,以使得所述与源主机连接的交换 机根据所述路由表转发所述数据包。 若不存在所述数据包的目的地址, 所述控制器获取目的端口包括: 所述控制器根据拓朴分级,获取所述与所述目标主机连接的交换机开 启的端口中, 未与其他交换机连接的端口作为所述目的端口。 The controller uses the destination port as a destination address, generates a routing table, and sends the routing table to the switch connected to the source host, so that the switch connected to the source host forwards according to the routing table. The data packet. If the destination address of the data packet does not exist, the controller acquiring the destination port includes: the controller acquiring, according to the topology classification, the port opened by the switch connected to the target host, not connected to another switch The port acts as the destination port.
一种洪泛的处理方法, 包括:  A flooding approach, including:
控制器接收与源主机连接的交换机上报的数据包;  The controller receives the data packet reported by the switch connected to the source host;
所述控制器在本地的设备物理地址 MAC地址表中检索是否存在所述数 据包的目的地址;  Determining, by the controller, a destination address of the data packet in a local device physical address MAC address table;
若不存在所述数据包的目的地址, 所述控制器获取目的端口, 所述目 的端口为与目标主机连接的交换机的端口,所述目标主机为不同于所述源 主机外的其它主机;  If the destination address of the data packet does not exist, the controller acquires a destination port, where the destination port is a port of a switch connected to the target host, and the target host is a host other than the source host;
所述控制器将所述目的端口作为目的地址, 生成路由表, 并将所述路 由表发送给所述与源主机连接的交换机,以使得所述与源主机连接的交换 机根据所述路由表转发所述数据包。  The controller uses the destination port as a destination address, generates a routing table, and sends the routing table to the switch connected to the source host, so that the switch connected to the source host forwards according to the routing table. The data packet.
若不存在所述数据包的目的地址, 所述控制器获取目的端口包括: 所述控制器对网络中的交换机进行拓朴分级;  If the destination address of the data packet does not exist, the controller acquiring the destination port includes: the controller performs topology classification on the switch in the network;
所述控制器根据所述拓朴分级,获取所述与所述目标主机连接的交换 机开启的端口中, 未与其他交换机连接的端口作为所述目的端口。  The controller obtains, according to the topology classification, a port that is not connected to another switch in the port opened by the switch connected to the target host as the destination port.
所述数据包为地址解析协议 APR请求、 和 /或未知单播帧、 和 /或动态 主机配置协议 DHCP数据。  The data packet is an Address Resolution Protocol APR request, and/or an unknown unicast frame, and/or a Dynamic Host Configuration Protocol DHCP data.
当所述数据包为地址解析协议 APR请求时, 若不存在所述数据包的目 的地址, 所述控制器获取目的端口之后还包括:  When the data packet is an address resolution protocol APR request, if the destination address of the data packet does not exist, the controller further includes:
所述控制器从所述目的端口中选择连接的主机信息未知的端口,并将 所述连接的主机信息未知的端口作为目的地址。  The controller selects a port whose host information is unknown from the destination port, and uses the port whose connection host information is unknown as the destination address.
当所述数据包为地址解析协议 APR请求时, 若不存在所述数据包的目 的地址, 所述控制器获取目的端口之前还包括:  When the data packet is an address resolution protocol APR request, if the destination address of the data packet does not exist, the controller further includes:
若所述本地 MAC地址表中存在所述 APR请求的目的地址时,所述控制器 直接回复所述源主机发送的所述 APR请求。 If the destination address of the APR request exists in the local MAC address table, the controller Directly replying to the APR request sent by the source host.
一种拓朴分级装置, 包括:  A topology grading device comprising:
第一获取单元, 用于根据网络中交换机的拓朴信息, 获取与主机连接 的交换机;  a first acquiring unit, configured to acquire a switch connected to the host according to the topology information of the switch in the network;
配置单元,用于配置所述第一获取单元获取的与主机连接的交换机为 第 1层交换机;  a configuration unit, configured to configure, by the first acquiring unit, a switch connected to the host as a layer 1 switch;
所述第一获取单元, 还用于获取网络中未分层的交换机;  The first obtaining unit is further configured to acquire a switch that is not layered in the network;
所述配置单元, 还用于将所述第一获取单元获取的未分层的交换机 中, 与第 N层交换机直接连接的交换机配置为第 N+ 1层交换机, 所述 N为交 换机所在的层数, 所述 N为正整数。  The configuration unit is further configured to configure, in the un-layered switch acquired by the first acquiring unit, a switch directly connected to the layer N switch as an N+1 layer switch, where the N is a layer where the switch is located. , the N is a positive integer.
所述获取单元包括:  The obtaining unit includes:
获取模块, 用于根据网络中交换机的拓朴信息, 获取交换机开启的端 口;  An obtaining module, configured to obtain, according to the topology information of the switch in the network, a port that is opened by the switch;
判断模块,用于判断所述获取模块获取的交换机开启的端口中是否存 在与主机连接的端口;  a judging module, configured to determine whether a port connected to the host exists in the port opened by the switch acquired by the acquiring module;
确认模块,用于若所述判断模块判断所述交换机开启的端口中存在与 主机连接的端口, 确认所述交换机为所述与主机连接的交换机。  And a confirmation module, configured to: if the determining module determines that a port connected to the host exists in the port opened by the switch, confirm that the switch is the switch connected to the host.
所述装置还包括:  The device also includes:
检索单元, 用于当接收到与源主机连接的交换机上报的数据包时, 在 本地的设备物理地址 MAC地址表中检索是否存在所述数据包的目的地址; 第二获取单元,用于若所述检索单元检索到不存在所述数据包的目的 地址, 获取目的端口, 所述目的端口为与目标主机连接的交换机的端口, 所述目标主机为不同于所述源主机外的其它主机;  a retrieval unit, configured to: when receiving a data packet reported by the switch connected to the source host, searching for a destination address of the data packet in a local device physical address MAC address table; The retrieval unit retrieves a destination address of the data packet, and acquires a destination port, where the destination port is a port of a switch connected to the target host, and the target host is a host other than the source host;
生成单元, 用于将所述第二获取单元获取的目的端口作为目的地址, 生成路由表, 并将所述路由表发送给所述与源主机连接的交换机, 以使得 所述与源主机连接的交换机根据所述路由表转发所述数据包。 所述第二获取单元, 具体用于根据拓朴分级, 获取所述与所述目标主 机连接的交换机开启的端口中,未与其他交换机连接的端口作为所述目的 端口 。 a generating unit, configured to use the destination port obtained by the second acquiring unit as a destination address, generate a routing table, and send the routing table to the switch connected to the source host, so that the source host is connected The switch forwards the data packet according to the routing table. The second obtaining unit is configured to obtain, according to the topology classification, a port that is not connected to another switch, and the port that is connected to the switch connected to the target host, as the destination port.
一种洪泛的处理装置, 包括:  A flooding processing device, comprising:
接收单元, 用于接收与源主机连接的交换机上报的数据包;  a receiving unit, configured to receive a data packet reported by a switch connected to the source host;
检索单元, 用于在本地的设备物理地址 MAC地址表中检索是否存在所 述接收单元接收的数据包的目的地址; 地址后,获取目的端口,所述目的端口为与目标主机连接的交换机的端口, 所述目标主机为不同于所述源主机外的其它主机;  a retrieval unit, configured to retrieve, in a local device physical address MAC address table, whether there is a destination address of the data packet received by the receiving unit; after the address, obtain a destination port, where the destination port is a port of a switch connected to the target host The target host is a different host than the source host;
发送单元, 用于将所述获取单元获取的目的端口作为目的地址, 生成 路由表,并将所述路由表发送给所述与源主机连接的交换机和需要转发所 述数据包的交换机,以使得所述与源主机连接的交换机和所述需要转发所 述数据包的交换机根据所述路由表转发所述数据包。  a sending unit, configured to use the destination port obtained by the acquiring unit as a destination address, generate a routing table, and send the routing table to the switch connected to the source host and the switch that needs to forward the data packet, so that The switch connected to the source host and the switch that needs to forward the data packet forward the data packet according to the routing table.
所述获取单元包括:  The obtaining unit includes:
分级模块, 用于对网络中的交换机进行拓朴分级;  a grading module, configured to perform topology grading on switches in the network;
获取模块, 用于根据所述分级模块进行的拓朴分级, 获取所述与所述 目标主机连接的交换机开启的端口中,未与其他交换机连接的端口作为所 述目的端口。  And an obtaining module, configured to obtain, according to the topology classification performed by the grading module, a port that is not connected to another switch, and a port that is connected to the switch connected to the target host, as the destination port.
其中, 所述数据包为地址解析协议 APR请求、 和 /或未知单播帧、 和 / 或动态主机配置协议 DHCP数据。  The data packet is an address resolution protocol APR request, and/or an unknown unicast frame, and/or a dynamic host configuration protocol DHCP data.
所述装置还包括:  The device also includes:
选择单元,用于从所述获取单元获取的目的端口中选择连接的主机信 息未知的端口, 并将所述连接的主机信息未知的端口作为目的地址。  And a selecting unit, configured to select, from the destination port acquired by the acquiring unit, a port whose host information is not connected, and use the port whose connection host information is unknown as the destination address.
回复单元,用于若所述本地 MAC地址表中存在所述 APR请求的目的地址 时, 直接回复所述接收单元接收的源主机发送的所述 APR请求。 本发明实施例提供的拓朴分级方法、 装置及洪泛的处理方法、 装置, 首先控制器接收与源主机连接的交换机上报的数据包;然后所述控制器在 本地的设备物理地址 MAC地址表中检索是否存在所述数据包的目的地址, 若不存在所述数据包的目的地址, 所述控制器获取目的端口, 所述目的端 口为与目标主机连接的交换机的端口,所述目标主机为不同于所述源主机 外的其它主机; 最后所述控制器将所述目的端口作为目的地址, 并将所述 路由表发送给所述与源主机连接的交换机,以使得所述与源主机连接的交 换机根据所述路由表转发所述数据包。 在 SDN网络中, 若交换机上报的数 据包在本地的 MAC表中找不到其目的地址, 通常控制器指示交换机将此数 据包在除了接收端口外的本网络内的所有其他交换机的端口泛洪出去。然 而这样会导致数据包在网络中重复的广播, 引起广播风暴。 本发明实施例 通过控制器对网络中交换机进行拓朴分级,在交换机上报的数据包在本地 的 MAC地址表中找不到其目的地址时, 为交换机配置路由表, 使得交换机 将数据包只转发给与控制器根据拓朴分级获取的目标主机连接的交换机 的端口, 有效地抑制了洪泛, 消除了数据包在网络中的重复广播, 增加了 链路的可用率。 a reply unit, configured to directly reply to the APR request sent by the source host received by the receiving unit if the destination address of the APR request exists in the local MAC address table. The topology grading method, device, and flood processing method and device provided by the embodiment of the present invention firstly, the controller receives a data packet reported by a switch connected to the source host; and then the controller locally addresses the device physical address MAC address table. Retrieving whether there is a destination address of the data packet. If the destination address of the data packet does not exist, the controller acquires a destination port, where the destination port is a port of a switch connected to the target host, and the target host is Different from the host other than the source host; finally, the controller uses the destination port as a destination address, and sends the routing table to the switch connected to the source host, so that the source host is connected The switch forwards the data packet according to the routing table. In an SDN network, if the data packet reported by the switch cannot find its destination address in the local MAC table, the controller usually instructs the switch to flood the port of all other switches in the network except the receiving port. Go out. However, this can result in repeated broadcasts of data packets in the network, causing broadcast storms. In the embodiment of the present invention, the switch performs topology classification on the switch in the network. When the data packet reported by the switch cannot find the destination address in the local MAC address table, the routing table is configured for the switch, so that the switch forwards the data packet only. The port of the switch connected to the target host obtained by the controller according to the topology classification effectively suppresses flooding, eliminates repeated broadcast of the data packet in the network, and increases the availability of the link.
附图说明 DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现 有技术描述中所需要使用的附图作筒单地介绍, 显而易见地, 下面描述中 的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不 付出创造性劳动的前提下, 还可以根据这些附图获得其它的附图。  In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are merely the present invention. Some of the embodiments may be obtained by those of ordinary skill in the art in view of these drawings without any inventive effort.
图 1为本发明实施例提供的一种拓朴分级方法流程图;  FIG. 1 is a flowchart of a topology grading method according to an embodiment of the present invention;
图 2为本发明实施例提供的一种拓朴分级装置结构示意图;  2 is a schematic structural diagram of a topology grading device according to an embodiment of the present invention;
图 3为本发明实施例提供的一种洪泛的处理方法流程图;  FIG. 3 is a flowchart of a flooding processing method according to an embodiment of the present invention;
图 4为本发明实施例提供的一种洪泛的处理装置结构示意图; 图 5为本发明实施例提供的控制器的结构示意图; 图 6为本发明实施例提供的现有网络中交换机的拓朴结构; 图 7为本发明实施例提供的网络中交换机的拓朴结构; 4 is a schematic structural diagram of a flooding processing apparatus according to an embodiment of the present invention; FIG. 5 is a schematic structural diagram of a controller according to an embodiment of the present invention; FIG. 6 is a schematic diagram of a topology of a switch in a network according to an embodiment of the present invention; FIG. 7 is a schematic diagram of a topology of a switch in a network according to an embodiment of the present invention;
图 8为本发明实施例提供的交换机端口状态示意图。  FIG. 8 is a schematic diagram of a state of a switch port according to an embodiment of the present invention.
具体实施方式 detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进 行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没 有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的 范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
为使本发明技术方案的优点更加清楚,下面结合附图和实施例对本发 明作详细说明。  In order to make the advantages of the technical solutions of the present invention clearer, the present invention will be described in detail below with reference to the accompanying drawings and embodiments.
本实施例提供一种拓朴分级方法, 如图 1所示, 所述方法包括: This embodiment provides a topology grading method. As shown in FIG. 1, the method includes:
101、 控制器根据网络中交换机的拓朴信息, 获取与主机连接的交换 机。 101. The controller acquires a switch connected to the host according to the topology information of the switch in the network.
具体地, 所述控制器根据网络中交换机的拓朴信息, 获取交换机开启 的端口;所述控制器判断所述交换机开启的端口中是否存在与主机连接的 端口; 若所述交换机开启的端口中存在与主机连接的端口, 所述控制器确 认所述交换机为所述与主机连接的交换机。  Specifically, the controller acquires a port that is opened by the switch according to the topology information of the switch in the network; the controller determines whether a port connected to the host exists in the port opened by the switch; There is a port connected to the host, and the controller confirms that the switch is the switch connected to the host.
例如, 图 8中交换机开启的端口有端口 Por t 1、 Por t 2、 Por t 3、 Por t 4、 Por t 5 , 其中 Por t l、 Por t 2、 Por t 3与其他的交换机相连, 那么控制器就可 以判定交换机的 Por t 4和 Por t 5为连接主机的端口。  For example, the port opened by the switch in Figure 8 has ports Por t 1, Por t 2, Por t 3, Por t 4, Por t 5 , where Por tl, Por t 2, Por t 3 are connected to other switches, then control It is possible to determine that the switch's Por t 4 and Por t 5 are the ports connected to the host.
102、 控制器配置所述与主机连接的交换机为第 1层交换机。  102. The controller configures the switch connected to the host to be a layer 1 switch.
103、 控制器获取网络中未分层的交换机, 并将所述未分层的交换机 中, 与第 N层交换机直接连接的交换机配置为第 N+1层交换机。  103. The controller acquires an unlayered switch in the network, and configures, in the unlayered switch, a switch directly connected to the layer N switch as an Nth layer switch.
其中, N为交换机所在的层数, 所述 N为正整数。  Where N is the number of layers in which the switch is located, and the N is a positive integer.
具体地, 控制器配置含有连接主机端口的交换机为第 1层交换机。 同 样地, 未分层的交换机中, 控制器配置与第 1层交换机直接相连的交换机 为第 2层交换机; 依次类推, 在未分层的交换机中与 N-1层交换机直接相连 的为第 N层交换机。 依照此规则, 则可将网络中所有的交换机进行分类。 Specifically, the controller configures the switch that contains the host port as the layer 1 switch. Same In the example, in the unlayered switch, the controller is directly connected to the switch of the layer 1 switch as the layer 2 switch; and so on, in the unlayered switch, the N is directly connected to the N-1 layer switch. Layer switch. According to this rule, all switches in the network can be classified.
对于本实施例提供的拓朴分级方法, 具体的数据结构可以如下所示: <key, value> = ( layer i, value ), i = l, 2,…… N。 贝' J第 1层交换机存储 为: Key=layer 1; Va lue=<Sw ID, Ports to hosts, last seen Time>; 与 第 1层交换机直接相连的为第 2层交换机,存储为: Key=layer2; Value= <Sw ID, Links to layerl, last seen Time>。 连接第(N_l)层交换机的第 N 层交换机存储为: Key=layer N; Value= <SwID, Links to layer (N-1) , last seen Time>。 依次类推, 直到将所有的交换归类完成。 当网络中主机的增 加 /删除、 和 /或交换机的增加或 /删除、 和 /或链路的增加 /删除引起交换 机位置的变化时, 更新第 1层交换机的数据结构; 更新与该交换机相连的 其他交换机的位置; 以此类推, 直到所有的交换机都更新完毕。  For the topology grading method provided in this embodiment, the specific data structure may be as follows: <key, value> = (layer i, value), i = l, 2, ... N. The shell's Layer 1 switch is stored as: Key=layer 1; Va lue=<Sw ID, Ports to hosts, last seen Time>; The Layer 2 switch directly connected to the Layer 1 switch is stored as: Key= Layer2; Value= <Sw ID, Links to layerl, last seen Time>. The Nth layer switch connected to the (N_1)th layer switch is stored as: Key=layer N; Value= <SwID, Links to layer (N-1) , last seen Time>. And so on, until all the exchanges are categorized. Updating the data structure of the layer 1 switch when the addition/deletion of the host in the network, and/or the addition or deletion of the switch, and/or the addition/deletion of the link cause a change in the location of the switch; updating the connection to the switch The location of other switches; and so on, until all switches are updated.
进一步地, 步骤 103之后还可以包括: 当所述控制器接收到与源主机 连接的交换机上报的数据包时, 所述控制器在本地的设备物理地址 MAC地 址表中检索是否存在所述数据包的目的地址;若不存在所述数据包的目的 地址, 所述控制器根据拓朴分级获取目的端口, 所述目的端口为与目标主 机连接的交换机的端口, 所述目标主机为不同于所述源主机外的其它主 机; 所述控制器将所述目的端口作为目的地址, 生成路由表, 并将所述路 由表发送给所述与源主机连接的交换机,以使得所述与源主机连接的交换 机根据所述路由表转发所述数据包。  Further, after the step 103, the method may further include: when the controller receives the data packet reported by the switch connected to the source host, the controller searches whether the data packet exists in the local device physical address MAC address table. If the destination address of the data packet does not exist, the controller obtains the destination port according to the topology, and the destination port is a port of the switch connected to the target host, where the target host is different from the a host other than the source host; the controller uses the destination port as a destination address, generates a routing table, and sends the routing table to the switch connected to the source host, so that the source host is connected The switch forwards the data packet according to the routing table.
本实施例提供的网络中的交换机拓朴结构可以如图 7所示, 而现有网 络中的交换机拓朴结构可以如图 8所示,从图中可以看出现有拓朴结构中, 对网络中的交换机没有任何的区分,而本实施例提供的拓朴分级方法可以 对网络中的交换机进行分层, 即可以按层次对网络中的交换机进行区分, 以使得控制器可以控制交换机有目的地转发数据包, 有效地抑制了洪泛, 消除了数据包在网络中的重复广播, 增加了链路的可用率。 The topology of the switch in the network provided in this embodiment can be as shown in FIG. 7, and the topology of the switch in the existing network can be as shown in FIG. 8. It can be seen from the figure that the existing topology is in the network. The switch in the present embodiment does not have any distinction, and the topology grading method provided in this embodiment can layer the switches in the network, that is, the switches in the network can be distinguished hierarchically, so that the controller can control the switch to have a destination. Forwarding packets, effectively suppressing flooding, Eliminates the repeated broadcast of packets in the network, increasing the availability of the link.
本实施例提供一种拓朴分级装置, 如图 2所示, 所述装置的实体可以 为控制器, 所述装置可以包括: 第一获取单元 21、 配置单元 22。  The present embodiment provides a topology grading device. As shown in FIG. 2, the entity of the device may be a controller, and the device may include: a first acquiring unit 21 and a configuration unit 22.
第一获取单元 21, 可以用于根据网络中交换机的拓朴信息, 获取与主 机连接的交换机。  The first obtaining unit 21 may be configured to obtain a switch connected to the host according to the topology information of the switch in the network.
第一获取单元 21具体可以包括:  The first obtaining unit 21 may specifically include:
获取模块 2101, 可以用于根据网络中交换机的拓朴信息, 获取交换机 开启的端口。  The obtaining module 2101 is configured to obtain, according to the topology information of the switch in the network, a port that is opened by the switch.
判断模块 2102 ,可以用于判断所述获取模块 2101获取的交换机开启的 端口中是否存在与主机连接的端口。  The determining module 2102 is configured to determine whether a port connected to the host exists in the port opened by the switch acquired by the obtaining module 2101.
确认模块 2103,可以用于若所述判断模块 2102判断所述交换机开启的 端口中存在与主机连接的端口,确认所述交换机为所述与主机连接的交换 机。  The confirmation module 2103 may be configured to: if the determining module 2102 determines that a port connected to the host exists in the port opened by the switch, confirm that the switch is the switch connected to the host.
配置单元 22,可以用于配置所述第一获取单元 21获取的与主机连接的 交换机为第 1层交换机。  The configuration unit 22 is configured to configure the switch connected to the host acquired by the first obtaining unit 21 to be a layer 1 switch.
第一获取单元 21, 还可以用于获取网络中未分层的交换机。  The first obtaining unit 21 can also be used to acquire an unlayered switch in the network.
配置单元 22,还可以用于将所述第一获取单元 21获取的未分层的交换 机中, 与第 N层交换机直接连接的交换机配置为第 N+1层交换机, 所述 N为 交换机所在的层数, 所述 N为正整数。  The configuration unit 22 is further configured to configure, in the unlayered switch acquired by the first acquiring unit 21, a switch directly connected to the layer N switch as an N+1th layer switch, where the N is a switch The number of layers, the N being a positive integer.
进一步地, 所述装置还可以包括:  Further, the device may further include:
检索单元 23 ,可以用于当接收到与源主机连接的交换机上报的数据包 时, 在本地的设备物理地址 MAC地址表中检索是否存在所述数据包的目的 地址。  The retrieving unit 23 can be configured to retrieve, in the local device physical address MAC address table, whether the destination address of the data packet exists when receiving the data packet reported by the switch connected to the source host.
第二获取单元 24,可以用于若所述检索单元 23检索到不存在所述数据 包的目的地址, 获取目的端口, 所述目的端口为与目标主机连接的交换机 的端口, 所述目标主机为不同于所述源主机外的其它主机。 第二获取单元 24 , 具体可以用于根据所述拓朴分级, 获取所述与所述 目标主机连接的交换机开启的端口中,未与其他交换机连接的端口作为所 述目的端口。 The second obtaining unit 24 may be configured to: if the searching unit 23 retrieves a destination address where the data packet does not exist, obtain a destination port, where the destination port is a port of a switch connected to the target host, where the target host is Different from other hosts outside the source host. The second obtaining unit 24 is specifically configured to obtain, according to the topology classification, a port that is not connected to another switch, and the port that is connected to the switch connected to the target host, as the destination port.
生成单元 25 ,可以用于将所述第二获取单元 24获取的目的端口作为目 的地址,生成路由表,并将所述路由表发送给所述与源主机连接的交换机, 以使得所述与源主机连接的交换机根据所述路由表转发所述数据包。  The generating unit 25 may be configured to use the destination port obtained by the second obtaining unit 24 as a destination address, generate a routing table, and send the routing table to the switch connected to the source host, so that the source and the source The switch connected by the host forwards the data packet according to the routing table.
需要说明的是,本实施例提供的拓朴分级装置所涉及各功能单元的其 他相应描述, 可以参考图 1中对应的描述, 本实施例此处将不再赘述。  It should be noted that, for the corresponding descriptions of the functional units involved in the topology grading apparatus provided in this embodiment, reference may be made to the corresponding description in FIG. 1 , and details are not described herein again.
本实施例提供的拓朴分级装置, 通过对网络中的交换机进行分层, 即 可以按层次对网络中的交换机进行区分,以使得控制器可以控制交换机有 目的地转发数据包, 有效地抑制了洪泛, 消除了数据包在网络中的重复广 播, 增加了链路的可用率。  The topology grading device provided in this embodiment can hierarchically switch the switches in the network by hierarchically arranging the switches in the network, so that the controller can control the switch to forward the data packets in a targeted manner, thereby effectively suppressing. Flooding eliminates duplicate broadcasts of packets in the network, increasing the availability of links.
本实施例提供一种洪泛的处理方法, 如图 3所示, 所述方法包括: 301、 控制器接收与源主机连接的交换机上报的数据包。  This embodiment provides a flooding processing method. As shown in FIG. 3, the method includes: 301. A controller receives a data packet reported by a switch connected to a source host.
其中, 所述数据包为地址解析协议 APR请求、 和 /或未知单播帧、 和 / 或动态主机配置协议 DHCP数据。 本实施例交换机分类的规则是基于图 1中 提供的拓朴分级方法。  The data packet is an address resolution protocol APR request, and/or an unknown unicast frame, and/or a dynamic host configuration protocol DHCP data. The rules for classifying switches in this embodiment are based on the topology ranking method provided in FIG.
302、控制器在本地的设备物理地址 MAC地址表中检索是否存在所述数 据包的目的地址。  302. The controller searches, in the local device physical address MAC address table, whether the destination address of the data packet exists.
可选地, 若存在所述数据包的目的地址, 根据目的地址将所述数据包 转发出去。  Optionally, if the destination address of the data packet exists, the data packet is forwarded according to the destination address.
303、 若不存在所述数据包的目的地址, 所述控制器获取目的端口。 其中, 所述目的端口为与目标主机连接的交换机的端口, 所述目标主 机为不同于所述源主机外的其它主机, 目标主机可以为一个或多个。  303. If the destination address of the data packet does not exist, the controller acquires a destination port. The destination port is a port of a switch connected to the target host, and the target host is a host other than the source host, and the target host may be one or more.
具体地, 所述控制器对网络中的交换机进行拓朴分级, 然后根据所述 拓朴分级, 获取所述与所述目标主机连接的交换机开启的端口中, 未与其 他交换机连接的端口作为所述目的端口。 Specifically, the controller performs topology classification on the switch in the network, and then obtains, according to the topology classification, the port opened by the switch connected to the target host, not The port to which his switch is connected serves as the destination port.
可选地, 当所述数据包为地址解析协议 APR请求时, 步骤 303之前还可 以包括: 若本地 MAC地址表中存在所述 APR请求的目的地址时, 所述控制器 直接回复所述源主机发送的所述 APR请求。 步骤 303之后还可以包括: 从所 述目的端口中选择连接的主机信息未知的端口,并将所述连接的主机信息 未知的端口作为目的地址, 从而可以有效地收敛 ARP的单播数据包, 减少 了网络中不必要的数据包。  Optionally, when the data packet is an address resolution protocol (APR) request, the step 303 may further include: if the destination address of the APR request exists in the local MAC address table, the controller directly replies to the source host The APR request sent. After the step 303, the method further includes: selecting, from the destination port, a port whose host information is unknown, and using the port whose host information is unknown as the destination address, so as to effectively converge the ARP unicast data packet, thereby reducing Unnecessary data packets in the network.
例如, 首先主机 l p i ng (可执行命令) 主机 9 , 此时通过控制器决策, 主机 1发出的 ARP请求会单播到主机 4, 主机 6, 主机 9 ; 接着主机 l p i ng主 机 6 , 此时通过控制器决策, 主机 1发出的 ARP请求会单播到主机 4 , 主机 6 ; 再接着主机 1 p i ng主机 4 , 那此时主机 1发出的 ARP请求只单播到主机 4 , 从 而可以有效地收敛 ARP的单播数据包, 减少了网络中不必要的数据包。 在 此之后, 由于控制器已经知道所有主机的信息, 当再有 p i ng的时候, 控制 器都可以直接进行 ARP请求回复, 具体地, 控制器会向发起请求的主机发 送目的主机的 MAC地址。  For example, first host lpi ng (executable command) host 9, at this time through the controller decision, the ARP request sent by host 1 will be unicast to host 4, host 6, host 9; then host lpi ng host 6, at this time The controller decides that the ARP request sent by the host 1 will be unicast to the host 4, the host 6; then the host 1 pi ng the host 4, then the ARP request sent by the host 1 is only unicast to the host 4, so that it can effectively converge ARP unicast packets reduce unnecessary packets on the network. After that, since the controller already knows the information of all the hosts, when there is another p i ng, the controller can directly reply to the ARP request. Specifically, the controller sends the MAC address of the destination host to the host that initiated the request.
304、 控制器将所述目的端口作为目的地址, 生成路由表, 并将所述 路由表发送给所述与源主机连接的交换机。  304. The controller uses the destination port as a destination address, generates a routing table, and sends the routing table to the switch connected to the source host.
进一步地,以使得所述与源主机连接的交换机根据所述路由表转发所 述数据包。  Further, the switch that is connected to the source host forwards the data packet according to the routing table.
本实施例提供的方法, 通过控制器对网络中交换机位置进行拓朴分 级, 在交换机上报的数据包在本地的 MAC地址表中找不到其目的地址时, 为交换机配置路由表,使得交换机将数据包只转发给与目标主机连接的交 换机的端口, 有效地抑制了洪泛, 消除了数据包在网络中的重复广播, 增 加了链路的可用率。  The method provided in this embodiment is to perform topology classification on the switch in the network by the controller. When the data packet reported by the switch cannot find the destination address in the local MAC address table, configure a routing table for the switch, so that the switch will The data packet is only forwarded to the port of the switch connected to the target host, which effectively suppresses flooding, eliminates duplicate broadcast of data packets in the network, and increases the availability of the link.
本实施例提供一种洪泛的处理装置, 如图 4所示, 所述装置可以包括: 接收单元 41、 检索单元 42、 获取单元 43、 发送单元 44。 接收单元 41 , 可以用于接收与源主机连接的交换机上报的数据包。 其中, 所述数据包为地址解析协议 APR请求、 和 /或未知单播帧、 和 / 或动态主机配置协议 DHCP数据。 The embodiment provides a flooding processing device. As shown in FIG. 4, the device may include: a receiving unit 41, a retrieving unit 42, an obtaining unit 43, and a sending unit 44. The receiving unit 41 is configured to receive a data packet reported by the switch connected to the source host. The data packet is an address resolution protocol APR request, and/or an unknown unicast frame, and/or a dynamic host configuration protocol DHCP data.
检索单元 42 , 可以用于在本地的设备物理地址 MAC地址表中检索是否 存在所述接收单元 41接收的数据包的目的地址。  The retrieval unit 42 can be configured to retrieve, in the local device physical address MAC address table, whether the destination address of the data packet received by the receiving unit 41 exists.
获取单元 43 , 可以用于检索单元 42检索所述 MAC表中不存在所述数据 包的目的地址后, 获取目的端口。  The obtaining unit 43 may be used by the searching unit 42 to retrieve the destination address of the data packet in the MAC table, and obtain the destination port.
其中, 所述目的端口为与目标主机连接的交换机的端口, 所述目标主 机为不同于所述源主机外的其它主机。  The destination port is a port of a switch connected to the target host, and the target host is a host other than the source host.
获取单元 43具体可以包括:  The obtaining unit 43 may specifically include:
分级模块 4301 , 可以用于对网络中的交换机进行拓朴分级。  The grading module 4301 can be used to perform topology grading on switches in the network.
获取模块 4302 , 可以用于根据所述分级模块进行的拓朴分级, 获取所 述与所述目标主机连接的交换机开启的端口中,未与其他交换机连接的端 口作为所述目的端口。  The obtaining module 4302 may be configured to obtain, according to the topology classification performed by the grading module, a port that is not connected to another switch, and a port that is not connected to the switch, which is connected to the target host, is used as the destination port.
发送单元 44 ,可以用于将所述获取单元 43获取的目的端口作为目的地 址, 生成路由表, 并将所述路由表发送给所述与源主机连接的交换机。  The sending unit 44 may be configured to use the destination port obtained by the obtaining unit 43 as a destination address, generate a routing table, and send the routing table to the switch connected to the source host.
进一步地,以使得所述与源主机连接的交换机根据所述路由表转发所 述数据包。  Further, the switch that is connected to the source host forwards the data packet according to the routing table.
所述装置还可以包括:  The device may further include:
选择单元 45 ,可以用于从所述获取单元 43获取的目的端口中选择连接 的主机信息未知的端口,并将所述连接的主机信息未知的端口作为目的地 址。  The selecting unit 45 is configured to select, from the destination port acquired by the obtaining unit 43, a port whose connection with the host information is unknown, and use the port whose connection host information is unknown as the destination address.
回复单元 46 ,用于若所述本地 MAC地址表中存在所述 APR请求的目的地 址时, 直接回复所述接收单元 41接收的源主机发送的所述 APR请求。  The replying unit 46 is configured to directly reply to the APR request sent by the source host received by the receiving unit 41 if the destination address of the APR request exists in the local MAC address table.
本实施例提供的一种洪泛的处理装置的实体可以为控制器,所述控制 器可以部署在包括但不限于服务器设备上, 如图 5所示, 所述控制器包括: 接收器 51、 处理器 52、 发送器 5 3。 The entity of the flooding processing device provided in this embodiment may be a controller, and the controller may be deployed on a server device, including but not limited to a server device. As shown in FIG. 5, the controller includes: Receiver 51, processor 52, and transmitter 53.
接收器 51 , 可以用于接收与源主机连接的交换机上报的数据包。  The receiver 51 can be configured to receive a data packet reported by a switch connected to the source host.
处理器 52 , 可以用于在本地的设备物理地址 MAC地址表中检索是否存 在所述接收器 51接收的数据包的目的地址。  The processor 52 can be configured to retrieve, in the local device physical address MAC address table, whether the destination address of the data packet received by the receiver 51 exists.
处理器 52 , 还可以用于 MAC表中不存在所述数据包的目的地址后, 获 取目的端口, 所述目的端口为与目标主机连接的交换机的端口, 所述目标 主机为不同于所述源主机外的其它主机。  The processor 52 is further configured to obtain a destination port after the destination address of the data packet does not exist in the MAC table, where the destination port is a port of a switch connected to the target host, where the target host is different from the source Other hosts outside the host.
发送器 5 3 , 用于将所述处理器 52获取的目的端口作为目的地址, 生成 路由表, 并将所述路由表发送给所述与源主机连接的交换机, 以使得所述 与源主机连接的交换机根据所述路由表转发所述数据包。  a transmitter 5 3, configured to use the destination port obtained by the processor 52 as a destination address, generate a routing table, and send the routing table to the switch connected to the source host, so that the source host is connected The switch forwards the data packet according to the routing table.
处理器 52 , 具体可以用于对网络中的交换机进行拓朴分级, 然后根据 所述分级模块进行的拓朴分级,获取所述与所述目标主机连接的交换机开 启的端口中, 未与其他交换机连接的端口作为所述目的端口。  The processor 52 is specifically configured to perform topology grading on the switch in the network, and then obtain, according to the topology grading performed by the grading module, the port opened by the switch connected to the target host, and not connected to another switch. The connected port acts as the destination port.
处理器 52 ,具体还可以用于从目的端口中选择连接的主机信息未知的 端口, 并将所述连接的主机信息未知的端口作为目的地址。  The processor 52 may be further configured to select, from the destination port, a port whose connection with the host information is unknown, and use the port whose connection host information is unknown as the destination address.
处理器 52 ,具体还可以用于若所述本地 MAC地址表中存在所述 APR请求 的目的地址时,直接回复所述接收器 31接收的源主机发送的所述 APR请求。  The processor 52 may be further configured to directly reply to the APR request sent by the source host received by the receiver 31 if the destination address of the APR request exists in the local MAC address table.
需要说明的是,本实施例提供的洪泛的处理装置和控制器所涉及各功 能单元的其他相应描述, 可以参考图 3中对应的描述, 本实施例此处将不 再赘述。  It should be noted that other corresponding descriptions of the various functional units involved in the flooding processing apparatus and the controller provided in this embodiment may refer to the corresponding description in FIG. 3, which will not be further described herein.
本实施例提供的装置, 通过控制器对网络中交换机位置进行拓朴分 级, 在交换机上报的数据包在本地的 MAC地址表中找不到其目的地址时, 为交换机配置路由表,使得交换机将数据包只转发给与目标主机连接的交 换机的端口, 有效地抑制了洪泛, 消除了数据包在网络中的重复广播, 增 加了链路的可用率。  The device provided in this embodiment performs topology classification on the switch in the network by the controller. When the data packet reported by the switch cannot find the destination address in the local MAC address table, the routing table is configured for the switch, so that the switch will The data packet is only forwarded to the port of the switch connected to the target host, which effectively suppresses flooding, eliminates duplicate broadcast of data packets in the network, and increases the availability of the link.
本发明实施例提供的拓朴分级装置和洪泛的处理装置可以实现上述 提供的方法实施例, 具体功能实现请参见方法实施例中的说明, 在此不再 赘述。 本发明实施例提供的拓朴分级方法、 装置及洪泛的处理方法、 装置 可以适用于通信系统领域, 但不仅限于此。 The topology grading device and the flooding processing device provided by the embodiments of the present invention can implement the above For the implementation of the method, refer to the description in the method embodiment, and details are not described herein again. The topology grading method, apparatus, and flood processing method and apparatus provided by the embodiments of the present invention may be applied to the field of communication systems, but are not limited thereto.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分 流程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存 储于一计算机可读取存储介质中, 该程序在执行时, 可包括如上述各方法 的实施例的流程。 其中, 所述的存储介质可为磁碟、 光盘、 只读存储记忆 体 ( Read-Only Memory , ROM ) 或随机存^ ^己忆体 ( Random Access Memory , RAM ) 等。  A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. In execution, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局 限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可 轻易想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发 明的保护范围应该以权利要求的保护范围为准。  The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any change or replacement that can be easily conceived by those skilled in the art within the technical scope of the present invention is All should be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

权 利 要 求 书 claims
1、 一种洪泛的处理方法, 其特征在于, 包括: 1. A flood treatment method, characterized by including:
控制器接收与源主机连接的交换机上报的数据包; The controller receives data packets reported by the switch connected to the source host;
所述控制器在本地的设备物理地址 MAC地址表中检索是否存在所述数 据包的目的地址; The controller searches the local device physical address MAC address table to see whether the destination address of the data packet exists;
若不存在所述数据包的目的地址, 所述控制器获取目的端口, 所述目 的端口为与目标主机连接的交换机的端口, 所述目标主机为不同于所述源 主机外的其它主机; If the destination address of the data packet does not exist, the controller obtains the destination port. The destination port is the port of the switch connected to the target host, and the target host is a host other than the source host;
所述控制器将所述目的端口作为目的地址, 生成路由表, 并将所述路 由表发送给所述与源主机连接的交换机, 以使得所述与源主机连接的交换 机根据所述路由表转发所述数据包。 The controller uses the destination port as the destination address, generates a routing table, and sends the routing table to the switch connected to the source host, so that the switch connected to the source host forwards according to the routing table the data packet.
2、 根据权利要求 1所述的洪泛的处理方法, 其特征在于, 若不存在所 述数据包的目的地址, 所述控制器获取目的端口包括: 2. The flooding processing method according to claim 1, characterized in that, if the destination address of the data packet does not exist, the controller obtaining the destination port includes:
所述控制器对网络中的交换机进行拓朴分级; The controller performs topology classification on the switches in the network;
所述控制器根据所述拓朴分级, 获取所述与所述目标主机连接的交换 机开启的端口中, 未与其他交换机连接的端口作为所述目的端口。 According to the topology classification, the controller obtains, among the ports opened by the switch connected to the target host, the ports that are not connected to other switches as the destination port.
3、 根据权利要求 1或 2所述的洪泛的处理方法, 其特征在于, 所述数据 包为地址解析协议 APR请求、 和 /或未知单播帧、 和 /或动态主机配置协议 DHCP数据。 3. The flooding processing method according to claim 1 or 2, characterized in that the data packet is an Address Resolution Protocol APR request, and/or an unknown unicast frame, and/or a Dynamic Host Configuration Protocol DHCP data.
4、 根据权利要求 1 - 3任一项所述的洪泛的处理方法, 其特征在于, 当 所述数据包为地址解析协议 APR请求时, 若不存在所述数据包的目的地址, 所述控制器获取目的端口之后还包括: 4. The flooding processing method according to any one of claims 1 to 3, characterized in that when the data packet is an address resolution protocol APR request, if the destination address of the data packet does not exist, the After the controller obtains the destination port, it also includes:
所述控制器从所述目的端口中选择连接的主机信息未知的端口, 并将 所述连接的主机信息未知的端口作为目的地址。 The controller selects a port whose connected host information is unknown from the destination port, and uses the connected port whose host information is unknown as a destination address.
5、 根据权利要求 1 -4任一项所述的洪泛的处理方法, 其特征在于, 当 所述数据包为地址解析协议 APR请求时, 若不存在所述数据包的目的地址, 所述控制器获取目的端口之前还包括: 5. The flooding processing method according to any one of claims 1 to 4, characterized in that when the data packet is an address resolution protocol APR request, if the destination address of the data packet does not exist, Before the controller obtains the destination port, it also includes:
若所述本地 MAC地址表中存在所述 APR请求的目的地址时, 所述控制器 直接回复所述源主机发送的所述 APR请求。 If the destination address of the APR request exists in the local MAC address table, the controller directly replies to the APR request sent by the source host.
6、 一种拓朴分级方法, 其特征在于, 包括: 6. A topological classification method, characterized by including:
控制器根据网络中交换机的拓朴信息, 获取与主机连接的交换机; 所述控制器配置所述与主机连接的交换机为第 1层交换机; The controller obtains the switch connected to the host according to the topology information of the switch in the network; the controller configures the switch connected to the host to be a layer 1 switch;
所述控制器获取网络中未分层的交换机,并将所述未分层的交换机中, 与第 N层交换机直接连接的交换机配置为第 N+ 1层交换机,所述 N为交换机所 在的层数, 所述 N为正整数。 The controller obtains the unstratified switches in the network, and configures the switch directly connected to the Nth layer switch among the unlayered switches as the N+1th layer switch, where N is the number of layers where the switch is located. , the N is a positive integer.
7、 根据权利要求 6所述的拓朴分级方法, 其特征在于, 所述控制器根 据网络中交换机的拓朴信息, 获取与主机连接的交换机包括: 7. The topology classification method according to claim 6, characterized in that, according to the topology information of the switches in the network, the controller obtains the switches connected to the host including:
所述控制器根据所述网络中交换机的拓朴信息, 获取交换机开启的端 口; The controller obtains the ports opened by the switch based on the topology information of the switch in the network;
所述控制器判断所述交换机开启的端口中是否存在与主机连接的端 口; The controller determines whether there is a port connected to the host among the ports opened by the switch;
若所述交换机开启的端口中存在与主机连接的端口, 所述控制器确认 所述交换机为所述与主机连接的交换机。 If there is a port connected to the host among the ports opened by the switch, the controller confirms that the switch is the switch connected to the host.
8、 根据权利要求 6所述的拓朴分级方法, 其特征在于, 所述控制器获 取网络中未分层的交换机, 并将所述未分层的交换机中, 与第 N层交换机直 接连接的交换机配置为第 N+ 1层交换机之后还包括: 8. The topology classification method according to claim 6, characterized in that the controller obtains the unlayered switches in the network and selects the switches directly connected to the Nth layer switch among the unlayered switches. After the switch is configured as an N+1 layer switch, it also includes:
当所述控制器接收到与源主机连接的交换机上报的数据包时, 所述控 制器在本地的设备物理地址 MAC地址表中检索是否存在所述数据包的目的 地址; When the controller receives the data packet reported by the switch connected to the source host, the controller searches the local device physical address MAC address table to see whether the destination address of the data packet exists;
若不存在所述数据包的目的地址, 所述控制器获取目的端口, 所述目 的端口为与目标主机连接的交换机的端口, 所述目标主机为不同于所述源 主机外的其它主机; 所述控制器将所述目的端口作为目的地址, 生成路由表, 并将所述路 由表发送给所述与源主机连接的交换机, 以使得所述与源主机连接的交换 机根据所述路由表转发所述数据包。 If the destination address of the data packet does not exist, the controller obtains the destination port, where the destination port is a port of the switch connected to the target host, and the target host is a host other than the source host; The controller uses the destination port as the destination address, generates a routing table, and sends the routing table to the switch connected to the source host, so that the switch connected to the source host forwards according to the routing table the data packet.
9、 根据权利要求 8所述的拓朴分级方法, 其特征在于, 若不存在所述 数据包的目的地址, 所述控制器获取目的端口包括: 9. The topology classification method according to claim 8, wherein if the destination address of the data packet does not exist, the controller obtaining the destination port includes:
所述控制器根据拓朴分级, 获取所述与所述目标主机连接的交换机开 启的端口中, 未与其他交换机连接的端口作为所述目的端口。 According to the topology classification, the controller obtains the ports opened by the switch connected to the target host and the ports that are not connected to other switches as the destination ports.
1 0、 一种洪泛的处理装置, 其特征在于, 包括: 10. A flood treatment device, characterized by including:
接收单元, 用于接收与源主机连接的交换机上报的数据包; The receiving unit is used to receive data packets reported by the switch connected to the source host;
检索单元,用于在本地的设备物理地址 MAC地址表中检索是否存在所述 接收单元接收的数据包的目的地址; A retrieval unit, used to search in the local device physical address MAC address table whether there is a destination address of the data packet received by the receiving unit;
获取单元,用于检索单元检索所述 MAC表中不存在所述数据包的目的地 址后, 获取目的端口, 所述目的端口为与目标主机连接的交换机的端口, 所述目标主机为不同于所述源主机外的其它主机; The acquisition unit is used to obtain the destination port after the retrieval unit retrieves the destination address of the data packet that does not exist in the MAC table. The destination port is the port of the switch connected to the target host. The target host is different from the destination address. Hosts other than the source host;
发送单元, 用于将所述获取单元获取的目的端口作为目的地址, 生成 路由表, 并将所述路由表发送给所述与源主机连接的交换机, 以使得所述 与源主机连接的交换机根据所述路由表转发所述数据包。 A sending unit, configured to use the destination port obtained by the acquisition unit as the destination address, generate a routing table, and send the routing table to the switch connected to the source host, so that the switch connected to the source host can The routing table forwards the data packet.
1 1、 根据权利要求 1 0所述的洪泛的处理装置, 其特征在于, 所述获取 单元包括: 11. The flood processing device according to claim 10, characterized in that the acquisition unit includes:
分级模块, 用于对网络中的交换机进行拓朴分级; Classification module, used for topological classification of switches in the network;
获取模块, 用于根据所述分级模块进行的拓朴分级, 获取所述与所述 目标主机连接的交换机开启的端口中, 未与其他交换机连接的端口作为所 述目的端口。 The acquisition module is configured to obtain, among the ports opened by the switch connected to the target host, the ports that are not connected to other switches as the destination ports according to the topology classification performed by the classification module.
1 2、 根据权利要求 1 0或 1 1所述的洪泛的处理装置, 其特征在于, 所述 数据包为地址解析协议 APR请求、 和 /或未知单播帧、 和 /或动态主机配置协 议 DHCP数据。 12. The flooding processing device according to claim 10 or 11, characterized in that the data packet is an address resolution protocol APR request, and/or an unknown unicast frame, and/or a dynamic host configuration protocol DHCP data.
1 3、 根据权利要求 1 0-1 2任一项所述的洪泛的处理装置, 其特征在于, 当所述数据包为 APR请求时, 所述装置还包括: 13. The flooding processing device according to any one of claims 10 to 12, characterized in that, when the data packet is an APR request, the device further includes:
选择单元, 用于从所述获取单元获取的目的端口中选择连接的主机信 息未知的端口, 并将所述连接的主机信息未知的端口作为目的地址。 A selection unit, configured to select a port for which the connected host information is unknown from the destination ports obtained by the acquisition unit, and use the connected port for which the host information is unknown as the destination address.
1 4、 根据权利要求 1 0-1 3任一项所述的洪泛的处理装置, 其特征在于, 当所述数据包为 APR请求时, 所述装置还包括: 14. The flooding processing device according to any one of claims 10-13, characterized in that, when the data packet is an APR request, the device further includes:
回复单元, 用于若所述本地 MAC地址表中存在所述 APR请求的目的地址 时, 直接回复所述接收单元接收的源主机发送的所述 APR请求。 A reply unit, configured to directly reply to the APR request sent by the source host received by the receiving unit if the destination address of the APR request exists in the local MAC address table.
1 5、 一种拓朴分级装置, 其特征在于, 包括: 15. A topology classification device, characterized in that it includes:
第一获取单元, 用于根据网络中交换机的拓朴信息, 获取与主机连接 的交换机; The first acquisition unit is used to acquire the switch connected to the host based on the topology information of the switch in the network;
配置单元, 用于配置所述第一获取单元获取的与主机连接的交换机为 第 1层交换机; A configuration unit configured to configure the switch connected to the host obtained by the first acquisition unit to be a layer 1 switch;
所述第一获取单元, 还用于获取网络中未分层的交换机; The first acquisition unit is also used to acquire unlayered switches in the network;
所述配置单元,还用于将所述第一获取单元获取的未分层的交换机中, 与第 N层交换机直接连接的交换机配置为第 N+1层交换机,所述 N为交换机所 在的层数, 所述 N为正整数。 The configuration unit is also used to configure the switch directly connected to the Nth layer switch among the unlayered switches obtained by the first acquisition unit as the N+1th layer switch, where N is the layer where the switch is located. Number, the N is a positive integer.
1 6、 根据权利要求 1 5所述的拓朴分级装置, 其特征在于, 所述第一获 取单元包括: 16. The topology classification device according to claim 15, characterized in that the first acquisition unit includes:
获取模块, 用于根据网络中交换机的拓朴信息, 获取交换机开启的端 口; The acquisition module is used to obtain the ports opened by the switch based on the topology information of the switch in the network;
判断模块, 用于判断所述获取模块获取的交换机开启的端口中是否存 在与主机连接的端口; A judgment module, used to judge whether there is a port connected to the host among the ports opened by the switch obtained by the acquisition module;
确认模块, 用于若所述判断模块判断所述交换机开启的端口中存在与 主机连接的端口, 确认所述交换机为所述与主机连接的交换机。 A confirmation module, configured to confirm that the switch is the switch connected to the host if the judgment module determines that among the ports opened by the switch, there is a port connected to the host.
1 7、 根据权利要求 1 5所述的拓朴分级装置, 其特征在于, 所述装置还 包括: 17. The topology classification device according to claim 15, characterized in that, the device further include:
检索单元, 用于当接收到与源主机连接的交换机上报的数据包时, 在 本地的设备物理地址 MAC地址表中检索是否存在所述数据包的目的地址; 第二获取单元, 用于若所述检索单元检索到不存在所述数据包的目的 地址, 获取目的端口, 所述目的端口为与目标主机连接的交换机的端口, 所述目标主机为不同于所述源主机外的其它主机; The retrieval unit is configured to, when receiving the data packet reported by the switch connected to the source host, search whether the destination address of the data packet exists in the local device physical address MAC address table; the second acquisition unit is used to search if the destination address of the data packet exists. The retrieval unit retrieves the destination address of the data packet that does not exist, and obtains the destination port. The destination port is a port of the switch connected to the target host, and the target host is a host other than the source host;
生成单元, 用于将所述第二获取单元获取的目的端口作为目的地址, 生成路由表, 并将所述路由表发送给所述与源主机连接的交换机, 以使得 所述与源主机连接的交换机根据所述路由表转发所述数据包。 A generating unit, configured to use the destination port obtained by the second obtaining unit as the destination address, generate a routing table, and send the routing table to the switch connected to the source host, so that the switch connected to the source host The switch forwards the data packet according to the routing table.
1 8、 根据权利要求 1 7所述的拓朴分级装置, 其特征在于, 所述第二获取单元, 具体用于根据拓朴分级, 获取所述与所述目标主 机连接的交换机开启的端口中, 未与其他交换机连接的端口作为所述目的 端口。 18. The topology classification device according to claim 17, characterized in that the second acquisition unit is specifically configured to obtain the ports opened by the switch connected to the target host according to the topology classification. , the port that is not connected to other switches is used as the destination port.
PCT/CN2013/073481 2012-11-08 2013-03-29 Topology grading method and apparatus, and flooding processing method and apparatus WO2014071718A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP13852964.9A EP2863595B1 (en) 2012-11-08 2013-03-29 Topology stratification and flooding processing method and apparatus
US14/661,374 US9722924B2 (en) 2012-11-08 2015-03-18 Topology stratification method and apparatus, and flooding processing method and apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210444069.4 2012-11-08
CN201210444069.4A CN103812779B (en) 2012-11-08 2012-11-08 The processing method of flooding, device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/661,374 Continuation US9722924B2 (en) 2012-11-08 2015-03-18 Topology stratification method and apparatus, and flooding processing method and apparatus

Publications (1)

Publication Number Publication Date
WO2014071718A1 true WO2014071718A1 (en) 2014-05-15

Family

ID=50684000

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/073481 WO2014071718A1 (en) 2012-11-08 2013-03-29 Topology grading method and apparatus, and flooding processing method and apparatus

Country Status (4)

Country Link
US (1) US9722924B2 (en)
EP (1) EP2863595B1 (en)
CN (1) CN103812779B (en)
WO (1) WO2014071718A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9426060B2 (en) 2013-08-07 2016-08-23 International Business Machines Corporation Software defined network (SDN) switch clusters having layer-3 distributed router functionality
WO2016029945A1 (en) * 2014-08-28 2016-03-03 Huawei Technologies Co.,Ltd Method and controller for routing data packets in a software defined network
CN104601380B (en) * 2015-01-30 2018-10-12 新华三技术有限公司 A kind of software defined network controller and its method for restoring host information
JP6627964B2 (en) * 2015-07-27 2020-01-08 華為技術有限公司Huawei Technologies Co.,Ltd. SDN-based ARP implementation method and apparatus
CN107113241B (en) * 2015-12-31 2020-09-04 华为技术有限公司 Route determining method, network configuration method and related device
CN106961394A (en) * 2017-03-31 2017-07-18 联想(北京)有限公司 Suppress interchanger to flood the method and apparatus of storm
US11308109B2 (en) * 2018-10-12 2022-04-19 International Business Machines Corporation Transfer between different combinations of source and destination nodes
CN114244763B (en) * 2021-12-20 2023-11-17 中电福富信息科技有限公司 Dynamic network topology management method and system based on rule engine
CN117062010A (en) * 2022-05-05 2023-11-14 大唐移动通信设备有限公司 Data transmission processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188510A (en) * 2006-11-16 2008-05-28 华为技术有限公司 Method, device and system for central address control
CN101217492A (en) * 2008-01-04 2008-07-09 福建星网锐捷网络有限公司 Address information processing method and device and system
CN102143007A (en) * 2011-05-03 2011-08-03 中国南方电网有限责任公司 Distribution-based hierarchical network topology discovery method
CN102420775A (en) * 2012-01-10 2012-04-18 西安电子科技大学 Routing method for module-expansion-based data center network topology system
CN102647715A (en) * 2012-03-27 2012-08-22 华为技术有限公司 Method for delivering authentication target MAC (Media Access Control) address of EAP (Extensible Authentication Protocol) authentication

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100388716C (en) 2002-08-28 2008-05-14 华为技术有限公司 Method of supressing flow of broadcasting message in bridged transmission process
US7801125B2 (en) * 2004-10-22 2010-09-21 Cisco Technology, Inc. Forwarding table reduction and multipath network forwarding
US7636352B2 (en) * 2006-08-22 2009-12-22 Vitesse Semiconductor Corporation Maintaining filtering database consistency
US20110270979A1 (en) 2009-01-12 2011-11-03 Schlansker Michael S Reducing Propagation Of Message Floods In Computer Networks
JP4688946B2 (en) * 2009-06-15 2011-05-25 富士通株式会社 Switch and address learning method
US8358597B2 (en) * 2009-10-01 2013-01-22 Hei Tao Fung Method for building scalable Ethernet switch network and huge Ethernet switch
WO2011093860A1 (en) * 2010-01-28 2011-08-04 Hewlett-Packard Development Company, L.P. Teaching a network device using unsolicited teaching messages
US8989187B2 (en) * 2010-06-04 2015-03-24 Coraid, Inc. Method and system of scaling a cloud computing network
US10103939B2 (en) * 2010-07-06 2018-10-16 Nicira, Inc. Network control apparatus and method for populating logical datapath sets
US9525647B2 (en) * 2010-07-06 2016-12-20 Nicira, Inc. Network control apparatus and method for creating and modifying logical switching elements
US8472447B2 (en) * 2010-08-04 2013-06-25 Alcatel Lucent IP multicast snooping and routing with multi-chassis link aggregation
US9036638B2 (en) * 2012-08-09 2015-05-19 International Business Machines Corporation Avoiding unknown unicast floods resulting from MAC address table overflows
CN103685009B (en) * 2012-08-31 2017-04-26 华为技术有限公司 Data packet processing method and system as well as controller
US9461943B2 (en) * 2012-09-12 2016-10-04 Cisco Technology, Inc. Network assisted virtual machine mobility

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188510A (en) * 2006-11-16 2008-05-28 华为技术有限公司 Method, device and system for central address control
CN101217492A (en) * 2008-01-04 2008-07-09 福建星网锐捷网络有限公司 Address information processing method and device and system
CN102143007A (en) * 2011-05-03 2011-08-03 中国南方电网有限责任公司 Distribution-based hierarchical network topology discovery method
CN102420775A (en) * 2012-01-10 2012-04-18 西安电子科技大学 Routing method for module-expansion-based data center network topology system
CN102647715A (en) * 2012-03-27 2012-08-22 华为技术有限公司 Method for delivering authentication target MAC (Media Access Control) address of EAP (Extensible Authentication Protocol) authentication

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2863595A4 *

Also Published As

Publication number Publication date
US20150195201A1 (en) 2015-07-09
US9722924B2 (en) 2017-08-01
EP2863595A1 (en) 2015-04-22
CN103812779B (en) 2018-03-09
EP2863595B1 (en) 2018-01-03
EP2863595A4 (en) 2016-01-06
CN103812779A (en) 2014-05-21

Similar Documents

Publication Publication Date Title
WO2014071718A1 (en) Topology grading method and apparatus, and flooding processing method and apparatus
JP4487948B2 (en) Packet transmission method, relay node, and reception node
CN103118148B (en) A kind of ARP buffering updating method and equipment
JP6122971B2 (en) Ethernet packet forwarding
US20140098823A1 (en) Ensuring Any-To-Any Reachability with Opportunistic Layer 3 Forwarding in Massive Scale Data Center Environments
WO2011120459A2 (en) Message forwarding method, equipment and network device
WO2015014187A1 (en) Data forwarding method and apparatus that support multiple tenants
WO2017186122A1 (en) Traffic scheduling
WO2013123847A1 (en) Packet transmission method and network device
JP2006311066A (en) Electronic equipment
CA3104756C (en) Loop avoidance communications method, device, and system
US11201760B2 (en) Data forwarding method and apparatus based on operating system kernel bridge
CN104811392A (en) Method and system for processing resource access request in network
JP7430224B2 (en) Packet processing methods and gateway devices
WO2013053266A1 (en) Message learning method, device and system
US9231821B2 (en) VLAG PIM link failover using PIM hello message
US10764241B2 (en) Address assignment and data forwarding in computer networks
WO2008128449A1 (en) Method, system and access device for implementing two-layer intercommunication of special service
US11032185B2 (en) Communication system, edge node, communication method and program
WO2022083563A1 (en) Link detection method, link detection apparatus, terminal device and storage medium
US10171306B2 (en) Automatic discovery and provisioning of multi-chassis etherchannel peers
WO2009146615A1 (en) A processing method, a system and a processor for network address translation service
US20220311630A1 (en) SD-WAN Multicast Replicator Selection Centralized Policy
US11509568B2 (en) Protocol independent multicast designated networking device election system
US9729391B2 (en) Method and apparatus for path indication

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: 13852964

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2013852964

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE