WO2018001057A1 - Message forwarding control method and device, and broadband access system - Google Patents

Message forwarding control method and device, and broadband access system Download PDF

Info

Publication number
WO2018001057A1
WO2018001057A1 PCT/CN2017/087502 CN2017087502W WO2018001057A1 WO 2018001057 A1 WO2018001057 A1 WO 2018001057A1 CN 2017087502 W CN2017087502 W CN 2017087502W WO 2018001057 A1 WO2018001057 A1 WO 2018001057A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet
processing component
packet processing
forwarded
target
Prior art date
Application number
PCT/CN2017/087502
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 中兴通讯股份有限公司
Publication of WO2018001057A1 publication Critical patent/WO2018001057A1/en

Links

Images

Definitions

  • the present disclosure relates to the field of communications, and in particular, to a packet forwarding control method, apparatus, and broadband access system.
  • broadband access devices With the development of broadband access technologies and the increasing number of network users, the input of broadband access devices is increasing. However, in most cases, the configuration and maintenance of broadband access devices are independent and decentralized. The increase, while meeting the user's access capacity and performance requirements, also brings disadvantages to operation and maintenance costs.
  • the virtualization of the network function integrates the control function of the broadband access through the software in the controller, and the original broadband access device only bears the function of sending and forwarding traffic.
  • the broadband access devices are unified by the controller. Management, including configuration related to each controller.
  • a controller will hang multiple broadband access devices.
  • the number of users carried by the controller will also increase with the increase of the number of broadband access devices.
  • control The processing performance directly affects the performance of the entire network and the user experience.
  • the embodiment of the invention provides a packet forwarding control method, device and broadband access system to provide a high performance controller and a broadband access system.
  • a packet forwarding control method including:
  • the packet to be forwarded is forwarded to the target packet processing component.
  • a packet forwarding control apparatus including: a receiving module, an allocating module, and a sending module, where
  • the receiving module is configured to receive the to-be-forwarded packet
  • the allocation module is configured to determine a target packet processing component of the packet to be forwarded according to the forwarding control policy and the service performance of each packet processing component;
  • the sending module is configured to forward the to-be-forwarded packet to the target packet processing component.
  • a broadband access system in another aspect, includes a broadband access device, a service server, and a controller for connecting the broadband access device to the service server; the controller includes a message receiving component, at least one message processing component, and a control component, the message receiving component includes a processor and a communication module, wherein the communication module is configured to receive the broadband
  • the device is configured to receive the forwarding control policy sent by the control component, and obtain the service performance of each packet processing component, and determine the service performance according to the forwarding control policy and the service performance of each packet processing component.
  • a target packet processing component that forwards the packet; the communication module is configured to forward the to-be-forwarded packet to the target packet processing component.
  • a computer storage medium in another aspect, storing computer executable instructions, and the computer executable instructions for performing the foregoing message forwarding control method.
  • the embodiment of the present invention provides a packet forwarding control method, which is not allocated to the packet processing component in sequence, as in the prior art, and is allocated to the second packet processing component after the first packet processing component is fully loaded. After receiving the packet, the corresponding target packet processing component is selected according to the forwarding control policy, so that load balancing of the service packet can be implemented, thereby ensuring that the load of each packet processing component does not appear as existing.
  • Some of the packet processing components such as the technology are in the upper limit of the performance alarm, and the packet processing component is protected to a certain extent, which increases the utilization and stability of the packet processing component.
  • FIG. 1 is a flowchart of a packet forwarding control method according to a first embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a packet forwarding control apparatus according to a second embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a broadband access system in a fourth embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a controller in a fourth embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a packet path according to a fourth embodiment of the present invention.
  • Fig. 6 is a schematic view showing the connection of components in the controller according to the fourth embodiment of the present invention.
  • FIG. 1 is a flowchart of a packet forwarding control method according to a first embodiment of the present invention. As shown in FIG. 1, the packet forwarding control method provided in this embodiment includes:
  • S101 Receive a to-be-forwarded packet.
  • S102 Determine, according to the forwarding control policy and the service performance of each packet processing component, a target packet processing component of the packet to be forwarded;
  • S103 Forward the to-be-forwarded packet to the target packet processing component.
  • the forwarding control policy in the foregoing embodiment includes: selecting a target packet processing component according to a weight value of each packet processing component; and determining a target packet processing component of the packet to be forwarded includes:
  • the target message processing component of the message to be forwarded is elected
  • the next preferred message processing component is selected.
  • the forwarding control policy in the foregoing embodiment includes: selecting a target packet processing component according to the source user identifier of the packet to be forwarded; and determining the target packet processing component of the packet to be forwarded includes:
  • the target message processing component of the message to be forwarded is elected
  • the next preferred message processing component is selected.
  • the packet forwarding control method in the foregoing embodiment further includes: updating the service performance of the packet processing component when receiving the processing result of the packet to be forwarded.
  • the packet forwarding control method in the foregoing embodiment further includes:
  • the packet to be forwarded is forwarded to the target packet processing component of the corresponding user;
  • the target packet processing component is not allocated to the corresponding user, the target packet processing component of the packet to be forwarded is determined, and the correspondence between the source user identifier and the target packet processing component is recorded.
  • the packet forwarding control apparatus provided in this embodiment includes: a receiving module 21, an allocating module 22, and a sending module 23, among them,
  • the receiving module 21 is configured to receive a message to be forwarded
  • the allocating module 22 is configured to determine a target packet processing component of the packet to be forwarded according to the forwarding control policy and the service performance of each packet processing component;
  • the sending module 23 is configured to forward the to-be-forwarded message to the target message processing component.
  • the forwarding control policy includes selecting a target packet processing component according to a weight value of each packet processing component, or selecting a target packet processing component according to a source user identifier of the to-be-forwarded packet;
  • the allocation module in the foregoing embodiment 22 is configured to obtain a weight value of each packet processing component, and select a preferred packet processing component to determine whether the service performance of the preferred packet processing component meets the selection condition of the selected target packet processing component, and if the election condition is met, the candidate is elected as If the target packet processing component of the packet to be forwarded does not meet the selection criteria, the next preferred packet processing component is selected; or, according to the source user identifier and mapping algorithm of the packet to be forwarded, the preferred packet processing component is selected to determine Preferably, the service performance of the packet processing component meets the selection condition of the selected target packet processing component. If the election condition is met, the target packet processing component of the packet to be forwarded is selected, and if the election condition is not met, the next preference is selected. Message processing component.
  • the allocating module 22 in the foregoing embodiment is configured to determine, according to the source user identifier of the to-be-forwarded packet, whether the target packet processing component has been allocated to the corresponding user, if the target packet processing component has been allocated to the corresponding user.
  • the packet to be forwarded is forwarded to the target packet processing component of the corresponding user. If the target packet processing component is not allocated to the corresponding user, the target packet processing component of the packet to be forwarded is determined, and the source user identifier and target are recorded. The correspondence between the message processing components.
  • all the functional modules in the embodiment shown in FIG. 2, such as the receiving module 21, the allocating module 22, and the transmitting module 23, can be implemented by using a processor, an editing logic device, or the like.
  • the embodiment provides a broadband access system, which includes a broadband access device, a service server, and a controller that connects the broadband access device and the service server; the controller includes a message receiving component, at least one packet processing component, And a control component, the message receiving component includes a processor and a communication module, wherein
  • the communication module is configured to receive the to-be-forwarded packet sent by the broadband access device;
  • the processor is configured to receive the forwarding control policy delivered by the control component, obtain the service performance of each packet processing component, and determine the target packet processing component of the packet to be forwarded according to the forwarding control policy and the service performance of each packet processing component;
  • the communication module is configured to forward the message to be forwarded to the target message processing component.
  • the forwarding control policy in the foregoing embodiment includes: selecting a target packet processing component according to a weight value of each packet processing component, or selecting a target packet processing component according to a source user identifier of the to-be-forwarded packet;
  • the method is configured to obtain a weight value of each packet processing component, or select a preferred packet processing component according to a source user identifier and a mapping algorithm of the to-be-forwarded packet, or determine whether the service performance of the preferred packet processing component meets the selected target packet. If the selection condition of the processing component is met, the target packet processing component of the packet to be forwarded is selected, and if the selection condition is not met, the next preferred packet processing component is selected.
  • the processor in the foregoing embodiment is configured to determine, according to the source user identifier of the packet to be forwarded, whether the target packet processing component has been allocated to the corresponding user, and if the target packet processing component has been allocated to the corresponding user, The packet to be forwarded is forwarded to the target packet processing component of the corresponding user. If the target packet processing component is not allocated to the corresponding user, the target packet processing component of the packet to be forwarded is determined, and the source user identifier and the target report are recorded. The correspondence between the document processing components.
  • the present embodiment provides a method for load-sharing service packets in broadband access through openflow (a new type of network switching model proposed by the reformist) and a user access control (media access control)
  • a load balancing method for service packets in broadband access and can be switched between two load sharing modes by using commands.
  • the controller manages the connected broadband access device, and is internally divided into multiple components, including processing the receipt of service packets and the transmission of response packets (hereinafter referred to as receiving components), services.
  • Packet processing hereinafter referred to as message processing component
  • policy control hereinafter referred to as control component
  • other components of multiple functions are examples of multiple functions.
  • the controller hangs multiple broadband access devices, and connects to the service server (such as a radius server or a portal server) in the north.
  • the broadband access device receives the service-related packets of the broadband users and delivers the packets to the packets.
  • the controller processes the packet, and after the controller processes the packet, it performs service interaction with the service server, and then sends the response packet to the broadband access server, and the broadband access server returns to the broadband user.
  • the two load balancing methods provided in this embodiment are implemented as follows:
  • the dynamic load adjustment in the openflow group table implements the load sharing mode of concurrently processing packets between multiple components in a certain time period, as shown in FIG. 4
  • the packet is forwarded to a packet processing component.
  • the component When the component reaches the performance alarm interval, it switches to another packet processing component to process the packet.
  • the user mac map is used to calculate a certain time period.
  • Load balancing mode for processing packets in parallel between multiple components as shown in Figure 5, that is, a service report for a period of time. The texts are delivered to different packet processing components, and each packet processing component does not meet the performance alarm limit.
  • the message receiving component in the controller receives the service-related packet sent by the southbound broadband access device, and selects the service-related packet to be delivered according to the weight value in the openflow group table in the component.
  • the message processing component records the user information at the same time, corresponding to the message processing component, and then sends the message to the message processing component through the output (signal output) port in the group table.
  • the message processing component processes the message of the service and sends it to the control component.
  • control component interacts with the service server to perform authentication or accounting operations on the user, and then sends the response packet of the service server to the packet processing component; and the control component sends the processing result of the service to the packet receiving component.
  • the packet receiving component modifies the weight value in the openflow group table, so that when the next service packet is sent, the appropriate packet processing component is selected.
  • the packet processing component After receiving the response packet returned by the control component, the packet processing component sends the response packet to the packet receiving component, and the packet receiving component sends the response packet to the broadband access device, and the broadband access device responds to the packet. Return to broadband users
  • the message receiving component of the controller receives the service-related packet sent by the broadband access device, performs mapping calculation in the packet receiving component according to the mac of the user, and selects the service packet to be sent.
  • the message processing component of the packet is recorded, and the user information is recorded, corresponding to the packet processing component, and then sent to the packet processing component through the output port in the group table.
  • the packet processing component processes the packet of the service and sends it to the control component, and the control component interacts with the service server, and then sends the response packet of the service server to the packet processing component; The processing result is sent to the message receiving component.
  • the packet receiving component processes the mac entry.
  • the packet processing component After receiving the response packet returned by the control component, the packet processing component sends the response packet to the packet receiving component, and the packet receiving component sends the response packet to the broadband access device, and the broadband access device responds to the packet. Return to broadband users
  • the service-related packets sent by the broadband access device are implemented through the dynamic adjustment of the weight value in the openflow group table or the mapping calculation by the user mac, and load sharing is performed between different packet processing components.
  • the controller can improve the processing performance of packets, and can flexibly switch between the two load sharing modes through commands.
  • the load balancing mode of concurrently processing packets between multiple components in a certain period of time is implemented by dynamically adjusting the weight value in the openflow group table; Load balancing mode for processing packets in parallel between multiple components in a segment.
  • the user access packet is used as an example to describe the implementation of the load balancing of the user's access packets in the concurrent processing mode.
  • Step 1 When the controller is started, the policy control component sends an openflow group table to the packet receiving component.
  • the contents of the group table mainly include: an output port - a port connected to the packet processing component in the controller, and each group There may be multiple output ports in the table, and each output port corresponds to a weight value.
  • the weight value is initialized by the packet receiving component according to the internal policy, and is set to a value different in size.
  • Step 2 When the controller is started, the policy control component sends the performance indicators of each packet processing component to the packet receiving component.
  • the performance indicator uses: indicates the performance of each packet processing component in the service processing, and the performance value is a The value of the interval indicates that the performance of the component has reached the alarm state.
  • the performance of the packet processing component reaches the lower limit of the interval, it indicates that the component has met the switching condition, and other components can take over the subsequent service packet processing work.
  • the performance reaches the upper limit of the interval it indicates that the component has reached the saturation state, and the service packet cannot be processed.
  • the service packet must be processed by other components. Otherwise, the packet processing is abnormal.
  • the performance of the component falls again to this interval. Below the lower limit, the component has been de-asserted and can be used as an optional component to process business messages.
  • Step 3 After receiving the openflow group table sent by the control component, the packet receiving component associates the output port with each packet processing component in the north direction; and sets the output port for each output port according to the initialization process of the packet processing component. Different weight values.
  • Step 4 Figure 6 (1) After receiving the user access message sent by the broadband access device, the packet receiving component records the source mac in the packet in the internal entry of the component, and searches for the corresponding group. The table entry, according to the weight value of each output port in the group table, selects the delivered output port, and delivers the message to the corresponding message processing component - the message processing component (1), as shown in Figure 6 (2), and simultaneously the mac Establish a mapping relationship with the output port and start the aging mechanism for the mac entry.
  • Step 5 Each output port in the packet receiving component records the performance of the port according to the corresponding mac entry.
  • the performance value of the current output port is calculated, and the corresponding performance value interval sent by the control component is performed. Compare, if it does not fall within this interval, still maintain the current weight value allocation; if it has fallen into this interval, find the weight value of other output ports, choose not to reach the performance interval, and the weight value is the largest.
  • the output port adjusts the weight values of the two output ports so that the newly found output port is the priority value.
  • Step 6 Figure 6 (2) The access packet is sent to the packet processing component, and the packet processing component parses the packet and maintains the packet status, and sends the packet to the control component for authentication. (3)
  • Step 7 After receiving the authentication request, the control component sends the authentication information to the service server.
  • Figure 6 (4)
  • Step 8 After receiving the authentication request, the service server performs authentication processing, and then returns the authentication result to the control component of the controller.
  • Step 9 After receiving the authentication result packet of the service server, the control component performs internal processing. If the processing succeeds, the success result is notified to the packet receiving component.
  • Step 10 The message processing component notifies the packet receiving component to the packet receiving component in Figure 6 (7), and the packet processing component returns the result to the broadband access device.
  • Step 11 After receiving the processing result of the control component, the packet receiving component finds the corresponding mac entry according to the mac information, and cancels the aging mechanism of the mac entry; if the packet receiving component arrives at the aging time, the packet is not received. Controls the processing result of the component, deletes the output value of the MAC table entry, and the output performance value in the group table. If the performance value is still in the performance alarm interval sent by the control component, the weight values in the group table are not updated. When the performance value falls below the lower limit of the alarm interval, query the performance of the current output ports. If the alarm status has been reached, adjust the weight value. If the situation is not met, the weight value is not modified.
  • Step 12 The service packet of the same mac is sent to the packet receiving component, and the packet receiving component searches for the mac entry according to the mac, and delivers the packet to the output port that is associated with the packet.
  • Step 13 When the performance value corresponding to the current output port in the packet receiving component reaches the alarm interval, that is, the packet processing component (1) has reached the performance alarm lower limit, and the packet receiving component adjusts the weight value corresponding to each output in the group table.
  • the output port corresponding to the packet processing component (2) is adjusted to the priority value.
  • the packet receiving component distributes the packet to the packet processing component (2) according to the new weight value distribution. Processing, as shown in Figure 6 (9), achieves the effect of sharing service packets.
  • the service packet load sharing between the packet processing components can more effectively utilize the performance of each component in the controller to optimize the performance of the entire controller and avoid affecting the processing effect of the controller due to a component performance bottleneck.
  • the performance alarm interval of each component can be flexibly adjusted according to the condition of each packet processing component, or the packet processing component in the control can be dynamically increased or decreased, without affecting the processing performance of the controller. Controller maintenance and business adaptability are more flexible.
  • the user access packet is used as an example to describe the implementation process of load balancing of the access packets of the user in parallel processing among multiple packet processing components.
  • Step 1 When the controller is started, the policy control component sends the performance indicators of each packet processing component to the packet receiving component.
  • the performance indicator uses: indicates the performance of each packet processing component in the service processing, and the performance value is a The value of the interval indicates that the performance of the component has reached the alarm state.
  • the performance of the packet processing component reaches the lower limit of the interval, it indicates that the component has met the switching condition, and other components can take over the subsequent service packet processing work.
  • the performance reaches the upper limit of the interval it indicates that the component has reached the saturation state, and the service packet cannot be processed.
  • the service packet must be processed by other components. Otherwise, the packet processing is abnormal.
  • the performance of the component falls again to this interval. Below the lower limit, it indicates that the component has been released from the warning state and can be used as an optional component to process the service message; in this method, only the upper limit value of the performance interval is concerned.
  • Step 2 After receiving the user access message sent by the broadband access device, the message receiving component records the source mac in the packet in the internal entry of the component, according to the user mac and the internal
  • the mapping algorithm such as hash (putting an input of arbitrary length, also called pre-mapping, transforming into a fixed-length output by a hashing algorithm), obtains a message processing component to be delivered, and calculates the performance of the message processing component. And record. If the upper limit is not reached, the current message processing component is selected; otherwise, the selection is performed in the order of the components until the qualified component is found.
  • the message is delivered to the corresponding packet processing component - the packet processing component (1), as shown in Figure 6 (2), and the aging mechanism is started on the mac entry; Conditional packet processing component, user access failed.
  • Step 3 Figure 6 (2) The access packet is sent to the packet processing component, and the packet processing component parses the packet and maintains the packet status, and sends the packet to the control component for authentication. (3)
  • Step 4 After receiving the authentication request, the control component sends the authentication information to the service server.
  • Figure 6 (4)
  • Step 5 After receiving the authentication request, the service server performs authentication processing, and then returns the authentication result to the control component of the controller.
  • Figure 6 (5)
  • Step 6 After receiving the authentication result packet of the service server, the control component performs internal processing. If the processing succeeds, the success result is notified to the packet receiving component. FIG. 6 (10); the control component notifies the packet processing component of the authentication result. Figure 6 (6)
  • Step 7 The packet processing component notifies the packet receiving component to the packet receiving component in FIG. 6(7), and the packet processing component returns the result to the broadband access device.
  • FIG. 6(8) The packet processing component notifies the packet receiving component to the packet receiving component in FIG. 6(7), and the packet processing component returns the result to the broadband access device.
  • Step 8 After receiving the processing result of the control component, the packet receiving component finds the corresponding mac entry according to the mac information, and cancels the aging mechanism of the mac entry; if the packet receiving component arrives at the aging time, it does not receive Controls the processing result of the component, deletes the mac entry, and adjusts the performance value of the corresponding packet processing component and records it.
  • Step 9 The service packet of the same mac is sent to the packet receiving component, and the packet receiving component searches the mac entry according to the mac, and delivers the packet to the corresponding packet processing component.
  • Step 10 When the different users access, the packet receiving component processes the packet according to the method in step 2, and sends the packet to the packet processing component (2), as shown in Figure 6 (9), reaching the service packet. Shared effect
  • the service packet load sharing between the packet processing components can more effectively utilize the performance of each component in the controller to optimize the performance of the entire controller and avoid affecting the processing effect of the controller due to a component performance bottleneck.
  • the performance alarm interval of each component can be flexibly adjusted according to the condition of each packet processing component, or the packet processing component in the control can be dynamically increased or decreased, without affecting the processing performance of the controller. Controller maintenance and business adaptability are more flexible.
  • the embodiment of the present invention provides a packet forwarding control method, which is not allocated to the packet processing component in sequence, as in the prior art, and is allocated to the second packet processing component after the first packet processing component is fully loaded. After receiving the packet, the corresponding target packet processing component is selected according to the forwarding control policy, so that load balancing of the service packet can be implemented, thereby ensuring that the load of each packet processing component does not appear as existing.
  • Some of the packet processing components such as the technology are in the upper limit of the performance alarm, and the packet processing component is protected to a certain extent, which increases the utilization and stability of the packet processing component.
  • embodiments of the present invention can be provided as a method, system, or computer program product.
  • embodiments of the invention may be implemented in hardware, software, or a combination of software and hardware.
  • the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the message processing component is not sequentially allocated as in the prior art, and after the first message processing component is fully loaded, the second message processing component is allocated, but is received. After the packet is received, the corresponding target packet processing component is selected according to the forwarding control policy, so that load balancing of the service packet can be implemented, and the load of each packet processing component does not appear as part of the prior art.
  • the file processing component is in the performance alarm upper limit, the packet processing component is protected to a certain extent, and the utilization and stability of the packet processing component are increased.

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A message forwarding control method and device, and a broadband access system. The method comprises: receiving a message to be forwarded; according to a forwarding control policy and the service performance of each message processing component, determining a target message processing component of the message to be forwarded; and forwarding the message to be forwarded to the target message processing component. After a message is received, a corresponding target message processing component is selected according to a forwarding control policy, so that load sharing can be performed on a service message, and it is further ensured that the case where some message processing components are in an upper limit of the performance alarm as that in the prior art does not occur to the load of each message processing component, thereby increasing the utilization and stability of the message processing component.

