WO2019185013A1 - 报文转发 - Google Patents

报文转发 Download PDF

Info

Publication number
WO2019185013A1
WO2019185013A1 PCT/CN2019/080396 CN2019080396W WO2019185013A1 WO 2019185013 A1 WO2019185013 A1 WO 2019185013A1 CN 2019080396 W CN2019080396 W CN 2019080396W WO 2019185013 A1 WO2019185013 A1 WO 2019185013A1
Authority
WO
WIPO (PCT)
Prior art keywords
forwarding plane
user equipment
hardware
software
traffic
Prior art date
Application number
PCT/CN2019/080396
Other languages
English (en)
French (fr)
Inventor
张建周
Original Assignee
新华三技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 新华三技术有限公司 filed Critical 新华三技术有限公司
Publication of WO2019185013A1 publication Critical patent/WO2019185013A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/29Flow control; Congestion control using a combination of thresholds

Definitions

  • the remote control separation technology is applied in an operator environment such as a BRAS (Broadband Remote Access Server) scenario.
  • the control and separation technology refers to separating the control plane (CP) and the forwarding plane (DP, Data Plane), so that the control plane and the forwarding plane work independently of each other.
  • the control plane can be used to control and manage the operation of network devices, connection links, and interactive protocols in a network environment.
  • the forwarding plane can be used to complete various service processing and packet forwarding.
  • FIG. 1 shows a schematic diagram of a BRAS transfer controlled separation network according to an embodiment of the present disclosure.
  • FIG. 2 shows a schematic diagram of a message forwarding method according to an embodiment of the present disclosure.
  • FIG. 3 illustrates a schematic diagram of a message forwarding method according to an embodiment of the present disclosure.
  • FIG. 4 shows a schematic diagram of a message forwarding method according to an embodiment of the present disclosure.
  • FIG. 5 shows a schematic diagram of a message forwarding method according to an embodiment of the present disclosure.
  • FIG. 6 shows a block diagram of a message forwarding device in accordance with an embodiment of the present disclosure.
  • FIG. 7 shows a block diagram of a message forwarding device in accordance with an embodiment of the present disclosure.
  • FIG. 8 shows a block diagram of a message forwarding device in accordance with an embodiment of the present disclosure.
  • FIG. 1 shows a schematic diagram of a BRAS transfer controlled separation network according to an embodiment of the present disclosure.
  • the BRAS transfer control separation network includes a control plane (BRAS-CP, BRAS Control Plane) 101 and a forwarding plane (BRAS-DP, BRAS Data Plane) 102.
  • the forwarding plane includes a hardware DP (forwarding plane) 1021 and a software DP 1022.
  • the BRAS-CP is implemented, for example, as a user control management component, and has functions such as user access control, user authentication and authorization charging, address management, BRAS-DP management, and Openflow controller.
  • the BRAS-DP is implemented as, for example, a user policy execution component, and has data forwarding related functions such as traffic forwarding, QoS (Quality of Service), and traffic statistics, as well as unicast routing protocols, multicast routing protocols, and MPLS (Multiprotocol Label Switching). Multi-protocol label switching) and other BRAS-CP functions.
  • the BRAS-DP 102 can include a hardware DP 1021 and a software DP 1022.
  • the hardware DP includes a traditional BRAS device, such as a NP (Network Processor) type DP and an ASIC (Application Specific Integrated Circuit) type DP, etc., which has the characteristics of high forwarding performance and small delay.
  • the software DP includes a virtual function device that can be installed on a server virtual machine, such as an X86 (a chip operation instruction set) class DP, and the like.
  • NP DP, ASIC DP, or X86 DP can forward service packets between user equipment and network side equipment.
  • each BRAS interface board supports 32K Bytes of user bandwidth
  • a hardware DP includes 4 BRAS interface boards
  • the hardware DP can support up to 128K Bytes of user bandwidth. Assume that the hardware DP is occupied with a maximum capacity of 96K Bytes.
  • a hardware DP device including four BRAS interface boards needs to be deployed.
  • a hardware DP device including three BRAS interface boards can be deployed, and a virtual machine is added to the X86 system as a vBRAS (Virtualized Broadband Remote Access Server). Yes, this can greatly save costs.
  • vBRAS Virtualized Broadband Remote Access Server
  • the user equipments 1001, 1002 may be connected to a switch device (hereinafter referred to as "switch") 103, the switch 103 may be connected to the core switch 104, and the core switch 104 may be connected to the hardware DP 1021 and the software DP 1022, respectively.
  • the DP 1021 and the software DP 1022 may be connected to the BRAS-CP 101, respectively, and the BRAS-CP 101 may be connected to an AAA (Authentication Authorization Accounting) server 105.
  • the core switch 104 can also be connected to the network side device 106.
  • the network side device 106 can be a CR (Core Router).
  • the BRAS-CP 101 and the BRAS-DP 102 can also be connected to a MANO (Management and Orchestration) 107, respectively.
  • MANO Management and Orchestration
  • the BRAS-CP can be deployed in the Titanium Carbide Core (NIC Core) using NFV (Network Function Virtualization) technology.
  • the BRAS-DP can be deployed on the Titanium Carbide Edge (TIC Edge) in physical form.
  • the BRAS-CP can interact with the service system such as the Radius/DHCP server and receive the broadband access protocol packets sent by the BRAS-DP to complete the online processing of the user equipment.
  • the traffic of the user equipment can be forwarded between the BRAS-DP and the network side device to complete the online service of the user equipment.
  • a VXLAN tunnel and an Openflow tunnel are established between the BRAS-CP 101 and the BRAS-DP 102.
  • the VXLAN tunnel can be used to send broadband access protocol packets, and the Openflow channel can be used to send session information.
  • the broadband access protocol packet may include a Point to Point Protocol over Ethernet (PEPoE) dialing packet and an IP over Ethernet (IP over Ethernet) dialing packet. This is not a limitation.
  • PEPoE Point to Point Protocol over Ethernet
  • IP over Ethernet IP over Ethernet
  • the BRAS-DP 102 can send the PPPoE dialing message to the BRAS-CP 101 through the VXLAN tunnel.
  • the BRAS-CP 101 completes the access of the user equipment to the network according to the PPPoE dialing message, and sends a response packet to the BRAS-DP 102 through the VXLAN tunnel. Therefore, the BRAS-DP 102 responds to the PPPoE dialing message through the service port.
  • the BRAS-CP 101 can generate the session information and send it to the BRAS-DP102 that is connected to the user equipment through the Openflow channel.
  • the BRAS-DP 102 can generate a forwarding entry to forward the traffic of the user equipment.
  • Table 1 shows session information in accordance with an embodiment of the present disclosure.
  • the session information may include the following contents: Access Type, User ID, User Mac, Session ID, Inner Vlan (inner Vlan) ID), Outer Vlan (Inner Vlan), Add4 (User IPv4 Address), Add6 (User IPV6 Address), VSI (Virtual Switch Instance), and GateWay (User Gateway).
  • the hardware DP can implement hot standby or warm standby of the BRAS, thereby causing a problem of waste of hardware DP resources.
  • the user equipment has a tide of surfing the Internet in practical applications. That is, when the user equipment has real service traffic every day, it may be concentrated in certain time periods. When the Internet is not online, the home router may still have a keep-alive state. Therefore, the hardware DP will always save the session information corresponding to the user equipment and occupy expensive. Hardware DP resources cause hardware DP resources to be wasted.
  • FIG. 2 shows a schematic diagram of a message forwarding method according to an embodiment of the present disclosure.
  • the method is used in the control plane of the BRAS transfer control separation network.
  • the forwarding plane of the BRAS transfer control separation network includes a hardware forwarding plane and a software forwarding plane.
  • the packet forwarding method includes:
  • step S21 the network resource value of the user equipment in the preset time period is obtained.
  • the network resource value may refer to a value representing the size of the network resource used by the user equipment.
  • the network resource value may be a traffic value or a broadband occupancy value, etc., and the disclosure does not limit this.
  • the user equipment may refer to a device that connects to the terminal and can forward service packets with the network side device.
  • the terminal can be connected to the network through the user equipment.
  • the user equipment may include a modem, an optical modem, a home router, etc., which is not limited in this disclosure.
  • the terminal may include a smart phone, a PC (Personal Computer), or a portable electronic device (Pad), and the present disclosure does not limit this.
  • the preset time period may refer to a preset time interval.
  • 1 hour may include 3 preset time periods.
  • an hour from 11:00 to 12:00 may include preset time periods of 11:00-11:20, 11:20-11:40, and 11:40-12:00.
  • the BRAS-DP After the user equipment starts to access the Internet, the BRAS-DP generates traffic statistics information of the user equipment, and sends traffic statistics information to the BRAS-CP through the Openflow channel. After receiving the traffic statistics of the user equipment, the BRAS-CP parses the local traffic statistics and periodically sends the traffic statistics to the AAA server. In addition, after receiving the traffic statistics, the BRAS-CP separately maintains a piece of data based on the user equipment, and the data may include ⁇ user equipment, preset time period, uplink traffic, downlink traffic ⁇ .
  • the uplink traffic may be the number of bytes sent by the user equipment to the network side device
  • the downlink traffic may be the number of bytes sent by the network side device to the user equipment.
  • the start time of the preset time period is referred to as a start point
  • the end time point is referred to as a stop point
  • the difference between the uplink flow corresponding to the end point and the upstream flow corresponding to the start point is used as the preset time period.
  • Upstream traffic within. The difference between the downlink traffic corresponding to the termination point and the downlink traffic corresponding to the starting point is used as the downlink traffic in the preset time period.
  • the network resource value is a traffic value.
  • the BRAS-CP can determine the traffic value of the user equipment in the preset time period according to the uplink traffic and the downlink traffic of the user equipment in the preset time period. For example, the BRAS-CP uses the sum of the uplink traffic and the downlink traffic of the user equipment in the preset time period as the traffic value of the user equipment in the preset time period.
  • the uplink traffic corresponding to the user equipment at 11:00 is 20480 Bytes, and the uplink traffic corresponding to 11:20 is 10240 Bytes, and the user equipment is in the preset time period.
  • the upstream traffic in 11:00-11:20 is 10240 Bytes.
  • the downlink traffic of the user equipment at 11:00 is 200 Bytes, and the downstream traffic corresponding to 11:20 is 205000 Bytes, and the user equipment is in the preset time period of 11:00-
  • the BRAS-CP determines the traffic value of the user equipment in the preset time period as an example
  • the method for the BRAS-CP to acquire the traffic value of the user equipment in the preset time period is as above, but those skilled in the art can understand that the present disclosure can understand It should not be limited to this.
  • a method for the BRAS-CP to obtain the traffic value of the user equipment in the preset time period can be flexibly set by a person skilled in the art according to the actual application scenario.
  • the BRAS-DP can determine the traffic value of the user equipment within a preset time period and then send it to the BRAS-CP.
  • step S22 it is determined whether the forwarding plane used by the user equipment to perform traffic forwarding is switched between the hardware forwarding plane and the software forwarding plane according to the network resource value of the user equipment in the preset time period.
  • the hardware forwarding plane when the user equipment currently uses the hardware forwarding plane to perform traffic forwarding, if the network resource value of the user equipment in the preset time period is less than the first threshold, determining to switch the current forwarding plane to the software forwarding plane. That is, the software forwarding plane is used to forward the traffic of the user equipment; or when the user equipment currently uses the hardware forwarding plane to perform traffic forwarding, if the network resource value of the user equipment in the preset time period is greater than or equal to the first threshold Then, it is determined that the hardware forwarding plane is continuously used to forward the traffic of the user equipment.
  • the first threshold may refer to a lower threshold of the traffic corresponding to the hardware DP.
  • the value of the first threshold may be 100M or 200M, etc., and the disclosure does not limit this.
  • the user equipment may be in a keep-alive state or a small traffic usage state, instead of being in a large traffic usage state, thereby adopting software.
  • the DP forwards the traffic of the user equipment, so that the user equipment can be online and the hardware DP resources can be released.
  • the hardware forwarding plane is used to forward the traffic of the user equipment; or when the user equipment currently uses the software forwarding plane to perform traffic forwarding, if the network resource value of the user equipment in the preset time period is less than or equal to the second threshold Then, it is determined to continue to use the software forwarding plane to forward the traffic of the user equipment.
  • the second threshold may refer to an upper threshold of the traffic corresponding to the software DP.
  • the values of the first threshold and the second threshold may be equal or unequal.
  • the value of the second threshold may be 30M or 50M, etc., and the disclosure does not limit this.
  • the hardware DP is used to forward the traffic of the user equipment.
  • the hardware DP has the characteristics of high forwarding performance and small delay.
  • the packet forwarding method further includes: according to the user equipment The user identifier is used to obtain the session information corresponding to the user equipment; the session information corresponding to the user equipment is sent to the software forwarding plane, and the flow table is sent to the core switch, so that the core switch directs the traffic of the user equipment from the hardware forwarding plane to the flow table according to the flow table.
  • the software forwarding plane, and the software forwarding plane forwards the traffic of the user equipment based on the session information; and sends the deletion information to the hardware forwarding plane, so that the hardware forwarding plane deletes the session information corresponding to the user equipment in the hardware forwarding plane according to the deletion information.
  • the packet forwarding method further includes: according to the user equipment user. Identifying the session information corresponding to the user equipment, sending the session information corresponding to the user equipment to the hardware forwarding plane, and sending the deletion information to the core switch, so that the core switch deletes the traffic used by the user equipment from the core switch according to the deletion information.
  • the hardware forwarding plane is directed to the flow table of the software forwarding plane. The hardware forwarding plane forwards the traffic of the user equipment based on the session information.
  • the software forwarding plane sends the deletion information to the software forwarding plane, so that the software forwarding plane deletes the user equipment in the software forwarding plane according to the deletion information.
  • Corresponding session information may be the same information or different information.
  • control plane may determine whether to use the hardware forwarding plane or the software forwarding plane to the user equipment according to the network resource value of the user equipment in the preset time period and the forwarding plane used by the user equipment to forward the traffic.
  • the traffic is forwarded, thereby ensuring that all user equipments are online, and that hardware DP resources can be allocated reasonably, and hardware DP resources are saved.
  • FIG. 3 illustrates a schematic diagram of a message forwarding method according to an embodiment of the present disclosure. As shown in FIG. 3, the packet forwarding method includes the following steps.
  • step S31 the network resource value of the user equipment in the preset time period is obtained.
  • step S32 when the user equipment is currently using the hardware forwarding plane to perform traffic forwarding, if the network resource value of the user equipment in the preset time period is greater than or equal to the first threshold, it is determined that the current forwarding plane is not switched, that is, maintained.
  • the hardware forwarding plane is used to forward traffic of user equipment.
  • the preset time period is 10 minutes and the first threshold is 100M as an example.
  • User ID FFFF0001 Access device type (1 means hardware DP, 2 means software DP) 1 Time interval (Second) 600 Upstream traffic statistics (Bytes) 10240 Downstream traffic statistics (Bytes) 204800
  • step S33 when the user equipment currently uses the hardware forwarding plane to perform traffic forwarding, if the network resource value of the user equipment in the preset time period is less than the first threshold, it is determined that the current forwarding plane is switched from the hardware forwarding plane to the software forwarding. In the plane, the software forwarding plane is used to forward the traffic of the user equipment.
  • the preset time period is 10 minutes and the first threshold is 100M as an example.
  • User (UserID) FFFF0001 Access device type (1 means hardware DP, 2 means software DP) 1 Time interval (Second) 600 Upstream traffic statistics (Bytes) 10240 Downstream traffic statistics (Bytes) 40960
  • the BRAS-CP determines to use the software DP to forward the traffic of the user equipment, and then obtains the session information corresponding to the user equipment according to the user identifier of the user equipment, and sends the session information corresponding to the user equipment to the software DP.
  • the BRAS-CP also sends a flow table to the core switch that the hardware DP and the software DP are connected to. The flow table is used to indicate that the traffic from the user equipment and the traffic sent to the user equipment are sent to the interface of the connection software DP on the core switch. Therefore, the traffic of the user equipment is switched from the hardware DP to the software DP, that is, the software DP is used to forward the traffic of the user equipment.
  • the BRAS-CP also sends the deletion information to the hardware DP, so that the hardware DP deletes the session information corresponding to the user equipment in the hardware DP according to the deletion information, so as to release the hardware DP resource.
  • the step can be performed after the traffic of the user equipment is forwarded by using the software DP, thereby ensuring that the traffic of the user equipment is not interrupted, that is, the traffic is switched from the hardware DP to the software DP without the user equipment being aware. .
  • a preset time period and a first threshold may be flexibly set by a person skilled in the art according to an actual application scenario.
  • FIG. 4 shows a schematic diagram of a message forwarding method according to an embodiment of the present disclosure. As shown in FIG. 4, the packet forwarding method includes the following steps.
  • step S41 the network resource value of the user equipment in the preset time period is obtained.
  • step S42 when the user equipment is currently using the software forwarding plane to perform traffic forwarding, if the network resource value of the user equipment in the preset time period is less than or equal to the second threshold, it is determined to continue to use the software forwarding plane to the user equipment. Forward.
  • the network resource value is a traffic value.
  • the preset time period is 5 minutes and the second threshold is 50M as an example.
  • Table 4 shows flow information in accordance with an embodiment of the present disclosure.
  • the user equipment currently uses the software DP (identified as 2) to forward traffic.
  • User (UserID) FFFF0001 Access device type (1 means hardware DP, 2 means software DP) 2 Time interval (Second) 300 Upstream traffic statistics (Bytes) 5120 Downstream traffic statistics (Bytes) 20480
  • step S43 when the user equipment currently uses the software forwarding plane to perform traffic forwarding, if the network resource value of the user equipment in the preset time period is greater than the second threshold, it is determined that the current forwarding plane is switched from the software forwarding plane to the hardware.
  • the forwarding plane that is, the hardware forwarding plane is used to forward the traffic of the user equipment.
  • the preset time period is 5 minutes and the second threshold is 50M as an example.
  • User (UserID) FFFF0001 Access device type (1 means hardware DP, 2 means software DP) 2 Time interval (Second) 300 Upstream traffic statistics (Bytes) 5120 Downstream traffic statistics (Bytes) 51200
  • the BRAS-CP determines that the traffic of the user equipment is forwarded by using the hardware DP, and the session information corresponding to the user equipment is obtained according to the user identifier of the user equipment, and the session information corresponding to the user equipment is sent to the hardware DP.
  • the BRAS-CP also sends deletion information to the core switch that the hardware DP and the software DP are connected to, so that after receiving the deletion information, the core switch deletes the flow table in the hardware core switch according to the deletion information. Therefore, the traffic of the user equipment is switched from the software DP to the hardware DP, that is, the hardware DP is used to forward the traffic of the user equipment.
  • the BRAS-CP also sends the deletion information to the software DP, so that after receiving the deletion information, the software DP deletes the session information corresponding to the user equipment in the software DP according to the deletion information, so as to release the software DP resource.
  • the step can be performed after the traffic of the user equipment is forwarded by using the hardware DP, thereby ensuring that the traffic of the user equipment is not interrupted, that is, the traffic is switched from the software DP to the hardware DP without the user equipment being aware of the traffic. .
  • a preset time period and a second threshold may be flexibly set by a person skilled in the art according to an actual application scenario.
  • the fast switching from the software DP to the hardware DP can be achieved.
  • FIG. 5 shows a schematic diagram of a message forwarding method according to an embodiment of the present disclosure. As shown in FIG. 5, the packet forwarding method includes the following steps.
  • step S51 the total number of user equipments that use the hardware forwarding plane for traffic forwarding is obtained.
  • the total number of user equipments that use the hardware DP for traffic forwarding may be represented by the capacity currently occupied by the hardware DP.
  • the hardware DP can save the session information corresponding to the user equipment, and thus can determine that the larger the capacity of the hardware DP is currently occupied, the more user equipments that use the hardware DP to forward traffic; the smaller the capacity occupied by the hardware DP is, the hardware is used. The fewer user devices the DP performs for traffic forwarding.
  • step S52 when the total number of user equipments that use the hardware forwarding plane for traffic forwarding is greater than the third threshold, the network resource value of each user equipment in the preset time period is obtained.
  • the third threshold may be an upper threshold of traffic corresponding to the total number of user equipments that use the hardware DP to forward traffic.
  • the value of the third threshold may be 50K or 60K, etc., and the present disclosure does not limit the number of user equipments that are currently occupied by the hardware DP.
  • step S53 determining, according to the network resource value of each user equipment in the preset time period, whether to switch the forwarding plane used by the user equipment for performing traffic forwarding, that is, determining whether to use the hardware forwarding plane or the software forwarding plane.
  • the traffic of the user equipment is forwarded.
  • the total number of user equipments that use the hardware DP for traffic forwarding is represented by the capacity of the hardware DP.
  • the third threshold is 50K as an example.
  • the BRAS-CP acquires the current occupied capacity of the hardware DP to be 48K, which is less than the third threshold of 50K. Therefore, the BRAS-CP uses the hardware DP to forward the traffic of the user equipment.
  • the BRAS-CP obtains the current occupied capacity of the hardware DP to reach 51K, which is greater than the third threshold value of 50K, and the BRAS-CP determines whether to forward the traffic of the user equipment according to the traffic value of the user equipment in the preset time period.
  • the DP is switched, that is, whether the traffic of the user equipment is forwarded by using the hardware DP or the software DP.
  • FIG. 6 shows a block diagram of a message forwarding device in accordance with an embodiment of the present disclosure.
  • the device is used in the control plane of the BRAS transfer control separation network.
  • the forwarding plane of the BRAS transfer control separation network includes a hardware forwarding plane and a software forwarding plane.
  • the message forwarding device includes:
  • the first obtaining module 61 is configured to obtain a network resource value of the user equipment in a preset time period
  • the determining module 62 is configured to determine, according to the obtained network resource value, whether the forwarding plane used by the user equipment to perform traffic forwarding is switched between the hardware forwarding plane and the software forwarding plane.
  • FIG. 7 shows a block diagram of a message forwarding device in accordance with an embodiment of the present disclosure.
  • the determining module 62 includes a first determining sub-module 621, and the first determining sub-module 621 is configured to:
  • the forwarding plane currently used by the user equipment is a hardware forwarding plane
  • the network resource value of the user equipment in the preset time period is less than the first threshold, it is determined that the currently used forwarding plane is switched from the hardware forwarding plane to Software forwarding plane
  • the forwarding plane currently used by the user equipment is a hardware forwarding plane
  • the network resource value of the user equipment in the preset time period is greater than or equal to the first threshold, it is determined to continue to use the hardware forwarding plane to the user equipment.
  • the traffic is forwarded.
  • the determining module 62 includes a second determining submodule 622, and the second determining submodule 622 is configured to:
  • the forwarding plane currently used by the user equipment is a software forwarding plane
  • the network resource value of the user equipment in the preset time period is greater than the second threshold, it is determined that the currently used forwarding plane is switched from the software forwarding plane to Hardware forwarding plane
  • the forwarding plane currently used by the user equipment is a software forwarding plane
  • the network resource value of the user equipment in the preset time period is less than or equal to the second threshold, it is determined to continue to use the software forwarding plane to the user equipment.
  • the traffic is forwarded.
  • the device further includes a first switching module 63, where the first switching module 63 is configured to:
  • the device further includes a second switching module 64, where the second switching module 64 is configured to:
  • the traffic is forwarded, wherein the flow table is configured to direct traffic of the user equipment from the hardware forwarding plane to the software forwarding plane;
  • the device further includes:
  • the second obtaining module 60 is configured to obtain the total number of user equipments that use the hardware forwarding plane to forward traffic.
  • the first obtaining module 61 is further configured to: when the total number of the user equipments that use the hardware forwarding plane to forward the traffic is greater than the third threshold, obtain the network resource value of the user equipment in the preset time period for each user equipment.
  • the packet forwarding device of the present disclosure can switch the forwarding plane currently used by the user equipment between the hardware forwarding plane and the software forwarding plane according to the network resource value of the user equipment in the preset time period, thereby ensuring all users.
  • the devices are all online, and the hardware DP resources can be allocated reasonably, and the hardware DP resources are saved.
  • FIG. 8 shows a block diagram of a message forwarding device in accordance with an embodiment of the present disclosure.
  • the apparatus 800 can include a processor 801, a machine readable storage medium 802 that stores machine executable instructions.
  • Processor 801 and machine readable storage medium 802 can communicate via system bus 803.
  • the processor 801 executes the message forwarding method described above by reading machine executable instructions corresponding to the message forwarding logic in the machine readable storage medium 802.
  • the machine-readable storage medium 802 referred to herein can be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like.
  • the machine-readable storage medium may be: RAM (Radom Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as a hard disk drive), solid state drive, any type of storage disk. (such as a disc, dvd, etc.), or a similar storage medium, or a combination thereof.

