WO2024082462A1 - Service forwarding method and apparatus, and electronic device - Google Patents

Service forwarding method and apparatus, and electronic device Download PDF

Info

Publication number
WO2024082462A1
WO2024082462A1 PCT/CN2023/071117 CN2023071117W WO2024082462A1 WO 2024082462 A1 WO2024082462 A1 WO 2024082462A1 CN 2023071117 W CN2023071117 W CN 2023071117W WO 2024082462 A1 WO2024082462 A1 WO 2024082462A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
forwarding
processed
service node
backup
Prior art date
Application number
PCT/CN2023/071117
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 WO2024082462A1 publication Critical patent/WO2024082462A1/en

Links

Images

Abstract

A service forwarding method and apparatus, and an electronic device. The method comprises: obtaining a service to be processed and a control plane corresponding to said service; when the control plane is in a preset state, determining, from a forwarding plane associated with the control plane, an initial forwarding list corresponding to said service; adjusting the initial forwarding list to a target forwarding list on the basis of the service type of said service; and forwarding said service according to the target forwarding list. The initial forwarding list is adjusted to the target forwarding list on the basis of the service type of said service, such that the control plane and the forwarding plane are decoupled, and thus services to be processed of different service types correspond to different forwarding lists, and service requirements respectively corresponding to the services to be processed of different service types can be met on the same port link.

Description