Description

一种报文转发控制方法、装置及宽带接入***Message forwarding control method, device and broadband access system 技术领域Technical field
本公开涉及通信领域,尤其涉及一种报文转发控制方法、装置及宽带接入***。The present disclosure relates to the field of communications, and in particular, to a packet forwarding control method, apparatus, and broadband access system.
背景技术Background technique
随着宽带接入技术的发展及网络用户的不断增加,宽带接入设备的投入量在不断增加,但目前大多情况下,各宽带接入设备的配置及维护都是独立和分散的,设备的增加,在满足用户接入容量及性能需求的同时,也给运维和成本带来了弊端。With the development of broadband access technologies and the increasing number of network users, the input of broadband access devices is increasing. However, in most cases, the configuration and maintenance of broadband access devices are independent and decentralized. The increase, while meeting the user's access capacity and performance requirements, also brings disadvantages to operation and maintenance costs.
网络功能的虚拟化将宽带接入的控制功能通过软件的方式,集中在控制器完成,而原始的宽带接入设备仅承担着流量上送及转发的功能,各宽带接入设备由控制器统一管理,包括各控制器相关的配置。一个控制器会下挂多台的宽带接入设备,控制器所承载的用户数量也会随着下挂的宽带接入设备的增加而增加,在网络布署日益复杂和扩大的背景下,控制器的处理性能直接影响着整个网络的性能及用户的体验。The virtualization of the network function integrates the control function of the broadband access through the software in the controller, and the original broadband access device only bears the function of sending and forwarding traffic. The broadband access devices are unified by the controller. Management, including configuration related to each controller. A controller will hang multiple broadband access devices. The number of users carried by the controller will also increase with the increase of the number of broadband access devices. In the context of increasingly complex and expanded network deployment, control The processing performance directly affects the performance of the entire network and the user experience.
发明内容Summary of the invention
本发明实施例提供了一种报文转发控制方法、装置及宽带接入***,以提供一种高性能的控制器及宽带接入***。The embodiment of the invention provides a packet forwarding control method, device and broadband access system to provide a high performance controller and a broadband access system.
一方面,提供了一种报文转发控制方法,包括:In one aspect, a packet forwarding control method is provided, including:
接收待转发报文;Receiving a packet to be forwarded;
根据转发控制策略及各报文处理组件的业务性能,确定待转发报文的目标报文处理组件;Determining a target packet processing component of the packet to be forwarded according to the forwarding control policy and the service performance of each packet processing component;
将待转发报文转发至目标报文处理组件。The packet to be forwarded is forwarded to the target packet processing component.
一方面,提供了一种报文转发控制装置,其包括:接收模块、分配模块及发送模块,其中,In one aspect, a packet forwarding control apparatus is provided, including: a receiving module, an allocating module, and a sending module, where
接收模块设置为接收待转发报文;The receiving module is configured to receive the to-be-forwarded packet;
分配模块设置为根据转发控制策略及各报文处理组件的业务性能,确定待转发报文的目标报文处理组件;The allocation module is configured to determine a target packet processing component of the packet to be forwarded according to the forwarding control policy and the service performance of each packet processing component;
发送模块设置为将待转发报文转发至目标报文处理组件。The sending module is configured to forward the to-be-forwarded packet to the target packet processing component.
另一方面,提供了一种宽带接入***,其包括宽带接入设备、业务服务器,以及 连接宽带接入设备与业务服务器的控制器;控制器包括报文接收组件、至少一个报文处理组件、及控制组件,报文接收组件包括处理器及通信模块,其中,通信模块设置为接收宽带接入设备发送的待转发报文;处理器设置为接收控制组件下发的转发控制策略,获取各报文处理组件的业务性能,根据转发控制策略及各报文处理组件的业务性能,确定待转发报文的目标报文处理组件;通信模块用于将待转发报文转发至目标报文处理组件。In another aspect, a broadband access system is provided that includes a broadband access device, a service server, and a controller for connecting the broadband access device to the service server; the controller includes a message receiving component, at least one message processing component, and a control component, the message receiving component includes a processor and a communication module, wherein the communication module is configured to receive the broadband The device is configured to receive the forwarding control policy sent by the control component, and obtain the service performance of each packet processing component, and determine the service performance according to the forwarding control policy and the service performance of each packet processing component. A target packet processing component that forwards the packet; the communication module is configured to forward the to-be-forwarded packet to the target packet processing component.
另一方面,提供了一种计算机存储介质,计算机存储介质中存储有计算机可执行指令,计算机可执行指令用于执行前述的报文转发控制方法。In another aspect, a computer storage medium is provided, the computer storage medium storing computer executable instructions, and the computer executable instructions for performing the foregoing message forwarding control method.
本发明实施例的有益效果:Advantageous effects of embodiments of the present invention:
本发明实施例提供了一种报文转发控制方法,不是如现有技术那样,依次分配报文处理组件,在第一个报文处理组件满载后,才会分配到第二个报文处理组件,而是在接收到报文后,根据转发控制策略选取对应的目标报文处理组件,这样就可以实现对业务报文进行负载分担,进而保证各报文处理组件的负载不会出现如现有技术那样的部分报文处理组件处于性能告警上限的情况,在一定程度上对报文处理组件进行了保护,增加了报文处理组件的利用率及稳定性。The embodiment of the present invention provides a packet forwarding control method, which is not allocated to the packet processing component in sequence, as in the prior art, and is allocated to the second packet processing component after the first packet processing component is fully loaded. After receiving the packet, the corresponding target packet processing component is selected according to the forwarding control policy, so that load balancing of the service packet can be implemented, thereby ensuring that the load of each packet processing component does not appear as existing. Some of the packet processing components such as the technology are in the upper limit of the performance alarm, and the packet processing component is protected to a certain extent, which increases the utilization and stability of the packet processing component.
附图说明DRAWINGS
图1为本发明第一实施例提供的报文转发控制方法的流程图;FIG. 1 is a flowchart of a packet forwarding control method according to a first embodiment of the present invention;
图2为本发明第二实施例提供的报文转发控制装置的结构示意图;2 is a schematic structural diagram of a packet forwarding control apparatus according to a second embodiment of the present invention;
图3是本发明第四实施例中的宽带接入***的结构示意图;3 is a schematic structural diagram of a broadband access system in a fourth embodiment of the present invention;
图4是本发明第四实施例中的控制器的结构示意图;4 is a schematic structural diagram of a controller in a fourth embodiment of the present invention;
图5是本发明第四实施例涉及的报文走向示意图;FIG. 5 is a schematic diagram of a packet path according to a fourth embodiment of the present invention; FIG.
图6是本发明第四实施例涉及的控制器内组件的连接示意图。Fig. 6 is a schematic view showing the connection of components in the controller according to the fourth embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例只是本公开中一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying 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 disclosure, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
现通过具体实施方式结合附图的方式对本公开做出进一步的诠释说明。 The present disclosure is further illustrated by the specific embodiments in conjunction with the accompanying drawings.
第一实施例:First embodiment:
图1为本发明第一实施例提供的报文转发控制方法的流程图,由图1可知,本实施例提供的报文转发控制方法包括:FIG. 1 is a flowchart of a packet forwarding control method according to a first embodiment of the present invention. As shown in FIG. 1, the packet forwarding control method provided in this embodiment includes:
S101:接收待转发报文;S101: Receive a to-be-forwarded packet.
S102:根据转发控制策略及各报文处理组件的业务性能,确定待转发报文的目标报文处理组件;S102: Determine, according to the forwarding control policy and the service performance of each packet processing component, a target packet processing component of the packet to be forwarded;
S103:将待转发报文转发至目标报文处理组件。S103: Forward the to-be-forwarded packet to the target packet processing component.
在一些实施例中,上述实施例中的转发控制策略包括根据各报文处理组件的权重值选择目标报文处理组件;确定待转发报文的目标报文处理组件包括:In some embodiments, the forwarding control policy in the foregoing embodiment includes: selecting a target packet processing component according to a weight value of each packet processing component; and determining a target packet processing component of the packet to be forwarded includes:
获取各报文处理组件的权重值,选择优选报文处理组件;Obtaining a weight value of each packet processing component, and selecting a preferred packet processing component;
判断优选报文处理组件的业务性能是否满足当选目标报文处理组件的当选条件;Determining whether the service performance of the preferred message processing component meets the selection condition of the selected target message processing component;
若满足当选条件,则当选为待转发报文的目标报文处理组件;If the election condition is met, the target message processing component of the message to be forwarded is elected;
若不满足当选条件,则选择下一优选报文处理组件。If the election condition is not met, the next preferred message processing component is selected.
在一些实施例中,上述实施例中的转发控制策略包括根据待转发报文的源用户标识选择目标报文处理组件;确定待转发报文的目标报文处理组件包括:In some embodiments, the forwarding control policy in the foregoing embodiment includes: selecting a target packet processing component according to the source user identifier of the packet to be forwarded; and determining the target packet processing component of the packet to be forwarded includes:
根据待转发报文的源用户标识及映射算法,选择优选报文处理组件;Selecting a preferred packet processing component according to the source user identifier and mapping algorithm of the packet to be forwarded;
判断优选报文处理组件的业务性能是否满足当选目标报文处理组件的当选条件;Determining whether the service performance of the preferred message processing component meets the selection condition of the selected target message processing component;
若满足当选条件,则当选为待转发报文的目标报文处理组件;If the election condition is met, the target message processing component of the message to be forwarded is elected;
若不满足当选条件,则选择下一优选报文处理组件。If the election condition is not met, the next preferred message processing component is selected.
在一些实施例中,上述实施例中的报文转发控制方法还包括:在接收到待转发报文的处理结果时,更新报文处理组件的业务性能。In some embodiments, the packet forwarding control method in the foregoing embodiment further includes: updating the service performance of the packet processing component when receiving the processing result of the packet to be forwarded.
在一些实施例中,上述实施例中的报文转发控制方法还包括:In some embodiments, the packet forwarding control method in the foregoing embodiment further includes:
根据待转发报文的源用户标识,判断是否已经为对应用户分配目标报文处理组件;Determining whether the target packet processing component has been allocated to the corresponding user according to the source user identifier of the packet to be forwarded;
若已经为对应用户分配目标报文处理组件,则将待转发报文转发至对应用户的目标报文处理组件;If the target packet processing component has been allocated to the corresponding user, the packet to be forwarded is forwarded to the target packet processing component of the corresponding user;
若没有为对应用户分配目标报文处理组件,则确定待转发报文的目标报文处理组件,并记录源用户标识与目标报文处理组件的对应关系。If the target packet processing component is not allocated to the corresponding user, the target packet processing component of the packet to be forwarded is determined, and the correspondence between the source user identifier and the target packet processing component is recorded.
图2为本发明第二实施例提供的报文转发控制装置的结构示意图,由图2可知,本实施例提供的报文转发控制装置包括:接收模块21、分配模块22及发送模块23, 其中,2 is a schematic structural diagram of a packet forwarding control apparatus according to a second embodiment of the present invention. As shown in FIG. 2, the packet forwarding control apparatus provided in this embodiment includes: a receiving module 21, an allocating module 22, and a sending module 23, among them,
接收模块21设置为接收待转发报文;The receiving module 21 is configured to receive a message to be forwarded;
分配模块22设置为根据转发控制策略及各报文处理组件的业务性能,确定待转发报文的目标报文处理组件;The allocating module 22 is configured to determine a target packet processing component of the packet to be forwarded according to the forwarding control policy and the service performance of each packet processing component;
发送模块23设置为将待转发报文转发至目标报文处理组件。The sending module 23 is configured to forward the to-be-forwarded message to the target message processing component.
在一些实施例中,转发控制策略包括根据各报文处理组件的权重值选择目标报文处理组件,或者根据待转发报文的源用户标识选择目标报文处理组件;上述实施例中的分配模块22设置为,获取各报文处理组件的权重值,选择优选报文处理组件,判断优选报文处理组件的业务性能是否满足当选目标报文处理组件的当选条件,若满足当选条件,则当选为待转发报文的目标报文处理组件,若不满足当选条件,则选择下一优选报文处理组件;或者,根据待转发报文的源用户标识及映射算法,选择优选报文处理组件,判断优选报文处理组件的业务性能是否满足当选目标报文处理组件的当选条件,若满足当选条件,则当选为待转发报文的目标报文处理组件,若不满足当选条件,则选择下一优选报文处理组件。In some embodiments, the forwarding control policy includes selecting a target packet processing component according to a weight value of each packet processing component, or selecting a target packet processing component according to a source user identifier of the to-be-forwarded packet; the allocation module in the foregoing embodiment 22 is configured to obtain a weight value of each packet processing component, and select a preferred packet processing component to determine whether the service performance of the preferred packet processing component meets the selection condition of the selected target packet processing component, and if the election condition is met, the candidate is elected as If the target packet processing component of the packet to be forwarded does not meet the selection criteria, the next preferred packet processing component is selected; or, according to the source user identifier and mapping algorithm of the packet to be forwarded, the preferred packet processing component is selected to determine Preferably, the service performance of the packet processing component meets the selection condition of the selected target packet processing component. If the election condition is met, the target packet processing component of the packet to be forwarded is selected, and if the election condition is not met, the next preference is selected. Message processing component.
在一些实施例中,上述实施例中的分配模块22设置为根据待转发报文的源用户标识,判断是否已经为对应用户分配目标报文处理组件,若已经为对应用户分配目标报文处理组件,则将待转发报文转发至对应用户的目标报文处理组件,若没有为对应用户分配目标报文处理组件,则确定待转发报文的目标报文处理组件,并记录源用户标识与目标报文处理组件的对应关系。In some embodiments, the allocating module 22 in the foregoing embodiment is configured to determine, according to the source user identifier of the to-be-forwarded packet, whether the target packet processing component has been allocated to the corresponding user, if the target packet processing component has been allocated to the corresponding user. The packet to be forwarded is forwarded to the target packet processing component of the corresponding user. If the target packet processing component is not allocated to the corresponding user, the target packet processing component of the packet to be forwarded is determined, and the source user identifier and target are recorded. The correspondence between the message processing components.
在实际应用中,图2所示实施例中的所有功能模块,如接收模块21、分配模块22及发送模块23等都可以采用处理器、编辑逻辑器件等方式实现。In practical applications, all the functional modules in the embodiment shown in FIG. 2, such as the receiving module 21, the allocating module 22, and the transmitting module 23, can be implemented by using a processor, an editing logic device, or the like.
第三实施例:Third embodiment:
本实施例提供了一种宽带接入***,其包括宽带接入设备、业务服务器,以及连接宽带接入设备与业务服务器的控制器;控制器包括报文接收组件、至少一个报文处理组件、及控制组件,报文接收组件包括处理器及通信模块,其中,The embodiment provides a broadband access system, which includes a broadband access device, a service server, and a controller that connects the broadband access device and the service server; the controller includes a message receiving component, at least one packet processing component, And a control component, the message receiving component includes a processor and a communication module, wherein
通信模块设置为接收宽带接入设备发送的待转发报文;The communication module is configured to receive the to-be-forwarded packet sent by the broadband access device;
处理器设置为接收控制组件下发的转发控制策略,获取各报文处理组件的业务性能,根据转发控制策略及各报文处理组件的业务性能,确定待转发报文的目标报文处理组件;The processor is configured to receive the forwarding control policy delivered by the control component, obtain the service performance of each packet processing component, and determine the target packet processing component of the packet to be forwarded according to the forwarding control policy and the service performance of each packet processing component;
通信模块设置为将待转发报文转发至目标报文处理组件。 The communication module is configured to forward the message to be forwarded to the target message processing component.
在一些实施例中,上述实施例中的转发控制策略包括根据各报文处理组件的权重值选择目标报文处理组件,或者根据待转发报文的源用户标识选择目标报文处理组件;处理器设置为,获取各报文处理组件的权重值,或者根据待转发报文的源用户标识及映射算法,选择优选报文处理组件,或者判断优选报文处理组件的业务性能是否满足当选目标报文处理组件的当选条件,若满足当选条件,则当选为待转发报文的目标报文处理组件,若不满足当选条件,则选择下一优选报文处理组件。In some embodiments, the forwarding control policy in the foregoing embodiment includes: selecting a target packet processing component according to a weight value of each packet processing component, or selecting a target packet processing component according to a source user identifier of the to-be-forwarded packet; The method is configured to obtain a weight value of each packet processing component, or select a preferred packet processing component according to a source user identifier and a mapping algorithm of the to-be-forwarded packet, or determine whether the service performance of the preferred packet processing component meets the selected target packet. If the selection condition of the processing component is met, the target packet processing component of the packet to be forwarded is selected, and if the selection condition is not met, the next preferred packet processing component is selected.
在一些实施例中,上述实施例中的处理器设置为根据待转发报文的源用户标识,判断是否已经为对应用户分配目标报文处理组件,若已经为对应用户分配目标报文处理组件,则将待转发报文转发至对应用户的目标报文处理组件,若没有为对应用户分配目标报文处理组件,则确定待转发报文的目标报文处理组件,并记录源用户标识与目标报文处理组件的对应关系。In some embodiments, the processor in the foregoing embodiment is configured to determine, according to the source user identifier of the packet to be forwarded, whether the target packet processing component has been allocated to the corresponding user, and if the target packet processing component has been allocated to the corresponding user, The packet to be forwarded is forwarded to the target packet processing component of the corresponding user. If the target packet processing component is not allocated to the corresponding user, the target packet processing component of the packet to be forwarded is determined, and the source user identifier and the target report are recorded. The correspondence between the document processing components.
第四实施例:Fourth embodiment:
现结合具体应用场景对本公开做进一步的诠释说明。The present disclosure will be further explained in conjunction with specific application scenarios.
本实施例提供了一种通过openflow(改革派提出的一种新型网络交换模型)组表对宽带接入中的业务报文进行负载分担的方法以及通过用户mac(Media Access Control,媒体访问控制地址)对宽带接入中的业务报文进行负载分担的方法,并可通过命令,在两种负载分担方式间进行切换。在网络功能虚拟化的架构下,控制器管理控制着下挂的宽带接入设备,内部分为多个组件,包括处理业务报文的接收及应答报文的发送(以下简称接收组件),业务报文的处理(以下简称报文处理组件),策略控制(以下简称控制组件)等多个功能的组件。The present embodiment provides a method for load-sharing service packets in broadband access through openflow (a new type of network switching model proposed by the reformist) and a user access control (media access control) A load balancing method for service packets in broadband access, and can be switched between two load sharing modes by using commands. Under the network function virtualization architecture, the controller manages the connected broadband access device, and is internally divided into multiple components, including processing the receipt of service packets and the transmission of response packets (hereinafter referred to as receiving components), services. Packet processing (hereinafter referred to as message processing component), policy control (hereinafter referred to as control component) and other components of multiple functions.
如图3中所示,控制器下挂多个宽带接入设备,北向连接业务服务器(如radius服务器、portal服务器等),宽带接入设备接收宽带用户的业务相关报文,将报文投递到控制器集中处理,控制器将报文处理后,与业务服务器进行业务交互,之后将应答报文发送给宽带接入服务器,宽带接入服务器再返回给宽带用户。As shown in Figure 3, the controller hangs multiple broadband access devices, and connects to the service server (such as a radius server or a portal server) in the north. The broadband access device receives the service-related packets of the broadband users and delivers the packets to the packets. The controller processes the packet, and after the controller processes the packet, it performs service interaction with the service server, and then sends the response packet to the broadband access server, and the broadband access server returns to the broadband user.
本实施例提供的两种负载分担方法,实现功能如下:通过openflow组表中的权重值的动态调整实现某一时间段内多个组件间并发处理报文的负载分担方式,如图4,即一段时间内,报文会优先上送某一个报文处理组件,在此组件达到性能告警区间时,再切换到另一个报文处理组件处理报文;通过用户mac的映射计算实现某一时间段内多个组件间并行处理报文的负载分担方式,如图5,即一段时间内,业务报 文分别被投递到不同的报文处理组件上,各报文处理组件并未达到性能告警上限。The two load balancing methods provided in this embodiment are implemented as follows: The dynamic load adjustment in the openflow group table implements the load sharing mode of concurrently processing packets between multiple components in a certain time period, as shown in FIG. 4 After a period of time, the packet is forwarded to a packet processing component. When the component reaches the performance alarm interval, it switches to another packet processing component to process the packet. The user mac map is used to calculate a certain time period. Load balancing mode for processing packets in parallel between multiple components, as shown in Figure 5, that is, a service report for a period of time. The texts are delivered to different packet processing components, and each packet processing component does not meet the performance alarm limit.
如图6中所示,控制器中的报文接收组件接收南向宽带接入设备上送的业务相关报文,根据组件中的openflow组表中的权重值,选择业务相关报文要送达的报文处理组件,同时将此用户信息记录下来,与报文处理组件对应,之后通过组表中的output(信号输出)端口,将报文送到报文处理组件中As shown in FIG. 6, the message receiving component in the controller receives the service-related packet sent by the southbound broadband access device, and selects the service-related packet to be delivered according to the weight value in the openflow group table in the component. The message processing component records the user information at the same time, corresponding to the message processing component, and then sends the message to the message processing component through the output (signal output) port in the group table.
接下来,报文处理组件对业务的报文进行处理,并上送到控制组件Next, the message processing component processes the message of the service and sends it to the control component.
进一步,控制组件与业务服务器进行交互,对用户进行认证或是计费等操作,之后将业务服务器的应答报文发送给报文处理组件;同时控制组件将业务的处理结果发送给报文接收组件Further, the control component interacts with the service server to perform authentication or accounting operations on the user, and then sends the response packet of the service server to the packet processing component; and the control component sends the processing result of the service to the packet receiving component.
进一步,报文接收组件接收到控制组件的处理结果后,对openflow组表中的权重值进行修改,以便下一个业务报文上送时,选择合适的报文处理组件。Further, after receiving the processing result of the control component, the packet receiving component modifies the weight value in the openflow group table, so that when the next service packet is sent, the appropriate packet processing component is selected.
报文处理组件接收到控制组件返回的应答报文后,将应答报文发送给报文接收组件,报文接收组件将应答报文发送给宽带接入设备,宽带接入设备再将应答报文返回给宽带用户After receiving the response packet returned by the control component, the packet processing component sends the response packet to the packet receiving component, and the packet receiving component sends the response packet to the broadband access device, and the broadband access device responds to the packet. Return to broadband users
如图6中所示,控制器中的报文接收组件,接收宽带接入设备上送的业务相关报文,根据用户的mac,在报文接收组件中进行映射计算,选择业务报文要送达的报文处理组件,同时将用户信息记录下来,与报文处理组件对应,之后通过组表中的output端口,将报文送到报文处理组件中As shown in FIG. 6, the message receiving component of the controller receives the service-related packet sent by the broadband access device, performs mapping calculation in the packet receiving component according to the mac of the user, and selects the service packet to be sent. The message processing component of the packet is recorded, and the user information is recorded, corresponding to the packet processing component, and then sent to the packet processing component through the output port in the group table.
进一步,报文处理组件对业务的报文进行处理,并上送到控制组件,控制组件与业务服务器进行交互,之后将业务服务器的应答报文发送给报文处理组件;同时控制组件将业务的处理结果发送给报文接收组件Further, the packet processing component processes the packet of the service and sends it to the control component, and the control component interacts with the service server, and then sends the response packet of the service server to the packet processing component; The processing result is sent to the message receiving component.
进一步,报文接收组件接收到控制组件的处理结果后,对mac表项进行处理。Further, after receiving the processing result of the control component, the packet receiving component processes the mac entry.
报文处理组件接收到控制组件返回的应答报文后,将应答报文发送给报文接收组件,报文接收组件将应答报文发送给宽带接入设备,宽带接入设备再将应答报文返回给宽带用户After receiving the response packet returned by the control component, the packet processing component sends the response packet to the packet receiving component, and the packet receiving component sends the response packet to the broadband access device, and the broadband access device responds to the packet. Return to broadband users
总体而言,本实施例通过openflow组表中的权重值的动态调整或通过用户mac的映射计算,实现宽带接入设备上送的业务相关报文,在不同的报文处理组件间进行负载分担,提高控制器对报文的处理性能,并可通过命令,在两种负载分担方式间灵活切换。两种方式中,通过openflow组表中的权重值的动态调整实现某一时间段内多个组件间并发处理报文的负载分担方式;通过用户mac的映射计算实现某一时间 段内多个组件间并行处理报文的负载分担方式。In general, in this embodiment, the service-related packets sent by the broadband access device are implemented through the dynamic adjustment of the weight value in the openflow group table or the mapping calculation by the user mac, and load sharing is performed between different packet processing components. The controller can improve the processing performance of packets, and can flexibly switch between the two load sharing modes through commands. In the two modes, the load balancing mode of concurrently processing packets between multiple components in a certain period of time is implemented by dynamically adjusting the weight value in the openflow group table; Load balancing mode for processing packets in parallel between multiple components in a segment.
下面通过对具体场景的描述来进一步说明:The following is further illustrated by a description of the specific scenario:
具体场景例1:Specific scenario example 1:
以用户接入报文为例,说明通过openflow组表中权重值的动态调整,使用户的接入报文在多个报文处理组件间以并发处理方式进行负载分担的实施过程。The user access packet is used as an example to describe the implementation of the load balancing of the user's access packets in the concurrent processing mode.
具体步骤为:The specific steps are:
步骤1:在控制器启动时,策略控制组件向报文接收组件下发openflow的组表,组表中内容主要包括:output端口-与控制器中的报文处理组件连接的端口,每个组表中可有多个output端口,每个output端口对应一个权重值,权重值由报文接收组件根据内部策略进行初始化,并设置为大小不同的值Step 1: When the controller is started, the policy control component sends an openflow group table to the packet receiving component. The contents of the group table mainly include: an output port - a port connected to the packet processing component in the controller, and each group There may be multiple output ports in the table, and each output port corresponds to a weight value. The weight value is initialized by the packet receiving component according to the internal policy, and is set to a value different in size.
步骤2:在控制器启动时,策略控制组件向报文接收组件下发各报文处理组件的性能指标,性能指标用途:指明每个报文处理组件在业务处理上的性能,性能值是一个区间的值,代表组件的性能已经达到了告警状态,在报文处理组件的性能达到此区间的下限时,表明组件已经满足切换条件,可由其他组件接手后续的业务报文处理工作,当组件的性能达到此区间的上限时,表明组件已经达到饱和状态,不能再处理业务报文,必须转由其他组件处理业务报文,否则会导致报文处理异常,当组件的性能再次下降到此区间的下限以下时,表明组件已解除警告状态,可作为备选组件处理业务报文。Step 2: When the controller is started, the policy control component sends the performance indicators of each packet processing component to the packet receiving component. The performance indicator uses: indicates the performance of each packet processing component in the service processing, and the performance value is a The value of the interval indicates that the performance of the component has reached the alarm state. When the performance of the packet processing component reaches the lower limit of the interval, it indicates that the component has met the switching condition, and other components can take over the subsequent service packet processing work. When the performance reaches the upper limit of the interval, it indicates that the component has reached the saturation state, and the service packet cannot be processed. The service packet must be processed by other components. Otherwise, the packet processing is abnormal. When the performance of the component falls again to this interval. Below the lower limit, the component has been de-asserted and can be used as an optional component to process business messages.
步骤3,报文接收组件接收到控制组件下发的openflow组表后,将output端口与北向的各报文处理组件建立对应关系;同时根据报文处理组件的初始化过程,为每一个output端口设定不同的权重值。Step 3: After receiving the openflow group table sent by the control component, the packet receiving component associates the output port with each packet processing component in the north direction; and sets the output port for each output port according to the initialization process of the packet processing component. Different weight values.
步骤4,图6(1)报文接收组件在接收到宽带接入设备上送的用户接入报文后,将报文中的源mac记录在组件内部的表项中,并查找对应的组表条目,根据组表中各output端口的权重值,选择投递的output端口,将报文投递到相应的报文处理组件-报文处理组件(1)上如图6(2),同时将mac与output端口建立对应关系,并对mac表项启动老化机制Step 4: Figure 6 (1) After receiving the user access message sent by the broadband access device, the packet receiving component records the source mac in the packet in the internal entry of the component, and searches for the corresponding group. The table entry, according to the weight value of each output port in the group table, selects the delivered output port, and delivers the message to the corresponding message processing component - the message processing component (1), as shown in Figure 6 (2), and simultaneously the mac Establish a mapping relationship with the output port and start the aging mechanism for the mac entry.
步骤5,报文接收组件中每个output端口根据对应的mac表项记录端口的性能情况,当mac表项变更时,计算当前output端口的性能值,与控制组件下发的对应性能值区间进行比较,如果未落到此区间内,仍保持当前的权重值分配情况;若已落到此区间中,查找其他output端口的权重值,选择未达到性能区间的,且权重值最大 的output端口,调整两个output端口的权重值,使新查找到的output端口为优先权重值。Step 5: Each output port in the packet receiving component records the performance of the port according to the corresponding mac entry. When the mac entry is changed, the performance value of the current output port is calculated, and the corresponding performance value interval sent by the control component is performed. Compare, if it does not fall within this interval, still maintain the current weight value allocation; if it has fallen into this interval, find the weight value of other output ports, choose not to reach the performance interval, and the weight value is the largest The output port adjusts the weight values of the two output ports so that the newly found output port is the priority value.
步骤6,图6(2)接入报文被上送到报文处理组件,报文处理组件对报文进行解析,并维护报文状态,同时将报文上送给控制组件进行认证图6(3)Step 6: Figure 6 (2) The access packet is sent to the packet processing component, and the packet processing component parses the packet and maintains the packet status, and sends the packet to the control component for authentication. (3)
步骤7,控制组件接收到认证请求后,将认证信息发往业务服务器图6(4) Step 7. After receiving the authentication request, the control component sends the authentication information to the service server. Figure 6 (4)
步骤8,业务服务器收到认证请求后,进行认证处理,之后将认证结果返回给控制器的控制组件图6(5)Step 8: After receiving the authentication request, the service server performs authentication processing, and then returns the authentication result to the control component of the controller. Figure 6 (5)
步骤9,控制组件接收到业务服务器的认证结果报文后,进行内部处理,若处理成功,将成功结果通知给报文接收组件图6(10);控制组件将认证结果通知到报文处理组件图6(6)Step 9: After receiving the authentication result packet of the service server, the control component performs internal processing. If the processing succeeds, the success result is notified to the packet receiving component. FIG. 6 (10); the control component notifies the packet processing component of the authentication result. Figure 6 (6)
步骤10,报文处理组件将认证结果通知到报文接收组件图6(7),报文处理组件将结果返回给宽带接入设备图6(8)Step 10: The message processing component notifies the packet receiving component to the packet receiving component in Figure 6 (7), and the packet processing component returns the result to the broadband access device. Figure 6 (8)
步骤11,当报文接收组件接收到控制组件的处理结果后,根据mac信息找到对应的mac表项,将mac表项的老化机制取消;若报文接收组件在老化时间到时,未接收到控制组件的处理结果,删除mac表项,同时与之建立对应关系的组表中的output性能值,当性能值依然在控制组件下发的性能告警区间时,不更新组表中的各权重值;当性能值下降到告警区间下限值以下时,查询当前各output端口的性能情况,若已都达告警状态,调整权重值,若未达到此类情况,不修改权重值Step 11: After receiving the processing result of the control component, the packet receiving component finds the corresponding mac entry according to the mac information, and cancels the aging mechanism of the mac entry; if the packet receiving component arrives at the aging time, the packet is not received. Controls the processing result of the component, deletes the output value of the MAC table entry, and the output performance value in the group table. If the performance value is still in the performance alarm interval sent by the control component, the weight values in the group table are not updated. When the performance value falls below the lower limit of the alarm interval, query the performance of the current output ports. If the alarm status has been reached, adjust the weight value. If the situation is not met, the weight value is not modified.
步骤12,相同mac的业务报文上送到报文接收组件,报文接收组件根据mac查找mac表项,将报文投递到与之建立对应关系的output端口上处理Step 12: The service packet of the same mac is sent to the packet receiving component, and the packet receiving component searches for the mac entry according to the mac, and delivers the packet to the output port that is associated with the packet.
步骤13,当报文接收组件中当前的output端口对应的性能值达到告警区间,即报文处理组件(1)已达性能告警下限,报文接收组件调整组表中的各output对应的权重值,将报文处理组件(2)对应的output端口调整为优先权重值,新用户接入时,报文接收组件根据新的权重值分布,将报文送到报文处理组件(2)上进行处理,如图6(9)所示,达到对业务报文分担的效果Step 13: When the performance value corresponding to the current output port in the packet receiving component reaches the alarm interval, that is, the packet processing component (1) has reached the performance alarm lower limit, and the packet receiving component adjusts the weight value corresponding to each output in the group table. The output port corresponding to the packet processing component (2) is adjusted to the priority value. When the new user accesses, the packet receiving component distributes the packet to the packet processing component (2) according to the new weight value distribution. Processing, as shown in Figure 6 (9), achieves the effect of sharing service packets.
报文处理组件间的业务报文负载分担,可更高效的利用控制器内的各组件的性能,以优化提高整个控制器的性能,避免因某一组件性能瓶颈影响控制器的处理效果,同时还可动态根据各报文处理组件自身的情况,灵活的调整各组件的性能告警区间,或是动态增加、减少控制内的报文处理组件,而不影响控制器对报文的处理性能,使控制器的维护和业务适应能力更加灵活。 The service packet load sharing between the packet processing components can more effectively utilize the performance of each component in the controller to optimize the performance of the entire controller and avoid affecting the processing effect of the controller due to a component performance bottleneck. The performance alarm interval of each component can be flexibly adjusted according to the condition of each packet processing component, or the packet processing component in the control can be dynamically increased or decreased, without affecting the processing performance of the controller. Controller maintenance and business adaptability are more flexible.
具体场景2:Specific scenario 2:
以用户接入报文为例,说明通过对用户的mac值的映射计算,使用户的接入报文在多个报文处理组件间以并行处理的方式进行负载分担的实施过程。The user access packet is used as an example to describe the implementation process of load balancing of the access packets of the user in parallel processing among multiple packet processing components.
具体步骤为:The specific steps are:
步骤1:在控制器启动时,策略控制组件向报文接收组件下发各报文处理组件的性能指标,性能指标用途:指明每个报文处理组件在业务处理上的性能,性能值是一个区间的值,代表组件的性能已经达到了告警状态,在报文处理组件的性能达到此区间的下限时,表明组件已经满足切换条件,可由其他组件接手后续的业务报文处理工作,当组件的性能达到此区间的上限时,表明组件已经达到饱和状态,不能再处理业务报文,必须转由其他组件处理业务报文,否则会导致报文处理异常,当组件的性能再次下降到此区间的下限以下时,表明组件已解除警告状态,可作为备选组件处理业务报文;本方法中仅关注性能区间的上限值。Step 1: When the controller is started, the policy control component sends the performance indicators of each packet processing component to the packet receiving component. The performance indicator uses: indicates the performance of each packet processing component in the service processing, and the performance value is a The value of the interval indicates that the performance of the component has reached the alarm state. When the performance of the packet processing component reaches the lower limit of the interval, it indicates that the component has met the switching condition, and other components can take over the subsequent service packet processing work. When the performance reaches the upper limit of the interval, it indicates that the component has reached the saturation state, and the service packet cannot be processed. The service packet must be processed by other components. Otherwise, the packet processing is abnormal. When the performance of the component falls again to this interval. Below the lower limit, it indicates that the component has been released from the warning state and can be used as an optional component to process the service message; in this method, only the upper limit value of the performance interval is concerned.
步骤2,图6(1)报文接收组件在接收到宽带接入设备上送的用户接入报文后,将报文中的源mac记录在组件内部的表项中,根据用户mac及内部的映射算法,如hash(把任意长度的输入,又叫做预映射,通过散列算法,变换成固定长度的输出)算法等,得出将要投递的报文处理组件,计算报文处理组件的性能,并记录。若未达到上限,即选取当前的报文处理组件;否则,按组件顺序顺延选取,直到查到符合条件的组件。将mac与报文处理组件相对应,将报文投递到相应的报文处理组件-报文处理组件(1)上如图6(2),并对mac表项启动老化机制;若未找到符合条件的报文处理组件,用户接入失败。 Step 2, Figure 6 (1) After receiving the user access message sent by the broadband access device, the message receiving component records the source mac in the packet in the internal entry of the component, according to the user mac and the internal The mapping algorithm, such as hash (putting an input of arbitrary length, also called pre-mapping, transforming into a fixed-length output by a hashing algorithm), obtains a message processing component to be delivered, and calculates the performance of the message processing component. And record. If the upper limit is not reached, the current message processing component is selected; otherwise, the selection is performed in the order of the components until the qualified component is found. Corresponding to the packet processing component, the message is delivered to the corresponding packet processing component - the packet processing component (1), as shown in Figure 6 (2), and the aging mechanism is started on the mac entry; Conditional packet processing component, user access failed.
步骤3,图6(2)接入报文被上送到报文处理组件,报文处理组件对报文进行解析,并维护报文状态,同时将报文上送给控制组件进行认证图6(3)Step 3: Figure 6 (2) The access packet is sent to the packet processing component, and the packet processing component parses the packet and maintains the packet status, and sends the packet to the control component for authentication. (3)
步骤4,控制组件接收到认证请求后,将认证信息发往业务服务器图6(4)Step 4: After receiving the authentication request, the control component sends the authentication information to the service server. Figure 6 (4)
步骤5,业务服务器收到认证请求后,进行认证处理,之后将认证结果返回给控制器的控制组件图6(5)Step 5: After receiving the authentication request, the service server performs authentication processing, and then returns the authentication result to the control component of the controller. Figure 6 (5)
步骤6,控制组件接收到业务服务器的认证结果报文后,进行内部处理,若处理成功,将成功结果通知给报文接收组件图6(10);控制组件将认证结果通知到报文处理组件图6(6)Step 6: After receiving the authentication result packet of the service server, the control component performs internal processing. If the processing succeeds, the success result is notified to the packet receiving component. FIG. 6 (10); the control component notifies the packet processing component of the authentication result. Figure 6 (6)
步骤7,报文处理组件将认证结果通知到报文接收组件图6(7),报文处理组件将结果返回给宽带接入设备图6(8) Step 7: The packet processing component notifies the packet receiving component to the packet receiving component in FIG. 6(7), and the packet processing component returns the result to the broadband access device. FIG. 6(8)
步骤8,当报文接收组件接收到控制组件的处理结果后,根据mac信息找到对应的mac表项,将mac表项的老化机制取消;若报文接收组件在老化时间到时,未接收到控制组件的处理结果,删除mac表项,同时调整与之对应的报文处理组件的性能值并记录。Step 8: After receiving the processing result of the control component, the packet receiving component finds the corresponding mac entry according to the mac information, and cancels the aging mechanism of the mac entry; if the packet receiving component arrives at the aging time, it does not receive Controls the processing result of the component, deletes the mac entry, and adjusts the performance value of the corresponding packet processing component and records it.
步骤9,相同mac的业务报文上送到报文接收组件,报文接收组件根据mac查找mac表项,将报文投递到与之对应的报文处理组件上处理Step 9: The service packet of the same mac is sent to the packet receiving component, and the packet receiving component searches the mac entry according to the mac, and delivers the packet to the corresponding packet processing component.
步骤10,当不同用户接入时,报文接收组件根据步骤2的方式进行处理,将报文送到报文处理组件(2)上,如图6(9)所示,达到对业务报文分担的效果Step 10: When the different users access, the packet receiving component processes the packet according to the method in step 2, and sends the packet to the packet processing component (2), as shown in Figure 6 (9), reaching the service packet. Shared effect
报文处理组件间的业务报文负载分担,可更高效的利用控制器内的各组件的性能,以优化提高整个控制器的性能,避免因某一组件性能瓶颈影响控制器的处理效果,同时还可动态根据各报文处理组件自身的情况,灵活的调整各组件的性能告警区间,或是动态增加、减少控制内的报文处理组件,而不影响控制器对报文的处理性能,使控制器的维护和业务适应能力更加灵活。The service packet load sharing between the packet processing components can more effectively utilize the performance of each component in the controller to optimize the performance of the entire controller and avoid affecting the processing effect of the controller due to a component performance bottleneck. The performance alarm interval of each component can be flexibly adjusted according to the condition of each packet processing component, or the packet processing component in the control can be dynamically increased or decreased, without affecting the processing performance of the controller. Controller maintenance and business adaptability are more flexible.
综上可知,通过本发明实施例的实施,至少存在以下有益效果:In summary, through the implementation of the embodiments of the present invention, at least the following beneficial effects exist:
本发明实施例提供了一种报文转发控制方法,不是如现有技术那样,依次分配报文处理组件,在第一个报文处理组件满载后,才会分配到第二个报文处理组件,而是在接收到报文后,根据转发控制策略选取对应的目标报文处理组件,这样就可以实现对业务报文进行负载分担,进而保证各报文处理组件的负载不会出现如现有技术那样的部分报文处理组件处于性能告警上限的情况,在一定程度上对报文处理组件进行了保护,增加了报文处理组件的利用率及稳定性。The embodiment of the present invention provides a packet forwarding control method, which is not allocated to the packet processing component in sequence, as in the prior art, and is allocated to the second packet processing component after the first packet processing component is fully loaded. After receiving the packet, the corresponding target packet processing component is selected according to the forwarding control policy, so that load balancing of the service packet can be implemented, thereby ensuring that the load of each packet processing component does not appear as existing. Some of the packet processing components such as the technology are in the upper limit of the performance alarm, and the packet processing component is protected to a certain extent, which increases the utilization and stability of the packet processing component.
本领域内的技术人员应明白,本发明的实施例可提供为方法、***、或计算机程序产品。因此,本发明的实施例可采用硬件、软件、或软件和硬件相结合的方式来实现。而且,本公开可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Thus, embodiments of the invention may be implemented in hardware, software, or a combination of software and hardware. Moreover, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本公开是参照根据各实施例的方法、设备(***)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指 令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to various embodiments. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine such that the instructions are executed by a processor of a computer or other programmable data processing device Means for generating the functions specified in one or more of the flow or in a single block or blocks of a flow diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
以上仅是本发明的具体实施方式而已,并非对本发明做任何形式上的限制,凡是依据本发明的技术实质对以上实施方式所做的任意简单修改、等同变化、结合或修饰,均仍属于本发明技术方案的保护范围。The above is only a specific embodiment of the present invention, and is not intended to limit the present invention in any way. Any simple modification, equivalent change, combination or modification of the above embodiments in accordance with the technical spirit of the present invention is still in the present invention. The scope of protection of the technical solution of the invention.
工业实用性Industrial applicability
本公开提供的方法和装置可以应用于通信领域。在本公开提供的技术方案中,不是如现有技术那样,依次分配报文处理组件,在第一个报文处理组件满载后,才会分配到第二个报文处理组件,而是在接收到报文后,根据转发控制策略选取对应的目标报文处理组件,这样就可以实现对业务报文进行负载分担,进而保证各报文处理组件的负载不会出现如现有技术那样的部分报文处理组件处于性能告警上限的情况,在一定程度上对报文处理组件进行了保护,增加了报文处理组件的利用率及稳定性。 The methods and apparatus provided by the present disclosure can be applied to the field of communications. In the technical solution provided by the present disclosure, the message processing component is not sequentially allocated as in the prior art, and after the first message processing component is fully loaded, the second message processing component is allocated, but is received. After the packet is received, the corresponding target packet processing component is selected according to the forwarding control policy, so that load balancing of the service packet can be implemented, and the load of each packet processing component does not appear as part of the prior art. When the file processing component is in the performance alarm upper limit, the packet processing component is protected to a certain extent, and the utilization and stability of the packet processing component are increased.