Landscapes

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

Abstract

本公开涉及一种报文转发方法及装置。根据该报文转发方法,获取用户设备在预设时间段内的网络资源值。根据所述用户设备在预设时间段内的网络资源值,确定是否将用户设备当前进行流量转发采用的转发平面在硬件转发平面和软件转发平面之间进行切换。

Description

报文转发 背景技术
转控分离技术在例如BRAS(Broadband Remote Access Server,宽带远程接入服务器)场景的运营商环境中得以应用。转控分离技术是指将控制平面(CP,Control Plane)和转发平面(DP,Data Plane,又称为数据平面)分开,使得控制平面和转发平面相互独立又协同工作。其中,控制平面可以用于对网络环境中网络设备、连接链路和交互协议的运行进行控制和管理。转发平面可以用于完成各种业务处理和报文转发。
附图说明
包含在说明书中并且构成说明书的一部分的附图与说明书一起示出了本公开的示例、特征和方面,并且用于解释本公开的原理。
图1示出根据本公开一实施例的BRAS转控分离组网的示意图。
图2示出根据本公开一实施例的报文转发方法的示意图。
图3示出根据本公开一实施例的报文转发方法的示意图。
图4示出根据本公开一实施例的报文转发方法的示意图。
图5示出根据本公开一实施例的报文转发方法的示意图。
图6示出根据本公开一实施例的报文转发装置的框图。
图7示出根据本公开一实施例的报文转发装置的框图。
图8示出根据本公开一实施例的报文转发装置的框图。
具体实施方式
以下将参考附图详细说明本公开的各种示例、特征和方面。附图中相同的附图标记表示功能相同或相似的元件。尽管在附图中示出了实施例的各种方面,但是除非特别指出,不必按比例绘制附图。
为了更好的说明本公开,在下文的具体实施方式中给出了众多的具体细节。本领域技术人员应当理解,没有某些具体细节,本公开同样可以实施。
图1示出根据本公开一实施例的BRAS转控分离组网的示意图。如图1所示,BRAS 转控分离组网包括控制平面(BRAS-CP,BRAS Control Plane)101和转发平面(BRAS-DP,BRAS Data Plane)102。转发平面包括硬件DP(转发平面)1021和软件DP 1022。
其中,BRAS-CP实现为例如用户控制管理部件,具有用户接入控制、用户认证授权计费、地址管理等、BRAS-DP管理和Openflow控制器等功能。BRAS-DP实现为例如用户策略执行部件,具有流量转发、QoS(Quality of Service,服务质量)和流量统计等数据转发相关功能,以及单播路由协议、组播路由协议和MPLS(Multiprotocol Label Switching,多协议标签交换)等类BRAS-CP功能。
如图1所示,BRAS-DP 102可以包括硬件DP1021和软件DP 1022。硬件DP包括传统的BRAS设备,例如NP(Network Processor,网络处理器)类DP和ASIC(Application Specific Integrated Circuit,专用集成电路)类DP等,该种设备具有转发性能高和时延小等特点。软件DP包括能够安装在服务器虚拟机上的虚拟功能设备,例如X86(一种芯片运行指令集)类DP等。NP类DP、ASIC类DP或X86类DP均能够进行用户设备与网络侧设备之间业务报文的转发。
作为一个示例,如果每块BRAS接口板支持32K Bytes的用户带宽,则如果一台硬件DP包括4块BRAS接口板,则该硬件DP最多能够支持128K Bytes的用户带宽。假设硬件DP被占用的容量最大为96K Bytes,按照传统的部署方式,则需要部署一台包括4块BRAS接口板的硬件DP设备。而按照本公开的部署方式,则可以部署一台包括3块BRAS接口板的硬件DP设备,另外在X86系统上增加一个虚拟机作为vBRAS(Virtualized Broadband Remote Access Server,虚拟宽带远程接入服务器)即可,由此能够大大的节省成本。
如图1所示,用户设备1001、1002可以与交换机设备(以下简称“交换机”)103连接,交换机103可以与核心交换机104连接,核心交换机104可以分别与硬件DP 1021和软件DP 1022连接,硬件DP 1021和软件DP 1022可以分别与BRAS-CP 101连接,BRAS-CP 101可以与AAA(Authentication Authorization Accounting,验证、授权和记账)服务器105连接。核心交换机104还可以与网络侧设备106连接,网络侧设备106可以为CR(Core Router,核心路由器)。BRAS-CP 101和BRAS-DP 102还可以分别与MANO(Management and Orchestration,管理编排系统)107连接。
其中,BRAS-CP可以采用NFV(Network Function Virtualization,网络功能虚拟化)技术部署在碳化钛内核(TIC Core),BRAS-DP可以采用物理设备形态部署于碳化钛边缘(TIC Edge)。BRAS-CP能够与Radius/DHCP服务器等业务系统交互,接收BRAS-DP 发送的宽带接入协议报文,完成用户设备的上线处理。由此用户设备的流量能够在BRAS-DP与网络侧设备之间进行转发,完成用户设备的上网业务。
如图1所示,BRAS-CP 101和BRAS-DP 102之间建立VXLAN隧道和Openflow通道,VXLAN隧道可以用于发送宽带接入协议报文,Openflow通道可以用于发送会话信息。其中,宽带接入协议报文可以包括PPPoE(Point to Point Protocol over Ethernet,基于以太网的点对点通讯协议)拨号报文和IPoE(IP over Ethernet,动态主机配置协议)拨号报文等,本公开对此不作限制。
例如,在BRAS-DP 102从业务口接收到PPPoE拨号报文之后,BRAS-DP 102可以通过VXLAN隧道向BRAS-CP 101发送PPPoE拨号报文。BRAS-CP 101根据PPPoE拨号报文完成用户设备接入网络,并通过VXLAN隧道向BRAS-DP 102发送回应报文。由此实现BRAS-DP 102通过业务口进行PPPoE拨号报文的应答。在用户设备上线之后,BRAS-CP 101可以生成会话信息,通过Openflow通道发送到用户设备上线的BRAS-DP102,由此BRAS-DP 102能够生成转发表项,实现对用户设备的流量进行转发。
表1示出根据本公开一实施例的会话信息。如表1所示,会话信息可以包括以下所述内容:Access Type(接入类型)、User ID(用户标识)、User Mac(用户Mac)、Session ID(会话标识)、Inner Vlan(内层Vlan标识)、Outer Vlan(内层Vlan标识)、Add4(用户IPv4地址)、Add6(用户IPV6地址)、VSI(Virtual Switch Instance,虚拟交换实例)和GateWay(用户网关)。
表1
Figure PCTCN2019080396-appb-000001
硬件DP可以实现BRAS的热备或温备,由此存在硬件DP资源浪费的问题。具体而言,用户设备在实际应用中存在上网的潮汐现象。即用户设备每天真正有业务流量的时候可能集中在某几个时间段,而不上网的时候家庭路由器还会存在保活状态,由此硬件DP将始终保存用户设备对应的会话信息而占用昂贵的硬件DP资源,造成硬件DP资源浪费。
图2示出根据本公开一实施例的报文转发方法的示意图。该方法用于BRAS转控分离组网的控制平面中,该BRAS转控分离组网的转发平面包括硬件转发平面和软件转发平面。如图2所示,该报文转发方法包括:
在步骤S21中,获取用户设备在预设时间段内的网络资源值。
其中,网络资源值可以指代表用户设备使用网络资源的大小的数值。例如网络资源值可以为流量值或宽带占用值等,本公开对此不作限制。
其中,用户设备可以指连接终端,并能够与网络侧设备进行业务报文转发的设备。通过用户设备可以实现将终端接入网络。例如,用户设备可以包括调制解调器、光调制解调器和家庭路由器等,本公开对此不作限制。终端可以包括智能手机、PC(Personal Computer,个人计算机)或Pad(Portable Android Device,平板电脑)等,本公开对此不做限制。
在一种实现方式中,预设时间段可以指预先设置的时间区间。
作为一个示例,如果时间区间设置为20分钟,则1个小时可以包括3个预设时间段。例如,11:00至12:00的1个小时可以包括预设时间段11:00-11:20、11:20-11:40和11:40-12:00。
在一种实现方式中,在用户设备开始上网之后,BRAS-DP生成用户设备的流量统计信息,并通过Openflow通道向BRAS-CP发送流量统计信息。BRAS-CP在接收到用户设备的流量统计信息之后进行解析,更新本地的流量统计信息,并定期将流量统计信息发送给AAA服务器。此外,BRAS-CP在接收到流量统计信息之后,基于用户设备单独维护一份数据,该数据可以包括{用户设备,预设时间段,上行流量,下行流量}。
其中,上行流量可以指用户设备向网络侧设备发送的字节数,下行流量可以指网络侧设备向用户设备发送的字节数。在一个示例中,将预设时间段的起始时点称为起始点,将结束时点称为终止点,则终止点对应的上行流量和起始点对应的上行流量之差作为预设时间段内的上行流量。将终止点对应的下行流量和起始点对应的下行流量之差作为预设时间段内的下行流量。
在一种实现方式中,网络资源值为流量值。BRAS-CP可以根据用户设备在预设时间段内的上行流量和下行流量,确定用户设备在预设时间段内的流量值。例如,BRAS-CP将用户设备在预设时间段内的上行流量和下行流量之和作为用户设备在预设时间段内的流量值。
作为一个示例,在预设时间段11:00-11:20中,用户设备在11:00对应的上行流量为20480Bytes,在11:20对应的上行流量为10240Bytes,则用户设备在预设时间段11:00-11:20中的上行流量为10240Bytes。在预设时间段11:00-11:20中,用户设备在11:00对应的下行流量为200Bytes,在11:20对应的下行流量为205000Bytes,则用户设备在预设时间段11:00-11:20中的下行流量为204800Bytes。由此用户设备在预设时间段11:00-11:20中的流量值为(10240+204800)/1024=210M。
尽管以BRAS-CP确定用户设备在预设时间段内的流量值作为示例介绍了BRAS-CP获取用户设备在预设时间段内的流量值的方法如上,但本领域技术人员能够理解,本公开应不限于此。本领域技术人员可以根据实际应用场景灵活设定BRAS-CP获取用户设备在预设时间段内的流量值的方法。例如,可以由BRAS-DP确定用户设备在预设时间段内的流量值,然后发送给BRAS-CP。
在步骤S22中,根据用户设备在预设时间段内的网络资源值,确定是否将用户设备当前进行流量转发采用的转发平面在硬件转发平面和软件转发平面之间进行切换。
在一种实现方式中,在用户设备当前采用硬件转发平面进行流量转发时,若该用户设备在预设时间段内的网络资源值小于第一阈值,则确定将当前转发平面切换到软件转发平面,即,采用软件转发平面对该用户设备的流量进行转发;或在用户设备当前采用硬件转发平面进行流量转发时,若该用户设备在预设时间段内的网络资源值大于或等于第一阈值,则确定继续采用硬件转发平面对该用户设备的流量进行转发。
其中,第一阈值可以指硬件DP对应的流量的下限阈值。例如,第一阈值的取值可以为100M或200M等,本公开对此不作限制。
以这种方式,用户设备在预设时间段内的流量值小于第一阈值,则可以表明该用户设备当前处于保活状态或小流量使用状态,而并非处于大流量使用状态,由此采用软件DP对该用户设备的流量进行转发,从而实现既能够保证用户设备正常上线,还能够释放硬件DP资源。
在一种实现方式中,在用户设备当前采用软件转发平面进行流量转发时,若该用户设备在预设时间段内的网络资源值大于第二阈值,则确定将当前转发平面切换到硬件转发平面,即,采用硬件转发平面对该用户设备的流量进行转发;或在用户设备当前采用软件转发平面进行流量转发时,若该用户设备在预设时间段内的网络资源值小于或等于第二阈值,则确定继续采用软件转发平面对该用户设备的流量进行转发。
其中,第二阈值可以指软件DP对应的流量的上限阈值。第一阈值和第二阈值的取值可以相等或不相等。例如,第二阈值的取值可以为30M或50M等,本公开对此不作限制。
以这种方式,用户设备在预设时间段内的流量值大于第二阈值,则可以表明该用户设备当前处于大流量使用状态,由此采用硬件DP对该用户设备的流量进行转发,从而充分利用硬件DP所具有的转发性能高和时延小等特点。
在一种实现方式中,在用户设备当前采用硬件转发平面进行流量转发时,在确定将当前的转发平面从硬件转发平面切换到软件转发平面之后,该报文转发方法还包括:根据用户设备的用户标识,获取用户设备对应的会话信息;向软件转发平面发送用户设备对应的会话信息,以及向核心交换机发送流表,以使得核心交换机根据该流表将用户设备的流量从硬件转发平面引导至软件转发平面,并且软件转发平面基于该会话信息对用户设备的流量进行转发;向硬件转发平面发送删除信息,以使得硬件转发平面根据删除信息删除硬件转发平面中的用户设备对应的会话信息。
在一种实现方式中,在用户设备当前采用软件转发平面进行流量转发时,在确定将当前转发平面从软件转发平面切换到硬件转发平面之后,该报文转发方法还包括:根据用户设备的用户标识,获取用户设备对应的会话信息;向硬件转发平面发送用户设备对应的会话信息,以及向核心交换机发送删除信息,以使得核心交换机根据删除信息删除核心交换机中的用于将用户设备的流量从硬件转发平面引导至软件转发平面的流表,硬件转发平面基于会话信息对用户设备的流量进行转发;向软件转发平面发送删除信息,以使得软件转发平面根据删除信息删除软件转发平面中的用户设备对应的会话信息。这里,核心交换机接收的删除信息和软件转发平面接收的删除信息可以是同一信息也可以是不同信息。
本公开的报文转发方法,控制平面可以根据用户设备在预设时间段内的网络资源值以及用户设备当前进行流量转发采用的转发平面,确定是采用硬件转发平面还是软件转发平面对用户设备的流量进行转发,由此既能够保证所有用户设备都在线,又能够实现合理分配硬件DP资源,节约硬件DP资源。
图3示出根据本公开一实施例的报文转发方法的示意图。如图3所示,该报文转发方法包括以下步骤。
在步骤S31中,获取用户设备在预设时间段内的网络资源值。
在步骤S32中,在用户设备当前采用硬件转发平面进行流量转发时,若用户设备在预设时间段内的网络资源值大于或等于第一阈值,则确定不对当前的转发平面进行切换,即保持采用硬件转发平面对用户设备的流量进行转发。
以预设时间段为10分钟、第一阈值为100M作为示例。表2示出根据本公开一实施例的流量信息。如表2所示,用户设备当前采用硬件DP(标识为1)进行流量转发,10分钟内的流量值为(10240+204800)/1024=210M。该10分钟内的流量值210M大于第一 阈值100M,由此BRAS-CP确定该用户设备的流量不用从硬件DP切换到软件DP,即保持采用硬件DP对该用户设备的流量进行转发。
表2
用户ID FFFF0001
接入设备类型(1表示硬件DP、2表示软件DP) 1
时间区间(Second) 600
上行流量统计(Bytes) 10240
下行流量统计(Bytes) 204800
在步骤S33中,在用户设备当前采用硬件转发平面进行流量转发时,若用户设备在预设时间段内的网络资源值小于第一阈值,则确定将当前转发平面从硬件转发平面切换到软件转发平面,即采用软件转发平面对用户设备的流量进行转发。
以预设时间段为10分钟、第一阈值为100M作为示例。表3示出根据本公开一实施例的流量信息。如表3所示,用户设备当前采用硬件DP(标识为1)进行流量转发,10分钟内的流量值为(10240+40960)/1024=50,该10分钟内的流量值50M小于第一阈值100M,由此BRAS-CP确定该用户设备的流量需要从硬件DP切换到软件DP,即采用软件DP对该用户设备的流量进行转发。
表3
用户(UserID) FFFF0001
接入设备类型(1表示硬件DP、2表示软件DP) 1
时间区间(Second) 600
上行流量统计(Bytes) 10240
下行流量统计(Bytes) 40960
BRAS-CP确定采用软件DP对用户设备的流量进行转发,由此根据该用户设备的用户标识,获取该用户设备对应的会话信息,并向软件DP发送该用户设备对应的会话信息。BRAS-CP还向硬件DP和软件DP共同连接的核心交换机发送流表。该流表用于指示将来自于该用户设备的流量和发往该用户设备的流量,发送到核心交换机上的连接软件DP的接口。由此实现该用户设备的流量从硬件DP切换到软件DP,即采用软件DP 对用户设备的流量进行转发。
此外,BRAS-CP还向硬件DP发送删除信息,以使得硬件DP根据该删除信息删除硬件DP中的该用户设备对应的会话信息,实现释放硬件DP资源。可以理解的是,该步骤可以在采用软件DP对用户设备的流量进行转发之后进行,由此能够保证用户设备的流量不中断,即在用户设备无感知的情况下流量从硬件DP切换到软件DP。
尽管以预设时间段为10分钟、第一阈值为100M作为示例介绍如上,但本领域技术人员能够理解,本公开应不限于此。本领域技术人员可以根据实际应用场景灵活设定预设时间段和第一阈值。
图4示出根据本公开一实施例的报文转发方法的示意图。如图4所示,该报文转发方法包括以下步骤。
在步骤S41中,获取用户设备在预设时间段内的网络资源值。
在步骤S42中,在用户设备当前采用软件转发平面进行流量转发时,若用户设备在预设时间段内的网络资源值小于或等于第二阈值,则确定继续采用软件转发平面对用户设备的流量进行转发。
作为一个示例,网络资源值为流量值。以预设时间段为5分钟、第二阈值为50M作为示例。表4示出根据本公开一实施例的流量信息。如表4所示,用户设备当前采用软件DP(标识为2)进行流量转发,5分钟内的流量值为(5120+20480)/1024=25M,该5分钟内的流量值25M小于第二阈值50M,由此BRAS-CP确定该用户设备的流量不用从软件DP切换到硬件DP,即保持采用软件DP对该用户设备的流量进行转发。
表4
用户(UserID) FFFF0001
接入设备类型(1表示硬件DP、2表示软件DP) 2
时间区间(Second) 300
上行流量统计(Bytes) 5120
下行流量统计(Bytes) 20480
在步骤S43中,在用户设备当前采用软件转发平面进行流量转发时,若用户设备在预设时间段内的网络资源值大于第二阈值,则确定将当前的转发平面从软件转发平面切换到硬件转发平面,即,采用硬件转发平面对用户设备的流量进行转发。
以预设时间段为5分钟、第二阈值为50M作为示例。表5示出根据本公开一实施例的流量信息。如表5所示,用户设备当前采用软件DP(标识为2)进行流量转发,5分钟内的流量值为(5120+51200)/1024=55M,该5分钟内的流量值55M大于第二阈值50M,由此BRAS-CP确定该用户设备的流量需要从软件DP切换到硬件DP,即采用硬件DP对该用户设备的流量进行转发。
表5
用户(UserID) FFFF0001
接入设备类型(1表示硬件DP、2表示软件DP) 2
时间区间(Second) 300
上行流量统计(Bytes) 5120
下行流量统计(Bytes) 51200
BRAS-CP确定采用硬件DP对该用户设备的流量进行转发,由此根据该用户设备的用户标识,获取该用户设备对应的会话信息,并向硬件DP发送该用户设备对应的会话信息。BRAS-CP还向硬件DP和软件DP共同连接的核心交换机发送删除信息,以使得核心交换机在接收到该删除信息之后,根据该删除信息删除硬件核心交换机中的流表。由此实现该用户设备的流量从软件DP切换到硬件DP,即采用硬件DP对用户设备的流量进行转发。
此外,BRAS-CP还向软件DP发送删除信息,以使得软件DP在接收到该删除信息之后,根据该删除信息删除软件DP中的该用户设备对应的会话信息,实现释放软件DP资源。可以理解的是,该步骤可以在采用硬件DP对用户设备的流量进行转发之后进行,由此能够保证用户设备的流量不中断,即在用户设备无感知的情况下流量从软件DP切换到硬件DP。
尽管以预设时间段为5分钟、第二阈值为50M作为示例介绍如上,但本领域技术人员能够理解,本公开应不限于此。本领域技术人员可以根据实际应用场景灵活设定预设时间段和第二阈值。此外,采用较小的预设时间段和第二阈值,在用户设备当前采用软件DP进行流量转发时,如果用户设备的流量增加,能够实现快速从软件DP切换到硬件DP。
图5示出根据本公开一实施例的报文转发方法的示意图。如图5所示,该报文转发 方法包括以下步骤。
在步骤S51中,获取采用硬件转发平面进行流量转发的用户设备总数。
在一种实现方式中,采用硬件DP进行流量转发的用户设备总数可以通过硬件DP当前被占用的容量进行表示。硬件DP能够保存用户设备对应的会话信息,由此可以确定:硬件DP当前被占用的容量越大,采用硬件DP进行流量转发的用户设备越多;硬件DP当前被占用的容量越小,采用硬件DP进行流量转发的用户设备越少。
在步骤S52中,在采用硬件转发平面进行流量转发的用户设备总数大于第三阈值时,获取每个用户设备在预设时间段内的网络资源值。
其中,第三阈值可以指采用硬件DP进行流量转发的用户设备总数对应的流量的上限阈值。在通过硬件DP当前被占用的容量表示采用硬件DP进行流量转发的用户设备总数时,第三阈值的取值可以为50K或60K等,本公开对此不作限制。
在步骤S53中,根据每个用户设备在预设时间段内的网络资源值,确定是否切换该用户设备当前进行流量转发采用的转发平面,即,确定是采用硬件转发平面还是软件转发平面对该用户设备的流量进行转发。
以硬件DP当前被占用的容量表示采用硬件DP进行流量转发的用户设备总数,第三阈值为50K作为示例。例如,由于硬件DP所具有的转发性能高和时延小等特点,在用户设备上线时,默认采用硬件DP进行上线。BRAS-CP获取硬件DP当前被占用的容量为48K,小于第三阈值50K,由此BRAS-CP采用硬件DP对用户设备的流量进行转发。再例如,BRAS-CP获取硬件DP当前被占用的容量达到51K,大于第三阈值50K,由此BRAS-CP根据用户设备在预设时间段内的流量值确定是否对用户设备当前进行流量转发采用的DP进行切换,即,确定是采用硬件DP还是软件DP对用户设备的流量进行转发。
图6示出根据本公开一实施例的报文转发装置的框图。该装置用于BRAS转控分离组网的控制平面中,该BRAS转控分离组网的转发平面包括硬件转发平面和软件转发平面。如图6所示,该报文转发装置包括:
第一获取模块61,用于获取用户设备在预设时间段内的网络资源值;
确定模块62,用于根据获取的网络资源值,确定是否将所述用户设备当前进行流量转发采用的转发平面在所述硬件转发平面和所述软件转发平面之间进行切换。
图7示出根据本公开一实施例的报文转发装置的框图。
在一种实现方式中,所述确定模块62包括第一确定子模块621,所述第一确定子模块621用于:
在所述用户设备当前采用的转发平面是硬件转发平面时,若所述用户设备在预设时间段内的网络资源值小于第一阈值,则确定将当前采用的转发平面从硬件转发平面切换到软件转发平面;以及
在所述用户设备当前采用的转发平面是硬件转发平面时,若所述用户设备在预设时间段内的网络资源值大于或等于第一阈值,则确定继续采用硬件转发平面对所述用户设备的流量进行转发。
在一种实现方式中,所述确定模块62包括第二确定子模块622,所述第二确定子模块622用于:
在所述用户设备当前采用的转发平面是软件转发平面时,若所述用户设备在预设时间段内的网络资源值大于第二阈值,则确定将当前采用的转发平面从软件转发平面切换到硬件转发平面;以及
在所述用户设备当前采用的转发平面是软件转发平面时,若所述用户设备在预设时间段内的网络资源值小于或等于第二阈值,则确定继续采用软件转发平面对所述用户设备的流量进行转发。
在一种实现方式中,所述装置还包括第一切换模块63,所述第一切换模块63用于:
根据所述用户设备的用户标识,获取所述用户设备对应的会话信息;
向软件转发平面发送所述用户设备对应的会话信息,以及向核心交换机发送流表,以使得核心交换机根据流表将所述用户设备的流量从硬件转发平面引导至软件转发平面,并且软件转发平面对所述用户设备的流量进行转发;
向硬件转发平面发送删除信息,以使得硬件转发平面根据所述删除信息删除硬件转发平面中的所述用户设备对应的会话信息。
在一种实现方式中,所述装置还包括第二切换模块64,所述第二切换模块64用于:
根据所述用户设备的用户标识,获取所述用户设备对应的会话信息;
向硬件转发平面发送所述用户设备对应的会话信息,以及向核心交换机发送删除信息,以使得核心交换机根据所述删除信息删除核心交换机中的流表,硬件转发平面基于 会话信息对所述用户设备的流量进行转发,其中所述流表用于将所述用户设备的流量从所述硬件转发平面引导至所述软件转发平面;
向软件转发平面发送删除信息,以使得软件转发平面根据所述删除信息删除软件转发平面中的所述用户设备对应的会话信息。
在一种实现方式中,所述装置还包括:
第二获取模块60,用于获取采用硬件转发平面进行流量转发的用户设备总数;
所述第一获取模块61还用于:在采用硬件转发平面进行流量转发的用户设备总数大于第三阈值时,针对每个用户设备,获取用户设备在预设时间段内的网络资源值。
本公开的报文转发装置可以根据用户设备在预设时间段内的网络资源值,将用户设备当前采用的转发平面在硬件转发平面和软件转发平面之间进行切换,由此既能够保证所有用户设备都在线,又能够实现合理分配硬件DP资源,节约硬件DP资源。
图8示出根据本公开一实施例的报文转发装置的框图。参照图8,该装置800可包括处理器801、存储有机器可执行指令的机器可读存储介质802。处理器801与机器可读存储介质802可经由系统总线803通信。并且,处理器801通过读取机器可读存储介质802中与报文转发逻辑对应的机器可执行指令以执行上文所述的报文转发方法。
本文中提到的机器可读存储介质802可以是任何电子、磁性、光学或其它物理存储装置,可以包含或存储信息,如可执行指令、数据,等等。例如,机器可读存储介质可以是:RAM(Radom Access Memory,随机存取存储器)、易失存储器、非易失性存储器、闪存、存储驱动器(如硬盘驱动器)、固态硬盘、任何类型的存储盘(如光盘、dvd等),或者类似的存储介质,或者它们的组合。
以上已经描述了本公开的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。