一种业务转发方法、装置和电子设备A service forwarding method, device and electronic device
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求在2022年10月21日提交中国专利局、申请号为202211290343.7、申请名称为“一种业务转发方法、装置及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to a Chinese patent application filed with the Chinese Patent Office on October 21, 2022, with application number 202211290343.7 and application name “A service forwarding method, device and electronic device”, the entire contents of which are incorporated by reference in this application.
技术领域Technical Field
本发明涉及通信技术领域,尤其是一种业务转发方法、装置及电子设备。The present invention relates to the field of communication technology, and in particular to a service forwarding method, device and electronic equipment.
背景技术Background technique
在网络通信技术中,网络侧与用户侧通过路由器在网络架构中实现数据的转发与传输,为了确保数据在进行转发与传输过程中的可靠性,引入了下一代全业务承载的虚拟专用网络解决方案(Ethernet Virtual Private Network,EVPN),EVPN统一了各种虚拟专用网络业务的控制面,利用边界网关协议(Border Gateway Protocol,BGP)来传递二层或三层的可达性信息。In network communication technology, the network side and the user side realize data forwarding and transmission in the network architecture through routers. In order to ensure the reliability of data during forwarding and transmission, the next-generation full-service virtual private network solution (Ethernet Virtual Private Network, EVPN) is introduced. EVPN unifies the control plane of various virtual private network services and uses the Border Gateway Protocol (Border Gateway Protocol, BGP) to transmit Layer 2 or Layer 3 reachability information.
EVPN支持用户边缘设备(Customer Edge,CE)的多归多活和多归单活接入,CE为用户侧的路由器,服务边缘设备(Provider Edge,PE)为网络侧的路由器,多归是指用户侧的路由器能够同时连接多个网络侧的路由器。当EVPN实现负载均衡时,需要基于多归多活进行数据转发与传输,当EVPN实现流量控制时,需要基于多归单活进行数据转发与传输。EVPN supports multi-homing multi-active and multi-homing single-active access of customer edge devices (CE). CE is the router on the user side, and provider edge devices (PE) are the routers on the network side. Multi-homing means that the router on the user side can connect to multiple routers on the network side at the same time. When EVPN implements load balancing, it needs to forward and transmit data based on multi-homing multi-active. When EVPN implements traffic control, it needs to forward and transmit data based on multi-homing single-active.
具体地,在CE多归属组网中,可以配置EVPN组网的冗余模式,即配置与同一CE相连的各个PE的活跃模式为多活跃模式或单活跃模式。通过配置冗余模式可以控制CE多归属组网是否对流量进行负载分担。在单活跃模式下,冗余备份组中所有PE会选举一台PE作为主用设备转发流量,其余PE作为主设备的备份,当主用设备故障时,备份设备能够代替主用设备转发流量。多活跃模式下,冗余备份组中的所有PE均参与单播数据报文的转发,实现 负载分担。Specifically, in CE multi-homing networking, you can configure the redundancy mode of EVPN networking, that is, configure the active mode of each PE connected to the same CE to multi-active mode or single-active mode. By configuring the redundancy mode, you can control whether the CE multi-homing networking load shares the traffic. In single-active mode, all PEs in the redundant backup group will elect one PE as the primary device to forward traffic, and the remaining PEs will serve as backups for the primary device. When the primary device fails, the backup device can replace the primary device to forward traffic. In multi-active mode, all PEs in the redundant backup group participate in the forwarding of unicast data packets to achieve load sharing.
EVPN多归多活和多归单活接入方式是基于以太链路标识(Ethernet Segment Identifier,ESI)配置单活或多活的,ESI标识的链路可以是基于物理端口的以太链路(Ethernet Segment,ES),也可以是基于逻辑端口的虚拟ES(virtual ES,vES)。EVPN multi-homing multi-active and multi-homing single-active access modes are configured with single-active or multi-active based on the Ethernet Segment Identifier (ESI). The link identified by ESI can be an Ethernet link (Ethernet Segment, ES) based on a physical port or a virtual ES (virtual ES, vES) based on a logical port.
在实际网络中会同时承载多种业务类型,典型的业务包括家宽上网业务和政企专线业务等,每种业务类型的业务诉求也是不同,用户侧多种类型的业务通过用户网络多归属到同一组PE设备组(比如PE1\PE2设备组)的同一组物理端口,为了区分不同业务,可以配置不同的vES来承载不同的业务,比如vES1,对应虚拟局域网(Virtual Local Area Network,VLAN)1,来承载类家宽业务虚拟专用网(Virtual Private Network,VPN)1,其负载分担方式为多归多活;vES2,对应VLAN2,来承载类政企专线业务VPN2,其负载分担方式为多归单活。In an actual network, multiple types of services are carried at the same time. Typical services include home broadband Internet access services and government and enterprise dedicated line services. The service requirements of each service type are also different. On the user side, multiple types of services are multi-homed to the same group of physical ports of the same PE device group (such as PE1\PE2 device group) through the user network. In order to distinguish different services, different vES can be configured to carry different services. For example, vES1, corresponding to virtual local area network (VLAN) 1, carries home broadband service virtual private network (VPN) 1, and its load balancing method is multi-homing and multi-active; vES2, corresponding to VLAN2, carries government and enterprise dedicated line service VPN2, and its load balancing method is multi-homing and single-active.
在通过vES来承载多业务的方式会带来以下问题:为了支持多归多活类业务的负载分担,CE侧的用户网络将接入端口配置为聚合口,如链路聚合组(Link Aggregation Group,LAG)来实现业务的负载分担,然而该聚合口会统一承载所有业务的用户流量,包括多归多活类业务和多归单活类业务。但是对于多归单活类业务:用户侧通过该聚合口发送流量时,聚合口会根据自己的负载分担策略进行转发报文,而网络侧的PE互为主备路由器,用户侧的负载分担策略会导致报文有可能发送到网络侧的备PE上,而备PE则会阻塞该报文,造成报文的丢失,影响业务体验。The following problems will arise when using vES to carry multiple services: In order to support load sharing of multi-homing and multi-active services, the user network on the CE side configures the access port as an aggregation port, such as a link aggregation group (LAG) to achieve load sharing of services. However, the aggregation port will uniformly carry user traffic of all services, including multi-homing and multi-active services and multi-homing single-active services. However, for multi-homing and single-active services: when the user side sends traffic through the aggregation port, the aggregation port will forward the message according to its own load sharing strategy, and the PEs on the network side are each other's active and standby routers. The load sharing strategy on the user side may cause the message to be sent to the standby PE on the network side, and the standby PE will block the message, resulting in message loss and affecting the service experience.
发明内容Summary of the invention
本发明实施例提供一种业务转发方法、装置及电子设备,通过待处理业务的业务类型以及控制面的预设状态转发面中的转发表进行调整,从而实现EVPN的控制面以及转发面的解耦,进而能够在同一端口链路的情况下满足不同业务类型的不同业务需求。The embodiments of the present invention provide a service forwarding method, device and electronic device, which adjust the forwarding table in the forwarding plane through the service type of the service to be processed and the preset state of the control plane, thereby realizing the decoupling of the control plane and the forwarding plane of EVPN, and further being able to meet different service requirements of different service types under the same port link.
第一方面,本申请提供了一种业务转发方法,所述方法包括:In a first aspect, the present application provides a service forwarding method, the method comprising:
获得待处理业务以及所述待处理业务对应的控制面;Obtaining a service to be processed and a control plane corresponding to the service to be processed;
当所述控制面处于预设状态时,从与所述控制面关联的转发面中确定出所述待处理业务对应的初始转发列表,其中,所述初始转发列表不满足所述待处理业务的业务需求,所述预设状态为多归多活状态或者多归单活状态;When the control plane is in a preset state, determining an initial forwarding list corresponding to the to-be-processed service from a forwarding plane associated with the control plane, wherein the initial forwarding list does not meet the service requirements of the to-be-processed service, and the preset state is a multi-homing multi-active state or a multi-homing single-active state;
基于所述待处理业务的业务类型将所述初始转发列表调整为目标转发列表;Adjusting the initial forwarding list to a target forwarding list based on the service type of the service to be processed;
按照所述目标转发列表转发所述待处理业务。The to-be-processed business is forwarded according to the target forwarding list.
通过上述的方法,在控制面的预设状态确定时,对于控制面关联的转发面中的初始转发列表进行调整,将初始转发列表调整为符合待处理业务的业务类型的目标转发列表,使得每一种业务类型的待处理业务都各自对应不同的转发列表,从而实现了控制面与转发面的解耦,进而能够满足不同业务类型的不同业务需求。Through the above method, when the preset state of the control plane is determined, the initial forwarding list in the forwarding plane associated with the control plane is adjusted, and the initial forwarding list is adjusted to a target forwarding list that conforms to the service type of the service to be processed, so that each service type of the service to be processed corresponds to a different forwarding list, thereby realizing the decoupling of the control plane and the forwarding plane, and then being able to meet the different service requirements of different service types.
在一种可能的设计中,从与所述控制面关联的转发面中确定出所述待处理业务对应的初始转发列表,包括:In one possible design, determining an initial forwarding list corresponding to the to-be-processed service from a forwarding plane associated with the control plane includes:
当控制面处于多归多活状态时,确定出所述待处理业务对应的所有业务节点;When the control plane is in a multi-home multi-active state, determining all service nodes corresponding to the service to be processed;
确定出各个业务节点各自对应的转发次序,并基于各个转发次序生成初始转发列表。Determine the forwarding order corresponding to each service node, and generate an initial forwarding list based on each forwarding order.
通过上述的方法,确定出控制面处于多归多活状态时待处理业务对应的初始转发列表,使得待处理业务能够按照初始转发列表进行转发。Through the above method, the initial forwarding list corresponding to the pending service is determined when the control plane is in the multi-homing multi-active state, so that the pending service can be forwarded according to the initial forwarding list.
在一种可能的设计中,从与所述控制面关联的转发面中确定出所述待处理业务对应的初始转发列表,包括:In one possible design, determining an initial forwarding list corresponding to the to-be-processed service from a forwarding plane associated with the control plane includes:
当控制面处于多归单活状态时,从边界网关协议(Border Gateway Protocol,BGP)路由信息中的所有业务节点中确定出主业务节点以及备业务节点,其中,所述BGP路由信息用于确认业务节点的主备状态;When the control plane is in a multi-homing single-active state, a primary service node and a backup service node are determined from all service nodes in Border Gateway Protocol (BGP) routing information, wherein the BGP routing information is used to confirm the primary and backup status of the service nodes;
确定出所述主业务节点对应的主转发次序以及所述备业务节点对应的备 转发次序;Determine a primary forwarding order corresponding to the primary service node and a backup forwarding order corresponding to the backup service node;
基于所述主转发次序以及所述备转发次序生成所述待处理业务对应的所述初始转发列表。The initial forwarding list corresponding to the to-be-processed service is generated based on the primary forwarding order and the backup forwarding order.
通过上述的方法,确定出控制面处于多归单活状态时待处理业务的初始转发列表,以及确定出所有业务节点中的主业务节点以及备业务节点,从而能够确定出的待处理业务的转发次序。Through the above method, the initial forwarding list of the pending services is determined when the control plane is in a multi-homing single-active state, and the main service node and the backup service node among all service nodes are determined, so that the forwarding order of the pending services can be determined.
在一种可能的设计中,从BGP路由信息中的所有业务节点中确定出主业务节点以及备业务节点,包括:In a possible design, determining a primary service node and a backup service node from all service nodes in the BGP routing information includes:
确定出各个业务节点各自对应的IP地址或者VLAN标识;Determine the IP address or VLAN ID corresponding to each service node;
将各个IP地址按照预设顺序进行排序,筛选出最小IP地址,将所述最小IP地址对应的业务节点作为主业务节点,除所述主业务节点之外的其他节点作为备业务节点;或者Sort the IP addresses in a preset order, select the smallest IP address, and use the service node corresponding to the smallest IP address as the main service node, and use other nodes except the main service node as backup service nodes; or
将所述VLAN标识带入预设公式中计算出各个业务节点的序号,并将序号为1的业务节点作为主业务节点,除所述主业务节点之外的其他节点作为备业务节点。The VLAN identifier is brought into a preset formula to calculate the serial number of each service node, and the service node with serial number 1 is used as the main service node, and the other nodes except the main service node are used as backup service nodes.
通过上述的方法,通过不同的方式确定出主业务节点以及备业务节点,确保了确定出的主业务节点以及备业务节点的准确性。Through the above method, the main service node and the backup service node are determined in different ways, thereby ensuring the accuracy of the determined main service node and the backup service node.
在一种可能的设计中,基于所述待处理业务的业务类型将所述初始转发列表调整为目标转发列表,包括:In a possible design, adjusting the initial forwarding list to a target forwarding list based on the service type of the to-be-processed service includes:
提取出所述初始转发列表中的所有业务节点,并从所有的业务节点中确定出主业务节点以及备业务节点;Extracting all service nodes in the initial forwarding list, and determining a primary service node and a backup service node from all service nodes;
当确定出所述待处理业务的业务类型以及所述预设状态时,基于预设指令对所述初始转发列表中的所述主业务节点和/或所述备业务节点进行调整,其中,所述预设指令为指示调整转发面的转发列表的指令;When the service type of the to-be-processed service and the preset state are determined, adjusting the primary service node and/or the backup service node in the initial forwarding list based on a preset instruction, wherein the preset instruction is an instruction to instruct to adjust the forwarding list of the forwarding plane;
将调整之后的所述初始转发列表作为所述待处理业务的目标转发列表。The adjusted initial forwarding list is used as the target forwarding list for the service to be processed.
通过上述的方法,确定出主业务节点以及备业务节点,并基于待处理的业务类型以及控制面的预设状态对初始转发列表中的转发次序进行调整,确 保了形成的目标转发列表能够满足待处理业务的业务需求。Through the above method, the main business node and the backup business node are determined, and the forwarding order in the initial forwarding list is adjusted based on the type of business to be processed and the preset state of the control plane, ensuring that the formed target forwarding list can meet the business requirements of the business to be processed.
在一种可能的设计中,在按照所述目标转发列表转发所述待处理业务之前,还包括:In a possible design, before forwarding the to-be-processed service according to the target forwarding list, the method further includes:
获得所述待处理业务对应的主业务节点;Obtaining the main service node corresponding to the service to be processed;
当所述主业务节点发生变更时,将所述主业务节点与所述备业务节点进行互换,并设置互换之后的所述主业务节点与所述备业务节点的转发次序。When the main service node changes, the main service node and the backup service node are exchanged, and a forwarding order of the main service node and the backup service node after the exchange is set.
通过上述的方法,当主业务节点故障或者主业务节点重新选举时,将备业务节点作为目标主业务节点,并将主业务节点的转发次序与目标主业务节点进行关联,确保了目标主业务节点能够实现本地优先转发。By using the above method, when the main service node fails or the main service node is re-elected, the backup service node is used as the target main service node, and the forwarding order of the main service node is associated with the target main service node, ensuring that the target main service node can achieve local priority forwarding.
在一种可能的设计中,在按照所述目标转发列表转发所述待处理业务之前,还包括:In a possible design, before forwarding the to-be-processed service according to the target forwarding list, the method further includes:
获得所述待处理业务对应的备业务节点;Obtaining a standby service node corresponding to the service to be processed;
当所述备业务节点故障恢复时,获取所述备业务节点故障时对应的备转发次序表,并控制转发面将所述备转发次序表作为所述备业务节点故障恢复后的目标转发次序表。When the standby service node fails and recovers, a standby forwarding order table corresponding to the standby service node fails is obtained, and the forwarding plane is controlled to use the standby forwarding order table as a target forwarding order table after the standby service node fails and recovers.
通过上述的方法,确定出备业务节点故障恢复的处理方式,备业务节点故障时的转发次序与备业务节点故障恢复后的转发次序相同,防止了备业务节点转发的待处理业务丢失。By the above method, the processing mode of failure recovery of the standby service node is determined, and the forwarding order when the standby service node fails is the same as the forwarding order after the standby service node fails and the loss of pending services forwarded by the standby service node is prevented.
第二方面,本申请提供了一种业务转发装置,所述装置包括:In a second aspect, the present application provides a service forwarding device, the device comprising:
获得模块,用于获得待处理业务以及所述待处理业务对应的控制面;An acquisition module, used to obtain a service to be processed and a control plane corresponding to the service to be processed;
确定模块,用于当所述控制面处于预设状态时,从与所述控制面关联的转发面中确定出所述待处理业务对应的初始转发列表;A determination module, configured to determine, when the control plane is in a preset state, an initial forwarding list corresponding to the to-be-processed service from a forwarding plane associated with the control plane;
调整模块,用于基于所述待处理业务的业务类型将所述初始转发列表调整为目标转发列表;An adjustment module, configured to adjust the initial forwarding list to a target forwarding list based on the service type of the service to be processed;
转发模块,用于按照所述目标转发列表转发所述待处理业务。A forwarding module is used to forward the pending business according to the target forwarding list.
在一种可能的设计中,所述确定模块,具体用于当控制面处于多归多活状态时,确定出所述待处理业务对应的所有业务节点,确定出各个业务节点 各自对应的转发次序,并基于各个转发次序生成初始转发列表。In one possible design, the determination module is specifically used to determine all service nodes corresponding to the to-be-processed service when the control plane is in a multi-home and multi-active state, determine the forwarding order corresponding to each service node, and generate an initial forwarding list based on each forwarding order.
在一种可能的设计中,所述确定模块,还用于当控制面处于多归单活状态时,从边界网关协议(Border Gateway Protocol,BGP)路由信息中的所有业务节点中确定出主业务节点以及备业务节点,其中,所述BGP路由信息用于确认业务节点的主备状态,确定出所述主业务节点对应的主转发次序以及所述备业务节点对应的备转发次序,基于所述主转发次序以及所述备转发次序生成所述待处理业务对应的所述初始转发列表。In one possible design, the determination module is also used to determine the primary business node and the backup business node from all business nodes in the Border Gateway Protocol (BGP) routing information when the control plane is in a multi-homing single-active state, wherein the BGP routing information is used to confirm the primary and backup status of the business nodes, determine the primary forwarding order corresponding to the primary business node and the backup forwarding order corresponding to the backup business node, and generate the initial forwarding list corresponding to the to-be-processed business based on the primary forwarding order and the backup forwarding order.
在一种可能的设计中,所述确定模块,还用于确定出各个业务节点各自对应的IP地址或者VLAN标识,将各个IP地址按照预设顺序进行排序,筛选出最小IP地址,将所述最小IP地址对应的业务节点作为主业务节点,除所述主业务节点之外的其他节点作为备业务节点,或者将所述VLAN标识带入预设公式中计算出各个业务节点的序号,并将序号为1的业务节点作为主业务节点,除所述主业务节点之外的其他节点作为备业务节点。In a possible design, the determination module is also used to determine the IP address or VLAN ID corresponding to each business node, sort the IP addresses in a preset order, screen out the minimum IP address, and use the business node corresponding to the minimum IP address as the main business node, and other nodes except the main business node as backup business nodes, or bring the VLAN ID into a preset formula to calculate the serial number of each business node, and use the business node with serial number 1 as the main business node, and other nodes except the main business node as backup business nodes.
在一种可能的设计中,所述调整模块,具体用于提取出所述初始转发列表中的所有业务节点,并从所有的业务节点中确定出主业务节点以及备业务节点,当确定出所述待处理业务的业务类型以及所述预设状态时,基于预设指令对所述初始转发列表中的所述主业务节点和/或所述备业务节点进行调整,将调整之后的所述初始转发列表作为所述待处理业务的目标转发列表。In one possible design, the adjustment module is specifically used to extract all business nodes in the initial forwarding list, and determine the main business node and the backup business node from all the business nodes. When the business type of the service to be processed and the preset status are determined, the main business node and/or the backup business node in the initial forwarding list are adjusted based on preset instructions, and the adjusted initial forwarding list is used as the target forwarding list for the service to be processed.
在一种可能的设计中,所述转发模块,具体用于获得所述待处理业务对应的主业务节点,当所述主业务节点发生变更时,将所述主业务节点与所述备业务节点进行互换,并设置互换之后的所述主业务节点与所述备业务节点的转发次序。In one possible design, the forwarding module is specifically used to obtain the main business node corresponding to the service to be processed. When the main business node changes, the main business node and the backup business node are swapped, and the forwarding order of the main business node and the backup business node after the swap is set.
在一种可能的设计中,所述转发模块,还用于获得所述待处理业务对应的备业务节点,当所述备业务节点故障恢复时,获取所述备业务节点故障时对应的备转发次序表,并控制转发面将所述备转发次序表作为所述备业务节点故障恢复后的目标转发次序表。In one possible design, the forwarding module is also used to obtain a backup service node corresponding to the service to be processed. When the backup service node fails and recovers, the backup forwarding order table corresponding to the backup service node fails is obtained, and the forwarding plane is controlled to use the backup forwarding order table as the target forwarding order table after the backup service node fails and recovers.
第三方面,本申请提供一种业务转发方法,其特征在于,所述方法应用 于配置有不同虚拟以太链路vES的虚拟专用网络EVPN,所述方法,包括:In a third aspect, the present application provides a service forwarding method, characterized in that the method is applied to a virtual private network EVPN configured with different virtual Ethernet links vES, and the method includes:
第一vES的备业务节点接收CE发送的待处理业务;The backup service node of the first vES receives the to-be-processed service sent by the CE;
当所述待处理业务来自所述第一vES时,基于预设的本地路由表项转发所述待处理业务;其中,所述第一vES的控制面的预设状态为多归单活状态。When the service to be processed comes from the first vES, the service to be processed is forwarded based on a preset local routing table entry; wherein the preset state of the control plane of the first vES is a multi-homing single active state.
通过上述的方法,在EVPN配置不同vES以满足不同业务类型的业务需求时,用户网络需要配置聚合口,此时网络侧的所有PE设备接收到CE发送的待处理业务时,均会基于预设的本地路由表项对所述待处理业务进行转发,避免了报文的丢失,提升业务体验。通过上述的方法,该第一vES的适用对象是多归单活类业务,但若第一vES的用户侧业务流量按照其他不同的vES的聚合口负载均衡策略将第一vES的待处理业务转发至该第一vES的备业务节点,也能按照上述方式进行业务转发。Through the above method, when EVPN configures different vES to meet the service requirements of different service types, the user network needs to configure an aggregation port. At this time, when all PE devices on the network side receive the pending services sent by CE, they will forward the pending services based on the preset local routing table entries, avoiding the loss of messages and improving the service experience. Through the above method, the first vES is applicable to multi-home single-active services, but if the user-side service traffic of the first vES forwards the pending services of the first vES to the backup service node of the first vES according to the aggregation port load balancing strategy of other different vESs, the service forwarding can also be performed in the above manner.
在一种可能的设计中,在所述第一vES的备业务节点接收CE发送的待处理业务之后,还包括:In a possible design, after the standby service node of the first vES receives the to-be-processed service sent by the CE, the method further includes:
当所述待处理业务归属所述第一vES,且来自本地单归CE或以太链路ES时,所述第一vES的备业务节点阻塞所述待处理业务,并将所述待处理业务发送给所述第一vES的主业务节点;其中,当所述待处理业务来自所述ES时,所述CE通过所述ES多归接入所述EVPN。When the service to be processed belongs to the first vES and comes from a local single-home CE or Ethernet link ES, the backup service node of the first vES blocks the service to be processed and sends the service to be processed to the primary service node of the first vES; wherein, when the service to be processed comes from the ES, the CE accesses the EVPN through the ES multi-home.
通过上述的方法,若第一vES的备业务节点接收到来自本地单归CE或其他ES发送的待处理业务,且该待处理业务目的地也是转发给归属于该备业务节点的用户网络(第一vES),即不是转发至远端业务节点时,由于单活状态下的业务节点,会统一通过主业务节点进行限速QoS控制,因此备业务节点会将该待处理业务统一通过主业务节点进行转发,实现集中限速QoS精准控制。当备业务节点接收到多归单活类的待处理业务时,若本地存储有所述待处理业务的路由表项时,则直接按照本地路由表项转发该待处理业务,若本地未存储有该待处理业务的路由表项时,则按照相关的未知单播报文的处理规则对该待处理业务进行处理即可。Through the above method, if the backup service node of the first vES receives pending services sent from the local single-home CE or other ES, and the destination of the pending services is also forwarded to the user network (first vES) belonging to the backup service node, that is, it is not forwarded to the remote service node, since the service nodes in the single-active state will uniformly perform speed limit QoS control through the main service node, the backup service node will uniformly forward the pending services through the main service node to achieve centralized speed limit QoS precise control. When the backup service node receives pending services of the multi-home single-active type, if the routing table entry of the pending services is stored locally, the pending services are directly forwarded according to the local routing table entry. If the routing table entry of the pending services is not stored locally, the pending services can be processed according to the relevant unknown unicast message processing rules.
在一种可能的设计中,所述基于预设的本地路由表项转发所述待处理业 务,具体包括:In a possible design, forwarding the service to be processed based on a preset local routing table entry specifically includes:
获得所述待处理业务以及所述待处理业务对应的控制面;Obtaining the service to be processed and a control plane corresponding to the service to be processed;
当所述控制面处于预设状态时,从与所述控制面关联的转发面中确定出所述待处理业务对应的初始转发列表,其中,所述初始转发列表不满足所述待处理业务的业务需求,所述预设状态为多归多活状态或者多归单活状态;When the control plane is in a preset state, determining an initial forwarding list corresponding to the service to be processed from a forwarding plane associated with the control plane, wherein the initial forwarding list does not meet the service requirements of the service to be processed, and the preset state is a multi-homing multi-active state or a multi-homing single-active state;
基于所述待处理业务的业务类型将所述初始转发列表调整为目标转发列表;Adjusting the initial forwarding list to a target forwarding list based on the service type of the service to be processed;
基于所述目标转发列表和所述本地路由表项转发所述待处理业务。The to-be-processed service is forwarded based on the target forwarding list and the local routing table entry.
通过上述的方法,在控制面的预设状态确定时,对于控制面关联的转发面中的初始转发列表进行调整,将初始转发列表调整为符合待处理业务的业务类型的目标转发列表,使得每一种业务类型的待处理业务都各自对应不同的转发列表,从而实现了控制面与转发面的解耦,进而能够满足不同业务类型的不同业务需求。Through the above method, when the preset state of the control plane is determined, the initial forwarding list in the forwarding plane associated with the control plane is adjusted, and the initial forwarding list is adjusted to a target forwarding list that conforms to the service type of the service to be processed, so that each service type of the service to be processed corresponds to a different forwarding list, thereby realizing the decoupling of the control plane and the forwarding plane, and then being able to meet the different service requirements of different service types.
在一种可能的设计中,从与所述控制面关联的转发面中确定出所述待处理业务对应的初始转发列表,包括:In one possible design, determining an initial forwarding list corresponding to the to-be-processed service from a forwarding plane associated with the control plane includes:
当控制面处于多归多活状态时,确定出所述待处理业务对应的所有业务节点;When the control plane is in a multi-home multi-active state, determining all service nodes corresponding to the service to be processed;
确定出各个业务节点各自对应的转发次序,并基于各个转发次序生成初始转发列表。Determine the forwarding order corresponding to each service node, and generate an initial forwarding list based on each forwarding order.
通过上述的方法,确定出控制面处于多归多活状态时待处理业务对应的初始转发列表,使得待处理业务能够按照初始转发列表进行转发。Through the above method, the initial forwarding list corresponding to the pending service is determined when the control plane is in the multi-homing multi-active state, so that the pending service can be forwarded according to the initial forwarding list.
在一种可能的设计中,从与所述控制面关联的转发面中确定出所述待处理业务对应的初始转发列表,包括:In one possible design, determining an initial forwarding list corresponding to the to-be-processed service from a forwarding plane associated with the control plane includes:
当控制面处于多归单活状态时,从边界网关协议BGP路由信息中的所有业务节点中确定出主业务节点以及备业务节点,其中,所述BGP路由信息用于确认业务节点的主备状态;When the control plane is in a multi-homing single-active state, determining a primary service node and a backup service node from all service nodes in the Border Gateway Protocol BGP routing information, wherein the BGP routing information is used to confirm the primary and backup status of the service node;
确定出所述主业务节点对应的主转发次序以及所述备业务节点对应的备 转发次序;Determine a primary forwarding order corresponding to the primary service node and a backup forwarding order corresponding to the backup service node;
基于所述主转发次序以及所述备转发次序生成所述待处理业务对应的所述初始转发列表。The initial forwarding list corresponding to the to-be-processed service is generated based on the primary forwarding order and the backup forwarding order.
通过上述的方法,确定出控制面处于多归单活状态时待处理业务的初始转发列表,以及确定出所有业务节点中的主业务节点以及备业务节点,从而能够确定出的待处理业务的转发次序。Through the above method, the initial forwarding list of the pending services is determined when the control plane is in a multi-homing single-active state, and the main service node and the backup service node among all service nodes are determined, so that the forwarding order of the pending services can be determined.
在一种可能的设计中,从BGP路由信息中的所有业务节点中确定出主业务节点以及备业务节点,包括:In a possible design, determining a primary service node and a backup service node from all service nodes in the BGP routing information includes:
确定出各个业务节点各自对应的IP地址或者VLAN标识;Determine the IP address or VLAN ID corresponding to each service node;
将各个IP地址按照预设顺序进行排序,筛选出最小IP地址,将所述最小IP地址对应的业务节点作为主业务节点,除所述主业务节点之外的其他节点作为备业务节点;或者Sort the IP addresses in a preset order, select the smallest IP address, and use the service node corresponding to the smallest IP address as the main service node, and use other nodes except the main service node as backup service nodes; or
将所述VLAN标识带入预设公式中计算出各个业务节点的序号,并将序号为1的业务节点作为主业务节点,除所述主业务节点之外的其他节点作为备业务节点。The VLAN identifier is brought into a preset formula to calculate the serial number of each service node, and the service node with serial number 1 is used as the main service node, and the other nodes except the main service node are used as backup service nodes.
通过上述的方法,通过不同的方式确定出主业务节点以及备业务节点,确保了确定出的主业务节点以及备业务节点的准确性。Through the above method, the main service node and the backup service node are determined in different ways, thereby ensuring the accuracy of the determined main service node and the backup service node.
在一种可能的设计中,基于所述待处理业务的业务类型将所述初始转发列表调整为目标转发列表,包括:In a possible design, adjusting the initial forwarding list to a target forwarding list based on the service type of the to-be-processed service includes:
提取出所述初始转发列表中的所有业务节点,并从所有的业务节点中确定出主业务节点以及备业务节点;Extracting all service nodes in the initial forwarding list, and determining a primary service node and a backup service node from all service nodes;
当确定出所述待处理业务的业务类型以及所述预设状态时,基于预设指令对所述初始转发列表中的所述主业务节点和/或所述备业务节点进行调整,其中,所述预设指令为指示调整转发面中的初始转发列表的指令;When the service type and the preset state of the to-be-processed service are determined, adjusting the primary service node and/or the backup service node in the initial forwarding list based on a preset instruction, wherein the preset instruction is an instruction to instruct adjustment of the initial forwarding list in the forwarding plane;
将调整之后的所述初始转发列表作为所述待处理业务的目标转发列表。The adjusted initial forwarding list is used as the target forwarding list for the service to be processed.
通过上述的方法,确定出主业务节点以及备业务节点,并基于待处理的业务类型以及控制面的预设状态对初始转发列表中的转发次序进行调整,确 保了形成的目标转发列表能够满足待处理业务的业务需求。Through the above method, the main business node and the backup business node are determined, and the forwarding order in the initial forwarding list is adjusted based on the type of business to be processed and the preset state of the control plane, ensuring that the formed target forwarding list can meet the business requirements of the business to be processed.
在一种可能的设计中,在确定出所述目标转发列表之后,还包括:In a possible design, after determining the target forwarding list, the method further includes:
获得所述待处理业务对应的主业务节点;Obtaining the main service node corresponding to the service to be processed;
当所述主业务节点发生变更时,将所述主业务节点与所述备业务节点进行互换,并设置互换之后的所述主业务节点与所述备业务节点的转发次序。When the main service node changes, the main service node and the backup service node are exchanged, and a forwarding order of the main service node and the backup service node after the exchange is set.
通过上述的方法,当主业务节点故障或者主业务节点重新选举时,将备业务节点作为目标主业务节点,并将主业务节点的转发次序与目标主业务节点进行关联,确保了目标主业务节点能够实现本地优先转发。By using the above method, when the main service node fails or the main service node is re-elected, the backup service node is used as the target main service node, and the forwarding order of the main service node is associated with the target main service node, ensuring that the target main service node can achieve local priority forwarding.
在一种可能的设计中,在确定出所述目标转发列表之后,还包括:In a possible design, after determining the target forwarding list, the method further includes:
获得所述待处理业务对应的备业务节点;Obtaining a standby service node corresponding to the service to be processed;
当所述备业务节点故障恢复时,获取所述备业务节点故障时对应的备转发次序表,并控制转发面将所述备转发次序表作为所述备业务节点故障恢复后的目标转发次序表。When the standby service node fails and recovers, a standby forwarding order table corresponding to the standby service node fails is obtained, and the forwarding plane is controlled to use the standby forwarding order table as a target forwarding order table after the standby service node fails and recovers.
通过上述的方法,确定出备业务节点故障恢复的处理方式,备业务节点故障时的转发次序与备业务节点故障恢复后的转发次序相同,防止了备业务节点转发的待处理业务丢失。By the above method, the processing mode of failure recovery of the standby service node is determined, and the forwarding order when the standby service node fails is the same as the forwarding order after the standby service node fails and the loss of the pending service forwarded by the standby service node is prevented.
第四方面,本申请提供一种业务转发装置,所述装置应用于配置有不同vES的虚拟专用网络EVPN,所述装置,包括:In a fourth aspect, the present application provides a service forwarding device, which is applied to a virtual private network EVPN configured with different vESs, and the device includes:
接收模块,用于接收CE发送的待处理业务;A receiving module, used for receiving pending services sent by CE;
转发模块,用于当所述待处理业务来自第一vES时,基于预设的本地路由表项转发所述待处理业务;其中,所述第一vES的控制面的预设状态为多归单活状态,所述装置设置于第一vES的备业务节点。A forwarding module is used to forward the pending service based on a preset local routing table entry when the pending service comes from the first vES; wherein the preset state of the control plane of the first vES is a multi-home single-active state, and the device is set at the backup service node of the first vES.
在一种可能的设计中,所述转发模块,还用于当所述待处理业务归属所述第一vES,且来自单归CE或ES时,阻塞所述待处理业务,并将所述待处理业务发送给所述第一vES的主业务节点;其中,当所述待处理业务来自所述ES时,所述CE通过所述ES多归接入所述EVPN。In one possible design, the forwarding module is also used to block the service to be processed and send the service to the main service node of the first vES when the service to be processed belongs to the first vES and comes from a single-home CE or ES; wherein, when the service to be processed comes from the ES, the CE accesses the EVPN through the ES.
在一种可能的设计中,所述转发模块,具体用于获得待处理业务以及所 述待处理业务对应的控制面;当所述控制面处于预设状态时,从与所述控制面关联的转发面中确定出所述待处理业务对应的初始转发列表;基于所述待处理业务的业务类型将所述初始转发列表调整为目标转发列表;基于所述目标转发列表和所述本地路由表项转发所述待处理业务。In one possible design, the forwarding module is specifically used to obtain the service to be processed and the control plane corresponding to the service to be processed; when the control plane is in a preset state, determine the initial forwarding list corresponding to the service to be processed from the forwarding plane associated with the control plane; adjust the initial forwarding list to a target forwarding list based on the service type of the service to be processed; and forward the service to be processed based on the target forwarding list and the local routing table entry.
在一种可能的设计中,所述转发模块,具体用于当控制面处于多归多活状态时,确定出所述待处理业务对应的所有业务节点,确定出各个业务节点各自对应的转发次序,并基于各个转发次序生成初始转发列表。In one possible design, the forwarding module is specifically used to determine all service nodes corresponding to the service to be processed when the control plane is in a multi-home and multi-active state, determine the forwarding order corresponding to each service node, and generate an initial forwarding list based on each forwarding order.
在一种可能的设计中,所述转发模块,还用于当控制面处于多归单活状态时,从边界网关协议(Border Gateway Protocol,BGP)路由信息中的所有业务节点中确定出主业务节点以及备业务节点,其中,所述BGP路由信息用于确认业务节点的主备状态,确定出所述主业务节点对应的主转发次序以及所述备业务节点对应的备转发次序,基于所述主转发次序以及所述备转发次序生成所述待处理业务对应的所述初始转发列表。In one possible design, the forwarding module is also used to determine the primary business node and the backup business node from all business nodes in the Border Gateway Protocol (BGP) routing information when the control plane is in a multi-homing single-active state, wherein the BGP routing information is used to confirm the primary and backup status of the business nodes, determine the primary forwarding order corresponding to the primary business node and the backup forwarding order corresponding to the backup business node, and generate the initial forwarding list corresponding to the to-be-processed business based on the primary forwarding order and the backup forwarding order.
在一种可能的设计中,所述转发模块,还用于确定出各个业务节点各自对应的IP地址或者VLAN标识,将各个IP地址按照预设顺序进行排序,筛选出最小IP地址,将所述最小IP地址对应的业务节点作为主业务节点,除所述主业务节点之外的其他节点作为备业务节点,或者将所述VLAN标识带入预设公式中计算出各个业务节点的序号,并将序号为1的业务节点作为主业务节点,除所述主业务节点之外的其他节点作为备业务节点。In a possible design, the forwarding module is also used to determine the IP address or VLAN identifier corresponding to each business node, sort the IP addresses in a preset order, screen out the minimum IP address, and use the business node corresponding to the minimum IP address as the main business node, and other nodes except the main business node as backup business nodes, or bring the VLAN identifier into a preset formula to calculate the serial number of each business node, and use the business node with serial number 1 as the main business node, and other nodes except the main business node as backup business nodes.
在一种可能的设计中,所述转发模块,具体用于提取出所述初始转发列表中的所有业务节点,并从所有的业务节点中确定出主业务节点以及备业务节点,当确定出所述待处理业务的业务类型以及所述预设状态时,基于预设指令对所述初始转发列表中的所述主业务节点和/或所述备业务节点进行调整,将调整之后的所述初始转发列表作为所述待处理业务的目标转发列表。In one possible design, the forwarding module is specifically used to extract all business nodes in the initial forwarding list, and determine the main business node and the backup business node from all the business nodes. When the business type of the service to be processed and the preset status are determined, the main business node and/or the backup business node in the initial forwarding list are adjusted based on preset instructions, and the adjusted initial forwarding list is used as the target forwarding list for the service to be processed.
在一种可能的设计中,所述转发模块,具体用于获得所述待处理业务对应的主业务节点,当所述主业务节点发生变更时,将所述主业务节点与所述备业务节点进行互换,并设置互换之后的所述主业务节点与所述备业务节点 的转发次序。In one possible design, the forwarding module is specifically used to obtain the main business node corresponding to the service to be processed. When the main business node changes, the main business node and the backup business node are interchanged, and the forwarding order of the main business node and the backup business node after the interchange is set.
在一种可能的设计中,所述转发模块,还用于获得所述待处理业务对应的备业务节点,当所述备业务节点故障恢复时,获取所述备业务节点故障时对应的备转发次序表,并控制转发面将所述备转发次序表作为所述备业务节点故障恢复后的目标转发次序表。In one possible design, the forwarding module is also used to obtain a backup service node corresponding to the service to be processed. When the backup service node fails and recovers, the backup forwarding order table corresponding to the backup service node fails is obtained, and the forwarding plane is controlled to use the backup forwarding order table as the target forwarding order table after the backup service node fails and recovers.
第五方面,本申请提供了一种电子设备,包括:In a fifth aspect, the present application provides an electronic device, including:
存储器,用于存放计算机程序;Memory, used to store computer programs;
处理器,用于执行所述存储器上所存放的计算机程序时,实现上述的第一方面的业务转发方法步骤或第三方面的业务转发方法步骤。The processor is used to implement the steps of the service forwarding method of the first aspect or the steps of the service forwarding method of the third aspect when executing the computer program stored in the memory.
第六方面,一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述第一方面的业务转发方法步骤或第三方面的业务转发方法步骤。In a sixth aspect, a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the service forwarding method of the first aspect or the steps of the service forwarding method of the third aspect are implemented.
上述第一方面至第六方面中的各个方面以及各个方面可能达到的技术效果请参照上述针对第一方面或第三方面中的各种可能方案可以达到的技术效果说明,这里不再重复赘述。For each of the above-mentioned aspects from the first to the sixth aspects and the technical effects that may be achieved by each of the aspects, please refer to the above-mentioned description of the technical effects that can be achieved by various possible schemes in the first aspect or the third aspect, and no further details will be given here.
本申请的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请而了解。本申请的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。Other features and advantages of the present application will be described in the subsequent description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
图1为本申请提供的路由器采用多归多活进行数据转发与传输的示意图;FIG1 is a schematic diagram of a router provided by the present application using multi-home multi-active for data forwarding and transmission;
图2为本申请提供的路由器采用多归单活进行数据转发与传输的示意图;FIG2 is a schematic diagram of a router provided by the present application using multi-homing single-active for data forwarding and transmission;
图3为本申请提供的一种业务转发方法步骤的流程图;FIG3 is a flow chart of steps of a service forwarding method provided by the present application;
图4为本申请提供的双归双活模式下对不同业务类型的业务进行转发的示意图;FIG4 is a schematic diagram of forwarding services of different service types in a dual-home dual-active mode provided by the present application;
图5为本申请提供的一种业务转发装置的结构示意图;FIG5 is a schematic diagram of the structure of a service forwarding device provided by the present application;
图6为本申请提供的一种电子设备的结构示意图;FIG6 is a schematic diagram of the structure of an electronic device provided by the present application;
图7为本申请提供的一种业务转发方法步骤的另一流程图;FIG7 is another flow chart of steps of a service forwarding method provided by the present application;
图8为本申请提供的一种业务转发装置的另一结构示意图。FIG8 is another schematic diagram of the structure of a service forwarding device provided in the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请技术方案的一部分实施例,而不是全部的实施例。基于本申请文件中记载的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请技术方案保护的范围。In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the technical solution of the present application, rather than all of the embodiments. Based on the embodiments recorded in the application documents, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the technical solution of the present application.
本申请的说明书和权利要求书及上述附图中的术语“第一”和“第二”是用于区别不同对象,而非用于描述特定顺序。此外,术语“包括”以及它们任何变形,意图在于覆盖不排他的保护。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。本申请中的“多个”可以表示至少两个,例如可以是两个、三个或者更多个,本申请实施例不做限制。The terms "first" and "second" in the specification and claims of the present application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any of their variations are intended to cover non-exclusive protection. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. "Multiple" in the present application can mean at least two, for example, two, three or more, and the embodiments of the present application are not limited.
另外,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,在不做特别说明的情况下,一般表示前后关联对象是一种“或”的关系。In addition, the term "and/or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and/or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character "/" in this article, unless otherwise specified, generally indicates that the associated objects before and after are in an "or" relationship.
下面对本发明实施例的应用背景进行初步介绍。EVPN能够分离控制面与转发面,该控制面负责发布路由信息,该转发面负责转发报文,通过该EVPN 能够在数据进行转发与传输过程中实现负载均衡以及流量控制。The application background of the embodiment of the present invention is briefly introduced below. EVPN can separate the control plane and the forwarding plane. The control plane is responsible for publishing routing information, and the forwarding plane is responsible for forwarding messages. Through the EVPN, load balancing and flow control can be achieved during data forwarding and transmission.
基于上述的描述,当EVPN实现负载均衡时,需要基于多归多活进行数据转发与传输,当EVPN实现流量控制时,需要基于多归单活进行数据转发与传输。路由器采用多归多活进行数据转发与传输的示意图如图1所示,在图1中,若CE1与CE2为用户侧的路由器,PE1、PE2、PE3为网络侧的路由器,用户侧的路由器能够连接多个网络侧路由器,CE1上部署了一个链路聚合组(Link Aggregation Group,LAG),该链路聚合组用于将相同配置属性的端口链路绑定成一条逻辑链路,提升设备间的连接带宽,并提供链路备份和负载分担功能,当PE3将CE2发送的待处理业务分组发送至PE1与PE2时,PE1与PE2再分别转发至CE1,从而能够实现PE1与PE2之间的流量负载分担。Based on the above description, when EVPN implements load balancing, it needs to forward and transmit data based on multi-home multi-active, and when EVPN implements flow control, it needs to forward and transmit data based on multi-home single-active. The schematic diagram of the router using multi-home multi-active for data forwarding and transmission is shown in Figure 1. In Figure 1, if CE1 and CE2 are routers on the user side, PE1, PE2, and PE3 are routers on the network side, and the router on the user side can connect to multiple network side routers, a link aggregation group (LAG) is deployed on CE1. The link aggregation group is used to bind port links with the same configuration attributes into a logical link, improve the connection bandwidth between devices, and provide link backup and load sharing functions. When PE3 sends the pending service packet sent by CE2 to PE1 and PE2, PE1 and PE2 forward it to CE1 respectively, so that the traffic load sharing between PE1 and PE2 can be achieved.
路由器采用多归单活进行数据转发与传输的示意图如图2所示,在图2中,若CE3与CE4为用户侧的路由器,CE3上不部署LAG组,PE1、PE2、PE3为网络侧的路由器,PE1与PE2互为主备路由器,PE3的所有待处理业务都将转发至PE1,由PE1对接收的所有业务进行限速并继续向下转发至CE3,从而能够在主PE上实现待处理业务的流量控制。The schematic diagram of the router using multi-homing single-active for data forwarding and transmission is shown in Figure 2. In Figure 2, if CE3 and CE4 are routers on the user side, no LAG group is deployed on CE3, PE1, PE2, and PE3 are routers on the network side, PE1 and PE2 are each other's active and standby routers, and all pending services of PE3 will be forwarded to PE1. PE1 will limit the rate of all received services and continue to forward them downward to CE3, so that the flow control of pending services can be implemented on the active PE.
目前,每一个路由器端口对应至少一个待处理业务,每一个待处理业务都对应一个关联的控制面与转发面,通过不同的端口对应不同业务类型的待处理业务,用以解决多类型业务对应的多业务需求,但在CE多归接入PE时的同一端口链路标识的情况下,只能部署EVPN多归多活模式或EVPN多归单活模式,因此,在同一端口链路标识的情况下不能满足多种不同业务类型的不同业务需求成为当前要解决的问题。At present, each router port corresponds to at least one pending service, and each pending service corresponds to an associated control plane and forwarding plane. Different ports correspond to pending services of different service types to solve the multi-service requirements corresponding to multiple types of services. However, when the CE is multi-homed to the PE, in the case of the same port link identifier, only the EVPN multi-homing multi-active mode or the EVPN multi-homing single-active mode can be deployed. Therefore, the problem that the same port link identifier cannot meet the different service requirements of multiple different service types has become a current problem to be solved.
在以往的技术中,在CE多归接入PE时的同一端口链路标识的情况下,由于网络中的业务类型多样,而同一端口链路标识的情况下只能部署EVPN多归多活模式或者EVPN多归单活模式,每一种模式只能满足网络中的一种业务类型的需求,因此,当网络中的业务类型不止一种时,在同一端口链路标识的情况下不能满足多种不同业务类型的不同业务需求。In the previous technology, when the CE is multi-homed to the PE with the same port link identifier, due to the diversity of service types in the network, only the EVPN multi-homing multi-active mode or the EVPN multi-homing single-active mode can be deployed with the same port link identifier, and each mode can only meet the needs of one service type in the network. Therefore, when there is more than one service type in the network, the different service needs of multiple different service types cannot be met with the same port link identifier.
为了解决上述的问题,本申请实施例提供了一种业务转发方法,用于在同一端口链路标识的情况下,实现EVPN的控制面与转发面的解耦,从而能够同时满足多种不同类型的业务各自的业务需求。其中,本申请实施例所述方法和装置基于同一技术构思,由于方法及装置所解决问题的原理相似,因此装置与方法的实施例可以相互参见,重复之处不再赘述。In order to solve the above problems, the embodiment of the present application provides a service forwarding method, which is used to realize the decoupling of the control plane and the forwarding plane of EVPN under the same port link identifier, so as to simultaneously meet the service requirements of various types of services. Among them, the method and device described in the embodiment of the present application are based on the same technical concept. Since the principles of the problems solved by the method and the device are similar, the embodiments of the device and the method can refer to each other, and the repeated parts will not be repeated.
下面结合附图,对本申请实施例进行详细描述。The embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
参照图3,本申请提供了一种业务转发方法,该方法可以实现EVPN的控制面与转发面的解耦,从而在同一端口链路标识情况下,能够满足多种不同类型业务的业务需求,该方法的实现流程如下:3, the present application provides a service forwarding method, which can realize the decoupling of the control plane and the forwarding plane of EVPN, so as to meet the service requirements of various types of services under the same port link identification. The implementation process of the method is as follows:
步骤S31:获得待处理业务以及所述待处理业务对应的控制面。Step S31: Obtain the service to be processed and the control plane corresponding to the service to be processed.
由于网络中业务的转发与传输需要通过网络侧以及用户侧的路由器完成,在实现业务的传输以及转发的过程中,相关技术中EVPN的控制面与转发面处于耦合状态,控制面与转发面都有多归单活模式以及多归多活模式,具体如表1所示:Since the forwarding and transmission of services in the network need to be completed through routers on the network side and the user side, in the process of realizing the transmission and forwarding of services, the control plane and the forwarding plane of EVPN in the related technology are in a coupled state, and both the control plane and the forwarding plane have a multi-home single-active mode and a multi-home multi-active mode, as shown in Table 1:
控制面Control Surface 转发面Forwarding plane
多归单活模式Multi-homing single active mode 多归单活模式Multi-homing single active mode
多归多活模式Multi-home multi-active mode 多归多活模式Multi-home multi-active mode
表1Table 1
上述表1中,控制面与转发面都有多归单活模式以及多归双活模式,多归单活模式为一个用户侧CE归属到多个网络侧PE上,但只有一个主PE转发流量,多归多活模式为一个用户侧CE归属到多个网络侧PE上,多个PE均参与流量转发,由于控制面与转发面是耦合状态,所以当控制面为多归单活模式时,转发面也为多归单活模式,当控制面为多归多活模式时,转发面也为多归多活模式,转发面通常规定了业务节点的主备状态,转发面中的转发表如表2所示:In the above Table 1, both the control plane and the forwarding plane have a multi-home single-active mode and a multi-home dual-active mode. In the multi-home single-active mode, a user-side CE is attributed to multiple network-side PEs, but only one master PE forwards traffic. In the multi-home multi-active mode, a user-side CE is attributed to multiple network-side PEs, and multiple PEs participate in traffic forwarding. Since the control plane and the forwarding plane are coupled, when the control plane is in the multi-home single-active mode, the forwarding plane is also in the multi-home single-active mode. When the control plane is in the multi-home multi-active mode, the forwarding plane is also in the multi-home multi-active mode. The forwarding plane usually specifies the active and standby status of the service node. The forwarding table in the forwarding plane is shown in Table 2:
Figure PCTCN2023071117-appb-000001
Figure PCTCN2023071117-appb-000001
表2Table 2
上述表2中,列举了转发面处于多归单活模式时的转发表,表2中以双归单活进行举例,当主业务节点接收到待处理业务时,由于主业务节点的转发次序为本地优先转发,因此,主业务节点会对将待处理业务进行转发;当备业务节点接收到待处理业务时,由于备业务节点的转发次序为远端优先转发,在上述表2中,备业务节点的远端为主业务节点,因此,备业务节点会将待处理业务转发至主业务节点,再由主业务节点对待处理业务进行转发,多归单活模式下转发面中的转发表参考上述表2,多归多活模式下转发面中转发表与多归单活模式下对应的转发表的区别在于业务节点角色以及业务节点转发次序不同,表2中业务节点均为本地优先转发为主用,远端转发为备用。这里不作过多阐述。In the above Table 2, the forwarding table when the forwarding plane is in the multi-home single-active mode is listed. Table 2 takes the dual-home single-active mode as an example. When the main service node receives the pending service, since the forwarding order of the main service node is local priority forwarding, the main service node will forward the pending service; when the backup service node receives the pending service, since the forwarding order of the backup service node is remote priority forwarding, in the above Table 2, the remote end of the backup service node is the main service node, therefore, the backup service node will forward the pending service to the main service node, and then the main service node will forward the pending service. The forwarding table in the forwarding plane in the multi-home single-active mode refers to the above Table 2. The difference between the forwarding table in the forwarding plane in the multi-home multi-active mode and the corresponding forwarding table in the multi-home single-active mode is that the service node roles and service node forwarding order are different. The service nodes in Table 2 are all local priority forwarding as the main use, and remote forwarding as the backup. No further elaboration is given here.
本申请实施例是为了使得EVPN中控制面与转发面处于解耦状态,进而能够实现在同一端口链路下对不同类型业务的精确控制,由此,需要获得待处理业务,该待处理业务可以为网络中任意一种业务类型的业务。The embodiment of the present application is to decouple the control plane and the forwarding plane in the EVPN, thereby enabling accurate control of different types of services under the same port link. Therefore, it is necessary to obtain the service to be processed, which can be any type of service in the network.
比如:待处理业务的业务类型可以为家宽上网业务、政企专线业务等,家宽上网业务的业务需求为在网络传输中实现负载均衡,政企专线业务的业务需求为在网络传输中实现精准流量控制。For example, the service types of the services to be processed may be home broadband Internet access services, government and enterprise dedicated line services, etc. The service requirement of home broadband Internet access services is to achieve load balancing in network transmission, and the service requirement of government and enterprise dedicated line services is to achieve precise flow control in network transmission.
获得待处理业务之后,为了获知待处理业务的初始转发列表,还需要获得该待处理业务所属的控制面。After obtaining the service to be processed, in order to obtain the initial forwarding list of the service to be processed, it is also necessary to obtain the control plane to which the service to be processed belongs.
步骤S32:当所述控制面处于预设状态时,从与所述控制面关联的转发面中确定出所述待处理业务对应的初始转发列表。Step S32: when the control plane is in a preset state, an initial forwarding list corresponding to the to-be-processed service is determined from a forwarding plane associated with the control plane.
由于控制面有多归多活模式以及多归单活模式,本申请实施例将以多归多活中的双归双活模式,以及多归单活中的双归单活模式进行说明,因此,当控制面处于双归双活状态时,首先确定出待处理业务对应的所有业务节点, 并确定出每一个业务节点分别对应的转发次序,再基于所有业务节点各自对应的转发次序生成初始转发列表,初始转发列表为控制面在预设模式下正常生成的列表,为了能够说明本申请实施例能够满足不同业务类型的业务需求,因此,限制该初始转发列表不满足所述待处理业务的业务需求。Since the control plane has a multi-home multi-active mode and a multi-home single-active mode, the embodiments of the present application will be described with the dual-home dual-active mode in the multi-home multi-active mode and the dual-home single-active mode in the multi-home single-active mode. Therefore, when the control plane is in the dual-home dual-active state, all business nodes corresponding to the service to be processed are first determined, and the forwarding order corresponding to each business node is determined, and then an initial forwarding list is generated based on the forwarding order corresponding to all business nodes. The initial forwarding list is a list normally generated by the control plane in the preset mode. In order to illustrate that the embodiments of the present application can meet the business requirements of different business types, the initial forwarding list is restricted to not meet the business requirements of the service to be processed.
当控制面处于双归单活状态时,获取BGP路由信息,由于BGP路由信息用于确认业务节点的主备状态,具体确认业务节点的主备状态的过程如下:When the control plane is in dual-homing single-active state, obtain BGP routing information. Since BGP routing information is used to confirm the active and standby status of the service node, the specific process of confirming the active and standby status of the service node is as follows:
本申请实施例能够通过各个业务节点各自对应的IP地址以及VLAN标识确定出主备状态,基于IP地址确定出业务节点的主备状态的方式为:将各个IP地址按照从大到小的顺序进行排序,筛选出最小IP地址,并确定出最小IP地址对应的业务节点,再将该业务节点作为主业务节点,以及将除主业务节点之外的其他节点作为备业务节点。The embodiment of the present application can determine the primary and backup status through the IP addresses and VLAN identifiers corresponding to each business node. The method for determining the primary and backup status of the business node based on the IP address is: sort the IP addresses in order from large to small, filter out the smallest IP address, and determine the business node corresponding to the smallest IP address, and then use the business node as the primary business node, and use other nodes except the primary business node as backup business nodes.
基于VLAN标识确定出业务节点的主备状态的方式为:获取各个业务节点的VLAN标识以及多归于同一用户侧业务节点的数量值,采用如下公式一计算出网络侧路由器的序号,公式一如下所示:The method of determining the active/standby status of a service node based on the VLAN ID is as follows: obtaining the VLAN ID of each service node and the number of service nodes belonging to the same user side, and using the following formula 1 to calculate the serial number of the network side router. The formula 1 is as follows:
V mod N=iV mod N = i
上述公式一种,V代表各个业务节点的VLAN标识,VLAN标识可以为1~4096之间的任意一个数字,N代表多归到同一CE的PE的数量值,i代表PE的序号。In the above formula, V represents the VLAN ID of each service node, which can be any number between 1 and 4096, N represents the number of PEs that belong to the same CE, and i represents the sequence number of the PE.
基于上述公式一能够计算出各个业务节点的序号,当该序号为1时,将序号为1对应的业务节点作为主业务节点,并将序号非1的业务节点作为备业务节点。Based on the above formula 1, the serial number of each service node can be calculated. When the serial number is 1, the service node corresponding to the serial number 1 is used as the main service node, and the service node with a serial number other than 1 is used as the backup service node.
确定出主业务节点以及备业务节点之后,再确定出主业务节点的主转发次序以及备业务节点的备转发次序,并基于主转发次序以及备转发次序生成初始转发列表。After determining the primary service node and the backup service node, the primary forwarding order of the primary service node and the backup forwarding order of the backup service node are determined, and an initial forwarding list is generated based on the primary forwarding order and the backup forwarding order.
通过上述的方法,基于控制面的预设状态能够获得初始转发列表,通过初始转发列表能够获得控制面不同模式下不同待处理业务的主备状态以及转发次序,有利于对初始转发列表进行调整。Through the above method, an initial forwarding list can be obtained based on the preset state of the control plane. The primary and backup states and forwarding order of different pending services in different modes of the control plane can be obtained through the initial forwarding list, which is conducive to adjusting the initial forwarding list.
步骤S33:基于所述待处理业务的业务类型将所述初始转发列表调整为目标转发列表。Step S33: adjusting the initial forwarding list to a target forwarding list based on the service type of the service to be processed.
由于初始转发列表记录了某一种业务类型的业务对应的转发次序以及主备状态,为了能够实现不同业务类型的业务需求,需要基于业务类型将初始转发列表调整为符合待处理业务的业务需求的目标转发列表,从而实现控制面与转发面的解耦合,所以需要提取出初始转发列表中的所有业务节点,再从所有的业务节点中确定出主业务节点以及备业务节点,再确定出待处理业务的业务类型以及预设状态,并基于预设指令对初始转发列表中的主业务节点和/或备业务节点进行调整,并将调整之后的初始转发列表作为目标转发列表,该预设指令为指示调整转发面中的初始转发列表的指令,为了更清楚的说明获得目标转发列表的过程,将以举例的方式进行说明,具体获得目标转发列表的过程如下:Since the initial forwarding list records the forwarding order and primary and backup status corresponding to a certain type of service, in order to meet the service requirements of different service types, it is necessary to adjust the initial forwarding list to a target forwarding list that meets the service requirements of the service to be processed based on the service type, thereby realizing the decoupling of the control plane and the forwarding plane. Therefore, it is necessary to extract all service nodes in the initial forwarding list, and then determine the primary service node and the backup service node from all service nodes, and then determine the service type and preset status of the service to be processed, and adjust the primary service node and/or the backup service node in the initial forwarding list based on the preset instruction, and use the adjusted initial forwarding list as the target forwarding list. The preset instruction is an instruction to instruct to adjust the initial forwarding list in the forwarding plane. In order to more clearly illustrate the process of obtaining the target forwarding list, it will be explained by way of example. The specific process of obtaining the target forwarding list is as follows:
在双归双活模式下对不同业务类型的业务进行转发的示意图如图4所示,在图4中,所有的业务都将从PE3分别经过PE1与PE2转发至CE1,A类型待处理业务的转发流程用实线表示,B类型待处理业务的转发流程用虚线表示,CE为用户侧的路由器,PE为网络侧的路由器。A schematic diagram of forwarding services of different service types in the dual-homing dual-active mode is shown in FIG4 . In FIG4 , all services are forwarded from PE3 to CE1 via PE1 and PE2 respectively. The forwarding process of type A services to be processed is represented by a solid line, and the forwarding process of type B services to be processed is represented by a dotted line. CE is a router on the user side, and PE is a router on the network side.
若A类型待处理业务为家宽上网业务以及B类型待处理业务为政企专线业务,由于家宽上网业务的业务需求为在网络传输中实现负载均衡,因此,按照上述图4中实现的业务转发流程能够满足A类型待处理业务的业务需求,但是,由于B类型待处理业务的业务需求为在网络中实现精准流量控制,因此,按照上述图4中虚线的转发流程将不能实现B类型待处理业务的业务需求。If type A pending services are home broadband Internet access services and type B pending services are government and enterprise dedicated line services, since the business requirement of home broadband Internet access services is to achieve load balancing in network transmission, the business forwarding process implemented in the above Figure 4 can meet the business requirements of type A pending services. However, since the business requirement of type B pending services is to achieve precise flow control in the network, the forwarding process according to the dotted line in the above Figure 4 will not be able to achieve the business requirements of type B pending services.
在图4中,B类型待处理业务对应的初始转发列表如表3所示:In FIG4 , the initial forwarding list corresponding to the type B pending service is shown in Table 3:
Figure PCTCN2023071117-appb-000002
Figure PCTCN2023071117-appb-000002
表3table 3
上述表3中,每一个业务节点的转发次序都是本地优先转发为主用,远端转发为备用,由于当前控制面的预设状态为双归双活,因此,当待处理业务为B类型待处理业务时,按照表3中的转发次序在网络传输中只能实现负载均衡,上述表3中的转发列表将不满足待处理业务的业务需求,因此,需要基于预设指令、业务类型与双归双活状态对初始转发列表进行调整,调整之后的目标转发列表如表4所示:In the above Table 3, the forwarding order of each service node is local priority forwarding as the main use, and remote forwarding as the backup. Since the preset state of the current control plane is dual-home dual-active, when the pending service is a B type pending service, only load balancing can be achieved in network transmission according to the forwarding order in Table 3. The forwarding list in the above Table 3 will not meet the service requirements of the pending service. Therefore, it is necessary to adjust the initial forwarding list based on the preset instruction, service type and dual-home dual-active state. The adjusted target forwarding list is shown in Table 4:
Figure PCTCN2023071117-appb-000003
Figure PCTCN2023071117-appb-000003
表4Table 4
上述表4为待处理业务的目标转发列表,将备业务节点PE2的转发次序进行调整,调整为本地(PE2)转发为备用,远端(PE1)优先转发为主用,主业务节点PE1保持转发次序不变,本地(PE1)优先转发为主用,远端(PE2)转发为备用,因此,上述表4能够满足待处理业务在网络传输中实现精准流量控制的业务需求。The above Table 4 is the target forwarding list of the pending services. The forwarding order of the backup service node PE2 is adjusted to local (PE2) forwarding as backup, and remote (PE1) forwarding as primary. The main service node PE1 keeps the forwarding order unchanged, local (PE1) forwarding as primary, and remote (PE2) forwarding as backup. Therefore, the above Table 4 can meet the business needs of the pending services to achieve precise flow control in network transmission.
在同一端口链路标识下,由于控制面的预设状态是确定的,与控制面关联的转发面中的转发表也是确定的,因此,通过将初始转发列表调整为目标转发列表能够将控制面以及转发面进行解耦,进而能够满足待处理业务的业务需求。Under the same port link identifier, since the preset state of the control plane is determined, the forwarding table in the forwarding plane associated with the control plane is also determined. Therefore, by adjusting the initial forwarding list to the target forwarding list, the control plane and the forwarding plane can be decoupled, thereby meeting the business needs of the business to be processed.
通过上述的方法,基于预设指令将初始转发列表调整为符合待处理业务 的业务需求的目标转发列表,从而在转发面形成待处理业务对应的转发列表,进而实现控制面与转发面的解耦合,并在同一端口链路下实现不同业务类型的待处理业务各自对应的业务需求。Through the above method, the initial forwarding list is adjusted to a target forwarding list that meets the business requirements of the business to be processed based on the preset instructions, so that a forwarding list corresponding to the business to be processed is formed on the forwarding plane, thereby realizing the decoupling of the control plane and the forwarding plane, and realizing the business requirements corresponding to the business to be processed of different business types under the same port link.
步骤S34:按照所述目标转发列表转发所述待处理业务。Step S34: forwarding the pending service according to the target forwarding list.
上述已经确定出了待处理业务的目标转发列表,当网络中的主业务节点故障以及重新确定主业务节点时,主业务节点会发生变更,主业务节点发生变更时,会将主业务节点与备业务节点进行互换,并重新设置互换之后的主业务节点以及备业务节点的转发次序。The target forwarding list of the pending services has been determined above. When the main service node in the network fails and is re-determined, the main service node will change. When the main service node changes, the main service node and the backup service node will be swapped, and the forwarding order of the main service node and the backup service node after the swap will be reset.
比如:当主业务节点以及备业务节点发生互换之后,将主业务节点作为目标备业务节点以及将备业务节点作为目标主业务节点,并将主业务节点的转发次序与目标主业务节点进行关联,目标备业务节点的转发次序将由控制面的预设状态以及目标备业务节点的业务类型进行重新设置。For example: after the main business node and the backup business node are exchanged, the main business node is used as the target backup business node and the backup business node is used as the target main business node, and the forwarding order of the main business node is associated with the target main business node. The forwarding order of the target backup business node will be reset by the preset status of the control plane and the service type of the target backup business node.
当备业务节点故障恢复时,将获得该备业务节点故障时对应的备转发次序表,并控制转发面将该备转发次序表作为故障恢复的备业务节点的目标转发次序表,当备业务节点的备转发次序表中为本地优先转发时,故障恢复后的备业务节点的目标转发次序表中也为本地优先转发;当备业务节点的备转发次序表中为远端优先转发时,故障恢复后的备业务节点的目标转发次序表中也为远端优先转发。When the standby service node fails, the standby forwarding order table corresponding to the standby service node at the time of failure will be obtained, and the forwarding plane will be controlled to use the standby forwarding order table as the target forwarding order table of the standby service node that has recovered from the failure. When the standby forwarding order table of the standby service node shows local priority forwarding, the target forwarding order table of the standby service node after the failure is recovered will also show local priority forwarding; when the standby forwarding order table of the standby service node shows remote priority forwarding, the target forwarding order table of the standby service node after the failure is recovered will also show remote priority forwarding.
确定出待处理业务目标转发列表之后,转发面能够基于目标转发列表转发待处理业务。After determining the target forwarding list of the service to be processed, the forwarding plane can forward the service to be processed based on the target forwarding list.
基于上述描述,将初始转发列表调整为符合待处理业务的业务需求的目标转发列表,从而能够确定出不同业务类型的待处理业务分别对应的转发列表,并实现了控制面与转发面的解耦,使得能够对转发面中的转发表中的主备关系进行调整,并能够在业务节点故障时,快速切换至转发表中的转发次序,进而能够实现在同一端口链路上不同业务类型分别对应的业务需求。Based on the above description, the initial forwarding list is adjusted to a target forwarding list that meets the business requirements of the business to be processed, so that the forwarding lists corresponding to the different business types of the business to be processed can be determined, and the decoupling of the control plane and the forwarding plane is realized, so that the master-slave relationship in the forwarding table in the forwarding plane can be adjusted, and when a business node fails, it can quickly switch to the forwarding order in the forwarding table, thereby realizing the business requirements corresponding to different business types on the same port link.
基于同一发明构思,本申请实施例中还提供了一种业务转发装置,该业务转发装置用于实现了一种业务转发方法的功能,参照图5,所述装置包括:Based on the same inventive concept, an embodiment of the present application further provides a service forwarding device, which is used to implement the function of a service forwarding method. Referring to FIG. 5 , the device includes:
获得模块501,用于获得待处理业务以及所述待处理业务对应的控制面;An acquisition module 501 is used to obtain a service to be processed and a control plane corresponding to the service to be processed;
确定模块502,用于当所述控制面处于预设状态时,从与所述控制面关联的转发面中确定出所述待处理业务对应的初始转发列表;A determination module 502, configured to determine, when the control plane is in a preset state, an initial forwarding list corresponding to the to-be-processed service from a forwarding plane associated with the control plane;
调整模块503,用于基于所述待处理业务的业务类型将所述初始转发列表调整为目标转发列表;An adjustment module 503, configured to adjust the initial forwarding list to a target forwarding list based on the service type of the service to be processed;
转发模块504,用于按照所述目标转发列表转发所述待处理业务。The forwarding module 504 is used to forward the pending business according to the target forwarding list.
在一种可能的设计中,所述确定模块502,具体用于当控制面处于多归多活状态时,确定出所述待处理业务对应的所有业务节点,确定出各个业务节点各自对应的转发次序,并基于各个转发次序生成初始转发列表。In one possible design, the determination module 502 is specifically used to determine all service nodes corresponding to the service to be processed when the control plane is in a multi-home multi-active state, determine the forwarding order corresponding to each service node, and generate an initial forwarding list based on each forwarding order.
在一种可能的设计中,所述确定模块502,还用于当控制面处于多归单活状态时,从边界网关协议(Border Gateway Protocol,BGP)路由信息中的所有业务节点中确定出主业务节点以及备业务节点,其中,所述BGP路由信息用于确认业务节点的主备状态,确定出所述主业务节点对应的主转发次序以及所述备业务节点对应的备转发次序,基于所述主转发次序以及所述备转发次序生成所述待处理业务对应的所述初始转发列表。In one possible design, the determination module 502 is also used to determine the primary business node and the backup business node from all business nodes in the Border Gateway Protocol (BGP) routing information when the control plane is in a multi-homing single-active state, wherein the BGP routing information is used to confirm the primary and backup status of the business nodes, determine the primary forwarding order corresponding to the primary business node and the backup forwarding order corresponding to the backup business node, and generate the initial forwarding list corresponding to the to-be-processed business based on the primary forwarding order and the backup forwarding order.
在一种可能的设计中,所述确定模块502,还用于确定出各个业务节点各自对应的IP地址或者VLAN标识,将各个IP地址按照预设顺序进行排序,筛选出最小IP地址,将所述最小IP地址对应的业务节点作为主业务节点,除所述主业务节点之外的其他节点作为备业务节点,或者将所述VLAN标识带入预设公式中计算出各个业务节点的序号,并将序号为1的业务节点作为主业务节点,除所述主业务节点之外的其他节点作为备业务节点。In one possible design, the determination module 502 is also used to determine the IP address or VLAN ID corresponding to each business node, sort the IP addresses in a preset order, screen out the minimum IP address, and use the business node corresponding to the minimum IP address as the main business node, and other nodes except the main business node as backup business nodes, or bring the VLAN ID into a preset formula to calculate the serial number of each business node, and use the business node with serial number 1 as the main business node, and other nodes except the main business node as backup business nodes.
在一种可能的设计中,所述调整模块503,具体用于提取出所述初始转发列表中的所有业务节点,并从所有的业务节点中确定出主业务节点以及备业务节点,当确定出所述待处理业务的业务类型以及所述预设状态时,基于预设指令对所述初始转发列表中的所述主业务节点和/或所述备业务节点进行调整,将调整之后的所述初始转发列表作为所述待处理业务的目标转发列表。In one possible design, the adjustment module 503 is specifically used to extract all business nodes in the initial forwarding list, and determine the main business node and the backup business node from all the business nodes. When the business type of the to-be-processed business and the preset status are determined, the main business node and/or the backup business node in the initial forwarding list are adjusted based on preset instructions, and the adjusted initial forwarding list is used as the target forwarding list for the to-be-processed business.
在一种可能的设计中,所述转发模块504,具体用于获得所述待处理业务 对应的主业务节点,当所述主业务节点发生变更时,将所述主业务节点与所述备业务节点进行互换,并设置互换之后的所述主业务节点与所述备业务节点的转发次序。In one possible design, the forwarding module 504 is specifically used to obtain the main business node corresponding to the business to be processed. When the main business node changes, the main business node and the backup business node are exchanged, and the forwarding order of the main business node and the backup business node after the exchange is set.
在一种可能的设计中,所述转发模块504,还用于获得所述待处理业务对应的备业务节点,当所述备业务节点故障恢复时,获取所述备业务节点故障时对应的备转发次序表,并控制转发面将所述备转发次序表作为所述备业务节点故障恢复后的目标转发次序表。In one possible design, the forwarding module 504 is also used to obtain a backup service node corresponding to the service to be processed. When the backup service node fails and recovers, the backup forwarding order table corresponding to the backup service node fails is obtained, and the forwarding plane is controlled to use the backup forwarding order table as the target forwarding order table after the backup service node fails and recovers.
EVPN多归多活和多归单活接入方式是基于ESI配置单活或多活的,ESI标识的链路可以是基于物理端口的ES,也可以是基于逻辑端口的vES。实际网络中会同时承载多种业务类型,每种业务类型的业务诉求也是不同,用户侧多种类型的业务通过用户网络多归属到同一组PE设备组(比如PE1\PE2设备组)的同一组物理端口,为了区分不同业务,可以配置不同的vES来承载不同的业务,比如vES1,对应VLAN1,来承载类家宽业务VPN1,其负载分担方式为多归多活;vES2,对应VLAN2,来承载类政企专线业务VPN2,其负载分担方式为多归单活。EVPN multi-homing multi-active and multi-homing single-active access modes are based on ESI configuration single-active or multi-active. The link identified by ESI can be ES based on physical ports or vES based on logical ports. In actual networks, multiple types of services are carried at the same time, and the service requirements of each type of service are also different. Multiple types of services on the user side are multi-homed to the same group of physical ports of the same PE device group (such as PE1\PE2 device group) through the user network. In order to distinguish different services, different vES can be configured to carry different services. For example, vES1, corresponding to VLAN1, carries VPN1, a type of home broadband service, and its load balancing mode is multi-homing multi-active; vES2, corresponding to VLAN2, carries VPN2, a type of government and enterprise dedicated line service, and its load balancing mode is multi-homing single-active.
面向类家宽上网业务的主要业务诉求为流量在网络中以负载分担的方式承载,充分提升网络利用率,目前在EVPN网络中,CE可通过多归多活方式接入PE,实现业务的负载分担。面向类政企专线业务的主要业务诉求为专线的精准Qos限速控制,不希望出现带宽超额情况,目前在EVPN网络中,CE可通过多归单活方式接入PE,实现业务的精准QoS限速控制。The main business demand for home broadband Internet services is to carry traffic in the network in a load-sharing manner to fully improve network utilization. Currently, in the EVPN network, CE can access PE in a multi-home multi-active manner to achieve load sharing of services. The main business demand for government and enterprise private line services is precise QoS speed limit control of private lines, and bandwidth overage is not desired. Currently, in the EVPN network, CE can access PE in a multi-home single-active manner to achieve precise QoS speed limit control of services.
可是为了支持多归多活类业务的负载分担,CE侧的用户网络将多归接入PE侧的CE的多个接入端口配置为聚合口,如LAG来实现业务的负载分担;然而该聚合口会统一承载所有业务的用户流量,包括多归多活类业务和多归单活类业务。但是对于多归单活类业务:用户侧通过该聚合口发送流量时,聚合口会根据自己的负载分担策略进行转发报文,而网络侧的PE互为主备路由器,用户侧的负载分担策略会导致报文有可能发送到网络侧的备PE上,而 备PE则会阻塞该报文,造成报文的丢失。However, in order to support load sharing of multi-homing multi-active services, the user network on the CE side configures multiple access ports of the multi-homing CE on the PE side as aggregation ports, such as LAG, to achieve load sharing of services; however, the aggregation port will uniformly carry user traffic of all services, including multi-homing multi-active services and multi-homing single-active services. However, for multi-homing single-active services: when the user side sends traffic through the aggregation port, the aggregation port will forward the message according to its own load sharing strategy, and the PEs on the network side are each other's active and standby routers. The load sharing strategy on the user side may cause the message to be sent to the standby PE on the network side, and the standby PE will block the message, resulting in message loss.
为了解决上述的问题,本申请实施例提供一种业务转发方法,用于在同一端口链路配置有至少两个vES,用户侧将多归单活类业务负载均衡至备业务节点时,该备业务节点也可以根据预设的转发规则转发该多归单活类业务,而不是阻塞该类多归单活类业务,从而避免了报文的丢失。其中,本申请实施例所述方法和装置基于同一技术构思,由于方法及装置所解决问题的原理类似,因此装置与方法的实施例可以相互参见,重复之处不再赘述。In order to solve the above problems, the embodiment of the present application provides a service forwarding method, which is used to configure at least two vES on the same port link. When the user side load balances the multi-home single-active service to the backup service node, the backup service node can also forward the multi-home single-active service according to the preset forwarding rules, instead of blocking the multi-home single-active service, thereby avoiding the loss of messages. Among them, the method and device described in the embodiment of the present application are based on the same technical concept. Since the principles of the problems solved by the method and the device are similar, the embodiments of the device and the method can refer to each other, and the repeated parts will not be repeated.
参照图7,本申请提供了一种业务转发方法,该方法可以在用户侧将多归单活类业务负载均衡至备业务节点时,该备业务节点也可以根据预设的转发规则转发该多归单活类业务,而不是阻塞该类多归单活类业务,从而避免了报文的丢失,该方法应用于配置有至少两个虚拟以太链路vES的虚拟专用网络EVPN,实现流程如下:7, the present application provides a service forwarding method, which can load balance the multi-homing single-active service to the backup service node on the user side, and the backup service node can also forward the multi-homing single-active service according to a preset forwarding rule instead of blocking the multi-homing single-active service, thereby avoiding the loss of the message. The method is applied to a virtual private network EVPN configured with at least two virtual Ethernet links vES, and the implementation process is as follows:
步骤S71,第一vES的备业务节点接收CE发送的待处理业务;Step S71, the backup service node of the first vES receives the to-be-processed service sent by the CE;
网络中业务的转发与传输需要通过网络侧以及用户侧的路由器完成,EVPN网络中用户侧多种类型的业务通过用户网络多归属到同一组PE设备组(比如PE1\PE2设备组)的同一组物理端口;为了区分不同业务,可以配置不同的vES来承载不同的业务,比如vES1,对应VLAN1,来承载类家宽业务VPN1,其负载分担方式为多归多活;vES2,对应VLAN2,来承载类政企专线业务VPN2,其负载分担方式为多归单活。由此,接收CE发送的待处理业务,该待处理业务可以为网络中任意一种业务类型的业务。The forwarding and transmission of services in the network need to be completed through the routers on the network side and the user side. In the EVPN network, various types of services on the user side are multi-homed to the same group of physical ports of the same PE device group (such as PE1\PE2 device group) through the user network; in order to distinguish different services, different vES can be configured to carry different services, such as vES1, corresponding to VLAN1, to carry the home broadband service VPN1, and its load sharing mode is multi-homing and multi-active; vES2, corresponding to VLAN2, to carry the government and enterprise private line service VPN2, and its load sharing mode is multi-homing and single-active. Therefore, the pending service sent by the CE is received, and the pending service can be any type of service in the network.
步骤S72,当所述待处理业务来自第一vES时,基于预设的本地路由表项转发所述待处理业务。Step S72: when the service to be processed comes from the first vES, forward the service to be processed based on a preset local routing table entry.
用户侧多种类型的业务通过用户网络多归属到同一组PE设备组(比如PE1\PE2设备组)的同一组物理端口,为了区分不同业务,可以配置不同的vES来承载不同的业务,比如vES1,对应VLAN1,来承载类家宽业务VPN1,其负载分担方式为多归多活;vES2,对应VLAN2,来承载类政企专线业务VPN2,其负载分担方式为多归单活。为方便表述,本申请实施例中,将负载 分担方式为多归单活类的vES统称为第一vES,负载分担方式为多归多活的vES统称为第二vES。Multiple types of services on the user side are multi-homed to the same group of physical ports of the same PE device group (such as PE1\PE2 device group) through the user network. In order to distinguish different services, different vES can be configured to carry different services, such as vES1, corresponding to VLAN1, to carry the home broadband service VPN1, and its load sharing mode is multi-homing and multi-active; vES2, corresponding to VLAN2, to carry the government and enterprise private line service VPN2, and its load sharing mode is multi-homing and single-active. For the convenience of description, in the embodiment of the present application, the vES with the load sharing mode of multi-homing and single-active is collectively referred to as the first vES, and the vES with the load sharing mode of multi-homing and multi-active is collectively referred to as the second vES.
同一组物理端口至少配置有第一vES和第二vES,而为了支持第二vES的负载均衡,CE侧的用户网络会将接入端口配置为聚合口,如LAG;然而该聚合口会统一承载所有业务的用户流量,包括多归多活类业务和多归单活类业务,即该聚合口也会对第一vES的用户流量进行均衡,如此,第一vES的备业务节点也可能会接收到第一vES的待处理业务。The same group of physical ports is configured with at least the first vES and the second vES. In order to support load balancing of the second vES, the user network on the CE side will configure the access port as an aggregation port, such as LAG. However, the aggregation port will uniformly carry the user traffic of all services, including multi-home multi-active services and multi-home single-active services, that is, the aggregation port will also balance the user traffic of the first vES. In this way, the backup service node of the first vES may also receive the pending services of the first vES.
相关技术中当第一vES的备业务节点接收到第一vES的待处理业务时,由于第一vES为多归单活方式,备业务节点会阻塞该待处理业务,造成报文丢失。然而,该步骤中,当备业务节点接收到该待处理业务时,不论该待处理业务是来自哪个vES,均会查询本地存储的本地路由表项,按照本地路由表项记载的路由表项对该待处理业务进行转发。进一步地,若本地路由表项中未查找到该待处理业务对应的路由表项,则将该待处理业务按照相关的未知报文的转发流程进行转发即可。In the related art, when the backup service node of the first vES receives the pending service of the first vES, since the first vES is in a multi-home single-active mode, the backup service node will block the pending service, resulting in message loss. However, in this step, when the backup service node receives the pending service, no matter which vES the pending service comes from, it will query the local routing table entries stored locally, and forward the pending service according to the routing table entries recorded in the local routing table entries. Furthermore, if the routing table entry corresponding to the pending service is not found in the local routing table entry, the pending service can be forwarded according to the forwarding process of the relevant unknown message.
不会阻塞该待处理业务,如此避免了报文丢失。The pending business will not be blocked, thus avoiding message loss.
在一种可能的设计中,所述方法,还包括:In one possible design, the method further includes:
当所述待处理业务归属第一vES,且来自本地单归CE或ES时,所述第一vES的备业务节点阻塞所述待处理业务,并将所述待处理业务发送给所述第一vES的主业务节点;其中,当所述待处理业务来自所述ES时,所述CE通过所述ES多归接入所述EVPN。When the service to be processed belongs to the first vES and comes from a local single-home CE or ES, the backup service node of the first vES blocks the service to be processed and sends the service to be processed to the primary service node of the first vES; wherein, when the service to be processed comes from the ES, the CE accesses the EVPN through the ES multi-home.
具体地,由于第一vES的本地网络侧通常只在主业务节点上设置对用户侧的业务限速,故当第一vES的备业务节点接收到来自本地单归到该备业务节点的CE或物理端口的ES发送的待处理业务时,且该待处理业务为本地第一vES的业务时,备业务节点会阻塞该待处理业务,并通过主备业务节点之间的备份路径将该待处理业务发送给第一vES的主业务节点,由主业务节点按照已有的路由表项进行转发即可,如此,可在主业务节点实现集中QoS精准控制。Specifically, since the local network side of the first vES usually only sets the service speed limit for the user side on the main service node, when the backup service node of the first vES receives the pending service sent by the ES of the CE or physical port that is locally assigned to the backup service node, and the pending service is the service of the local first vES, the backup service node will block the pending service and send the pending service to the main service node of the first vES through the backup path between the main and backup service nodes. The main service node can forward it according to the existing routing table entries. In this way, centralized QoS precise control can be achieved at the main service node.
在一种可能的设计中,所述基于预设的本地路由表项转发所述待处理业务,具体包括:In a possible design, forwarding the service to be processed based on a preset local routing table entry specifically includes:
获得所述待处理业务以及所述待处理业务对应的控制面;Obtaining the service to be processed and a control plane corresponding to the service to be processed;
当所述控制面处于预设状态时,从与所述控制面关联的转发面中确定出所述待处理业务对应的初始转发列表,其中,所述初始转发列表不满足所述待处理业务的业务需求,所述预设状态为多归多活状态或者多归单活状态;When the control plane is in a preset state, determining an initial forwarding list corresponding to the to-be-processed service from a forwarding plane associated with the control plane, wherein the initial forwarding list does not meet the service requirements of the to-be-processed service, and the preset state is a multi-homing multi-active state or a multi-homing single-active state;
基于所述待处理业务的业务类型将所述初始转发列表调整为目标转发列表;Adjusting the initial forwarding list to a target forwarding list based on the service type of the service to be processed;
基于目标转发列表和本地路由表项转发所述待处理业务;这里,所述目标转发列表用于表征符合待处理业务的业务需求的主备业务节点的转发次序。The service to be processed is forwarded based on the target forwarding list and the local routing table entry; here, the target forwarding list is used to characterize the forwarding order of the primary and backup service nodes that meet the service requirements of the service to be processed.
本步骤中,首先可以根据目标转发列表,确定出网络侧业务节点的转发次序以满足不同类型的待处理业务。然后基于接收到待处理业务的业务节点的本地路由表项转发该待处理业务。尤其当接收到待处理业务的业务节点为备业务节点时,仍可以按照备业务节点的本地路由表项对该待处理业务进行转发。In this step, first, the forwarding order of the network-side service nodes can be determined according to the target forwarding list to meet different types of pending services. Then, the pending services are forwarded based on the local routing table entries of the service nodes that receive the pending services. In particular, when the service node that receives the pending services is a backup service node, the pending services can still be forwarded according to the local routing table entries of the backup service node.
相应地,所述目标转发列表的确定,具体可参照图3中的步骤S31-步骤S33的实现流程,具体实现原理和过程与上述图3中目标转发列表的确定过程类似,在此不再赘述。Accordingly, the determination of the target forwarding list may specifically refer to the implementation process of step S31 to step S33 in FIG3 . The specific implementation principle and process are similar to the determination process of the target forwarding list in FIG3 , and will not be repeated here.
在一种可能的设计中,从与所述控制面关联的转发面中确定出所述待处理业务对应的初始转发列表,包括:In one possible design, determining an initial forwarding list corresponding to the to-be-processed service from a forwarding plane associated with the control plane includes:
当控制面处于多归多活状态时,确定出所述待处理业务对应的所有业务节点;When the control plane is in a multi-home multi-active state, determining all service nodes corresponding to the service to be processed;
确定出各个业务节点各自对应的转发次序,并基于各个转发次序生成初始转发列表。Determine the forwarding order corresponding to each service node, and generate an initial forwarding list based on each forwarding order.
在一种可能的设计中,从与所述控制面关联的转发面中确定出所述待处理业务对应的初始转发列表,包括:In one possible design, determining an initial forwarding list corresponding to the to-be-processed service from a forwarding plane associated with the control plane includes:
当控制面处于多归单活状态时,从边界网关协议BGP路由信息中的所有 业务节点中确定出主业务节点以及备业务节点,其中,所述BGP路由信息用于确认业务节点的主备状态;When the control plane is in a multi-homing single-active state, determining a primary service node and a backup service node from all service nodes in the Border Gateway Protocol BGP routing information, wherein the BGP routing information is used to confirm the primary and backup states of the service nodes;
确定出所述主业务节点对应的主转发次序以及所述备业务节点对应的备转发次序;Determine a primary forwarding order corresponding to the primary service node and a backup forwarding order corresponding to the backup service node;
基于所述主转发次序以及所述备转发次序生成所述待处理业务对应的所述初始转发列表。The initial forwarding list corresponding to the to-be-processed service is generated based on the primary forwarding order and the backup forwarding order.
在一种可能的设计中,从BGP路由信息中的所有业务节点中确定出主业务节点以及备业务节点,包括:In a possible design, determining a primary service node and a backup service node from all service nodes in the BGP routing information includes:
确定出各个业务节点各自对应的IP地址或者VLAN标识;Determine the IP address or VLAN ID corresponding to each service node;
将各个IP地址按照预设顺序进行排序,筛选出最小IP地址,将所述最小IP地址对应的业务节点作为主业务节点,除所述主业务节点之外的其他节点作为备业务节点;或者Sort the IP addresses in a preset order, select the smallest IP address, and use the service node corresponding to the smallest IP address as the main service node, and use other nodes except the main service node as backup service nodes; or
将所述VLAN标识带入预设公式中计算出各个业务节点的序号,并将序号为1的业务节点作为主业务节点,除所述主业务节点之外的其他节点作为备业务节点。The VLAN identifier is brought into a preset formula to calculate the serial number of each service node, and the service node with serial number 1 is used as the main service node, and the other nodes except the main service node are used as backup service nodes.
在一种可能的设计中,基于所述待处理业务的业务类型将所述初始转发列表调整为目标转发列表,包括:In a possible design, adjusting the initial forwarding list to a target forwarding list based on the service type of the to-be-processed service includes:
提取出所述初始转发列表中的所有业务节点,并从所有的业务节点中确定出主业务节点以及备业务节点;Extracting all service nodes in the initial forwarding list, and determining a primary service node and a backup service node from all service nodes;
当确定出所述待处理业务的业务类型以及所述预设状态时,基于预设指令对所述初始转发列表中的所述主业务节点和/或所述备业务节点进行调整,其中,所述预设指令为指示调整转发面中的初始转发列表的指令;When the service type and the preset state of the to-be-processed service are determined, adjusting the primary service node and/or the backup service node in the initial forwarding list based on a preset instruction, wherein the preset instruction is an instruction to instruct adjustment of the initial forwarding list in the forwarding plane;
将调整之后的所述初始转发列表作为所述待处理业务的目标转发列表。The adjusted initial forwarding list is used as the target forwarding list for the service to be processed.
在一种可能的设计中,在确定出所述目标转发列表之后,还包括:In a possible design, after determining the target forwarding list, the method further includes:
获得所述待处理业务对应的主业务节点;Obtaining the main service node corresponding to the service to be processed;
当所述主业务节点发生变更时,将所述主业务节点与所述备业务节点进行互换,并设置互换之后的所述主业务节点与所述备业务节点的转发次序。When the main service node changes, the main service node and the backup service node are exchanged, and a forwarding order of the main service node and the backup service node after the exchange is set.
在一种可能的设计中,在确定出所述目标转发列表之后,还包括:In a possible design, after determining the target forwarding list, the method further includes:
获得所述待处理业务对应的备业务节点;Obtaining a standby service node corresponding to the service to be processed;
当所述备业务节点故障恢复时,获取所述备业务节点故障时对应的备转发次序表,并控制转发面将所述备转发次序表作为所述备业务节点故障恢复后的目标转发次序表。When the standby service node fails and recovers, a standby forwarding order table corresponding to the standby service node fails is obtained, and the forwarding plane is controlled to use the standby forwarding order table as a target forwarding order table after the standby service node fails and recovers.
基于同一发明构思,本申请实施例中还提供了一种业务转发装置,该业务转发装置用于实现了一种业务转发方法的功能,参照图8,该装置应用于配置有不同vES的虚拟专用网络EVPN,所述装置,包括:Based on the same inventive concept, an embodiment of the present application further provides a service forwarding device, which is used to implement the function of a service forwarding method. Referring to FIG. 8 , the device is applied to a virtual private network EVPN configured with different vESs, and the device includes:
接收模块801,用于接收CE发送的待处理业务;网络中业务的转发与传输需要通过网络侧以及用户侧的路由器完成,EVPN网络中用户侧多种类型的业务通过用户网络多归属到同一组PE设备组(比如PE1\PE2设备组)的同一组物理端口;为了区分不同业务,可以配置不同的vES来承载不同的业务,比如vES1,对应VLAN1,来承载类家宽业务VPN1,其负载分担方式为多归多活;vES2,对应VLAN2,来承载类政企专线业务VPN2,其负载分担方式为多归单活。由此,接收CE发送的待处理业务,该待处理业务可以为网络中任意一种业务类型的业务。Receiving module 801 is used to receive pending services sent by CE. The forwarding and transmission of services in the network need to be completed through the routers on the network side and the user side. In the EVPN network, various types of services on the user side are multi-homed to the same group of physical ports of the same PE device group (such as PE1\PE2 device group) through the user network. In order to distinguish different services, different vES can be configured to carry different services. For example, vES1, corresponding to VLAN1, carries VPN1, a type of home broadband service, and its load sharing method is multi-homing and multi-active; vES2, corresponding to VLAN2, carries VPN2, a type of government and enterprise dedicated line service, and its load sharing method is multi-homing and single-active. Thus, the pending services sent by CE are received, and the pending services can be services of any type of service in the network.
转发模块802,用于当所述待处理业务来自第一vES时,基于预设的本地路由表项转发所述待处理业务;其中,所述第一vES的控制面的预设状态为多归单活状态,所述装置设置于第一vES的备业务节点。相关技术中当第一vES的备业务节点接收到第一vES的待处理业务时,由于第一vES为多归单活方式,备业务节点的转发模块802会阻塞该待处理业务,造成报文丢失。然而,本申请实施例中,备业务节点的转发模块802按照预设的转发规则转发该待处理业务,不会阻塞该待处理业务,如此避免了报文丢失。The forwarding module 802 is used to forward the pending service based on the preset local routing table entry when the pending service comes from the first vES; wherein the preset state of the control plane of the first vES is a multi-home single-active state, and the device is arranged at the backup service node of the first vES. In the related art, when the backup service node of the first vES receives the pending service of the first vES, since the first vES is in a multi-home single-active mode, the forwarding module 802 of the backup service node will block the pending service, resulting in message loss. However, in the embodiment of the present application, the forwarding module 802 of the backup service node forwards the pending service according to the preset forwarding rules, and will not block the pending service, thereby avoiding message loss.
用户侧多种类型的业务通过用户网络多归属到同一组PE设备组(比如PE1\PE2设备组)的同一组物理端口,为了区分不同业务,可以配置不同的vES来承载不同的业务,为方便表述,本申请实施例中,将负载分担方式为多归单活类的vES统称为第一vES,负载分担方式为多归多活的vES统称为 第二vES。Various types of services on the user side are multi-homed to the same group of physical ports of the same group of PE equipment groups (such as PE1\PE2 equipment groups) through the user network. In order to distinguish different services, different vES can be configured to carry different services. For the convenience of expression, in the embodiment of the present application, the vES with a load sharing mode of multi-homing single active is collectively referred to as the first vES, and the vES with a load sharing mode of multi-homing multi-active is collectively referred to as the second vES.
同一组物理端口至少配置有第一vES和第二vES,而为了支持第二vES的负载均衡,CE侧的用户网络会将接入端口配置为聚合口,如LAG;然而该聚合口会统一承载所有业务的用户流量,包括多归多活类业务和多归单活类业务,即该聚合口也会对第一vES的用户流量进行均衡,如此,第一vES的备业务节点接收模块801也可能会接收到第一vES的待处理业务。The same group of physical ports is configured with at least the first vES and the second vES. In order to support the load balancing of the second vES, the user network on the CE side will configure the access port as an aggregation port, such as LAG; however, the aggregation port will uniformly carry the user traffic of all services, including multi-home multi-active services and multi-home single-active services, that is, the aggregation port will also balance the user traffic of the first vES. In this way, the backup service node receiving module 801 of the first vES may also receive the pending services of the first vES.
在一种可能的设计中,所述转发模块802,还用于当所述待处理业务归属第一vES、且来自本地单归CE或ES时,阻塞所述待处理业务,并将所述待处理业务发送给所述第一vES的主业务节点;其中,当所述待处理业务来自所述ES时,所述CE通过所述ES多归接入所述EVPN。由于本地网络侧通常只在主业务节点上设置对用户侧的业务限速,故当第一vES的备业务节点的接收模块801接收到来自本地单归到该备业务节点的CE或物理端口的ES发送的待处理业务时,且该待处理业务为本地第一vES的业务时,备业务节点的接收模块801会阻塞该待处理业务,并通过主备业务节点之间的备份路径将该待处理业务发送给第一vES的主业务节点,由主业务节点按照已有的路由表项进行转发即可,如此,可在主业务节点实现集中QoS精准控制。当备业务节点的接收模块801接收到该待处理业务时,不论该待处理业务是来自哪个vES,转发模块802均会查询本地存储的本地路由表项,按照本地路由表项记载的路由表项对该待处理业务进行转发。进一步地,若本地路由表项中未查找到该待处理业务对应的路由表项,则将该待处理业务按照相关的未知报文的转发流程进行转发即可。In a possible design, the forwarding module 802 is also used to block the pending service when the pending service belongs to the first vES and comes from a local single-home CE or ES, and send the pending service to the primary service node of the first vES; wherein, when the pending service comes from the ES, the CE accesses the EVPN through the ES multi-home. Since the local network side usually only sets the service speed limit on the user side on the primary service node, when the receiving module 801 of the backup service node of the first vES receives the pending service sent from the CE or ES of the physical port that is locally single-homed to the backup service node, and the pending service is the service of the local first vES, the receiving module 801 of the backup service node will block the pending service and send the pending service to the primary service node of the first vES through the backup path between the primary and backup service nodes, and the primary service node can forward it according to the existing routing table entries. In this way, centralized QoS precise control can be achieved at the primary service node. When the receiving module 801 of the backup service node receives the pending service, no matter which vES the pending service comes from, the forwarding module 802 will query the local routing table stored locally, and forward the pending service according to the routing table recorded in the local routing table. Furthermore, if the routing table corresponding to the pending service is not found in the local routing table, the pending service can be forwarded according to the forwarding process of the relevant unknown message.
在一种可能的设计中,所述转发模块802,具体用于获得待处理业务以及所述待处理业务对应的控制面;当所述控制面处于预设状态时,从与所述控制面关联的转发面中确定出所述待处理业务对应的初始转发列表;基于所述待处理业务的业务类型将所述初始转发列表调整为目标转发列表;基于所述目标转发列表和所述本地路由表项转发所述待处理业务。这里,所述目标转发列表用于表征符合待处理业务的业务需求的主备业务节点的转发次序。具 体地,所述转发模块802首先可以根据目标转发列表,确定出业务节点的转发次序以满足不同类型的待处理业务。然后基于接收到待处理业务的业务节点的本地路由表项转发该待处理业务。尤其当接收到待处理业务的业务节点为备业务节点的转发模块802时,还可按照备业务节点的本地路由表项对该待处理业务进行转发。In a possible design, the forwarding module 802 is specifically used to obtain the pending service and the control plane corresponding to the pending service; when the control plane is in a preset state, the initial forwarding list corresponding to the pending service is determined from the forwarding plane associated with the control plane; the initial forwarding list is adjusted to a target forwarding list based on the service type of the pending service; and the pending service is forwarded based on the target forwarding list and the local routing table entry. Here, the target forwarding list is used to characterize the forwarding order of the primary and backup service nodes that meet the service requirements of the pending service. Specifically, the forwarding module 802 can first determine the forwarding order of the service nodes according to the target forwarding list to meet different types of pending services. Then, the pending service is forwarded based on the local routing table entry of the service node that receives the pending service. In particular, when the service node that receives the pending service is the forwarding module 802 of the backup service node, the pending service can also be forwarded according to the local routing table entry of the backup service node.
相应地,所述转发模块802的实现原理及过程可参照图5所示的装置中的获得模块、确定模块、调整模块,二者实现原理类似,不再赘述。Accordingly, the implementation principle and process of the forwarding module 802 can refer to the obtaining module, determining module, and adjusting module in the device shown in Figure 5. The implementation principles of the two are similar and will not be repeated here.
在一种可能的设计中,所述转发模块802,具体用于当控制面处于多归多活状态时,确定出所述待处理业务对应的所有业务节点,确定出各个业务节点各自对应的转发次序,并基于各个转发次序生成初始转发列表。In one possible design, the forwarding module 802 is specifically used to determine all service nodes corresponding to the service to be processed when the control plane is in a multi-home multi-active state, determine the forwarding order corresponding to each service node, and generate an initial forwarding list based on each forwarding order.
在一种可能的设计中,所述转发模块802,还用于当控制面处于多归单活状态时,从边界网关协议(Border Gateway Protocol,BGP)路由信息中的所有业务节点中确定出主业务节点以及备业务节点,其中,所述BGP路由信息用于确认业务节点的主备状态,确定出所述主业务节点对应的主转发次序以及所述备业务节点对应的备转发次序,基于所述主转发次序以及所述备转发次序生成所述待处理业务对应的所述初始转发列表。In one possible design, the forwarding module 802 is also used to determine the primary business node and the backup business node from all business nodes in the Border Gateway Protocol (BGP) routing information when the control plane is in a multi-homing single-active state, wherein the BGP routing information is used to confirm the primary and backup status of the business nodes, determine the primary forwarding order corresponding to the primary business node and the backup forwarding order corresponding to the backup business node, and generate the initial forwarding list corresponding to the to-be-processed business based on the primary forwarding order and the backup forwarding order.
在一种可能的设计中,所述转发模块802,还用于确定出各个业务节点各自对应的IP地址或者VLAN标识,将各个IP地址按照预设顺序进行排序,筛选出最小IP地址,将所述最小IP地址对应的业务节点作为主业务节点,除所述主业务节点之外的其他节点作为备业务节点,或者将所述VLAN标识带入预设公式中计算出各个业务节点的序号,并将序号为1的业务节点作为主业务节点,除所述主业务节点之外的其他节点作为备业务节点。In one possible design, the forwarding module 802 is also used to determine the IP address or VLAN ID corresponding to each business node, sort the IP addresses in a preset order, screen out the minimum IP address, and use the business node corresponding to the minimum IP address as the main business node, and other nodes except the main business node as backup business nodes, or bring the VLAN ID into a preset formula to calculate the serial number of each business node, and use the business node with serial number 1 as the main business node, and other nodes except the main business node as backup business nodes.
在一种可能的设计中,所述转发模块802,具体用于提取出所述初始转发列表中的所有业务节点,并从所有的业务节点中确定出主业务节点以及备业务节点,当确定出所述待处理业务的业务类型以及所述预设状态时,基于预设指令对所述初始转发列表中的所述主业务节点和/或所述备业务节点进行调整,将调整之后的所述初始转发列表作为所述待处理业务的目标转发列表。In one possible design, the forwarding module 802 is specifically used to extract all business nodes in the initial forwarding list, and determine the main business node and the backup business node from all the business nodes. When the business type of the service to be processed and the preset status are determined, the main business node and/or the backup business node in the initial forwarding list are adjusted based on the preset instructions, and the adjusted initial forwarding list is used as the target forwarding list for the service to be processed.
在一种可能的设计中,所述转发模块802,具体用于获得所述待处理业务对应的主业务节点,当所述主业务节点发生变更时,将所述主业务节点与所述备业务节点进行互换,并设置互换之后的所述主业务节点与所述备业务节点的转发次序。In one possible design, the forwarding module 802 is specifically used to obtain the main business node corresponding to the service to be processed. When the main business node changes, the main business node and the backup business node are exchanged, and the forwarding order of the main business node and the backup business node after the exchange is set.
在一种可能的设计中,所述转发模块802,还用于获得所述待处理业务对应的备业务节点,当所述备业务节点故障恢复时,获取所述备业务节点故障时对应的备转发次序表,并控制转发面将所述备转发次序表作为所述备业务节点故障恢复后的目标转发次序表。In one possible design, the forwarding module 802 is also used to obtain a backup service node corresponding to the service to be processed. When the backup service node fails and recovers, the backup forwarding order table corresponding to the backup service node fails is obtained, and the forwarding plane is controlled to use the backup forwarding order table as the target forwarding order table after the backup service node fails and recovers.
本申请实施例中还提供了一种电子设备,所述电子设备可以实现前述如图5或如图8所述的一种业务转发装置的功能,参考图6,所述电子设备包括:An electronic device is also provided in an embodiment of the present application. The electronic device can implement the functions of the service forwarding device as shown in FIG. 5 or FIG. 8 . Referring to FIG. 6 , the electronic device includes:
至少一个处理器601,以及与至少一个处理器601连接的存储器602,本申请实施例中不限定处理器601与存储器602之间的具体连接介质,图6中是以处理器601和存储器602之间通过总线600连接为例。总线600在图6中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。总线600可以分为地址总线、数据总线、控制总线等,为便于表示,图6中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。或者,处理器601也可以称为控制器,对于名称不做限制。At least one processor 601, and a memory 602 connected to at least one processor 601. The specific connection medium between the processor 601 and the memory 602 is not limited in the embodiment of the present application. FIG. 6 takes the connection between the processor 601 and the memory 602 via the bus 600 as an example. The bus 600 is represented by a bold line in FIG. 6, and the connection between other components is only for schematic illustration and is not intended to be limiting. The bus 600 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one bold line is used in FIG. 6, but it does not mean that there is only one bus or one type of bus. Alternatively, the processor 601 can also be called a controller, and there is no restriction on the name.
在本申请实施例中,存储器602存储有可被至少一个处理器601执行的指令,至少一个处理器601通过执行存储器602存储的指令,可以执行前文图3论述的一种业务转发方法或前文图7论述的一种业务转发方法。处理器601可以实现图5或图8所示的装置中各个模块的功能。In the embodiment of the present application, the memory 602 stores instructions that can be executed by at least one processor 601. The at least one processor 601 can execute a service forwarding method discussed in FIG. 3 or a service forwarding method discussed in FIG. 7 by executing the instructions stored in the memory 602. The processor 601 can implement the functions of each module in the device shown in FIG. 5 or FIG. 8.
其中,处理器601是该装置的控制中心,可以利用各种接口和线路连接整个该控制设备的各个部分,通过运行或执行存储在存储器602内的指令以及调用存储在存储器602内的数据,该装置的各种功能和处理数据,从而对该装置进行整体监控。Among them, the processor 601 is the control center of the device, and can use various interfaces and lines to connect the various parts of the entire control device. By running or executing instructions stored in the memory 602 and calling the data stored in the memory 602, the various functions of the device and processing data, the device can be monitored as a whole.
在一种可能的设计中,处理器601可包括一个或多个处理单元,处理器601可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系 统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器601中。在一些实施例中,处理器601和存储器602可以在同一芯片上实现,在一些实施例中,它们也可以在独立的芯片上分别实现。In one possible design, the processor 601 may include one or more processing units, and the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 601. In some embodiments, the processor 601 and the memory 602 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on separate chips.
处理器601可以是通用处理器,例如中央处理器(CPU)、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的一种业务转发方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。 Processor 601 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of a service forwarding method disclosed in the embodiments of the present application can be directly embodied as a hardware processor execution, or a combination of hardware and software modules in the processor.
存储器602作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块。存储器602可以包括至少一种类型的存储介质,例如可以包括闪存、硬盘、多媒体卡、卡型存储器、随机访问存储器(Random Access Memory,RAM)、静态随机访问存储器(Static Random Access Memory,SRAM)、可编程只读存储器(Programmable Read Only Memory,PROM)、只读存储器(Read Only Memory,ROM)、带电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、磁性存储器、磁盘、光盘等等。存储器602是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。本申请实施例中的存储器602还可以是电路或者其它任意能够实现存储功能的装置,用于存储程序指令和/或数据。The memory 602 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 602 may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (Random Access Memory, RAM), static random access memory (Static Random Access Memory, SRAM), programmable read-only memory (Programmable Read Only Memory, PROM), read-only memory (Read Only Memory, ROM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), magnetic memory, disk, optical disk, etc. The memory 602 is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 602 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, which is used to store program instructions and/or data.
通过对处理器601进行设计编程,可以将前述实施例中介绍的一种业务转发方法所对应的代码固化到芯片内,从而使芯片在运行时能够执行图3所示的实施例的一种业务转发步骤。如何对处理器601进行设计编程为本领域技术人员所公知的技术,这里不再赘述。By designing and programming the processor 601, the code corresponding to a service forwarding method introduced in the above embodiment can be fixed into the chip, so that the chip can execute a service forwarding step of the embodiment shown in Figure 3 when running. How to design and program the processor 601 is a technology well known to those skilled in the art and will not be described here.
本申请实施例还提供一种存储介质,该存储介质存储有计算机指令,当该计算机指令在计算机上运行时,使得计算机执行前文图3论述的一种业务 转发方法或图7论述的一种业务转发方法。An embodiment of the present application also provides a storage medium storing computer instructions. When the computer instructions are executed on a computer, the computer executes a service forwarding method discussed in FIG. 3 or a service forwarding method discussed in FIG. 7 .
在一些可能的实施方式中,本申请提供业务转发方法的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当程序产品在装置上运行时,程序代码用于使该控制设备执行本说明书上述描述的根据本申请各种示例性实施方式的业务转发方法中的步骤。In some possible implementations, various aspects of the service forwarding method provided by the present application may also be implemented in the form of a program product, which includes a program code. When the program product is run on an apparatus, the program code is used to enable the control device to execute the steps of the service forwarding method according to various exemplary embodiments of the present application described above in this specification.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to the flowchart and/or block diagram of the method, device (system), and computer program product according to the embodiment of the present invention. It should be understood that each process and/or box in the flowchart and/or block diagram, as well as the combination of the process and/or box in the flowchart and/or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
尽管已描述了本发明的可选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括可选实施例以及落入本发明范围的所有变更和修改。Although the optional embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the optional embodiments and all changes and modifications that fall within the scope of the present invention.
显然,本领域的技术人员可以对本发明实施例进行各种改动和变型而不脱离本发明实施例的精神和范围。这样,倘若本发明实施例的这些修改和变 型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present invention without departing from the spirit and scope of the embodiments of the present invention. Thus, if these modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims (20)

  1. 一种业务转发方法,其特征在于,包括:A service forwarding method, characterized by comprising:
    获得待处理业务以及所述待处理业务对应的控制面;Obtaining a service to be processed and a control plane corresponding to the service to be processed;
    当所述控制面处于预设状态时,从与所述控制面关联的转发面中确定出所述待处理业务对应的初始转发列表,其中,所述初始转发列表不满足所述待处理业务的业务需求,所述预设状态为多归多活状态或者多归单活状态;When the control plane is in a preset state, determining an initial forwarding list corresponding to the to-be-processed service from a forwarding plane associated with the control plane, wherein the initial forwarding list does not meet the service requirements of the to-be-processed service, and the preset state is a multi-homing multi-active state or a multi-homing single-active state;
    基于所述待处理业务的业务类型将所述初始转发列表调整为目标转发列表;Adjusting the initial forwarding list to a target forwarding list based on the service type of the service to be processed;
    按照所述目标转发列表转发所述待处理业务。The to-be-processed business is forwarded according to the target forwarding list.
  2. 如权利要求1所述的方法,其特征在于,从与所述控制面关联的转发面中确定出所述待处理业务对应的初始转发列表,包括:The method according to claim 1, characterized in that determining the initial forwarding list corresponding to the to-be-processed service from the forwarding plane associated with the control plane comprises:
    当控制面处于多归多活状态时,确定出所述待处理业务对应的所有业务节点;When the control plane is in a multi-home multi-active state, determining all service nodes corresponding to the service to be processed;
    确定出各个业务节点各自对应的转发次序,并基于各个转发次序生成初始转发列表。Determine the forwarding order corresponding to each service node, and generate an initial forwarding list based on each forwarding order.
  3. 如权利要求1所述的方法,其特征在于,从与所述控制面关联的转发面中确定出所述待处理业务对应的初始转发列表,包括:The method according to claim 1, characterized in that determining the initial forwarding list corresponding to the to-be-processed service from the forwarding plane associated with the control plane comprises:
    当控制面处于多归单活状态时,从边界网关协议(Border Gateway Protocol,BGP)路由信息中的所有业务节点中确定出主业务节点以及备业务节点,其中,所述BGP路由信息用于确认业务节点的主备状态;When the control plane is in a multi-homing single-active state, a primary service node and a backup service node are determined from all service nodes in Border Gateway Protocol (BGP) routing information, wherein the BGP routing information is used to confirm the primary and backup status of the service nodes;
    确定出所述主业务节点对应的主转发次序以及所述备业务节点对应的备转发次序;Determine a primary forwarding order corresponding to the primary service node and a backup forwarding order corresponding to the backup service node;
    基于所述主转发次序以及所述备转发次序生成所述待处理业务对应的所述初始转发列表。The initial forwarding list corresponding to the to-be-processed service is generated based on the primary forwarding order and the backup forwarding order.
  4. 如权利要求3所述的方法,其特征在于,从BGP路由信息中的所有业务节点中确定出主业务节点以及备业务节点,包括:The method according to claim 3, characterized in that determining the primary service node and the backup service node from all service nodes in the BGP routing information comprises:
    确定出各个业务节点各自对应的IP地址或者VLAN标识;Determine the IP address or VLAN ID corresponding to each service node;
    将各个IP地址按照预设顺序进行排序,筛选出最小IP地址,将所述最小IP地址对应的业务节点作为主业务节点,除所述主业务节点之外的其他节点作为备业务节点;或者Sort the IP addresses in a preset order, select the smallest IP address, and use the service node corresponding to the smallest IP address as the main service node, and use other nodes except the main service node as backup service nodes; or
    将所述VLAN标识带入预设公式中计算出各个业务节点的序号,并将序号为1的业务节点作为主业务节点,除所述主业务节点之外的其他节点作为备业务节点。The VLAN identifier is brought into a preset formula to calculate the serial number of each service node, and the service node with serial number 1 is used as the main service node, and the other nodes except the main service node are used as backup service nodes.
  5. 如权利要求1所述的方法,其特征在于,基于所述待处理业务的业务类型将所述初始转发列表调整为目标转发列表,包括:The method according to claim 1, characterized in that adjusting the initial forwarding list to a target forwarding list based on the service type of the service to be processed comprises:
    提取出所述初始转发列表中的所有业务节点,并从所有的业务节点中确定出主业务节点以及备业务节点;Extracting all service nodes in the initial forwarding list, and determining a primary service node and a backup service node from all service nodes;
    当确定出所述待处理业务的业务类型以及所述预设状态时,基于预设指令对所述初始转发列表中的所述主业务节点和/或所述备业务节点进行调整,其中,所述预设指令为指示调整转发面中的初始转发列表的指令;When the service type and the preset state of the to-be-processed service are determined, adjusting the primary service node and/or the backup service node in the initial forwarding list based on a preset instruction, wherein the preset instruction is an instruction to instruct adjustment of the initial forwarding list in the forwarding plane;
    将调整之后的所述初始转发列表作为所述待处理业务的目标转发列表。The adjusted initial forwarding list is used as the target forwarding list for the service to be processed.
  6. 如权利要求1所述的方法,其特征在于,在按照所述目标转发列表转发所述待处理业务之前,还包括:The method according to claim 1, characterized in that before forwarding the pending service according to the target forwarding list, it also includes:
    获得所述待处理业务对应的主业务节点;Obtaining the main service node corresponding to the service to be processed;
    当所述主业务节点发生变更时,将所述主业务节点与所述备业务节点进行互换,并设置互换之后的所述主业务节点与所述备业务节点的转发次序。When the main service node changes, the main service node and the backup service node are exchanged, and a forwarding order of the main service node and the backup service node after the exchange is set.
  7. 如权利要求1所述的方法,其特征在于,在按照所述目标转发列表转发所述待处理业务之前,还包括:The method according to claim 1, characterized in that before forwarding the pending service according to the target forwarding list, it also includes:
    获得所述待处理业务对应的备业务节点;Obtaining a standby service node corresponding to the service to be processed;
    当所述备业务节点故障恢复时,获取所述备业务节点故障时对应的备转发次序表,并控制转发面将所述备转发次序表作为所述备业务节点故障恢复后的目标转发次序表。When the standby service node fails and recovers, a standby forwarding order table corresponding to the standby service node fails is obtained, and the forwarding plane is controlled to use the standby forwarding order table as a target forwarding order table after the standby service node fails and recovers.
  8. 一种业务转发装置,其特征在于,包括:A service forwarding device, comprising:
    获得模块,用于获得待处理业务以及所述待处理业务对应的控制面;An acquisition module, used to obtain a service to be processed and a control plane corresponding to the service to be processed;
    确定模块,用于当所述控制面处于预设状态时,从与所述控制面关联的转发面中确定出所述待处理业务对应的初始转发列表;A determination module, configured to determine, when the control plane is in a preset state, an initial forwarding list corresponding to the to-be-processed service from a forwarding plane associated with the control plane;
    调整模块,用于基于所述待处理业务的业务类型将所述初始转发列表调整为目标转发列表;An adjustment module, configured to adjust the initial forwarding list to a target forwarding list based on the service type of the service to be processed;
    转发模块,用于按照所述目标转发列表转发所述待处理业务。A forwarding module is used to forward the pending business according to the target forwarding list.
  9. 一种业务转发方法,其特征在于,所述方法应用于配置有至少两个虚拟以太链路vES的虚拟专用网络EVPN,所述方法,包括:A service forwarding method, characterized in that the method is applied to a virtual private network EVPN configured with at least two virtual Ethernet links vES, and the method comprises:
    第一vES的备业务节点接收客户边缘设备CE发送的待处理业务;The standby service node of the first vES receives the to-be-processed service sent by the customer edge device CE;
    当所述待处理业务来自所述第一vES时,基于预设的本地路由表项转发所述待处理业务;其中,所述第一vES的控制面的预设状态为多归单活状态。When the service to be processed comes from the first vES, the service to be processed is forwarded based on a preset local routing table entry; wherein the preset state of the control plane of the first vES is a multi-homing single active state.
  10. 如权利要求9所述的方法,其特征在于,在所述第一vES的备业务节点接收CE发送的待处理业务之后,还包括:The method according to claim 9, characterized in that after the backup service node of the first vES receives the to-be-processed service sent by the CE, it also includes:
    当所述待处理业务归属所述第一vES,且来自单归CE或以太链路ES时,所述第一vES的备业务节点阻塞所述待处理业务,并将所述待处理业务发送给所述第一vES的主业务节点;When the service to be processed belongs to the first vES and comes from a single-homed CE or an Ethernet link ES, the backup service node of the first vES blocks the service to be processed and sends the service to be processed to the primary service node of the first vES;
    其中,当所述待处理业务来自所述ES时,所述CE通过所述ES多归接入所述EVPN。When the service to be processed comes from the ES, the CE accesses the EVPN through the ES.
  11. 如权利要求9或10所述的方法,其特征在于,所述基于预设的本地路由表项转发所述待处理业务,包括:获得所述待处理业务以及所述待处理业务对应的控制面;The method according to claim 9 or 10, characterized in that forwarding the service to be processed based on a preset local routing table entry comprises: obtaining the service to be processed and a control plane corresponding to the service to be processed;
    当所述控制面处于预设状态时,从与所述控制面关联的转发面中确定出所述待处理业务对应的初始转发列表,其中,所述初始转发列表不满足所述待处理业务的业务需求,所述预设状态为多归多活状态或者多归单活状态;When the control plane is in a preset state, determining an initial forwarding list corresponding to the to-be-processed service from a forwarding plane associated with the control plane, wherein the initial forwarding list does not meet the service requirements of the to-be-processed service, and the preset state is a multi-homing multi-active state or a multi-homing single-active state;
    基于所述待处理业务的业务类型将所述初始转发列表调整为目标转发列表;Adjusting the initial forwarding list to a target forwarding list based on the service type of the to-be-processed service;
    基于所述目标转发列表和所述本地路由表项转发所述待处理业务。The to-be-processed service is forwarded based on the target forwarding list and the local routing table entry.
  12. 如权利要求11所述的方法,其特征在于,从与所述控制面关联的转发面中确定出所述待处理业务对应的初始转发列表,包括:The method according to claim 11, characterized in that determining the initial forwarding list corresponding to the to-be-processed service from the forwarding plane associated with the control plane comprises:
    当控制面处于多归多活状态时,确定出所述待处理业务对应的所有业务节点;When the control plane is in a multi-home multi-active state, determining all service nodes corresponding to the service to be processed;
    确定出各个业务节点各自对应的转发次序,并基于各个转发次序生成初始转发列表。Determine the forwarding order corresponding to each service node, and generate an initial forwarding list based on each forwarding order.
  13. 如权利要求11所述的方法,其特征在于,从与所述控制面关联的转发面中确定出所述待处理业务对应的初始转发列表,包括:The method according to claim 11, characterized in that determining the initial forwarding list corresponding to the to-be-processed service from the forwarding plane associated with the control plane comprises:
    当控制面处于多归单活状态时,从边界网关协议BGP路由信息中的所有业务节点中确定出主业务节点以及备业务节点,其中,所述BGP路由信息用于确认业务节点的主备状态;When the control plane is in a multi-homing single-active state, determining a primary service node and a backup service node from all service nodes in the Border Gateway Protocol BGP routing information, wherein the BGP routing information is used to confirm the primary and backup status of the service node;
    确定出所述主业务节点对应的主转发次序以及所述备业务节点对应的备转发次序;Determine a primary forwarding order corresponding to the primary service node and a backup forwarding order corresponding to the backup service node;
    基于所述主转发次序以及所述备转发次序生成所述待处理业务对应的所述初始转发列表。The initial forwarding list corresponding to the to-be-processed service is generated based on the primary forwarding order and the backup forwarding order.
  14. 如权利要求13所述的方法,其特征在于,从BGP路由信息中的所有业务节点中确定出主业务节点以及备业务节点,包括:The method according to claim 13, characterized in that determining the primary service node and the backup service node from all service nodes in the BGP routing information comprises:
    确定出各个业务节点各自对应的IP地址或者VLAN标识;Determine the IP address or VLAN ID corresponding to each service node;
    将各个IP地址按照预设顺序进行排序,筛选出最小IP地址,将所述最小IP地址对应的业务节点作为主业务节点,除所述主业务节点之外的其他节点作为备业务节点;或者Sort the IP addresses in a preset order, select the smallest IP address, and use the service node corresponding to the smallest IP address as the main service node, and use other nodes except the main service node as backup service nodes; or
    将所述VLAN标识带入预设公式中计算出各个业务节点的序号,并将序号为1的业务节点作为主业务节点,除所述主业务节点之外的其他节点作为备业务节点。The VLAN identifier is brought into a preset formula to calculate the serial number of each service node, and the service node with serial number 1 is used as the main service node, and the other nodes except the main service node are used as backup service nodes.
  15. 如权利要求11所述的方法,其特征在于,基于所述待处理业务的业务类型将所述初始转发列表调整为目标转发列表,包括:The method according to claim 11, characterized in that adjusting the initial forwarding list to a target forwarding list based on the service type of the service to be processed comprises:
    提取出所述初始转发列表中的所有业务节点,并从所有的业务节点中确 定出主业务节点以及备业务节点;Extracting all service nodes in the initial forwarding list, and determining a primary service node and a backup service node from all service nodes;
    当确定出所述待处理业务的业务类型以及所述预设状态时,基于预设指令对所述初始转发列表中的所述主业务节点和/或所述备业务节点进行调整,其中,所述预设指令为指示调整转发面中的初始转发列表的指令;When the service type and the preset state of the to-be-processed service are determined, adjusting the primary service node and/or the backup service node in the initial forwarding list based on a preset instruction, wherein the preset instruction is an instruction to instruct adjustment of the initial forwarding list in the forwarding plane;
    将调整之后的所述初始转发列表作为所述待处理业务的目标转发列表。The adjusted initial forwarding list is used as the target forwarding list for the service to be processed.
  16. 如权利要求11所述的方法,其特征在于,在确定出所述目标转发列表之后,还包括:The method according to claim 11, characterized in that after determining the target forwarding list, it also includes:
    获得所述待处理业务对应的主业务节点;Obtaining the main service node corresponding to the service to be processed;
    当所述主业务节点发生变更时,将所述主业务节点与所述备业务节点进行互换,并设置互换之后的所述主业务节点与所述备业务节点的转发次序。When the main service node changes, the main service node and the backup service node are exchanged, and a forwarding order of the main service node and the backup service node after the exchange is set.
  17. 如权利要求11所述的方法,其特征在于,在确定出所述目标转发列表之后,还包括:The method according to claim 11, characterized in that after determining the target forwarding list, it also includes:
    获得所述待处理业务对应的备业务节点;Obtaining a standby service node corresponding to the service to be processed;
    当所述备业务节点故障恢复时,获取所述备业务节点故障时对应的备转发次序表,并控制转发面将所述备转发次序表作为所述备业务节点故障恢复后的目标转发次序表。When the standby service node fails and recovers, a standby forwarding order table corresponding to the standby service node fails is obtained, and the forwarding plane is controlled to use the standby forwarding order table as a target forwarding order table after the standby service node fails and recovers.
  18. 一种业务转发装置,其特征在于,所述装置应用于配置有不同vES的虚拟专用网络EVPN,所述装置,包括:A service forwarding device, characterized in that the device is applied to a virtual private network EVPN configured with different vESs, and the device includes:
    接收模块,用于接收CE发送的待处理业务;A receiving module, used for receiving pending services sent by CE;
    转发模块,用于当所述待处理业务来自第一vES时,基于预设的本地路由表项转发所述待处理业务;其中,所述第一vES的控制面的预设状态为多归单活状态,所述装置设置于第一vES的备业务节点。A forwarding module is used to forward the pending service based on a preset local routing table entry when the pending service comes from the first vES; wherein the preset state of the control plane of the first vES is a multi-home single-active state, and the device is set at the backup service node of the first vES.
  19. 一种电子设备,其特征在于,包括:An electronic device, comprising:
    存储器,用于存放计算机程序;Memory, used to store computer programs;
    处理器,用于执行所述存储器上所存放的计算机程序时,实现权利要求1-7任一项所述的方法步骤或9-17任一项所述的方法步骤。A processor, for implementing the method steps described in any one of claims 1 to 7 or the method steps described in any one of claims 9 to 17 when executing the computer program stored in the memory.
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质 内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-7任一项所述的方法步骤或9-17任一项所述的方法步骤。A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 7 or the method steps described in any one of claims 9 to 17 are implemented.
PCT/CN2023/071117 2022-10-21 2023-01-06 Service forwarding method and apparatus, and electronic device WO2024082462A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211290343.7 2022-10-21
CN202211290343.7A CN117956018A (en) 2022-10-21 2022-10-21 Service forwarding method and device and electronic equipment