Claims (12)

  1. 一种报文转发控制方法,包括:A packet forwarding control method includes:
    接收待转发报文;Receiving a packet to be forwarded;
    根据转发控制策略及各报文处理组件的业务性能,确定所述待转发报文的目标报文处理组件;Determining, according to the forwarding control policy and the service performance of each packet processing component, the target packet processing component of the to-be-forwarded packet;
    将所述待转发报文转发至所述目标报文处理组件。Forwarding the to-be-forwarded packet to the target packet processing component.
  2. 如权利要求1所述的报文转发控制方法,其中,所述转发控制策略包括根据各报文处理组件的权重值选择目标报文处理组件;所述确定所述待转发报文的目标报文处理组件包括:The packet forwarding control method according to claim 1, wherein the forwarding control policy comprises: selecting a target packet processing component according to a weight value of each packet processing component; and determining the target packet of the to-be-forwarded packet Processing components include:
    获取各报文处理组件的权重值,选择优选报文处理组件;Obtaining a weight value of each packet processing component, and selecting a preferred packet processing component;
    判断所述优选报文处理组件的业务性能是否满足当选目标报文处理组件的当选条件;Determining whether the service performance of the preferred message processing component meets an election condition of the selected target message processing component;
    若满足当选条件,则当选为所述待转发报文的目标报文处理组件;If the election condition is met, the target message processing component of the to-be-forwarded packet is elected;
    若不满足当选条件,则选择下一优选报文处理组件。If the election condition is not met, the next preferred message processing component is selected.
  3. 如权利要求1所述的报文转发控制方法,其中,所述转发控制策略包括根据待转发报文的源用户标识选择目标报文处理组件;所述确定所述待转发报文的目标报文处理组件包括:The packet forwarding control method according to claim 1, wherein the forwarding control policy comprises: selecting a target packet processing component according to a source user identifier of the to-be-forwarded packet; and determining the target packet of the to-be-forwarded packet Processing components include:
    根据待转发报文的源用户标识及映射算法,选择优选报文处理组件;Selecting a preferred packet processing component according to the source user identifier and mapping algorithm of the packet to be forwarded;
    判断所述优选报文处理组件的业务性能是否满足当选目标报文处理组件的当选条件;Determining whether the service performance of the preferred message processing component meets an election condition of the selected target message processing component;
    若满足当选条件,则当选为所述待转发报文的目标报文处理组件;If the election condition is met, the target message processing component of the to-be-forwarded packet is elected;
    若不满足当选条件,则选择下一优选报文处理组件。If the election condition is not met, the next preferred message processing component is selected.
  4. 如权利要求1所述的报文转发控制方法,其中,还包括:在接收到所述待转发报文的处理结果时,更新报文处理组件的业务性能。The packet forwarding control method according to claim 1, further comprising: updating the service performance of the packet processing component when receiving the processing result of the to-be-forwarded packet.
  5. 如权利要求1至4任一项所述的报文转发控制方法,其中,还包括:The packet forwarding control method according to any one of claims 1 to 4, further comprising:
    根据待转发报文的源用户标识,判断是否已经为对应用户分配目标报文处理组件;Determining whether the target packet processing component has been allocated to the corresponding user according to the source user identifier of the packet to be forwarded;
    若已经为对应用户分配目标报文处理组件,则将所述待转发报文转发至对应用户的目标报文处理组件; If the target packet processing component has been allocated to the corresponding user, the to-be-forwarded packet is forwarded to the target packet processing component of the corresponding user;
    若没有为对应用户分配目标报文处理组件,则确定所述待转发报文的目标报文处理组件,并记录所述源用户标识与目标报文处理组件的对应关系。If the target packet processing component is not allocated to the corresponding user, the target packet processing component of the to-be-forwarded packet is determined, and the correspondence between the source user identifier and the target packet processing component is recorded.
  6. 一种报文转发控制装置,其中,包括:接收模块、分配模块及发送模块,其中,A message forwarding control device, comprising: a receiving module, an allocating module, and a sending module, wherein
    所述接收模块设置为接收待转发报文;The receiving module is configured to receive a message to be forwarded;
    所述分配模块设置为根据转发控制策略及各报文处理组件的业务性能,确定所述待转发报文的目标报文处理组件;The allocation module is configured to determine a target packet processing component of the to-be-forwarded packet according to a forwarding control policy and a service performance of each packet processing component;
    所述发送模块设置为将所述待转发报文转发至所述目标报文处理组件。The sending module is configured to forward the to-be-forwarded packet to the target packet processing component.
  7. 如权利要求6所述的报文转发控制装置,其中,所述转发控制策略包括根据各报文处理组件的权重值选择目标报文处理组件,或者根据待转发报文的源用户标识选择目标报文处理组件;所述分配模块设置为,获取各报文处理组件的权重值,选择优选报文处理组件,判断所述优选报文处理组件的业务性能是否满足当选目标报文处理组件的当选条件,若满足当选条件,则当选为所述待转发报文的目标报文处理组件,若不满足当选条件,则选择下一优选报文处理组件;或者,根据待转发报文的源用户标识及映射算法,选择优选报文处理组件,判断所述优选报文处理组件的业务性能是否满足当选目标报文处理组件的当选条件,若满足当选条件,则当选为所述待转发报文的目标报文处理组件,若不满足当选条件,则选择下一优选报文处理组件。The packet forwarding control apparatus according to claim 6, wherein the forwarding control policy comprises selecting a target packet processing component according to a weight value of each packet processing component, or selecting a target packet according to a source user identifier of the packet to be forwarded. The processing module is configured to: obtain a weight value of each packet processing component, select a preferred packet processing component, and determine whether the service performance of the preferred packet processing component meets an election condition of the selected target packet processing component. If the election condition is met, the target message processing component of the packet to be forwarded is selected, and if the election condition is not met, the next preferred packet processing component is selected; or, according to the source user identifier of the to-be-forwarded packet, The mapping algorithm selects a preferred packet processing component, and determines whether the service performance of the preferred packet processing component meets the selection condition of the selected target packet processing component, and if the selection condition is met, the target report of the to-be-forwarded packet is elected. The text processing component selects the next preferred message processing component if the selection condition is not met.
  8. 如权利要求6或7所述的报文转发控制装置,其中,所述分配模块设置为根据待转发报文的源用户标识,判断是否已经为对应用户分配目标报文处理组件,若已经为对应用户分配目标报文处理组件,则将所述待转发报文转发至对应用户的目标报文处理组件,若没有为对应用户分配目标报文处理组件,则确定所述待转发报文的目标报文处理组件,并记录所述源用户标识与目标报文处理组件的对应关系。The message forwarding control device according to claim 6 or 7, wherein the allocation module is configured to determine, according to the source user identifier of the packet to be forwarded, whether the target packet processing component has been allocated for the corresponding user, if it is already corresponding And the user allocates the target packet processing component, and forwards the to-be-forwarded packet to the target packet processing component of the corresponding user, and if the target packet processing component is not allocated to the corresponding user, the target report of the to-be-forwarded packet is determined. The document processing component records the correspondence between the source user identifier and the target packet processing component.
  9. 一种宽带接入***,其中,包括宽带接入设备、业务服务器,以及连接所述宽带接入设备与业务服务器的控制器;所述控制器包括报文接收组件、至少一个报文处理组件、及控制组件,所述报文接收组件包括处理器及通信模块,其中,A broadband access system, comprising: a broadband access device, a service server, and a controller connecting the broadband access device and the service server; the controller includes a message receiving component, at least one message processing component, And a control component, the message receiving component includes a processor and a communication module, wherein
    所述通信模块设置为接收所述宽带接入设备发送的待转发报文;The communication module is configured to receive a to-be-forwarded packet sent by the broadband access device;
    所述处理器设置为接收所述控制组件下发的转发控制策略,获取各报文处理组件的业务性能,根据转所述发控制策略及各报文处理组件的业务性能,确定所述待转发报文的目标报文处理组件;The processor is configured to receive a forwarding control policy that is sent by the control component, and obtain the service performance of each packet processing component, and determine the to-be-forward according to the forwarding control policy and the service performance of each packet processing component. The target message processing component of the message;
    所述通信模块设置为将所述待转发报文转发至所述目标报文处理组件。 The communication module is configured to forward the to-be-forwarded message to the target message processing component.
  10. 如权利要求9所述的宽带接入***,其中,所述转发控制策略包括根据各报文处理组件的权重值选择目标报文处理组件,或者根据待转发报文的源用户标识选择目标报文处理组件;所述处理器设置为,获取各报文处理组件的权重值,或者根据待转发报文的源用户标识及映射算法,选择优选报文处理组件,或者判断所述优选报文处理组件的业务性能是否满足当选目标报文处理组件的当选条件,若满足当选条件,则当选为所述待转发报文的目标报文处理组件,若不满足当选条件,则选择下一优选报文处理组件。The broadband access system of claim 9, wherein the forwarding control policy comprises selecting a target packet processing component according to a weight value of each packet processing component, or selecting a target packet according to a source user identifier of the packet to be forwarded. a processing component; the processor is configured to obtain a weight value of each packet processing component, or select a preferred packet processing component according to a source user identifier and a mapping algorithm of the to-be-forwarded packet, or determine the preferred packet processing component If the service performance of the selected target packet processing component is met, if the election condition is met, the target packet processing component of the packet to be forwarded is selected, and if the election condition is not met, the next preferred packet processing is selected. Component.
  11. 如权利要求9或10所述的宽带接入***,其中,所述处理器设置为根据待转发报文的源用户标识,判断是否已经为对应用户分配目标报文处理组件,若已经为对应用户分配目标报文处理组件,则将所述待转发报文转发至对应用户的目标报文处理组件,若没有为对应用户分配目标报文处理组件,则确定所述待转发报文的目标报文处理组件,并记录所述源用户标识与目标报文处理组件的对应关系。The broadband access system according to claim 9 or 10, wherein the processor is configured to determine, according to the source user identifier of the packet to be forwarded, whether the target packet processing component has been allocated for the corresponding user, if it is already a corresponding user. And the destination packet processing component is configured to forward the to-be-forwarded packet to the target packet processing component of the corresponding user, and if the target packet processing component is not allocated to the corresponding user, determine the target packet of the to-be-forwarded packet. Processing the component, and recording the correspondence between the source user identifier and the target packet processing component.
  12. 一种计算机可读存储介质,用于存储程序,其中所述程序被执行时使得报文转发控制装置执行如权利要求1到5中任一项所述的方法中的步骤。 A computer readable storage medium for storing a program, wherein the program is executed such that the message forwarding control device performs the steps of the method of any one of claims 1 to 5.