Claims (13)

  1. 一种报文转发方法,用于宽带远程接入服务器BRAS转控分离组网的控制平面中,所述BRAS转控分离组网的转发平面包括硬件转发平面和软件转发平面,所述方法包括:
    获取用户设备在预设时间段内的网络资源值;
    根据获取的所述网络资源值,确定是否将所述用户设备当前进行流量转发采用的转发平面在所述硬件转发平面和所述软件转发平面之间进行切换。
  2. 根据权利要求1所述的方法,其特征在于,在所述用户设备当前采用的转发平面是所述硬件转发平面时,
    根据获取的所述网络资源值,确定是否将所述用户设备当前采用的转发平面进行切换,包括:
    若所述用户设备在所述预设时间段内的所述网络资源值小于第一阈值,则确定将当前采用的所述转发平面从所述硬件转发平面切换到所述软件转发平面;以及
    若所述用户设备在所述预设时间段内的所述网络资源值大于或等于第一阈值,则确定继续采用所述硬件转发平面对所述用户设备的流量进行转发。
  3. 根据权利要求1所述的方法,其特征在于,在所述用户设备当前采用的转发平面是所述软件转发平面时,
    根据获取的所述网络资源值,确定是否对所述用户设备当前采用的转发平面进行切换,包括:
    若所述用户设备在所述预设时间段内的所述网络资源值大于第二阈值,则确定将当前采用的所述转发平面从所述软件转发平面切换到所述硬件转发平面;以及
    若所述用户设备在所述预设时间段内的所述网络资源值小于或等于第二阈值,则确定继续采用所述软件转发平面对所述用户设备的流量进行转发。
  4. 根据权利要求2所述的方法,其特征在于,在确定将当前采用的所述转发平面从所述硬件转发平面切换到所述软件转发平面之后,所述方法还包括:
    根据所述用户设备的用户标识ID,获取所述用户设备对应的会话信息;
    向所述软件转发平面发送所述用户设备对应的会话信息,以及向核心交换机发送流表,以使得所述核心交换机根据所述流表将所述用户设备的流量从所述硬件转发平面引导至所述软件转发平面,并且所述软件转发平面基于所述会话信息对所述用户设备的流量进行转发;
    向所述硬件转发平面发送删除信息,以使得所述硬件转发平面根据所述删除信息删 除所述硬件转发平面中的所述用户设备对应的会话信息。
  5. 根据权利要求3所述的方法,其特征在于,在确定将当前采用的所述转发平面从所述软件转发平面切换到所述硬件转发平面之后,所述方法还包括:
    根据所述用户设备的用户标识ID,获取所述用户设备对应的会话信息;
    向所述硬件转发平面发送所述用户设备对应的会话信息,以及向核心交换机发送删除信息,以使得核心交换机根据所述删除信息删除核心交换机中的流表,所述硬件转发平面基于所述会话信息对所述用户设备的流量进行转发,其中所述流表用于将所述用户设备的流量从所述硬件转发平面引导至所述软件转发平面;
    向所述软件转发平面发送删除信息,以使得所述软件转发平面根据所述删除信息删除所述软件转发平面中的所述用户设备对应的会话信息。
  6. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    在所述获取用户设备在预设时间段内的网络资源值之前,获取采用所述硬件转发平面进行流量转发的用户设备总数;
    在所述用户设备总数大于第三阈值时,针对每个所述用户设备,获取所述用户设备在所述预设时间段内的网络资源值。
  7. 一种报文转发装置,用于宽带远程接入服务器BRAS转控分离组网的控制平面中,所述BRAS转控分离组网的转发平面包括硬件转发平面和软件转发平面,所述装置包括:
    第一获取模块,用于获取用户设备在预设时间段内的网络资源值;
    确定模块,用于根据获取的所述网络资源值,确定是否将所述用户设备当前进行流量转发采用的转发平面在所述硬件转发平面和所述软件转发平面之间进行切换。
  8. 根据权利要求7所述的装置,其特征在于,所述确定模块包括第一确定子模块,所述第一确定子模块用于:
    在所述用户设备当前采用的转发平面是所述硬件转发平面时,若所述用户设备在所述预设时间段内的所述网络资源值小于第一阈值,则确定将当前采用的所述转发平面从所述硬件转发平面切换到所述软件转发平面;以及
    在所述用户设备当前采用的转发平面是所述硬件转发平面时,若所述用户设备在所述预设时间段内的所述网络资源值大于或等于第一阈值,则确定继续采用所述硬件转发平面对所述用户设备的流量进行转发。
  9. 根据权利要求7所述的装置,其特征在于,所述确定模块包括第二确定子模块,所述第二确定子模块用于:
    在所述用户设备当前采用的转发平面是所述软件转发平面时,若所述用户设备在所述预设时间段内的所述网络资源值大于第二阈值,则确定将当前采用的所述转发平面从所述软件转发平面切换到所述硬件转发平面;以及
    在所述用户设备当前采用的转发平面是所述软件转发平面时,若所述用户设备在所述预设时间段内的所述网络资源值小于或等于第二阈值,则确定继续采用所述软件转发平面对所述用户设备的流量进行转发。
  10. 根据权利要求8所述的装置,其特征在于,所述装置还包括第一切换模块,所述第一切换模块用于:
    根据所述用户设备的用户标识ID,获取所述用户设备对应的会话信息;
    向所述软件转发平面发送所述用户设备对应的会话信息,以及向核心交换机发送流表,以使得所述核心交换机根据所述流表将所述用户设备的流量从所述硬件转发平面引导至所述软件转发平面,并且所述软件转发平面基于所述会话信息对所述用户设备的流量进行转发;
    向所述硬件转发平面发送删除信息,以使得所述硬件转发平面根据所述删除信息删除所述硬件转发平面中的所述用户设备对应的会话信息。
  11. 根据权利要求9所述的装置,其特征在于,所述装置还包括第二切换模块,所述第二切换模块用于:
    根据所述用户设备的用户标识ID,获取所述用户设备对应的会话信息;
    向所述硬件转发平面发送所述用户设备对应的会话信息,以及向核心交换机发送删除信息,以使得核心交换机根据所述删除信息删除核心交换机中的流表,所述硬件转发平面基于所述会话信息对所述用户设备的流量进行转发,其中所述流表用于将所述用户设备的流量从所述硬件转发平面引导至所述软件转发平面;
    向所述软件转发平面发送删除信息,以使得所述软件转发平面根据所述删除信息删除所述软件转发平面中的所述用户设备对应的会话信息。
  12. 根据权利要求7所述的装置,其特征在于,所述装置还包括:
    第二获取模块,用于获取采用硬件转发平面进行流量转发的用户设备总数;
    所述第一获取模块还用于:在所述用户设备总数大于第三阈值时,针对每个所述用户设备,获取所述用户设备在所述预设时间段内的网络资源值。
  13. 一种报文转发装置,用于宽带远程接入服务器BRAS转控分离组网的控制平面中,所述BRAS转控分离组网的转发平面包括硬件转发平面和软件转发平面,所述装置包括:
    处理器;以及
    存储有机器可执行指令的非暂时性存储介质,其中,通过执行所述机器可执行指令,所述处理器被使得执行如权利要求1至6任意一项所述的报文转发方法。