Publications (1)

Publication Number Publication Date
WO2024082462A1 true WO2024082462A1 (en) 2024-04-25

Family

ID=90736725

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/071117 WO2024082462A1 (en) 2022-10-21 2023-01-06 Service forwarding method and apparatus, and electronic device

Country Status (2)

Country Link
CN (1) CN117956018A (en)
WO (1) WO2024082462A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9391885B1 (en) * 2013-09-05 2016-07-12 Juniper Networks, Inc. MPLS label usage in Ethernet virtual private networks
CN108696414A (en) * 2017-04-05 2018-10-23 中兴通讯股份有限公司 Return cut-in method, device and more home nodes more
CN110050445A (en) * 2016-12-09 2019-07-23 华为技术有限公司 Send and receive the method, apparatus and system of message
US10666459B1 (en) * 2017-04-07 2020-05-26 Cisco Technology, Inc. System and method to facilitate interoperability between virtual private LAN service (VPLS) and ethernet virtual private network (EVPN) with all-active multi-homing
CN113472665A (en) * 2021-06-17 2021-10-01 新华三信息安全技术有限公司 Method and device for realizing butt joint of different networks under EVPN
WO2022121466A1 (en) * 2020-12-07 2022-06-16 中兴通讯股份有限公司 Data processing method and device for ethernet virtual private network, and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9391885B1 (en) * 2013-09-05 2016-07-12 Juniper Networks, Inc. MPLS label usage in Ethernet virtual private networks
CN110050445A (en) * 2016-12-09 2019-07-23 华为技术有限公司 Send and receive the method, apparatus and system of message
CN108696414A (en) * 2017-04-05 2018-10-23 中兴通讯股份有限公司 Return cut-in method, device and more home nodes more
US10666459B1 (en) * 2017-04-07 2020-05-26 Cisco Technology, Inc. System and method to facilitate interoperability between virtual private LAN service (VPLS) and ethernet virtual private network (EVPN) with all-active multi-homing
WO2022121466A1 (en) * 2020-12-07 2022-06-16 中兴通讯股份有限公司 Data processing method and device for ethernet virtual private network, and storage medium
CN113472665A (en) * 2021-06-17 2021-10-01 新华三信息安全技术有限公司 Method and device for realizing butt joint of different networks under EVPN