PCT/CN2017/087502 2016-06-28 2017-06-08 Message forwarding control method and device, and broadband access system WO2018001057A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610488592.5A CN107547318A (en) 2016-06-28 2016-06-28 A kind of message transmission control method, device and broadband access system
CN201610488592.5 2016-06-28

Publications (1)

Publication Number Publication Date
WO2018001057A1 true WO2018001057A1 (en) 2018-01-04

Family

ID=60786721

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/087502 WO2018001057A1 (en) 2016-06-28 2017-06-08 Message forwarding control method and device, and broadband access system

Country Status (2)

Country Link
CN (1) CN107547318A (en)
WO (1) WO2018001057A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103825831A (en) * 2014-02-28 2014-05-28 神州数码网络(北京)有限公司 Packet transmitting method and switch
CN104009871A (en) * 2014-06-06 2014-08-27 中国科学院声学研究所 SDN controller implementation method and SDN controller
WO2014157512A1 (en) * 2013-03-29 2014-10-02 日本電気株式会社 System for providing virtual machines, device for determining paths, method for controlling paths, and program
CN105208585A (en) * 2014-06-23 2015-12-30 中兴通讯股份有限公司 Scheduling information configuration method, configuration parameter processing method, scheduling information configuration device and configuration parameter processing device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4919608B2 (en) * 2005-03-02 2012-04-18 株式会社日立製作所 Packet transfer device
US7697548B2 (en) * 2007-02-07 2010-04-13 Cisco Technology, Inc. Load balancing of broadband subscriber sessions
CN101106526B (en) * 2007-07-27 2010-06-02 杭州华三通信技术有限公司 A packet processing method
CN101453415A (en) * 2007-11-29 2009-06-10 华为技术有限公司 Protection method, system and equipment for access network
CN105099898B (en) * 2014-04-16 2018-09-04 杭州迪普科技股份有限公司 A kind of PPPOE message forwarding methods and BRAS servers
CN105337819B (en) * 2014-08-15 2020-05-22 中国电信股份有限公司 Data processing method of broadband access gateway, broadband access gateway and network system
CN105704042A (en) * 2015-12-31 2016-06-22 华为技术有限公司 Message processing method, BNG and BNG cluster system
CN110896371B (en) * 2016-02-14 2022-07-26 华为技术有限公司 Virtual network equipment and related method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014157512A1 (en) * 2013-03-29 2014-10-02 日本電気株式会社 System for providing virtual machines, device for determining paths, method for controlling paths, and program
CN103825831A (en) * 2014-02-28 2014-05-28 神州数码网络(北京)有限公司 Packet transmitting method and switch
CN104009871A (en) * 2014-06-06 2014-08-27 中国科学院声学研究所 SDN controller implementation method and SDN controller
CN105208585A (en) * 2014-06-23 2015-12-30 中兴通讯股份有限公司 Scheduling information configuration method, configuration parameter processing method, scheduling information configuration device and configuration parameter processing device