PCT/CN2019/080396 2018-03-30 2019-03-29 报文转发 WO2019185013A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810292903.X 2018-03-30
CN201810292903.XA CN108616452B (zh) 2018-03-30 2018-03-30 报文转发方法及装置

Publications (1)

Publication Number Publication Date
WO2019185013A1 true WO2019185013A1 (zh) 2019-10-03

Family

ID=63659630

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/080396 WO2019185013A1 (zh) 2018-03-30 2019-03-29 报文转发

Country Status (2)

Country Link
CN (1) CN108616452B (zh)
WO (1) WO2019185013A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4095691A4 (en) * 2020-02-29 2023-07-12 Huawei Technologies Co., Ltd. PROCEDURE FOR ERASING USER EQUIPMENT AND ASSOCIATED DEVICE

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108616452B (zh) * 2018-03-30 2020-12-25 新华三技术有限公司 报文转发方法及装置
CN111371693B (zh) * 2018-12-25 2023-01-10 深圳市中兴微电子技术有限公司 一种通过硬件、软件快速报文转发的方法和系统
CN110351149A (zh) * 2019-07-26 2019-10-18 北京神州绿盟信息安全科技股份有限公司 一种维护网络数据转发平面的方法及装置
CN114157708B (zh) * 2020-09-08 2024-05-10 中国电信股份有限公司 会话迁移的控制方法、装置和vBRAS
CN112491889A (zh) * 2020-11-27 2021-03-12 中国人民解放军战略支援部队信息工程大学 一种软硬件协同的可编程转发系统、方法及装置
CN113225267B (zh) * 2021-04-13 2022-06-28 南京熊猫汉达科技有限公司 一种流量智能分发方法和装置
CN113438168B (zh) * 2021-05-21 2022-08-02 清华大学 软硬件混合流表管理方法及装置
CN113595936B (zh) * 2021-08-03 2022-09-20 中国电信股份有限公司 流量监管方法、网关设备和存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220219A (zh) * 2013-04-16 2013-07-24 杭州华三通信技术有限公司 一种报文转发方法和设备
CN106603427A (zh) * 2017-01-17 2017-04-26 汉柏科技有限公司 防火墙中实现软件bypass的方法及装置
CN107078956A (zh) * 2014-12-11 2017-08-18 博科通迅系统有限公司 多层分布式路由器体系结构
KR20170133018A (ko) * 2016-05-25 2017-12-05 동서대학교산학협력단 Sdn에서의 적응형 보안시스템 및 이의 구동방법
CN108616452A (zh) * 2018-03-30 2018-10-02 新华三技术有限公司 报文转发方法及装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2015205941A1 (en) * 1998-09-15 2015-08-20 Upaid Systems Ltd Communication services
US8848715B2 (en) * 2010-03-16 2014-09-30 Marvell Israel (M.I.S.L) Ltd. Combined hardware/software forwarding mechanism and method
CN107124316B (zh) * 2017-05-23 2019-10-11 烽火通信科技股份有限公司 一种数据通信设备中基于硬件的快速倒换动作实现方法
CN107566292B (zh) * 2017-09-19 2020-12-25 新华三技术有限公司 报文转发方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220219A (zh) * 2013-04-16 2013-07-24 杭州华三通信技术有限公司 一种报文转发方法和设备
CN107078956A (zh) * 2014-12-11 2017-08-18 博科通迅系统有限公司 多层分布式路由器体系结构
KR20170133018A (ko) * 2016-05-25 2017-12-05 동서대학교산학협력단 Sdn에서의 적응형 보안시스템 및 이의 구동방법
CN106603427A (zh) * 2017-01-17 2017-04-26 汉柏科技有限公司 防火墙中实现软件bypass的方法及装置
CN108616452A (zh) * 2018-03-30 2018-10-02 新华三技术有限公司 报文转发方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4095691A4 (en) * 2020-02-29 2023-07-12 Huawei Technologies Co., Ltd. PROCEDURE FOR ERASING USER EQUIPMENT AND ASSOCIATED DEVICE
US11856069B2 (en) 2020-02-29 2023-12-26 Huawei Technologies Co., Ltd. Method for deleting user equipment and related device