Also Published As

Publication number Publication date
CN117956018A (en) 2024-04-30

Similar Documents

Publication Publication Date Title
US10333836B2 (en) Convergence for EVPN multi-homed networks
CN110166356B (en) Method and network equipment for sending message
US20200067812A1 (en) First Hop Gateway Redundancy In A Network Computing Environment
US8576721B1 (en) Local forwarding bias in a multi-chassis router
US9019814B1 (en) Fast failover in multi-homed ethernet virtual private networks
US10075394B2 (en) Virtual link aggregations across multiple fabric switches
US20150334057A1 (en) Packet forwarding
US20190182202A1 (en) System and method for route optimization in a multichasiss link aggregation configuration
WO2016174598A1 (en) Sdn network element affinity based data partition and flexible migration schemes
US11546267B2 (en) Method for determining designated forwarder (DF) of multicast flow, device, and system
WO2020114017A1 (en) Data center traffic exchange method and apparatus, device and storage medium
WO2021093463A1 (en) Packet forwarding method, first network device, and first device group
EP3979709A1 (en) Dynamic multi-destination traffic management in a distributed tunnel endpoint
US20230216786A1 (en) Method for forwarding service packet, method for sending sr policy, device, and system
CN106921573A (en) It is used to issue the method and device of tenant's route in NVo3 networks
US10673755B1 (en) Multi-chassis link aggregation groups with more than two chassis
JP2023544870A (en) MLAG link failure switching method and device
CN108259205B (en) Route publishing method and network equipment
WO2024082462A1 (en) Service forwarding method and apparatus, and electronic device
WO2023035983A1 (en) Method and device for electing designated forwarder (df)
WO2022017225A1 (en) Message sending method, device and system
WO2022089213A1 (en) Packet sending method, device, and system
EP3993357A1 (en) Method for sending bierv6 packet and first network device
US10873476B2 (en) Networks with multiple tiers of switches
WO2022053007A1 (en) Network reachability verification method and apparatus, and computer storage medium