Also Published As

Publication number Publication date
CN107547318A (en) 2018-01-05

Similar Documents

Publication Publication Date Title
US10812394B2 (en) Virtual network device and related method
US11573840B2 (en) Monitoring and optimizing interhost network traffic
US8391174B2 (en) Data packet routing
US10225194B2 (en) Transparent network-services elastic scale-out
US20160359721A1 (en) Method for implementing network virtualization and related apparatus and communications system
US20150063360A1 (en) High Availability L3 Gateways for Logical Networks
CN108322467B (en) OVS-based virtual firewall configuration method, electronic equipment and storage medium
US10193811B1 (en) Flow distribution using telemetry and machine learning techniques
WO2015039617A1 (en) Method, system, and device for packet processing
CN110830574B (en) Method for realizing intranet load balance based on docker container
CN113014611B (en) Load balancing method and related equipment
US10476746B2 (en) Network management method, device, and system
CN108390954A (en) A kind of message transmitting method and equipment
Moro et al. A framework for network function decomposition and deployment
US11381497B2 (en) Path selection method and device
CN106209634B (en) Learning method and device of address mapping relation
CN109361749B (en) Message processing method, related equipment and computer storage medium
US11818051B2 (en) Distributed node processing of network traffic
WO2020056550A1 (en) Service distribution device and method in software defined network, and storage medium
WO2018001057A1 (en) Message forwarding control method and device, and broadband access system
CN114827079B (en) Capacity expansion method, device and storage medium of network address translation gateway
CN111431955A (en) Streaming data processing system and method
US11252227B2 (en) System and method of managing flow state in stateful applications
Xu et al. A mathematical model and dynamic programming based scheme for service function chain placement in NFV
US11405284B1 (en) Generating network link utilization targets using a packet-loss-versus-link utilization model

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17819054

Country of ref document: EP

Kind code of ref document: A1