CN103346950A - Sharing method and device of load between user service boards of rack-mounted wireless controller - Google Patents
Sharing method and device of load between user service boards of rack-mounted wireless controller Download PDFInfo
- Publication number
- CN103346950A CN103346950A CN2013103229963A CN201310322996A CN103346950A CN 103346950 A CN103346950 A CN 103346950A CN 2013103229963 A CN2013103229963 A CN 2013103229963A CN 201310322996 A CN201310322996 A CN 201310322996A CN 103346950 A CN103346950 A CN 103346950A
- Authority
- CN
- China
- Prior art keywords
- message
- interface board
- flow
- user
- rack
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种机架式无线控制器用户业务板间负载均摊方法及装置,所述方法包括步骤:S1,接口板对收到的上行流量进行分流控制,截取数据帧中的相关字段信息;S2,根据用户设计的分流规则对截取到的相关字段信息进行计算;S3,根据计算结果进行数据帧重构,修改报文对应字段或者添加额外的自定义标识,从而使进入接口板的上行流量满足分流条件;S4,对接口板即将发送的上行流量进行分流控制。通过本发明,能够将带有同样VLAN标识的无线业务灵活的分流到机架中的不同业务处理板,从而实现整机单IP下行,用户业务负载均摊。
The present invention discloses a method and device for sharing load between user service boards of a rack-type wireless controller. The method includes steps: S1, the interface board performs distribution control on the received uplink flow, and intercepts relevant field information in the data frame ; S2, calculate the intercepted relevant field information according to the distribution rule designed by the user; S3, reconstruct the data frame according to the calculation result, modify the corresponding field of the message or add an additional custom identification, so that the uplink of the interface board The traffic satisfies the distribution condition; S4, performs distribution control on the uplink traffic to be sent by the interface board. Through the present invention, wireless services with the same VLAN ID can be flexibly distributed to different service processing boards in the rack, thereby realizing single IP downlink of the whole machine and sharing of user service loads.
Description
技术领域technical field
本发明涉及电子通信领域,特别涉及一种机架式无线控制器用户业务板间负载均摊方法及装置。The invention relates to the field of electronic communication, in particular to a method and device for sharing load between user service boards of a rack-type wireless controller.
背景技术Background technique
为了更为清楚地理解本发明,首先对于几个本领域通用的技术术语进行解释。In order to understand the present invention more clearly, some technical terms commonly used in this field are firstly explained.
接口板:机架式无线控制器整机对外统一接口,提供上下行流量进出的物理接口,负责数据的转发,业务分流等功能。Interface board: The rack-mounted wireless controller has a unified external interface, which provides physical interfaces for the ingress and egress of uplink and downlink traffic, and is responsible for data forwarding, service distribution, and other functions.
业务板处理板:机架式无线控制器中负责业务处理的单板。具有高性能多核处理器,高速内存,提供强大的业务处理能力,是整机业务处理的核心。Service board processing board: The single board in the rack-mounted wireless controller responsible for service processing. With high-performance multi-core processors and high-speed memory, it provides powerful business processing capabilities and is the core of the whole machine's business processing.
无线接入点(AP,Wireless Access Point):也称无线网桥、无线网关,作为一个连接有线网络和无线网络的桥梁,将各个无线网络客户端连接在一起,并且把无线网络接入以太网。Wireless Access Point (AP, Wireless Access Point): also known as wireless bridge, wireless gateway, as a bridge connecting wired network and wireless network, connects various wireless network clients together, and connects wireless network to Ethernet .
无线接入控制器(AC,Wireless Access Controler):负责管理无线网络中的AP,包括下发配置、修改相关配置参数等,并且将AP接入的无线数据进行转发路由处理。Wireless Access Controller (AC, Wireless Access Controller): Responsible for managing APs in the wireless network, including issuing configurations, modifying related configuration parameters, etc., and forwarding and routing wireless data accessed by APs.
VLAN(Virtual Local Area Network):虚拟局域网,是一种将局域网设备从逻辑上划分成一个个网段,从而实现虚拟工作组的数据交换技术。VLAN (Virtual Local Area Network): Virtual local area network is a data exchange technology that logically divides LAN devices into network segments to realize virtual workgroups.
机架式无线控制器一般由接口板,主控板以及多块业务处理板组成。采用高性能多核并行处理器作为业务处理平台,高速转发芯片作为数据转发平台,提供运营级核心级业务处理能力。A rack-mounted wireless controller generally consists of an interface board, a main control board, and multiple service processing boards. High-performance multi-core parallel processors are used as the business processing platform, and high-speed forwarding chips are used as the data forwarding platform to provide operation-level core-level business processing capabilities.
机架式无线控制器在整个网络中主要负责处理无线数据与有线数据之间的转换以及无线用户和AP的管理、认证等工作。当无线用户、AP、AC之间正常关联之后,用户上行业务通过AP将无线数据通过有线网络发送到AC,首先进入接口板,接口板根据数据帧中的802.1Q VLAN标识将业务发送到主控板,经过主控板的交换平面,最终到达业务板处理板。数据进入业务板的协议栈,进而找到上行接口到达互联网。下行业务同样在业务处理板被加入802.1Q VLAN标识,经过主控板的交换平面进入接口,之后到达AP,最终发送给无线用户。这就实现了无线用户与目标网络的正常数据交互。The rack-mounted wireless controller is mainly responsible for processing the conversion between wireless data and wired data, as well as the management and authentication of wireless users and APs in the entire network. After the wireless user, AP, and AC are normally associated, the user's uplink service sends the wireless data to the AC through the wired network through the AP, and first enters the interface board, and the interface board sends the service to the main controller according to the 802.1Q VLAN ID in the data frame The board passes through the switching plane of the main control board, and finally reaches the service board processing board. The data enters the protocol stack of the service board, and then finds the uplink interface to reach the Internet. The downlink service is also added to the 802.1Q VLAN tag on the service processing board, enters the interface through the switching plane of the main control board, then reaches the AP, and finally sends it to the wireless user. This realizes the normal data interaction between the wireless user and the target network.
在运营级核心网络中,一台机架式无线控制器通常需要控制管理数以千计,甚至数以万计的AP。而这些AP一般带有相同的802.1QVLAN标识,同属于一个二层网络,通过交换机的一个高速端口或者聚合链路与AC的接口板对接,所有用户业务最终经过AP、交换机带有同一个VLAN标识进入AC。如果这些业务带有同一个VLAN标识进入不同AC业务板,会给板间路由设计以及交换平面转发带来很大的不便。这就要求AC能够将用户业务灵活的分流到不同的业务处理板,实现机架式无线控制器对用户业务负载均摊。In a carrier-level core network, a rack-mounted wireless controller usually needs to control and manage thousands or even tens of thousands of APs. These APs generally have the same 802.1Q VLAN ID and belong to the
当前最普遍的方法就是在AP接入的二层交换机处,将AP划分到不同的VLAN,经过交换机后,不同AP的业务被打上不同的VLAN标识,进入AC。在AC内部根据VLAN标识进行转发,不同VLAN的业务被转发到不同的AC业务板,从而实现AP业务的分流。At present, the most common method is to divide the APs into different VLANs at the
另外一种方案是无线业务同样带有同一个VLAN标识进入AC,同一个VLAN与多个业务处理板同时绑定,无线业务随机到达不同的业务处理板。业务处理板的下行接口直接将无线业务二层透传,或者将接口配置成本地模式,系统中不进行板间接口的路由同步,各自处理到达本地的业务。这样也实现了AP业务的分流。Another solution is that the wireless service also enters the AC with the same VLAN ID, the same VLAN is bound to multiple service processing boards at the same time, and the wireless service randomly arrives at different service processing boards. The downlink interface of the service processing board directly transparently transmits the
然而,第一种方案,在现网组网中带来很大的不便,在设备升级之前,一般所在区域的AP以及二层网络已经部署完毕。下行的二层网络很多时候只有一个VLAN,这种方案的分流就无法实现了。However, the first solution brings great inconvenience to the existing network. Before the equipment is upgraded, the APs and the
第二种方案,首先AP流量是随机分配到不同的业务处理板,不能保证精确的负载均摊,同时AC也不能实现对AP的完全控制。这种方案一般在现网中不推荐使用。In the second solution, AP traffic is randomly allocated to different service processing boards, which cannot guarantee accurate load sharing, and at the same time, the AC cannot fully control the AP. This solution is generally not recommended in live networks.
因此,现有技术非常需要一种能够将带有同样VLAN标识的无线业务灵活的分流到机架中的不同业务处理板,从而实现整机单IP下行,用户业务负载均摊的技术。Therefore, there is a great need in the prior art for a technology that can flexibly offload wireless services with the same VLAN ID to different service processing boards in the rack, so as to realize single IP downlink of the whole machine and load sharing of user services.
发明内容Contents of the invention
鉴于现有技术中存在的问题,本发明目的在于提供一种机架式无线控制器用户业务板间负载均摊方法及装置。In view of the problems existing in the prior art, the purpose of the present invention is to provide a method and device for load sharing between user service boards of a rack-mounted wireless controller.
根据本发明的一个方面,提供了一种机架式无线控制器用户业务板间负载均摊方法,其特征在于包括步骤:According to one aspect of the present invention, there is provided a method for load sharing between user service boards of a rack-mounted wireless controller, which is characterized in that it includes the steps:
S1,接口板对收到的上行流量进行分流控制,截取数据帧中的相关字段信息;S1, the interface board performs distribution control on the received uplink traffic, and intercepts relevant field information in the data frame;
S2,根据用户设计的分流规则对截取到的相关字段信息进行计算;S2, calculate the intercepted relevant field information according to the diversion rule designed by the user;
S3,根据计算结果进行数据帧重构,修改报文对应字段或者添加额外的自定义标识,从而使进入接口板的上行流量满足分流条件;S3, reconstruct the data frame according to the calculation result, modify the corresponding field of the message or add an additional custom identifier, so that the upstream traffic entering the interface board meets the splitting condition;
S4,对接口板即将发送的上行流量进行分流控制。S4. Perform splitting control on the uplink traffic to be sent by the interface board.
优选的,对于下行报文,在接口板处将报文汇总,即进行上行时分流的一个逆过程,数据帧被重构之后,进而下行发送到对应的AP,达到无线用户。Preferably, for the downlink message, the message is aggregated at the interface board, that is, a reverse process of performing uplink time distribution, and after the data frame is reconstructed, it is then sent downlink to the corresponding AP to reach the wireless user.
优选的,根据无线业务中的源MAC地址将流量对应为不同的VLAN ID,从而实现分流。Preferably, the flow is corresponding to different VLAN IDs according to the source MAC address in the wireless service, so as to realize offloading.
优选的,根据源MAC地址的最后两个bit将所有业务映射到4个不同的VLAN。Preferably, all services are mapped to 4 different VLANs according to the last two bits of the source MAC address.
优选的,根据报文中的VLAN TAG字段将流量对应为不同的VLAN ID,从而实现分流。Preferably, traffic is corresponding to different VLAN IDs according to the VLAN TAG field in the message, so as to realize splitting.
优选的,根据报文中的802.1Q VLAN TAG中的PRI字段,将3比特的PRI字段映射到8个不同的VLAN。Preferably, according to the PRI field in the 802.1Q VLAN TAG in the message, the 3-bit PRI field is mapped to 8 different VLANs.
优选的,解析用户流量中的源MAC地址,对齐进行hash运算,根据运算结果对应为不同的VLAN ID进行分流。Preferably, the source MAC address in the user traffic is analyzed, the hash operation is performed for alignment, and the traffic is divided according to the operation results corresponding to different VLAN IDs.
优选的,所述方法通过在机架式无线控制器的接口板上设置分流模块实现。Preferably, the method is implemented by setting a distribution module on the interface board of the rack-mounted wireless controller.
优选的,所述方法通过在机架式无线控制器的接口板和主控板上分别设置分流模块实现。Preferably, the method is realized by respectively setting distribution modules on the interface board and the main control board of the rack-mounted wireless controller.
优选的,在所述机架式无线控制器不同的业务处理板上,接口在处理无线报文时,配置同一个下行IP地址,使用本地模式,不进行系统同步,各自处理收到的用户业务。Preferably, on different business processing boards of the rack-mounted wireless controllers, when processing wireless packets, the interfaces configure the same downlink IP address, use the local mode, do not perform system synchronization, and process the received user services respectively .
根据本发明的另一方面,提供了一种机架式无线控制器用户业务板间负载均摊装置,其特征在于包括:According to another aspect of the present invention, a rack-mounted wireless controller user service board load sharing device is provided, which is characterized in that it includes:
入口分流控制单元,用于对接口板收到的上行流量进行分流控制,截取数据帧中的相关字段信息,发送相关数据以及命令给规则控制单元;并根据规则控制单元返回的计算结果进行数据帧重构,修改报文对应字段或者添加额外的自定义标识,从而使进入接口板的上行流量满足分流条件;The ingress distribution control unit is used to perform distribution control on the upstream traffic received by the interface board, intercept relevant field information in the data frame, send relevant data and commands to the rule control unit; and perform data frame processing according to the calculation results returned by the rule control unit. Refactoring, modify the corresponding fields of the message or add additional custom identifiers, so that the upstream traffic entering the interface board meets the diversion conditions;
规则控制单元,用于根据用户设计的分流规则进行计算,并将计算结果返回给入口分流控制单元;The rule control unit is used to calculate according to the diversion rule designed by the user, and return the calculation result to the inlet diversion control unit;
出口分流控制单元,用于对接口板即将发送的流量进行分流控制。The outlet distribution control unit is used to control the distribution of the flow to be sent by the interface board.
优选的,对于下行报文,在接口板处将报文汇总,即进行上行时分流的一个逆过程,数据帧被重构之后,进而下行发送到对应的AP,达到无线用户。Preferably, for the downlink message, the message is aggregated at the interface board, that is, a reverse process of performing uplink time distribution, and after the data frame is reconstructed, it is then sent downlink to the corresponding AP to reach the wireless user.
优选的,根据无线业务中的源MAC地址将流量对应为不同的VLAN ID,从而实现分流。Preferably, the flow is corresponding to different VLAN IDs according to the source MAC address in the wireless service, so as to realize offloading.
优选的,根据源MAC地址的最后两个bit将所有业务映射到4个不同的VLAN。Preferably, all services are mapped to 4 different VLANs according to the last two bits of the source MAC address.
优选的,根据报文中的VLAN TAG字段将流量对应为不同的VLAN ID,从而实现分流。Preferably, traffic is corresponding to different VLAN IDs according to the VLAN TAG field in the message, so as to realize splitting.
优选的,根据报文中的802.1Q VLAN TAG中的PRI字段,将3比特的PRI字段映射到8个不同的VLAN。Preferably, according to the PRI field in the 802.1Q VLAN TAG in the message, the 3-bit PRI field is mapped to 8 different VLANs.
优选的,解析用户流量中的源MAC地址,对齐进行hash运算,根据运算结果对应为不同的VLAN ID进行分流。Preferably, the source MAC address in the user traffic is analyzed, the hash operation is performed for alignment, and the traffic is divided according to the operation results corresponding to different VLAN IDs.
优选的,所述装置设置于所述机架式无线控制器的接口板上。Preferably, the device is arranged on the interface board of the rack-mounted wireless controller.
优选的,所述装置分别设置于所述机架式无线控制器的接口板和主控板上。Preferably, the devices are respectively arranged on the interface board and the main control board of the rack-mounted wireless controller.
优选的,在所述机架式无线控制器不同的业务处理板上,接口在处理无线报文时,配置同一个下行IP地址,使用本地模式,不进行系统同步,各自处理收到的用户业务。Preferably, on different business processing boards of the rack-mounted wireless controllers, when processing wireless packets, the interfaces configure the same downlink IP address, use the local mode, do not perform system synchronization, and process the received user services respectively .
通过本发明,能够将带有同样VLAN标识的无线业务灵活的分流到机架中的不同业务处理板,从而实现整机单IP下行,用户业务负载均摊。Through the present invention, wireless services with the same VLAN ID can be flexibly distributed to different service processing boards in the rack, thereby realizing single IP downlink of the whole machine and sharing of user service loads.
附图说明Description of drawings
图1例示了本发明实施例一种机架式无线控制器用户业务板间负载均摊装置的整机结构图;Fig. 1 illustrates a whole machine structure diagram of a load sharing device between user service boards of a rack-mounted wireless controller according to an embodiment of the present invention;
图2例示了本发明实施例一种机架式无线控制器用户业务板间负载均摊装置的结构图;FIG. 2 illustrates a structural diagram of a load sharing device between user service boards of a rack-mounted wireless controller according to an embodiment of the present invention;
图3例示了本发明实施例一种优选的分流算法示意图;FIG. 3 illustrates a schematic diagram of a preferred shunting algorithm according to an embodiment of the present invention;
图4例示了本发明实施例另一种优选的分流算法示意图;FIG. 4 illustrates a schematic diagram of another preferred shunting algorithm according to an embodiment of the present invention;
图5例示了本发明实施例使用802.1Q VLAN TAG中的PRI字段进行分流的映射示意图;Fig. 5 illustrates the embodiment of the present invention uses the PRI field in the 802.1Q VLAN TAG to carry out the mapping diagram of offloading;
图6例示了本发明实施例由SMAC字段映射VLAN的示意图;Fig. 6 illustrates the schematic diagram of mapping VLAN by SMAC field according to the embodiment of the present invention;
图7例示了本发明实施例由SMAC字段映射VLAN的下行流量转换示意图;FIG. 7 illustrates a schematic diagram of downlink traffic conversion in which the SMAC field maps VLANs according to an embodiment of the present invention;
图8例示了本发明实施例一种机架式无线控制器用户业务板间负载均摊装置的替换结构图。FIG. 8 illustrates an alternative structural diagram of a load sharing device between user service boards of a rack-mounted wireless controller according to an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的上述目的、特征和优点更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
图1例示了本发明实施例一种机架式无线控制器用户业务板间负载均摊装置的整机结构图。FIG. 1 illustrates a structural diagram of a whole machine of a load sharing device between user service boards of a rack-mounted wireless controller according to an embodiment of the present invention.
如图1所示,本发明通过在AC的接口板上设置一分流模块实现,进入AC的无线用户流量在上行时首先到达接口板,在接口板处进入分流模块。分流模块对数据帧进行高速,高精确性匹配以及重构,使得输出的流量被加入不同的802.1Q VLAN标识,然后进入主控板,进而到达业务处理板,进而上行到达目标网络。下行流量在进入接口板时进行报文汇总,从而发送到无线用户。As shown in FIG. 1 , the present invention is implemented by setting a distribution module on the interface board of the AC. The wireless user traffic entering the AC first reaches the interface board when going up, and then enters the distribution module at the interface board. The distribution module performs high-speed, high-accuracy matching and reconstruction on data frames, so that the output traffic is added to different 802.1Q VLAN tags, and then enters the main control board, then reaches the service processing board, and then reaches the target network upstream. When the downlink traffic enters the interface board, the packets are summarized and sent to the wireless users.
图2例示了本发明实施例一种机架式无线控制器用户业务板间负载均摊装置的结构图,即上述的分流模块。如图2所示,所述装置执行以下流程:FIG. 2 illustrates a structural diagram of a load sharing device between user service boards of a rack-mounted wireless controller according to an embodiment of the present invention, that is, the above-mentioned distribution module. As shown in Figure 2, the device performs the following processes:
入口分流控制单元对接口板收到流量进行分流控制,截取数据帧的802.1Q字段、源MAC地址字段等信息,发送相关数据以及命令给规则控制单元;The ingress distribution control unit performs distribution control on the traffic received by the interface board, intercepts information such as the 802.1Q field and the source MAC address field of the data frame, and sends relevant data and commands to the rule control unit;
规则控制单元根据用户设计的分流规则进行计算,并将计算结果返回给入口分流控制单元;The rule control unit calculates according to the diversion rule designed by the user, and returns the calculation result to the inlet diversion control unit;
入口分流控制单元根据返回结果进行数据帧重构,修改报文对应字段或者添加额外的自定义标识,从而使进入接口板的流量满足分流条件;The ingress distribution control unit reconstructs the data frame according to the returned result, modifies the corresponding field of the message or adds an additional custom identification, so that the traffic entering the interface board meets the distribution condition;
出口分流控制单元对接口板即将发送的流量进行分流控制,其实现过程与入口分流控制单元处原理一致,最终将发送出的报文带有特定的分流标识,满足分流条件。The outlet distribution control unit performs distribution control on the traffic to be sent by the interface board. The implementation process is consistent with the principle of the inlet distribution control unit. Finally, the sent message has a specific distribution identification and meets the distribution conditions.
关于上述规则控制单元中所设置的分流规则,本发明中可采用多种算法,本领域技术人员应理解,任何可用的分流规则均可用于实现本发明,以下实施例仅出于示意的目的,无意构成对于本发明的限制。Regarding the distribution rules set in the above-mentioned rule control unit, various algorithms can be used in the present invention, and those skilled in the art should understand that any available distribution rules can be used to realize the present invention, and the following examples are only for illustrative purposes. It is not intended to constitute a limitation of the invention.
用户上行报文分流算法,在分流模块中可根据无线业务中的源MAC地址或者报文中的VLAN TAG字段进行分流。User uplink message distribution algorithm, in the distribution module, the distribution can be performed according to the source MAC address in the wireless service or the VLAN TAG field in the message.
附图3例示了本发明实施例一种优选的分流算法示意图。Figure 3 illustrates a schematic diagram of a preferred shunting algorithm according to an embodiment of the present invention.
如图3所示,通过分析报文中的源MAC地址,将流量均摊到不同的VLAN中,在对报文中源MAC地址(用户对应AP的地址)的分析过程中,可以根据用户的灵活配置取MAC地址中的不同字段,例如使用MAC地址的最后两个bit可以将所有业务映射到4个不同的VLAN。这样即可根据不同报文中的SMAC地址特性将不同流量转换成不同的VLAN,实现分流。As shown in Figure 3, by analyzing the source MAC address in the message, the traffic is distributed to different VLANs. During the analysis of the source MAC address in the message (the address of the user corresponding to the AP), the The configuration uses different fields in the MAC address. For example, using the last two bits of the MAC address can map all services to four different VLANs. In this way, different traffic can be converted into different VLANs according to the characteristics of SMAC addresses in different packets to realize traffic distribution.
附图4例示了本发明实施例另一种优选的分流算法示意图。Accompanying drawing 4 illustrates the schematic diagram of another preferred shunting algorithm of the embodiment of the present invention.
如图4所示,例如可以根据用户上行报文中的802.1Q VLAN TAG中的PRI字段(User Priority)进行分流。As shown in Figure 4, for example, traffic can be offloaded according to the PRI field (User Priority) in the 802.1Q VLAN TAG in the user's uplink message.
PRI字段占用3个bit,在802.1P协议中定义的优先级有8种,最高优先级为7,应用于关键性网络流量,如路由选择信息协议(RIP)和开放最短路径优先(OSPF)协议的路由表更新。优先级6和5主要用于延迟敏感应用程序,如交互式视频和语音。优先级4到1主要用于受控负载应用程序,如流式多媒体和关键性业务流量等。优先级0是缺省值,并在没有设置其它优先级值的情况下自动启用。The PRI field occupies 3 bits. There are 8 priorities defined in the 802.1P protocol, and the highest priority is 7. It is applied to key network traffic, such as the Routing Information Protocol (RIP) and the Open Shortest Path First (OSPF) protocol. routing table updates. Priorities 6 and 5 are mainly used for latency sensitive applications such as interactive video and voice. Priorities 4 to 1 are mainly used for controlled load applications such as streaming multimedia and business-critical traffic. Priority 0 is the default and is automatically enabled if no other priority value is set.
我们取其中的PRI字段进行映射,图5例示了本发明实施例使用802.1Q VLAN TAG中的PRI字段进行分流的映射示意图。We take the PRI field in it for mapping, and FIG. 5 illustrates a schematic diagram of mapping using the PRI field in the 802.1Q VLAN TAG for offloading in the embodiment of the present invention.
优选的,报文中PRI字段可以由AP侧自行添加,或者由AC下发规则到AP,根据规则进行添加,可以不按照802.1P的规定进行设置,例如我们只使用前4个优先级等等。Preferably, the PRI field in the message can be added by the AP side itself, or the AC can send rules to the AP, and add according to the rules. It can not be set according to the 802.1P regulations. For example, we only use the first 4 priorities, etc. .
此外,优选的,本发明实施例再给出第三种示意分流算法。解析用户流量中的SMAC,对齐进行hash运算,这个较适用于现网中有大量AP且使用不同规格,不同厂商,MAC地址没有规律的情况。对SMAC进行hash运算,根据运算结果进行分流,能更有效的保证业务在不同业务板之间的负载均衡。但是分流模块中的hash运算也存在缺点,比如占用更多的CPU、内存资源。In addition, preferably, the embodiment of the present invention further provides a third schematic distribution algorithm. Analyze the SMAC in the user traffic, align and perform hash operation. This is more suitable for the situation where there are a large number of APs in the live network and use different specifications, different manufacturers, and the MAC address is irregular. Carry out hash calculation on SMAC, and divide traffic according to the calculation result, which can more effectively ensure the load balance of services among different service boards. However, the hash operation in the shunt module also has disadvantages, such as taking up more CPU and memory resources.
分流算法主要对用户上行流量的报文头进行解析,可以根据现网不同环境,进行灵活配置,实现不同场景下有效的分流。在此,我们以第一种较简单的分流算法进行示例性介绍。所有用户业务进入接口板时都带有vlanM标识,在接口板的入口分流控制单元对报文进行解析,取出报文的SMAC字段,发送给规则控制单元;规则控制单元取SMAC中的最后两个bit,将其映射为vlanA,vlanB,vlanC。如附图6所示:The offloading algorithm mainly analyzes the packet header of the user's uplink traffic, and can be flexibly configured according to different environments of the live network to realize effective offloading in different scenarios. Here, we use the first, simpler shunting algorithm as an example to introduce it. When all user services enter the interface board, they all have a vlanM identifier. The ingress distribution control unit of the interface board analyzes the message, takes out the SMAC field of the message, and sends it to the rule control unit; the rule control unit takes the last two in the SMAC bit, map it to vlanA, vlanB, vlanC. As shown in Figure 6:
SMAC a1、SMAC a2、SMAC a3中最后两个bit为00;The last two bits of SMAC a1, SMAC a2, and SMAC a3 are 00;
SMAC b1、SMAC b2、SMAC b3中最后两个bit为01;The last two bits of SMAC b1, SMAC b2, and SMAC b3 are 01;
SMAC c1、SMAC c2、SMAC c3中最后两个bit为10。The last two bits of SMAC c1, SMAC c2, and SMAC c3 are 10.
同理,出口分流控制单元根据规则控制模块的计算结果,将流量打上不同的802.1Q VLAN标识vlanA、vlanB、vlanC,报文重构完成后被送达主控板。在主控板的交换平面中报文分别通过通道1、通道2、通道3转发,最终带有不同的VLAN标识到达业务处理板。Similarly, the egress distribution control unit marks the traffic with different 802.1Q VLAN identifiers vlanA, vlanB, and vlanC according to the calculation results of the rule control module, and the packets are sent to the main control board after reconstruction. In the switching plane of the main control board, the packets are respectively forwarded through
不同的业务处理板上,接口在处理无线报文时,可以配置同一个下行IP地址,使用本地模式,不进行系统同步,各自处理收到的用户业务。从而实现对用户业务的负载均摊。When processing wireless packets, interfaces on different service processing boards can be configured with the same downlink IP address, use the local mode, and process received user services separately without system synchronization. In this way, the load sharing of user services is realized.
用户下行报文分流算法,业务处理板通过本板接口处理后的报文分别带有vlanA、vlanB、vlanC几个不同的VLAN标识。分别经过主控板的3个通道转发到接口板,在接口板的入口分流控制单元需要将报文汇总,也就是上行时分流的一个逆过程,在分流算法中按照VLAN标识中的VID字段进行分流即可,原理如图7所示。User downlink packet distribution algorithm, the packets processed by the service processing board through the interface of this board have several different VLAN IDs of vlanA, vlanB, and vlanC respectively. The three channels of the main control board are respectively forwarded to the interface board. The ingress distribution control unit of the interface board needs to summarize the packets, which is a reverse process of the upstream distribution. In the distribution algorithm, the VID field in the VLAN ID is used. It is enough to divide the flow, and the principle is shown in Figure 7.
数据帧被重构之后,流量中的VLAN标识被还原,进而下行发送到对应的AP,达到无线用户。After the data frame is reconstructed, the VLAN ID in the traffic is restored, and then sent downlink to the corresponding AP to reach the wireless user.
分流模块在系统中是一个高优先级系统模块,采用高效率分流算法,可以实现数据帧前128字节精确匹配,线速转发。当前的方案优先采用根据数据帧的MAC地址以及VLAN标识中VID字段进行分流,后续可以针对报文其他字段以及系统的级联进行扩展,从而实现更高精确性,更灵活的分流算法。The shunt module is a high-priority system module in the system. It adopts a high-efficiency shunt algorithm, which can realize the precise matching of the first 128 bytes of the data frame and wire-speed forwarding. The current solution gives priority to offloading based on the MAC address of the data frame and the VID field in the VLAN identifier. Later, it can be expanded for other fields of the message and the cascading of the system, so as to achieve a more accurate and flexible offloading algorithm.
优选的,考虑到在实际应用中接口板在大流量时可能存在压力过大问题,可以将分流模块设计为两个部分分别在接口板与主控板上实现,从而分担接口板的业务压力。其结构如附图8所示。Preferably, considering that the interface board may have excessive pressure when the flow rate is large in practical applications, the flow distribution module can be designed as two parts implemented on the interface board and the main control board respectively, so as to share the business pressure of the interface board. Its structure is shown in Figure 8.
以上是对本发明的优选实施例进行的详细描述,但本领域的普通技术人员应该意识到,在本发明的范围内和精神指导下,各种改进、添加和替换都是可能的,例如使用可实现同种功能目的的算法、使用不同的编程语言(如C、C++、Java等)实现等。这些都在本发明的权利要求所限定的保护范围内。The above is a detailed description of the preferred embodiments of the present invention, but those of ordinary skill in the art should realize that various improvements, additions and substitutions are possible within the scope and spirit of the present invention. Algorithms to achieve the same functional purpose, implemented using different programming languages (such as C, C++, Java, etc.). These are all within the scope of protection defined by the claims of the present invention.
Claims (20)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310322996.3A CN103346950B (en) | 2013-07-29 | 2013-07-29 | Between a kind of rack wireless controller customer service plate, method and device are shared in load equally |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310322996.3A CN103346950B (en) | 2013-07-29 | 2013-07-29 | Between a kind of rack wireless controller customer service plate, method and device are shared in load equally |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103346950A true CN103346950A (en) | 2013-10-09 |
| CN103346950B CN103346950B (en) | 2016-05-25 |
Family
ID=49281726
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310322996.3A Active CN103346950B (en) | 2013-07-29 | 2013-07-29 | Between a kind of rack wireless controller customer service plate, method and device are shared in load equally |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103346950B (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106789652A (en) * | 2016-12-29 | 2017-05-31 | 杭州迪普科技股份有限公司 | Service shunting method and device |
| CN108600107A (en) * | 2017-11-07 | 2018-09-28 | 北京交通大学 | A kind of stream matching process can customize content field |
| CN110011941A (en) * | 2019-03-18 | 2019-07-12 | 新华三信息安全技术有限公司 | A kind of message forwarding method and equipment |
| CN110891028A (en) * | 2018-09-07 | 2020-03-17 | 华为技术有限公司 | Method, device and storage medium for determining load balancing strategy |
| CN111756647A (en) * | 2019-03-29 | 2020-10-09 | 中兴通讯股份有限公司 | HQoS service transmission method, device and system |
| CN115208839A (en) * | 2021-04-08 | 2022-10-18 | 华为技术有限公司 | Data transmission system, method and device |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6894999B1 (en) * | 2000-11-17 | 2005-05-17 | Advanced Micro Devices, Inc. | Combining VLAN tagging with other network protocols allows a user to transfer data on a network with enhanced security |
| CN101035008A (en) * | 2007-04-17 | 2007-09-12 | 华为技术有限公司 | Service scheduling method and its network convergence device |
| CN102083136A (en) * | 2009-11-30 | 2011-06-01 | 杭州华三通信技术有限公司 | Wireless network control method and wireless controller |
| CN102149138A (en) * | 2011-05-26 | 2011-08-10 | 东南大学 | Method for balancing gateway load of wireless Mesh network |
| CN103200119A (en) * | 2013-03-15 | 2013-07-10 | 杭州华三通信技术有限公司 | Load sharing method and edge device in Ethernet virtualization interconnection site |
-
2013
- 2013-07-29 CN CN201310322996.3A patent/CN103346950B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6894999B1 (en) * | 2000-11-17 | 2005-05-17 | Advanced Micro Devices, Inc. | Combining VLAN tagging with other network protocols allows a user to transfer data on a network with enhanced security |
| CN101035008A (en) * | 2007-04-17 | 2007-09-12 | 华为技术有限公司 | Service scheduling method and its network convergence device |
| CN102083136A (en) * | 2009-11-30 | 2011-06-01 | 杭州华三通信技术有限公司 | Wireless network control method and wireless controller |
| CN102149138A (en) * | 2011-05-26 | 2011-08-10 | 东南大学 | Method for balancing gateway load of wireless Mesh network |
| CN103200119A (en) * | 2013-03-15 | 2013-07-10 | 杭州华三通信技术有限公司 | Load sharing method and edge device in Ethernet virtualization interconnection site |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106789652A (en) * | 2016-12-29 | 2017-05-31 | 杭州迪普科技股份有限公司 | Service shunting method and device |
| CN106789652B (en) * | 2016-12-29 | 2019-11-12 | 杭州迪普科技股份有限公司 | Service shunting method and device |
| CN108600107A (en) * | 2017-11-07 | 2018-09-28 | 北京交通大学 | A kind of stream matching process can customize content field |
| CN110891028A (en) * | 2018-09-07 | 2020-03-17 | 华为技术有限公司 | Method, device and storage medium for determining load balancing strategy |
| CN110891028B (en) * | 2018-09-07 | 2021-12-21 | 华为技术有限公司 | Method, device and storage medium for determining load balancing strategy |
| CN110011941A (en) * | 2019-03-18 | 2019-07-12 | 新华三信息安全技术有限公司 | A kind of message forwarding method and equipment |
| CN111756647A (en) * | 2019-03-29 | 2020-10-09 | 中兴通讯股份有限公司 | HQoS service transmission method, device and system |
| CN115208839A (en) * | 2021-04-08 | 2022-10-18 | 华为技术有限公司 | Data transmission system, method and device |
| CN115208839B (en) * | 2021-04-08 | 2025-06-10 | 华为技术有限公司 | A data transmission system, method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103346950B (en) | 2016-05-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10911355B2 (en) | Multi-site telemetry tracking for fabric traffic using in-band telemetry | |
| CN107819663B (en) | Method and device for realizing virtual network function service chain | |
| US9451056B2 (en) | Method for mapping packets to network virtualization instances | |
| US9813323B2 (en) | Systems and methods for controlling switches to capture and monitor network traffic | |
| US10038627B2 (en) | Selective rule management based on traffic visibility in a tunnel | |
| US8804572B2 (en) | Distributed switch systems in a trill network | |
| US9755959B2 (en) | Dynamic service path creation | |
| US9654395B2 (en) | SDN-based service chaining system | |
| EP3058687B1 (en) | Configurable service proxy mapping | |
| US9331936B2 (en) | Switch fabric support for overlay network features | |
| US20160301603A1 (en) | Integrated routing method based on software-defined network and system thereof | |
| US20170026461A1 (en) | Intelligent load balancer | |
| US20170331741A1 (en) | Mac chaining load balancer | |
| US9148368B2 (en) | Packet routing with analysis assist for embedded applications sharing a single network interface over multiple virtual networks | |
| CN103346950B (en) | Between a kind of rack wireless controller customer service plate, method and device are shared in load equally | |
| US9008080B1 (en) | Systems and methods for controlling switches to monitor network traffic | |
| US10284471B2 (en) | AIA enhancements to support lag networks | |
| US9083644B2 (en) | Packet routing for embedded applications sharing a single network interface over multiple virtual networks | |
| US10848432B2 (en) | Switch fabric based load balancing | |
| CN106603550B (en) | A kind of Network Isolation method and device | |
| CN107003860B (en) | A software-defined network controller and its creation method | |
| CN108289061B (en) | Service chain topology system based on SDN | |
| US12425351B2 (en) | Method and system for efficient input/output transfer in network devices | |
| US7787453B2 (en) | Network interface controller with receive side scaling and quality of service | |
| CN108429652A (en) | SDN-based remote flow mirroring control method, implementation method and related equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20180827 Address after: 226000 1-4, 5, 28 purple Road, Chongchuan District, Nantong, Jiangsu. Patentee after: Jiangsu Guoxin Technology Co.,Ltd. Address before: 100193 2, Hanwang science and technology building, 5 Zhongguancun Software Park, 8 Northeast Northeast Road, Haidian District, Beijing. Patentee before: BEIJING AUTELAN TECHNOLOGY Co.,Ltd. |
|
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20201016 Address after: No.150 Pingdong Avenue, Pingchao Town, Tongzhou District, Nantong City, Jiangsu Province Patentee after: Jiangsu Yongda power telecommunication installation engineering Co.,Ltd. Address before: 226000 1-4, 5, 28 purple Road, Chongchuan District, Nantong, Jiangsu. Patentee before: Jiangsu Guoxin Technology Co.,Ltd. |
|
| CP03 | Change of name, title or address | ||
| CP03 | Change of name, title or address |
Address after: 226300 150 Pingdong Avenue, Pingchao Town, Tongzhou District, Nantong City, Jiangsu Province Patentee after: Jiangsu Yongda Energy Group Co.,Ltd. Country or region after: China Address before: No. 150 Pingdong Avenue, Pingchao Town, Tongzhou District, Nantong City, Jiangsu Province Patentee before: Jiangsu Yongda power telecommunication installation engineering Co.,Ltd. Country or region before: China |