Also Published As

Publication number Publication date
CN108616452A (zh) 2018-10-02
CN108616452B (zh) 2020-12-25

Similar Documents

Publication Publication Date Title
WO2019185013A1 (zh) 报文转发
US11716223B2 (en) Virtual converged cable access platform (CCAP)
US11381507B2 (en) Virtual network device and related method
US9167501B2 (en) Implementing a 3G packet core in a cloud computer with openflow data and control planes
US9497661B2 (en) Implementing EPC in a cloud computer with openflow data plane
US10091176B2 (en) Enhanced EVPN MAC route advertisement having MAC (L2) level authentication, security and policy control
EP2831733B1 (en) Implementing epc in a cloud computer with openflow data plane
EP3140964B1 (en) Implementing a 3g packet core in a cloud computer with openflow data and control planes
US9973469B2 (en) MAC (L2) level authentication, security and policy control
CN110945837B (zh) 优化sdn中的服务节点监视
EP2713567A1 (en) Maintaining load balancing after service application with a netwok device
US20190349268A1 (en) Method and apparatus for dynamic service chaining with segment routing for bng
EP3494670B1 (en) Method and apparatus for updating multiple multiprotocol label switching (mpls) bidirectional forwarding detection (bfd) sessions
US11265244B2 (en) Data transmission method, PNF SDN controller, VNF SDN controller, and data transmission system
US11706140B2 (en) Packet forwarding method and network device
WO2015196923A1 (zh) 一种发送信息的方法和网络装置
EP4052442A1 (en) In-band protocol-based in-network computation offload framework
WO2020135871A1 (zh) 光线路终端-内容分发网络的实现方法及装置、介质、网络系统
WO2022166465A1 (zh) 一种报文处理方法及相关装置

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

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 19776253

Country of ref document: EP

Kind code of ref document: A1