[go: up one dir, main page]

CN107819681A - Pseudo-wire load sharing retransmission method and edge router - Google Patents

Pseudo-wire load sharing retransmission method and edge router Download PDF

Info

Publication number
CN107819681A
CN107819681A CN201610817700.9A CN201610817700A CN107819681A CN 107819681 A CN107819681 A CN 107819681A CN 201610817700 A CN201610817700 A CN 201610817700A CN 107819681 A CN107819681 A CN 107819681A
Authority
CN
China
Prior art keywords
pseudowire
group
edge router
aggregated
aggregation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610817700.9A
Other languages
Chinese (zh)
Inventor
朱凌云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610817700.9A priority Critical patent/CN107819681A/en
Publication of CN107819681A publication Critical patent/CN107819681A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/06Deflection routing, e.g. hot-potato routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/10Routing in connection-oriented networks, e.g. X.25 or ATM
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]

Landscapes

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

Abstract

本发明实施例提供一种伪线分载转发方法以及PE,在本端PE和对端PE设置聚合伪线组,该聚合伪线组中的各伪线成员之传输路径的源PE和目的PE分别为本端PE和对端PE。基于上述设置,本端PE在接收来到自用户设备的业务报文后,根据当前实际接收到的业务报文在聚合伪线组中的各伪线成员中为其实时的选择一个作为目标伪线,然后通过目标伪线将业务报文转发至对端PE。也即本发明中的伪线与业务报文之间的配置关系并不是固定配置的,而是根据当前实际的业务报文灵活的从聚合伪线组中选择一个满足当前业务报文需求的伪线进行转发,达到分载转发的目的,避免某条伪线转发路径上因带宽超限导致丢包的情况发生。

An embodiment of the present invention provides a pseudowire load sharing and forwarding method and a PE. An aggregated pseudowire group is set on the local PE and the remote PE, and the source PE and destination PE of the transmission path of each pseudowire member in the aggregated pseudowire group These are the local PE and remote PE. Based on the above settings, after receiving the service packet from the user equipment, the local PE selects one of the pseudowire members in the aggregation pseudowire group as the target pseudowire in real time according to the currently received service packet. line, and then forward the service packets to the peer PE through the target pseudo-wire. That is to say, the configuration relationship between the pseudowire and the service message in the present invention is not a fixed configuration, but a pseudowire that meets the current service message requirements is flexibly selected from the aggregated pseudowire group according to the current actual service message. Forwarding over a pseudo-wire to achieve the purpose of load-sharing forwarding and avoid packet loss due to bandwidth overrun on a pseudo-wire forwarding path.

Description

伪线分载转发方法及边缘路由器Pseudowire offload forwarding method and edge router

技术领域technical field

本发明涉及通信领域,具体涉及一种伪线分载转发方法及边缘路由器。The invention relates to the communication field, in particular to a pseudowire load sharing and forwarding method and an edge router.

背景技术Background technique

MPLS(Multi-Protocol Label Switching,多协议标签交换)技术是一种多协议标记交换技术,它将IP报文三层转发技术巧妙的转换成二层交换技术,提高了数据的转发速率,从而提升的网络速度。随着通信技术的发展,为了满足用户的需求,基于MPLS技术,可以构建VPN(Virtual Private Network,虚拟专用网络)网络,根据PE(Provider EdgeRouter,边缘路由器)是否参与VPN路由转发,将VPN网络分为二层VPN和三层VPN。MPLS (Multi-Protocol Label Switching, Multi-Protocol Label Switching) technology is a multi-protocol label switching technology, which ingeniously converts the three-layer forwarding technology of IP packets into two-layer switching technology, which improves the data forwarding rate, thereby improving network speed. With the development of communication technology, in order to meet the needs of users, a VPN (Virtual Private Network, virtual private network) network can be constructed based on MPLS technology. According to whether PE (Provider Edge Router, edge router) participates in VPN routing and forwarding, the VPN network is divided It is Layer 2 VPN and Layer 3 VPN.

二层VPN(Layer2MPLS VPN,简称L2VPN)技术解决方案中运营商网络和客户的VPN网络之间是完全独立的,也就是说,运营商边界的PE设备和CE设备之间不会进行路由交换,运营商只是简单向客户提供一些基于二层的网络功能。运营商的网络和客户的VPN网络和完全架构在层叠的网络模型上,从客户的角度看运营商只是提供了一个简单的二层连接。这种透明简化了运营商网络的结构和配置管理。In the Layer 2 VPN (Layer2MPLS VPN, referred to as L2VPN) technology solution, the operator network and the customer's VPN network are completely independent, that is, there will be no routing exchange between the PE equipment and the CE equipment at the operator's border. Operators simply provide customers with some layer-2-based network functions. The operator's network and the customer's VPN network are fully structured on a layered network model. From the customer's point of view, the operator only provides a simple layer-2 connection. This transparency simplifies the structure and configuration management of the operator's network.

L2VPN网络中,涉及到几个概念如下:In the L2VPN network, several concepts are involved as follows:

PE:Provider Edge Router,指骨干网上的边缘路由器,与用户CE(Custom EdgeRouter,用户网络边界路由器)设备相连;PE: Provider Edge Router, refers to the edge router on the backbone network, connected to the user CE (Custom EdgeRouter, user network edge router) device;

P:Provider Router,指骨干网上的核心路由器,与PE相连,不与CE对接,负责mpls标签转发;P: Provider Router, refers to the core router on the backbone network, connected to PE, not connected to CE, responsible for mpls label forwarding;

CE:Custom Edge Router,用户网络边界路由器,直接与服务提供商相连的用户设备;CE: Custom Edge Router, user network edge router, user equipment directly connected to the service provider;

AC:Access Circuit,接入电路,作为用户和服务提供商之间的连接,即连接CE和PE的链路;AC: Access Circuit, access circuit, as the connection between the user and the service provider, that is, the link connecting CE and PE;

PW:Pseudo Wire,伪线路,两台PE设备上的实例之间的一条双向虚拟连接,它由一对方向相反的单向的MPLS VC(Virtual Circuit,虚电路)组成;PW: Pseudo Wire, pseudo-wire, a two-way virtual connection between instances on two PE devices, which consists of a pair of unidirectional MPLS VC (Virtual Circuit, virtual circuit) in opposite directions;

Tunnel:隧道,用于承载PW,一条隧道上可以承载多条PW,隧道是一条本地PE与对端PE之间的直连通道,完成PE之间的数据透明传输,可以是MPLS和GRE隧道;Tunnel: Tunnel, used to carry PW, a tunnel can carry multiple PW, the tunnel is a direct connection between a local PE and the peer PE, to complete the transparent data transmission between PE, can be MPLS and GRE tunnel;

外层标签:用于PE之间、PE和P之间标签交换,负责将报文从一个PE送到另一个PE设备;Outer label: Used for label exchange between PEs and between PEs and Ps, responsible for sending packets from one PE to another PE device;

内层标签:用于区分不同VPN的不同连接,PE根据VC标签决定将报文发送给哪个CE。Inner label: It is used to distinguish different connections of different VPNs. The PE decides which CE to send the packet to according to the VC label.

简化的L2VPN网络组网如图1所示,在PE设备之间建立伪线PW,动态PW通过LDP(Label Distribution Protocol,标签分发协议)协议建立连接,协商PW参数,分配转发标签。而目前CE的业务与PW之间的配置都是按照业务类型固定配置的,例如某一类型的业务固定配置为对应某一PW,该业务的所有报文都通过该固定的PW下发,因此当接入的CE设备数量增加,容易出现某一PW承载的业务流量过大,而该PW沿途转发路径上带宽有限,会出现流量带宽越限的情况,造成业务丢包,影响通信,用户体验满意度低A simplified L2VPN network is shown in Figure 1. Pseudowire PWs are established between PE devices. Dynamic PWs establish connections through the LDP (Label Distribution Protocol) protocol, negotiate PW parameters, and assign forwarding labels. At present, the configuration between CE services and PWs is fixed according to the service type. For example, a certain type of service is fixedly configured to correspond to a certain PW, and all packets of the service are delivered through the fixed PW. When the number of connected CE devices increases, the service traffic carried by a certain PW is likely to be too large, and the bandwidth of the forwarding path along the PW is limited, and the bandwidth of the traffic will exceed the limit, resulting in service packet loss, affecting communication and user experience. low satisfaction

发明内容Contents of the invention

本发明实施例提供的一种伪线分载转发方法及边缘路由器,主解决的技术问题是:解决带宽不足导致丢包,影响正常通信,用户体验满意度低的问题。The embodiment of the present invention provides a pseudowire offload forwarding method and an edge router, mainly solving the technical problem of: solving the problem of packet loss caused by insufficient bandwidth, affecting normal communication, and low user experience satisfaction.

为解决上述技术问题,本发明实施例提供一种伪线分载转发方法,包括:In order to solve the above technical problems, an embodiment of the present invention provides a pseudowire offload forwarding method, including:

接收来自用户设备的业务报文;receiving service packets from user equipment;

根据所述业务报文在聚合伪线组中的各伪线成员中选择一个作为目标伪线;所述聚合伪线组为:本端边缘路由器和对端边缘路由器预先设置的属于同一虚拟专用网实例的伪线集合,该伪线集合中的各伪线成员之传输路径的源边缘路由器和目的边缘路由器分别为本端边缘路由器和对端边缘路由器,且本端边缘路由器为所述业务报文的入口,对端边缘路由器为所述业务报文的出口;According to the service message, one of the pseudowire members in the aggregated pseudowire group is selected as the target pseudowire; the aggregated pseudowire group is: the edge router at the local end and the edge router at the opposite end are preset to belong to the same virtual private network The pseudowire set of the instance, the source edge router and the destination edge router of the transmission path of each pseudowire member in the pseudowire set are the local edge router and the peer edge router respectively, and the local edge router is the The entrance of the opposite edge router is the exit of the service message;

通过所述目标伪线将所述业务报文转发至所述对端边缘路由器。Forwarding the service packet to the peer edge router through the target pseudowire.

本发明实施例还提供一种边缘路由器,包括:The embodiment of the present invention also provides an edge router, including:

报文接收模块,用于接收来自用户设备的业务报文;A message receiving module, configured to receive service messages from user equipment;

伪线选择模块,用于根据所述业务报文在聚合伪线组中的各伪线成员中选择一个作为目标伪线;所述聚合伪线组为:本端边缘路由器和对端边缘路由器预先设置的属于同一虚拟专用网实例的伪线集合,该伪线集合中的各伪线成员之传输路径的源边缘路由器和目的边缘路由器分别为本端边缘路由器和对端边缘路由器,且本端边缘路由器为所述业务报文的入口,对端边缘路由器为所述业务报文的出口;A pseudowire selection module, configured to select one of the pseudowire members in the aggregated pseudowire group as a target pseudowire according to the service message; the aggregated pseudowire group is: the edge router at the local end and the edge router at the opposite end The set of pseudowires belonging to the same virtual private network instance, the source edge router and destination edge router of the transmission path of each pseudowire member in the pseudowire set are the local edge router and the opposite end edge router respectively, and the local edge router The router is the entrance of the service message, and the peer edge router is the exit of the service message;

报文转发模块,用于通过所述目标伪线将所述业务报文转发至所述对端边缘路由器。A message forwarding module, configured to forward the service message to the peer edge router through the target pseudowire.

本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行前述的伪线分载转发方法。An embodiment of the present invention also provides a computer storage medium, where computer executable instructions are stored in the computer storage medium, and the computer executable instructions are used to execute the foregoing method for offloading and forwarding pseudowires.

本发明的有益效果是:The beneficial effects of the present invention are:

根据本发明实施例提供的伪线分载转发方法、边缘路由器、以及计算机存储介质,先在本端边缘路由器和对端边缘路由器设置聚合伪线组,该聚合伪线组为伪线集合,该伪线集合中的各伪线成员之传输路径的源边缘路由器和目的边缘路由器分别为本端边缘路由器和对端边缘路由器。基于上述设置,本端边缘路由器在接收来到自用户设备的业务报文后,根据当前实际接收到的业务报文在聚合伪线组中的各伪线成员中为其实时的选择一个作为目标伪线,然后通过目标伪线将业务报文转发至对端边缘路由器。也即本发明中的伪线与业务报文之间的配置关系并不是固定配置的,而是根据当前实际的业务报文灵活的从聚合伪线组中选择一个满足当前业务报文需求的伪线进行转发,避免伪线转发路径上因带宽超限导致丢包的情况发生,提升通信的可靠性,并能提升用户体验的满意度。According to the pseudowire offload forwarding method, edge router, and computer storage medium provided by the embodiments of the present invention, an aggregated pseudowire group is first set up on the local edge router and the peer edge router, the aggregated pseudowire group is a pseudowire set, and the aggregated pseudowire group is a pseudowire set. The source edge router and the destination edge router of the transmission path of each pseudowire member in the pseudowire set are the local edge router and the peer edge router respectively. Based on the above settings, after the local edge router receives the service packet from the user equipment, it selects one of the pseudowire members in the aggregation pseudowire group as the target in real time according to the currently received service packet Pseudowire, and then forward the service packet to the peer edge router through the target pseudowire. That is to say, the configuration relationship between the pseudowire and the service message in the present invention is not a fixed configuration, but a pseudowire that meets the current service message requirements is flexibly selected from the aggregated pseudowire group according to the current actual service message. To avoid packet loss caused by bandwidth overrun on the pseudo-wire forwarding path, improve the reliability of communication, and improve the satisfaction of user experience.

附图说明Description of drawings

图1为一种L2VPN网络组网示意图;FIG. 1 is a schematic diagram of a L2VPN network;

图2为本发明实施例一中的伪线分载转发方法流程示意图;FIG. 2 is a schematic flow chart of a pseudowire offloading and forwarding method in Embodiment 1 of the present invention;

图3为本发明实施例一中的配置动态聚合伪线组的流程示意图;FIG. 3 is a schematic flowchart of configuring a dynamically aggregated pseudowire group in Embodiment 1 of the present invention;

图4为本发明实施例二中的边缘路由器结构示意图;FIG. 4 is a schematic structural diagram of an edge router in Embodiment 2 of the present invention;

图5为本发明实施例二中的另一边缘路由器结构示意图;FIG. 5 is a schematic structural diagram of another edge router in Embodiment 2 of the present invention;

图6为本发明实施例二中的另一边缘路由器结构示意图;FIG. 6 is a schematic structural diagram of another edge router in Embodiment 2 of the present invention;

图7为本发明实施例三中的设置动态聚合伪线组的流程示意图;FIG. 7 is a schematic flowchart of setting a dynamically aggregated pseudowire group in Embodiment 3 of the present invention;

图8为本发明实施例三中的使用动态聚合伪线组转发报文的流程示意图;FIG. 8 is a schematic flow diagram of forwarding a message using a dynamically aggregated pseudowire group in Embodiment 3 of the present invention;

图9为本发明实施例三中的动态聚合伪线组异常处理的流程示意图;FIG. 9 is a schematic flowchart of abnormal handling of dynamic aggregation pseudowire groups in Embodiment 3 of the present invention;

图10为本发明实施例三中的边缘路由器结构示意图。FIG. 10 is a schematic structural diagram of an edge router in Embodiment 3 of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例只是本发明中一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

实施例一:Embodiment one:

本实施例为了解决伪线PW转发路径上业务流量过大导致带宽超限,进而导致丢包的问题。在边缘路由器PE之间预先设置聚合伪线组,为了便于表述,下面分别称这两个PE为本端PE和对端PE,本端PE和对端PE之间有多条路径可达。本实施例在本端PE和对端PE上设置的聚合伪线组为:本端PE和对端PE预先设置的伪线集合,该伪线集合属于同一虚拟专用网实例(VPN),且该伪线集合中的各伪线成员之传输路径的源PE和目的PE分别为本端PE和对端PE,也即本端PE为业务报文的入口,对端PE为所述业务报文的出口。In this embodiment, the problem of excessive bandwidth caused by excessive service traffic on the forwarding path of the pseudowire PW, which in turn causes packet loss, is solved. An aggregated pseudowire group is pre-set between the edge router PEs. For the convenience of description, the two PEs are referred to as the local PE and the peer PE respectively. There are multiple paths between the local PE and the peer PE. In this embodiment, the aggregated pseudowire group set on the local PE and the peer PE is: the preset pseudowire set of the local PE and the peer PE, the pseudowire set belongs to the same virtual private network instance (VPN), and the The source PE and destination PE of the transmission path of each pseudowire member in the pseudowire set are the local PE and the peer PE respectively, that is, the local PE is the entrance of the service message, and the peer PE is the gateway of the service message. Export.

基于上述设置,当本端PE接收到来自该L2VPN用户设备CE的业务报文后,根据上述绑定关系选择对应的伪线聚合组,再根据用户的业务报文从聚合伪线组中的各伪线成员中选择一个作为目标伪线,进而通过该目标伪线将该业务报文转发给对端PE。这样本发明通过聚合伪线组中的各伪线成员灵活的共同承担来自CE的业务报文,相对现有根据业务类型绑定单条PW的情况,可以降低单条伪线的负载压力,在相同物理带宽下能更合理的承载更多流量,达到类似物理升级带宽的效果,但同时能降低成本,提升资源利用率。Based on the above settings, when the local PE receives service packets from the L2VPN user equipment CE, it selects the corresponding pseudowire aggregation group according to the One of the pseudowire members is selected as the target pseudowire, and then the service packet is forwarded to the peer PE through the target pseudowire. In this way, the present invention can flexibly share the service packets from CE through the pseudowire members in the aggregated pseudowire group. Compared with the existing situation of binding a single PW according to the service type, the load pressure of a single pseudowire can be reduced. The bandwidth can carry more traffic more reasonably, achieving the effect similar to physical upgrade bandwidth, but at the same time can reduce costs and improve resource utilization.

应当理解的是,本端PE和对端PE上配置的聚合伪线组可以包含本端PE和对端PE上配置的所有伪线,也可以仅包含本端PE和对端PE上配置的伪线的一部分。下面基于上述聚合伪线组的设置,以本端PE接收到业务报文的转发过程为示例进行说明。参见图2所示,包括:It should be understood that the aggregated PW group configured on the local PE and the peer PE may include all the pseudowires configured on the local PE and the peer PE, or only include the pseudo wires configured on the local PE and the peer PE. part of the line. Based on the above settings of the aggregated pseudowire group, the forwarding process of the service message received by the local PE is taken as an example to illustrate. See Figure 2, including:

S201:接收来自用户设备的业务报文。S201: Receive a service packet from a user equipment.

S202:根据业务报文内容在聚合伪线组中的各伪线成员中选择一个作为目标伪线。S202: Select one of the pseudowire members in the aggregated pseudowire group as the target pseudowire according to the content of the service message.

S203:通过目标伪线将该业务报文转发至对端PE。S203: Forward the service packet to the peer PE through the target pseudowire.

本实施例中在PE上配置的聚合伪线组可以包括静态(static)聚合伪线组和动态(dynamic)聚合伪线组中的至少一种。在配置静态聚合伪线组时,本端PE和对端PE之间不需要协商,而在配置动态聚合伪线组时需要本端PE和对端PE之间进行伪线成员协商。为了便于理解本发明,下面分别以动态聚合伪线组和静态聚合伪线组的配置过程为示例进行说明。The aggregated pseudowire group configured on the PE in this embodiment may include at least one of a static (static) aggregated pseudowire group and a dynamic (dynamic) aggregated pseudowire group. When configuring a static aggregated pseudowire group, no negotiation is required between the local PE and the peer PE. However, when configuring a dynamic aggregated pseudowire group, negotiation of pseudowire members is required between the local PE and the peer PE. In order to facilitate the understanding of the present invention, the configuration processes of the dynamic aggregated pseudowire group and the static aggregated pseudowire group are taken as examples for description below.

当本实施例中的聚合伪线组包括动态聚合伪线组,配置动态聚合伪线组的过程参见图3所示,包括:When the aggregated pseudowire group in this embodiment includes a dynamic aggregated pseudowire group, the process of configuring the dynamic aggregated pseudowire group is shown in Figure 3, including:

S301:接收动态伪线配置信息,并获取动态聚合属性信息。S301: Receive dynamic pseudowire configuration information, and acquire dynamic aggregation attribute information.

本实施例中的动态伪线配置信息中包含待配置伪线,该动态伪线配置信息可以是用户配置下发。The dynamic pseudowire configuration information in this embodiment includes the pseudowire to be configured, and the dynamic pseudowire configuration information may be configured and delivered by the user.

本实施例中动态聚合属性信息也可以是用户配置下发,或者基于配置过程中第一个加入动态聚合伪线组的伪线成员的属性信息获取。In this embodiment, the dynamic aggregation attribute information may also be delivered by user configuration, or acquired based on the attribute information of the first pseudowire member that joins the dynamic aggregation pseudowire group during the configuration process.

S302:将待配置伪线中与动态聚合属性信息匹配的伪线作为选中(selected)伪线加入动态聚合伪线组。S302: Add the pseudowires matching the dynamic aggregation attribute information among the pseudowires to be configured as selected (selected) pseudowires to the dynamic aggregation pseudowire group.

在本端PE进行上述配置过程中,对端PE也同样进行上述配置过程。When the local PE performs the above configuration process, the peer PE also performs the above configuration process.

S303:与对端PE协商,将本端PE动态聚合伪线组中与对端PE动态聚合伪线组中所共有的选中伪线作为伪线成员加入各自的动态聚合伪线组,并设置该伪线成员的工作状态。S303: Negotiate with the peer PE, add the selected pseudowires in the dynamic aggregation pseudowire group of the local PE and the peer PE dynamic aggregation pseudowire group as pseudowire members to the respective dynamic aggregation pseudowire groups, and set the The working status of the pseudowire member.

本实施例的动态聚合属性信息包括但不限于:伪线所属的聚合伪线组标识(聚合伪线组id)、伪线的目的PE地址(peer-ip)、伪线模式(pw-mode)为动态模式(dynamic)、伪线类型(pw-type)、伪线带宽以及伪线控制字(pw-class)。以上动态聚合属性信息可以由用户配置下发,也可以将第一个加入动态聚合伪线组的伪线成员的上述属性参数为基准确定为动态聚合属性信息。The dynamic aggregate attribute information in this embodiment includes, but is not limited to: the aggregated pseudowire group identifier (aggregated pseudowire group id) to which the pseudowire belongs, the destination PE address (peer-ip) of the pseudowire, and the pseudowire mode (pw-mode) It is dynamic mode (dynamic), pseudowire type (pw-type), pseudowire bandwidth and pseudowire control word (pw-class). The above dynamic aggregation attribute information can be delivered by user configuration, and can also be determined as the dynamic aggregation attribute information based on the above attribute parameters of the first pseudowire member that joins the dynamic aggregation pseudowire group.

上述S302中,对于各待配置伪线,只有其属性与上述动态聚合属性信息匹配(也即一致)的伪线,才会被设置为选中(selected)状态。且根据上述分析可知,本实施例中的动态聚合伪线组中的各伪线成员的pw-mode必须为dynamic,即只支持动态PW。In the above S302, for each pseudowire to be configured, only the pseudowire whose attribute matches (that is, is consistent with) the dynamic aggregation attribute information will be set to a selected (selected) state. And according to the above analysis, it can be seen that the pw-mode of each pseudowire member in the dynamically aggregated pseudowire group in this embodiment must be dynamic, that is, only dynamic PW is supported.

本实施例中,本端PE和对端PE之间的协商需要一方发起,实施例选择两个PE中IP地址大的一方发起,也即本端PE的IP地址大于对端PE的IP地址时,则由本端PE作为主动端,发起协商,对端PE作为被动端,反之,则对端PE作为主动端,发起协商,本端PE作为被动端。对于上述S302的协商过程,本实施例则以主动端(可能是本端PE,也可能是对端PE)和被动端(相应的可能是对端PE,也可能是本端PE)为示例进行说明。In this embodiment, the negotiation between the local PE and the peer PE needs to be initiated by one party. In this embodiment, the party with the larger IP address among the two PEs is selected to initiate the negotiation, that is, when the IP address of the local PE is greater than the IP address of the peer PE , the local PE acts as the active end to initiate the negotiation, and the peer PE acts as the passive end. Otherwise, the opposite end PE acts as the active end to initiate the negotiation, and the local PE acts as the passive end. For the negotiation process of S302 above, this embodiment takes the active end (which may be the local PE or the peer PE) and the passive end (which may be the peer PE or the local PE) as an example. illustrate.

主动端将待配置伪线中与动态聚合属性信息匹配的伪线作为选中(selected)伪线加入动态聚合伪线组后,将本端的动态聚合组中为选中状态的各伪线成员信息发给对端(可通过LDP协议报文进行协商);被动端收到后,将本端动态聚合伪线组中与主动端相同的各选中状态的伪线成员的工作状态设置为激活(active),并将这些伪线成员信息反馈给主动端,主动端收到之后与本端动态聚合组中的各伪线成员进行比较,根据对端设置为active的伪线成员,将本端与之相同的伪线也设置为active。之后主动端和被动端之间可以定时发送保活消息,进行状态保活。After the active end adds the pseudowires that match the dynamic aggregation attribute information among the pseudowires to be configured as selected pseudowires to the dynamic aggregation pseudowire group, it sends the member information of the selected pseudowires in the dynamic aggregation group at the local end to The opposite end (negotiation can be carried out through the LDP protocol message); after the passive end receives it, the working state of each selected pseudowire member in the dynamic aggregation pseudowire group of the local end is set to active (active), Feedback the information of these pseudowire members to the active end. After the active end receives it, it compares it with the pseudowire members in the dynamic aggregation group of the local end. Pseudowires are also set to active. After that, keep-alive messages can be sent regularly between the active end and the passive end to perform status keep-alive.

本实施例中,基于上述协商过程设置好动态聚合伪线组之后,还包括:In this embodiment, after the dynamic aggregation pseudowire group is set based on the above negotiation process, it also includes:

主动端或被动端检测到本端动态聚合伪线组的某一伪线成员的端口变化和/或状态异常时,将该伪线成员从动态聚合伪线组中去除,并通知对端PE将该伪线成员从对端的动态聚合伪线组中去除。本实施例中将伪线成员从动态聚合伪线中去除包括但不限于:将该伪线成员设置为unselected,并将该伪线成员的状态变为非激活(unactive)。When the active end or the passive end detects the port change and/or status abnormality of a PW member in the dynamic aggregation PW group at the local end, it removes the PW member from the dynamic aggregation PW group and notifies the peer PE to This pseudowire member is removed from the peer's dynamically aggregated pseudowire group. In this embodiment, removing a pseudowire member from a dynamically aggregated pseudowire includes, but is not limited to: setting the pseudowire member as unselected, and changing the status of the pseudowire member to inactive (unactive).

另外,本实施例中,还可以设置动态聚合伪线组自身的转发模式,该转发模式包括但不限于:主备转发模式和负荷分担模式。在主备转发模式下,动态聚合伪线组中的各伪线成员中,只有一个配置为主伪线,其他伪线为备伪线。在负荷分担模式下,动态聚合伪线组中的各伪线成员的工作状态只要为active,就可以进行流量转发。此时,上述S303中设置伪线成员的工作状态包括:In addition, in this embodiment, the forwarding mode of the dynamically aggregated pseudowire group itself can also be set, and the forwarding mode includes but is not limited to: active/standby forwarding mode and load sharing mode. In the active/standby forwarding mode, only one of the pseudowire members in the dynamically aggregated pseudowire group is configured as the active pseudowire, and the other pseudowires are the standby pseudowires. In the load sharing mode, as long as the working status of each pseudowire member in the dynamic aggregation pseudowire group is active, traffic can be forwarded. At this time, the working status of the pseudowire member set in the above S303 includes:

在主备转发模式下:如果当前添加的伪线成员为主伪线且其状态为UP,设置该伪线成员的工作状态为激活状态active;如果当前添加的伪线成员为备伪线且其状态为UP,设置该伪线成员为准备激活状态reactive;如果当前添加的伪线成员状态为异常,设置该伪线成员的工作状态为非激活状态unactive;In active-standby forwarding mode: if the currently added pseudowire member is the active pseudowire and its status is UP, set the working status of the pseudowire member to active; if the currently added pseudowire member is the standby pseudowire and its If the state is UP, set the pseudowire member to be active; if the status of the currently added pseudowire member is abnormal, set the working state of the pseudowire member to be inactive;

在负荷分担模式下:如果当前添加的为selected状态的伪线成员状态为UP,设置该伪线成员的工作状态为激活状态active;如果当前添加的所述伪线成员状态为异常(包括但不限于状态为down),设置该伪线成员的工作状态为非激活状态unactive。In load sharing mode: if the status of the currently added pseudowire member in the selected state is UP, set the working status of the pseudowire member to active status; if the status of the currently added pseudowire member is abnormal (including but not limited to down), set the working state of the pseudowire member to inactive.

聚合伪线组包括静态聚合伪线组时,设置静态聚合伪线组包括:When the aggregated pseudowire group includes a static aggregated pseudowire group, set the static aggregated pseudowire group to include:

本端PE接收静态伪线配置信息,并获取静态聚合属性信息;静态伪线配置信息中包含待配置伪线;本实施例中静态伪线配置信息也可以是用户配置下发,静态聚合属性信息可以与上述动态聚合属性信息相同。The local PE receives static pseudowire configuration information and obtains static aggregation attribute information; the static pseudowire configuration information includes the pseudowire to be configured; in this embodiment, the static pseudowire configuration information can also be delivered by user configuration, and the static aggregation attribute information It may be the same as the above dynamic aggregation attribute information.

将待配置伪线中与静态聚合属性信息匹配的伪线作为伪线成员加入静态聚合伪线组,并设置该伪线成员的工作状态。对应的,本实施例中的静态聚合属性信息包括但不限于:伪线所属的聚合伪线组标识(聚合伪线组id)、伪线的目的PE地址(peer-ip)、伪线模式(pw-mode)为静态模式(static)、伪线类型(pw-type)、伪线带宽以及伪线控制字(pw-class)。Add the pseudowire that matches the static aggregation attribute information among the pseudowires to be configured to the static aggregation pseudowire group as a pseudowire member, and set the working status of the pseudowire member. Correspondingly, the static aggregate attribute information in this embodiment includes, but is not limited to: the aggregated pseudowire group identifier (aggregated pseudowire group id) to which the pseudowire belongs, the destination PE address (peer-ip) of the pseudowire, and the pseudowire mode ( pw-mode) is a static mode (static), a pseudowire type (pw-type), a pseudowire bandwidth, and a pseudowire control word (pw-class).

对于静态聚合伪线组,设置伪线成员的工作状态也包括:For static aggregation pseudowire groups, setting the working status of pseudowire members also includes:

在主备转发模式下:如果当前添加的伪线成员为主伪线且其状态为UP,设置该伪线成员的工作状态为激活状态active;如果当前添加的伪线成员为备伪线且其状态为UP,设置该伪线成员为准备激活状态reactive;如果当前添加的伪线成员状态为异常,设置该伪线成员的工作状态为非激活状态unactive;In active-standby forwarding mode: if the currently added pseudowire member is the active pseudowire and its status is UP, set the working status of the pseudowire member to active; if the currently added pseudowire member is the standby pseudowire and its If the state is UP, set the pseudowire member to be active; if the status of the currently added pseudowire member is abnormal, set the working state of the pseudowire member to be inactive;

在负荷分担模式下:如果当前添加的为selected状态的伪线成员状态为UP,设置该伪线成员的工作状态为激活状态active;如果当前添加的所述伪线成员状态为异常(包括但不限于状态为down),设置该伪线成员的工作状态为非激活状态unactive。In load sharing mode: if the status of the currently added pseudowire member in the selected state is UP, set the working status of the pseudowire member to active status; if the status of the currently added pseudowire member is abnormal (including but not limited to down), set the working state of the pseudowire member to inactive.

本实施例中,本端PE收到来自CE的业务报文后,当本端PE设置有动态聚合伪线组和静态聚合伪线组时,根据该业务报文的转发路径,其可能在动态聚合伪线组和静态聚合伪线组中的任意一个聚合伪线组中选择一个伪线成员作为目标伪线,也可能采聚合伪线组之外的伪线进行该业务报文的转发。当在聚合伪线组或静态聚合伪线组中选择一个伪线成员作为目标伪线时,包括:In this embodiment, after the local PE receives a service packet from the CE, when the local PE is configured with a dynamic aggregated pseudowire group and a static aggregated pseudowire group, according to the forwarding path of the service packet, it may be dynamically Select a PW member in any one of the aggregated PW group and the static aggregated PW group as the target PW, and may also use a PW other than the aggregated PW group to forward the service message. When a pseudowire member is selected as the target pseudowire in an aggregated pseudowire group or a static aggregated pseudowire group, including:

在聚合伪线组为主备转发模式下,选择聚合伪线组中的主伪线作为目标伪线;In the active-standby forwarding mode of the aggregated pseudowire group, select the primary pseudowire in the aggregated pseudowire group as the target pseudowire;

在聚合伪线组为负荷分担模式下,根据业务报文中的用户vlan(Virtual LocalArea Network,虚拟局域网)或mac地址(物理地址)从聚合伪线组中的各工作状态为激活的伪线成员中选择一个作为目标伪线。本实施例中,具体可以根据业务报文的用户vlan或mac地址确定要业务报文的目的地址(还可确定源地址),根据目的地址(或结合源地址)为该业务报文选择一个伪线成员作为目标伪线,且对于具有相同目的地址的业务报文优选采用同一个伪线成员进行转发。When the aggregation pseudowire group is in load sharing mode, according to the user vlan (Virtual Local Area Network, virtual local area network) or mac address (physical address) in the service message, each working state in the aggregation pseudowire group is an active pseudowire member Select one of them as the target pseudowire. In this embodiment, the destination address of the service message (the source address can also be determined) can be determined specifically according to the user vlan or mac address of the service message, and a fake address can be selected for the service message according to the destination address (or in combination with the source address). The line member is used as the target pseudo-wire, and the same pseudo-wire member is preferably used for forwarding service packets with the same destination address.

本实施例中,还可设置动态聚合伪线组和/或静态聚合伪线组中actvie的伪线成员的最小数量min-number,当本端PE或对端PE监测到本地的动态聚合伪线组和/或静态聚合伪线组中actvie的伪线成员小于最小数量min-number时,将动态聚合伪线组和/或静态聚合伪线组的工作状态设置为down,此时动态聚合伪线组和/或静态聚合伪线组停止转发报文。本实施例中的min-number的具体值可以根据具体应用场景灵活设定,本实施例可以设置为1。In this embodiment, the minimum number min-number of pseudowire members of actvie in the dynamic aggregation pseudowire group and/or the static aggregation pseudowire group can also be set, when the local PE or peer PE monitors the local dynamic aggregation pseudowire When the pseudowire members of the actvie in the group and/or the static aggregation pseudowire group are less than the minimum number min-number, set the working status of the dynamic aggregation pseudowire group and/or the static aggregation pseudowire group to down. At this time, the dynamic aggregation pseudowire group and/or static aggregation pseudowire group stops forwarding packets. The specific value of min-number in this embodiment can be flexibly set according to specific application scenarios, and can be set to 1 in this embodiment.

本实施例提供的伪线分载转发方法可以通过聚合PW解决链路带宽不够的问题,且不需要进行物理带宽升级,一定程度上既能降低成本,又能提升资源利用率,还可以进行保护转发,能提升用户体验的满意度。The pseudowire load sharing and forwarding method provided in this embodiment can solve the problem of insufficient link bandwidth through aggregated PWs, and does not need to upgrade the physical bandwidth. To a certain extent, it can not only reduce costs, but also improve resource utilization, and can also protect Forwarding can improve user experience satisfaction.

实施例二:Embodiment two:

本实施例还提供了一种边缘路由器(PE,本实施例中该PE为本端PE),参见图4所示,包括:This embodiment also provides an edge router (PE, the PE in this embodiment is the local PE), as shown in FIG. 4 , including:

报文接收模块41,用于接收来自用户设备的业务报文;A message receiving module 41, configured to receive a service message from a user equipment;

伪线选择模块42,用于根据业务报文内容在聚合伪线组中的各伪线成员中选择一个作为目标伪线;该聚合伪线组为:本端PE和对端PE预先设置的属于同一虚拟专用网实例的伪线集合,该伪线集合中的各伪线成员之传输路径的源PE和目的PE分别为本端PE和对端PE,且本端PE和对端PE在所述业务报文的转发路径上,也即本端PE为业务报文的入口,对端PE为业务报文的出口。The pseudowire selection module 42 is configured to select one of the pseudowire members in the aggregated pseudowire group as a target pseudowire according to the content of the service message; For the pseudowire set of the same VPN instance, the source PE and destination PE of the transmission path of each pseudowire member in the pseudowire set are the local PE and the peer PE respectively, and the local PE and the peer PE are in the On the forwarding path of service packets, that is, the local PE is the ingress of the service packets, and the peer PE is the egress of the service packets.

报文转发模块43,用于通过目标伪线将业务报文转发至对端PE。应当理解的是,该业务报文转发路径的目的PE可能是上述对端PE,也可能不是上述对端PE。这样本发明通过聚合伪线组中的各伪线成员灵活的共同承担来自CE的业务报文,相对现有根据业务类型绑定单条PW的情况,可以降低单条伪线的负载压力,在相同物理带宽下能更合理的承载更多流量,达到类似物理升级带宽的效果,但同时能降低成本,提升资源利用率。The message forwarding module 43 is configured to forward the service message to the peer PE through the target pseudowire. It should be understood that the destination PE of the forwarding path of the service message may be the peer PE or may not be the peer PE. In this way, the present invention can flexibly share the service packets from CE through the pseudowire members in the aggregated pseudowire group. Compared with the existing situation of binding a single PW according to the service type, the load pressure of a single pseudowire can be reduced. The bandwidth can carry more traffic more reasonably, achieving the effect similar to physical upgrade bandwidth, but at the same time can reduce costs and improve resource utilization.

应当理解的是,本端PE和对端PE上配置的聚合伪线组可以包含本端PE和对端PE上配置的所有伪线,也可以仅包含本端PE和对端PE上配置的伪线的一部分。本实施例中在PE上配置的聚合伪线组可以包括静态(static)聚合伪线组和动态(dynamic)聚合伪线组中的至少一种。在配置静态聚合伪线组时,本端PE和对端PE之间不需要协商,而在配置动态聚合伪线组时需要本端PE和对端PE之间进行伪线成员协商。为了便于理解本发明,下面分别以动态聚合伪线组和静态聚合伪线组的配置过程为示例进行说明。It should be understood that the aggregated PW group configured on the local PE and the peer PE may include all the pseudowires configured on the local PE and the peer PE, or only include the pseudo wires configured on the local PE and the peer PE. part of the line. The aggregated pseudowire group configured on the PE in this embodiment may include at least one of a static (static) aggregated pseudowire group and a dynamic (dynamic) aggregated pseudowire group. When configuring a static aggregated pseudowire group, no negotiation is required between the local PE and the peer PE. However, when configuring a dynamic aggregated pseudowire group, negotiation of pseudowire members is required between the local PE and the peer PE. In order to facilitate the understanding of the present invention, the configuration processes of the dynamic aggregated pseudowire group and the static aggregated pseudowire group are taken as examples for description below.

聚合伪线组包括静态聚合伪线组时,参见图5所示,PE还包括静态聚合伪线组配置模块44,用于接收静态伪线配置信息,并获取静态聚合属性信息;静态伪线配置信息中包含待配置伪线;静态聚合伪线组配置模块44还用于将待配置伪线中与静态聚合属性信息匹配的伪线作为伪线成员加入静态聚合伪线组,并设置该伪线成员的工作状态。本实施例中的静态聚合属性信息包括但不限于:伪线所属的聚合伪线组标识(聚合伪线组id)、伪线的目的PE地址(peer-ip)、伪线模式(pw-mode)为静态模式(static)、伪线类型(pw-type)、伪线带宽以及伪线控制字(pw-class)。When the aggregated pseudowire group includes a static aggregated pseudowire group, as shown in FIG. 5, the PE also includes a static aggregated pseudowire group configuration module 44, which is used to receive static pseudowire configuration information and obtain static aggregated attribute information; static pseudowire configuration The information includes pseudowires to be configured; the static aggregation pseudowire group configuration module 44 is also used to add the pseudowires that match the static aggregation attribute information in the pseudowires to be configured to the static aggregation pseudowire group as pseudowire members, and set the pseudowires Member's job status. The static aggregation attribute information in this embodiment includes but is not limited to: the aggregation pseudowire group identifier (aggregation pseudowire group id) to which the pseudowire belongs, the destination PE address (peer-ip) of the pseudowire, the pseudowire mode (pw-mode ) is a static mode (static), a pseudowire type (pw-type), a pseudowire bandwidth, and a pseudowire control word (pw-class).

另外,本实施例中,还可以设置静态聚合伪线组自身的转发模式,该转发模式包括但不限于:主备转发模式和负荷分担模式。在主备转发模式下,静态聚合伪线组中的各伪线成员中,只有一个配置为主伪线,其他伪线为备伪线。在负荷分担模式下,静态聚合伪线组中的各伪线成员的工作状态只要为active,就可以进行流量转发。此时,静态聚合伪线组配置模块44设置伪线成员的工作状态包括:In addition, in this embodiment, the forwarding mode of the static aggregation pseudowire group itself can also be set, and the forwarding mode includes but not limited to: active/standby forwarding mode and load sharing mode. In the active-standby forwarding mode, among the pseudowire members in the static aggregation pseudowire group, only one is configured as the active pseudowire, and the other pseudowires are the standby pseudowires. In load sharing mode, as long as the working status of each pseudowire member in the static aggregation pseudowire group is active, traffic can be forwarded. At this point, the static aggregation pseudowire group configuration module 44 sets the working status of the pseudowire members to include:

在主备转发模式下:如果当前添加的伪线成员为主伪线且其状态为UP,设置该伪线成员的工作状态为激活状态active;如果当前添加的伪线成员为备伪线且其状态为UP,设置该伪线成员为准备激活状态reactive;如果当前添加的伪线成员状态为异常,设置该伪线成员的工作状态为非激活状态unactive;In active-standby forwarding mode: if the currently added pseudowire member is the active pseudowire and its status is UP, set the working status of the pseudowire member to active; if the currently added pseudowire member is the standby pseudowire and its If the state is UP, set the pseudowire member to be active; if the status of the currently added pseudowire member is abnormal, set the working state of the pseudowire member to be inactive;

在负荷分担模式下:如果当前添加的为selected状态的伪线成员状态为UP,设置该伪线成员的工作状态为激活状态active;如果当前添加的所述伪线成员状态为异常(包括但不限于状态为down),设置该伪线成员的工作状态为非激活状态unactive。In load sharing mode: if the status of the currently added pseudowire member in the selected state is UP, set the working status of the pseudowire member to active status; if the status of the currently added pseudowire member is abnormal (including but not limited to down), set the working state of the pseudowire member to inactive.

仍参见图5所示,聚合伪线组包括动态聚合伪线组时,PE还包括动态聚合伪线组配置模块45,用于接收包含待配置伪线的动态伪线配置信息,并获取动态聚合属性信息;动态聚合伪线组配置模块45还用于将待配置伪线中与动态聚合属性信息匹配的伪线作为选中伪线加入动态聚合伪线组,并与对端PE协商,将本端PE动态聚合伪线组中与对端PE动态聚合伪线组中所共有的选中伪线作为伪线成员加入各自的动态聚合伪线组,并设置该伪线成员的工作状态。Still referring to FIG. 5 , when the aggregated pseudowire group includes a dynamic aggregated pseudowire group, the PE also includes a dynamic aggregated pseudowire group configuration module 45, configured to receive dynamic pseudowire configuration information that includes a pseudowire to be configured, and obtain a dynamic aggregated pseudowire group configuration module 45. Attribute information; the dynamic aggregation pseudowire group configuration module 45 is also used to add the pseudowire that matches the dynamic aggregation attribute information among the pseudowires to be configured into the dynamic aggregation pseudowire group as a selected pseudowire, and negotiate with the opposite end PE, and the local end The selected pseudowires shared by the PE dynamic aggregation pseudowire group and the peer PE dynamic aggregation pseudowire group are added to their respective dynamic aggregation pseudowire groups as pseudowire members, and the working status of the pseudowire members is set.

本实施例中动态伪线配置信息可以是用户配置下发。本实施例中动态聚合属性信息也可以是用户配置下发,或者动态聚合伪线组配置模块45基于配置过程中第一个加入动态聚合伪线组的伪线成员的属性信息获取。In this embodiment, the dynamic pseudowire configuration information may be delivered by user configuration. In this embodiment, the dynamic aggregation attribute information may also be delivered by user configuration, or the dynamic aggregation pseudowire group configuration module 45 may obtain it based on the attribute information of the first pseudowire member that joins the dynamic aggregation pseudowire group during the configuration process.

本实施例的动态聚合属性信息包括但不限于:伪线所属的聚合伪线组标识(聚合伪线组id)、伪线的目的PE地址(peer-ip)、伪线模式(pw-mode)为动态模式(dynamic)、伪线类型(pw-type)、伪线带宽以及伪线控制字(pw-class)。以上动态聚合属性信息可以由用户配置下发,也可以将第一个加入动态聚合伪线组的伪线成员的上述属性参数为基准确定为动态聚合属性信息。The dynamic aggregate attribute information in this embodiment includes, but is not limited to: the aggregated pseudowire group identifier (aggregated pseudowire group id) to which the pseudowire belongs, the destination PE address (peer-ip) of the pseudowire, and the pseudowire mode (pw-mode) It is dynamic mode (dynamic), pseudowire type (pw-type), pseudowire bandwidth and pseudowire control word (pw-class). The above dynamic aggregation attribute information can be delivered by user configuration, and can also be determined as the dynamic aggregation attribute information based on the above attribute parameters of the first pseudowire member that joins the dynamic aggregation pseudowire group.

对于各待配置伪线,只有其属性与上述动态聚合属性信息匹配(也即一致)的伪线,才会被设置为选中(selected)状态。且根据上述分析可知,本实施例中的动态聚合伪线组中的各伪线成员的pw-mode必须为dynamic,即只支持动态PW。For each pseudowire to be configured, only the pseudowire whose attribute matches (that is, is consistent with) the dynamic aggregation attribute information will be set to a selected (selected) state. And according to the above analysis, it can be seen that the pw-mode of each pseudowire member in the dynamically aggregated pseudowire group in this embodiment must be dynamic, that is, only dynamic PW is supported.

本实施例中,本端PE和对端PE之间的协商需要一方发起,实施例选择两个PE中IP地址大的一方发起,也即本端PE的IP地址大于对端PE的IP地址时,则由本端PE作为主动端,发起协商,对端PE作为被动端,反之,则对端PE作为主动端,发起协商,本端PE作为被动端。对于上述协商过程,本实施例则以主动端(可能是本端PE,也可能是对端PE)和被动端(相应的可能是对端PE,也可能是本端PE)为示例进行说明。In this embodiment, the negotiation between the local PE and the peer PE needs to be initiated by one party. In this embodiment, the party with the larger IP address among the two PEs is selected to initiate the negotiation, that is, when the IP address of the local PE is greater than the IP address of the peer PE , the local PE acts as the active end to initiate the negotiation, and the peer PE acts as the passive end. Otherwise, the opposite end PE acts as the active end to initiate the negotiation, and the local PE acts as the passive end. For the above negotiation process, this embodiment takes the active end (which may be the local PE or the peer PE) and the passive end (which may be the peer PE or the local PE) as examples for illustration.

主动端的动态聚合伪线组配置模块将待配置伪线中与动态聚合属性信息匹配的伪线作为选中(selected)伪线加入动态聚合伪线组后,将本端的动态聚合组中为选中状态的各伪线成员信息发给对端(可通过LDP协议报文进行协商);被动端的动态聚合伪线组配置模块收到后,将本端动态聚合伪线组中与主动端相同的各选中状态的伪线成员的工作状态设置为激活(active),并将这些伪线成员信息反馈给主动端,主动端的动态聚合伪线组配置模块收到之后与本端动态聚合组中的各伪线成员进行比较,根据对端设置为active的伪线成员,将本端与之相同的伪线也设置为active。之后主动端和被动端之间可以定时发送保活消息,进行状态保活。The dynamic aggregation pseudowire group configuration module of the active end adds the pseudowires that match the dynamic aggregation attribute information among the pseudowires to be configured as selected (selected) pseudowires to the dynamic aggregation pseudowire group, and then selects the selected pseudowires in the dynamic aggregation group of the local end. The member information of each pseudowire is sent to the opposite end (negotiation can be carried out through the LDP protocol message); after the dynamic aggregation pseudowire group configuration module of the passive end receives it, each selected state in the dynamic aggregation pseudowire group of the local end is the same as that of the active end The working status of the pseudowire members is set to active (active), and the information of these pseudowire members is fed back to the active end. For comparison, set the same pseudowire member at the local end as active according to the pseudowire member set as active at the peer end. After that, keep-alive messages can be sent regularly between the active end and the passive end to perform status keep-alive.

对于动态聚合伪线组,动态聚合伪线组配置模块45设置伪线成员的工作状态也包括:For the dynamic aggregation pseudowire group, the working state of the dynamic aggregation pseudowire group configuration module 45 setting pseudowire members also includes:

在主备转发模式下:如果当前添加的伪线成员为主伪线且其状态为UP,设置该伪线成员的工作状态为激活状态active;如果当前添加的伪线成员为备伪线且其状态为UP,设置该伪线成员为准备激活状态reactive;如果当前添加的伪线成员状态为异常,设置该伪线成员的工作状态为非激活状态unactive;In active-standby forwarding mode: if the currently added pseudowire member is the active pseudowire and its status is UP, set the working status of the pseudowire member to active; if the currently added pseudowire member is the standby pseudowire and its If the state is UP, set the pseudowire member to be active; if the status of the currently added pseudowire member is abnormal, set the working state of the pseudowire member to be inactive;

在负荷分担模式下:如果当前添加的为selected状态的伪线成员状态为UP,设置该伪线成员的工作状态为激活状态active;如果当前添加的所述伪线成员状态为异常(包括但不限于状态为down),设置该伪线成员的工作状态为非激活状态unactive。In load sharing mode: if the status of the currently added pseudowire member in the selected state is UP, set the working status of the pseudowire member to active status; if the status of the currently added pseudowire member is abnormal (including but not limited to down), set the working state of the pseudowire member to inactive.

本实施例中,PE还包括成员更新模块46,参见图6所示。成员更新模块46用于基于上述协商过程设置好动态聚合伪线组之后,检测到本端PE动态聚合伪线组的某一伪线成员的端口变化和/或状态异常时,将该伪线成员从动态聚合伪线组中去除,并通知对端PE将该伪线成员从对端的动态聚合伪线组中去除。本实施例中成员更新模块46将伪线成员从动态聚合伪线中去除包括但不限于:将该伪线成员设置为unselected,并将该伪线成员的状态变为非激活(unactive)。In this embodiment, the PE also includes a member updating module 46, as shown in FIG. 6 . The member update module 46 is configured to set up the dynamic aggregation pseudowire group based on the above-mentioned negotiation process, and when the port change and/or status of a certain pseudowire member of the local PE dynamic aggregation pseudowire group is detected to be abnormal, the pseudowire member Remove it from the dynamic aggregation pseudowire group, and notify the peer PE to remove the pseudowire member from the dynamic aggregation pseudowire group of the peer end. In this embodiment, the member update module 46 removes the pseudowire member from the dynamically aggregated pseudowires, including but not limited to: setting the pseudowire member as unselected, and changing the status of the pseudowire member to inactive.

仍参见图6所示,本实施例中的PE还可包括聚合组状态监测模块47,用于设置动态聚合伪线组和/或静态聚合伪线组中actvie的伪线成员的最小数量min-number,当监测到本端PE的动态聚合伪线组和/或静态聚合伪线组中actvie的伪线成员小于最小数量min-number时,将动态聚合伪线组和/或静态聚合伪线组的工作状态设置为down,此时动态聚合伪线组和/或静态聚合伪线组停止转发报文。本实施例中的min-number的具体值可以根据具体应用场景灵活设定,本实施例可以设置为1。Still referring to FIG. 6, the PE in this embodiment may also include an aggregation group state monitoring module 47, which is used to set the minimum number min- number, when it is detected that the pseudo-wire members of the dynamic aggregation pseudo-wire group and/or the static aggregation pseudo-wire group of the local PE are less than the minimum number min-number, the dynamic aggregation pseudo-wire group and/or the static aggregation pseudo-wire group The working state of the group is set to down, and the dynamic aggregation pseudowire group and/or the static aggregation pseudowire group stop forwarding packets. The specific value of min-number in this embodiment can be flexibly set according to specific application scenarios, and can be set to 1 in this embodiment.

实施例中的上述各模块的功能可以通过路由器内部的控制器或处理实现。且本领域的技术人员应该明白,上述本发明实施例的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在计算机存储介质(ROM/RAM、磁碟、光盘)中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。所以,本发明不限制于任何特定的硬件和软件结合。The functions of the above modules in the embodiments may be implemented by a controller or processing inside the router. And those skilled in the art should understand that each module or each step of the above-mentioned embodiments of the present invention can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network composed of multiple computing devices Alternatively, they can be implemented with program codes executable by a computing device, so that they can be stored in a computer storage medium (ROM/RAM, magnetic disk, optical disk) to be executed by a computing device, and in some In some cases, the steps shown or described may be performed in a different order than here, or they may be implemented as individual integrated circuit modules, or multiple modules or steps thereof may be implemented as a single integrated circuit module. Therefore, the present invention is not limited to any specific combination of hardware and software.

实施例三:Embodiment three:

为了便于理解本发明,本实施例以图1所示的组网场景为示例对本发明做进一步示例说明。In order to facilitate understanding of the present invention, this embodiment further illustrates the present invention by taking the networking scene shown in FIG. 1 as an example.

在图1的网络中部署基本的MPLS L2VPN网络,选用RSVP TE(ResourceReSerVation Protocol-Traffic Engineering)协议来部署隧道,分配外层标签,形成数据转发路径。伪线PW通过LDP协议建链,分配内层标签。假设用户CE1和CE4均需与CE2进行通信,中间经过骨干网设备PE1、P和PE2,通过PE1、PE2之间的L2VPN网络,形成专属的私有网络通道。Deploy a basic MPLS L2VPN network in the network shown in Figure 1, use the RSVP TE (ResourceReSerVation Protocol-Traffic Engineering) protocol to deploy tunnels, distribute outer labels, and form data forwarding paths. The pseudowire PW establishes a link through the LDP protocol and assigns inner labels. Assume that users CE1 and CE4 need to communicate with CE2 through the backbone network devices PE1, P and PE2, and through the L2VPN network between PE1 and PE2 to form a dedicated private network channel.

如果用户CE1和CE4的业务量很大,通信流量占用了大量的带宽,在PE1-P-PE2链路上,带宽越限,出现丢包的现象,严重影响了用户的网络使用行为。因此需要在骨干网上增加沿路带宽。本实施例基于上述各实施例的方案介绍一种PW的负荷分担方式,可以有效解决这种问题,不需要增加物理链路。此外该方法还有保护PW的作用,下面示例说明如下:If the traffic of users CE1 and CE4 is heavy and the communication traffic occupies a large amount of bandwidth, the bandwidth exceeds the limit on the PE1-P-PE2 link, causing packet loss, which seriously affects the network usage behavior of users. Therefore, it is necessary to increase the bandwidth along the backbone network. This embodiment introduces a PW load sharing mode based on the solutions of the foregoing embodiments, which can effectively solve this problem without adding physical links. In addition, this method also protects the PW. The following example illustrates it as follows:

在L2VPN网络中,两个PE之间建立两条伪线PW1、PW2,将这两条PW绑定在聚合PW组中,聚合PW组用pw-group表示,两条PW均是pw-group的成员,PW1和PW2的路径可以不同。如图1所示,假设在PE1和PE2之间建立L2VPN,实现CE1CE4CE2之间的通信。PW1的路径可通过tunnel隧道选择PE1-P-PE2,PW2的路径选择PE1-PE3-PE2,在PE1和PE2设备上均配置pw-group,将两条PW聚合成一个PW组。在pw-group内,两条PW实现负荷分担,降低了单条链路的负载压力。In the L2VPN network, two pseudowires PW1 and PW2 are established between two PEs, and these two PWs are bound in an aggregated PW group. The aggregated PW group is represented by pw-group, and the two PWs belong to the pw-group. Members, the paths of PW1 and PW2 can be different. As shown in Figure 1, assume that an L2VPN is established between PE1 and PE2 to implement communication between CE1CE4CE2. The path of PW1 can be selected from PE1-P-PE2 through the tunnel, and the path of PW2 can be selected from PE1-PE3-PE2. Configure pw-group on both PE1 and PE2 to aggregate the two PWs into a PW group. In a pw-group, two PWs implement load sharing, which reduces the load pressure on a single link.

根据上述实施例的介绍可知,Pw-group分为动态dynamic和静态static两种聚合方式,静态方式不需要协议协商,动态方式需协议协商成员PW的状态。成员PW的状态有三种,一种是active,一种是unactive,还有一种是专用于保护模式(也即主备转发模式)下的备PW的,用reactive表示。对于静态聚合,当PW本身处于up状态,并且本地PW是selected,pw-group下的成员PW即为active,当PW处于异常状态,则成员PW处于unactive状态。动态聚合方式下,成员PW的状态通过协议进行协商。According to the introduction of the above embodiment, it can be seen that Pw-group is divided into dynamic dynamic and static static aggregation methods. The static method does not require protocol negotiation, and the dynamic method requires protocol negotiation on the state of member PWs. There are three states of the member PW, one is active, one is inactive, and the other is dedicated to the standby PW in the protection mode (that is, the active-standby forwarding mode), which is represented by reactive. For static aggregation, when the PW itself is in the up state and the local PW is selected, the member PWs under the pw-group are active. When the PWs are in the abnormal state, the member PWs are in the inactive state. In dynamic aggregation mode, the status of member PWs is negotiated through the protocol.

且应当理解的是,Pw-group下,可以增加成员PW,实现多条PW的分担方式。还可以配置成员最小值。当成员PW处于active下个数小于最小值,则pw-group状态为down,聚合PW不进行流量转发。And it should be understood that, under the Pw-group, member PWs can be added to realize the sharing mode of multiple PWs. Member minimums can also be configured. When the number of active member PWs is less than the minimum value, the pw-group status is down, and the aggregated PWs do not forward traffic.

Pw-group的转发方式可以分为两种,一种是负荷分担模式,一种是主备转发模式。负荷分担模式下,每个成员PW都可以进行流量转发,主备转发模式下,只有一条PW处于转发状态下,其他PW是备用状态,因此该模式下的伪线成员可以仅配置两个。The forwarding mode of Pw-group can be divided into two types, one is the load sharing mode, and the other is the active/standby forwarding mode. In load sharing mode, each member PW can forward traffic. In active-standby forwarding mode, only one PW is in the forwarding state, and the other PWs are in the standby state. Therefore, only two pseudowire members can be configured in this mode.

Pw-group的负荷分担方式有两种,一种是基于用户vlan进行分担转发,一种是基于mac地址进行分担转发。There are two load sharing methods for Pw-group, one is based on user VLAN for sharing and forwarding, and the other is based on mac address for sharing and forwarding.

通过本实施例中边缘路由器的内部组成参见图10所示。下面以Pw-group动态聚合的过程,且以PE1为本端PE,PE2为对端PE为示例进行说明,参见图7所示包括:Refer to FIG. 10 for the internal composition of the edge router in this embodiment. The following uses the process of Pw-group dynamic aggregation, and takes PE1 as the local PE and PE2 as the remote PE as an example to illustrate, as shown in Figure 7:

S701:选择主动端和被动端,设备本端PE的IP地址和对端PE的IP地址选举,判断本端IP地址是否大于对端IP地址,如是,转至S702,否则,转至S704。S701: Select the active end and the passive end, select the IP address of the local PE and the IP address of the peer PE, and determine whether the local IP address is greater than the peer IP address, if so, go to S702, otherwise, go to S704.

S702:本端PE获取动态聚合伪线组属性消息,从待配置伪线中选择出匹配的伪线成员设置为selected。S702: The local PE obtains the dynamic aggregation pseudowire group attribute message, selects a matching pseudowire member from the pseudowires to be configured, and sets it as selected.

S703:本端PE发送协商报文给对端PE,等待对端回复协商报文,如果对端在一段时间内未作回复,会重新发送协商报文,转至S706。S703: The local PE sends a negotiation message to the peer PE, and waits for the peer to reply the negotiation message. If the peer does not reply within a period of time, it will resend the negotiation message, and go to S706.

S704:对端PE获取动态聚合伪线组属性消息,从待配置伪线中选择出匹配的伪线成员设置为selected。S704: The peer PE acquires the dynamic aggregation pseudowire group attribute message, selects a matching pseudowire member from the pseudowires to be configured, and sets it as selected.

S705:对端PE发送协商报文给本端PE,等待对端回复协商报文,如果对端在一段时间内未作回复,会重新发送协商报文,转至S706。S705: The peer PE sends a negotiation message to the local PE, and waits for the peer to reply to the negotiation message. If the peer does not reply within a period of time, it will resend the negotiation message, and go to S706.

S706:判断本端PE和对端PE的统一PW成员是否都是selected,如是,转至S707;否则,转至S710。S706: Determine whether the unified PW members of the local PE and the remote PE are all selected, if yes, go to S707; otherwise, go to S710.

S707:判断本端PE和对端PE的统一PW成员状态是否都是UP,如是,转至S708;否则,转至S710。S707: Determine whether the unified PW member states of the local PE and the remote PE are both UP, and if yes, go to S708; otherwise, go to S710.

S708:将该伪线成员工作状态设置为active。S708: Set the working state of the pseudowire member to active.

S709:判断Pw-group中工作状态设置为active的伪线成员数量是否小于min-number,如是,转至S711,否则,转至S712。S709: Judging whether the number of pseudowire members whose working state is set to active in the Pw-group is less than the min-number, if yes, go to S711, otherwise, go to S712.

S710:设置伪线为active,返回S706判断下一伪线成员。S710: Set the pseudo-wire as active, and return to S706 to determine the next pseudo-wire member.

S711:Pw-group的状态设置为down。S711: The state of the Pw-group is set to down.

S712:Pw-group的状态设置为up。S712: The state of the Pw-group is set to up.

对于Pw-group的静态聚合与上述过程相比,不存在协议协商的过程,成员PW添加至pw-group之后,只要PW是up的,即可进行流量转发。Compared with the above process, there is no protocol negotiation process for the static aggregation of Pw-group. After the member PW is added to the pw-group, as long as the PW is up, traffic can be forwarded.

pw-group下可以配置最小active的PW数量,当PW的active状态的数量小于min-number,pw-group报down,聚合组停止转发流量。默认min-number的值为1。The minimum number of active PWs can be configured under the pw-group. When the number of active PWs is less than the min-number, the pw-group reports down, and the aggregation group stops forwarding traffic. The default value of min-number is 1.

基于图7所示的的过程设置好pw-group后,PE使用该pw-group进行转发的过程参见图8所示,包括:After the pw-group is set based on the process shown in Figure 7, the PE forwarding process using the pw-group is shown in Figure 8, including:

S801:判断pw-group的状态是否是UP,如果是down,转至S802,否则转至S803。S801: Determine whether the state of the pw-group is UP, if it is down, go to S802, otherwise go to S803.

S802:禁止流量转发。S802: Forbid traffic forwarding.

S803:判断pw-group转发功能是否开启,如否,转至S802,否则,转至S804。S803: Determine whether the pw-group forwarding function is enabled, if not, go to S802, otherwise, go to S804.

S804:判断pw-group的工作模式是否是主备转发模式,如是,转至S805;否则,转至S806。S804: Determine whether the working mode of the pw-group is the active/standby forwarding mode, if yes, go to S805; otherwise, go to S806.

S805:选择pw-group的主伪线作为目标伪线转发流量。S805: Select the main pseudowire of the pw-group as the target pseudowire to forward traffic.

S806:判断负载分担方式是否是基于源/目的mac地址,如是,转至S807,否则,转至S808;S806: Determine whether the load sharing method is based on the source/destination mac address, if so, go to S807, otherwise, go to S808;

S807:按照mac地址不同的报文从不同PW进行转发的原则选一个伪线成员作为目标伪线进行转发。S807: Select a PW member as a target PW according to the principle of forwarding packets with different mac addresses from different PWs.

S808:按照vlan不同的报文从不同PW进行转发的原则选一个伪线成员作为目标伪线进行转发。S808: Select a pseudowire member as the target pseudowire to forward according to the principle that packets of different VLANs are forwarded from different PWs.

对于pw-group成员异常处理过程参见图9所示,包括:Refer to Figure 9 for the exception handling process of pw-group members, including:

步S901:接收到异常情况。Step S901: Abnormal situation is received.

S902:判断异常是否为成员PW报down,如是,转至S903;否则,转至S905。S902: Determine whether the abnormality is that the member PW reports down, if yes, go to S903; otherwise, go to S905.

S903:将该PW成员设置为unactive。S903: Set the PW member as inactive.

S904:关闭该PW成员的转发功能,转至S909。S904: Turn off the forwarding function of the PW member, and go to S909.

S905:表明该PW成员被移除,将该PW成员报down。S905: Indicate that the PW member is removed, and report the PW member as down.

S906:从pw-group中移除该PW成员下的转发出口,关闭该PW成员转发功能,转至S909。S906: Remove the forwarding egress under the PW member from the pw-group, close the forwarding function of the PW member, and go to S909.

S907:对端PE检测到该PW成员状态为down,将PW状态设置为unactive。S907: The peer PE detects that the PW member state is down, and sets the PW state to inactive.

S908:关闭该PW成员的转发功能,转至S909。S908: Turn off the forwarding function of the PW member, and go to S909.

S909:检查本地pw-group中的PW成员为active的个数是否小于min-number,如是,转至S911,否则,转至S910。S909: Check whether the number of active PW members in the local pw-group is less than the min-number, if yes, go to S911, otherwise, go to S910.

S910:继续转发数据报文。S910: Continue to forward the data packet.

S911:将pw-group设置为down,关闭转发。S911: Set pw-group to down, and disable forwarding.

本实施例解决了当链路带宽不够,从软件上扩展沿路带宽的问题,可以节省资源,还可以保护转发链路。This embodiment solves the problem of extending the bandwidth along the path from the software when the link bandwidth is insufficient, which can save resources and protect the forwarding link.

以上内容是结合具体的实施方式对本发明实施例所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。The above content is a further detailed description of the embodiments of the present invention in conjunction with specific implementation modes, and it cannot be assumed that the specific implementation of the present invention is limited to these descriptions. For those of ordinary skill in the technical field of the present invention, without departing from the concept of the present invention, some simple deduction or replacement can be made, which should be regarded as belonging to the protection scope of the present invention.

Claims (11)

1.一种伪线分载转发方法,包括:1. A pseudowire offload forwarding method, comprising: 接收来自用户设备的业务报文;receiving service packets from user equipment; 根据所述业务报文在聚合伪线组中的各伪线成员中选择一个作为目标伪线;所述聚合伪线组为:本端边缘路由器和对端边缘路由器预先设置的属于同一虚拟专用网实例的伪线集合,该伪线集合中的各伪线成员之传输路径的源边缘路由器和目的边缘路由器分别为本端边缘路由器和对端边缘路由器,且本端边缘路由器为所述业务报文的入口,对端边缘路由器为所述业务报文的出口;According to the service message, one of the pseudowire members in the aggregated pseudowire group is selected as the target pseudowire; the aggregated pseudowire group is: the edge router at the local end and the edge router at the opposite end are preset to belong to the same virtual private network The pseudowire set of the instance, the source edge router and the destination edge router of the transmission path of each pseudowire member in the pseudowire set are the local edge router and the peer edge router respectively, and the local edge router is the The entrance of the opposite edge router is the exit of the service message; 通过所述目标伪线将所述业务报文转发至所述对端边缘路由器。Forwarding the service packet to the peer edge router through the target pseudowire. 2.如权利要求1所述的伪线分载转发方法,其特征在于,所述聚合伪线组包括静态聚合伪线组;设置静态聚合伪线组包括:2. The pseudowire load sharing and forwarding method according to claim 1, wherein the aggregated pseudowire group comprises a static aggregated pseudowire group; setting the static aggregated pseudowire group comprises: 接收静态伪线配置信息,并获取静态聚合属性信息;所述静态伪线配置信息中包含待配置伪线;receiving static pseudowire configuration information, and obtaining static aggregation attribute information; the static pseudowire configuration information includes a pseudowire to be configured; 将所述待配置伪线中与所述静态聚合属性信息匹配的伪线作为伪线成员加入静态聚合伪线组,并设置该伪线成员的工作状态。Adding the pseudowires matching the static aggregation attribute information among the pseudowires to be configured as pseudowire members to the static aggregation pseudowire group, and setting the working status of the pseudowire members. 3.如权利要求2所述的伪线分载转发方法,其特征在于,所述静态聚合属性信息包括:伪线所属的聚合伪线组标识、伪线的目的边缘路由器地址、伪线模式为静态模式、伪线类型、伪线带宽以及伪线控制字。3. The pseudowire offloading and forwarding method according to claim 2, wherein the static aggregation attribute information includes: the aggregation pseudowire group identification to which the pseudowire belongs, the destination edge router address of the pseudowire, and the pseudowire mode of Static mode, pseudowire type, pseudowire bandwidth, and pseudowire control word. 4.如权利要求1所述的伪线分载转发方法,其特征在于,所述聚合伪线组包括动态聚合伪线组,设置动态聚合伪线组包括:4. The pseudowire load sharing and forwarding method according to claim 1, wherein the aggregated pseudowire group comprises a dynamic aggregated pseudowire group, and setting the dynamic aggregated pseudowire group comprises: 接收动态伪线配置信息,并获取动态聚合属性信息,所述动态伪线配置信息中包含待配置伪线;receiving dynamic pseudowire configuration information, and acquiring dynamic aggregation attribute information, where the dynamic pseudowire configuration information includes a pseudowire to be configured; 将所述待配置伪线中与所述动态聚合属性信息匹配的伪线作为选中伪线加入动态聚合伪线组;adding a pseudowire matching the dynamic aggregation attribute information among the pseudowires to be configured to a dynamic aggregation pseudowire group as a selected pseudowire; 与对端边缘路由器协商,将本端边缘路由器动态聚合伪线组中与对端边缘路由器动态聚合伪线组中所共有的选中伪线作为伪线成员加入各自的动态聚合伪线组,并设置该伪线成员的工作状态。Negotiate with the peer edge router to add the selected pseudowires shared by the dynamic aggregation pseudowire group of the local edge router and the dynamic aggregation pseudowire group of the peer edge router as pseudowire members to their respective dynamic aggregation pseudowire groups, and set The working status of this pseudowire member. 5.如权利要求4所述的伪线分载转发方法,其特征在于,设置动态聚合伪线组还包括:5. The pseudowire load-sharing and forwarding method according to claim 4, wherein setting the dynamically aggregated pseudowire group also includes: 检测到所述动态聚合伪线组的某一伪线成员的端口变化和/或状态异常时,将该伪线成员从所述动态聚合伪线组中去除,并通知对端边缘路由器将所述伪线成员从对端的动态聚合伪线组中去除。When it is detected that the port change and/or state of a pseudowire member of the dynamic aggregation pseudowire group is abnormal, the pseudowire member is removed from the dynamic aggregation pseudowire group, and the peer edge router is notified to transfer the Pseudowire members are removed from the peer's dynamically aggregated pseudowire group. 6.如权利要求4所述的伪线分载转发方法,其特征在于,所述动态聚合属性信息包括:伪线所属的聚合伪线组标识、伪线的目的边缘路由器地址、伪线模式为动态模式、伪线类型、伪线带宽以及伪线控制字。6. The pseudowire offloading and forwarding method according to claim 4, wherein the dynamic aggregation attribute information includes: the aggregation pseudowire group identifier to which the pseudowire belongs, the destination edge router address of the pseudowire, and the pseudowire mode of Dynamic mode, pseudowire type, pseudowire bandwidth, and pseudowire control word. 7.如权利要求2-6任一项所述的伪线分载转发方法,其特征在于,所述设置伪线成员的工作状态包括:7. The pseudowire offloading and forwarding method according to any one of claims 2-6, wherein the setting of the working state of the pseudowire member comprises: 在主备转发模式下:如果当前添加的所述伪线成员为主伪线且其状态为UP,设置该伪线成员的工作状态为激活状态;如果当前添加的所述伪线成员为备伪线且其状态为UP,设置该伪线成员为准备激活状态;如果当前添加的所述伪线成员状态为异常,设置该伪线成员的工作状态为非激活状态;In active/standby forwarding mode: if the currently added pseudowire member is the active pseudowire and its status is UP, set the working status of the pseudowire member to active; if the currently added pseudowire member is standby line and its state is UP, set the pseudo-wire member to be in the ready-to-activate state; if the status of the currently added pseudo-wire member is abnormal, set the working state of the pseudo-wire member to the inactive state; 在负荷分担模式下:如果当前添加的所述伪线成员状态为UP,设置该伪线成员的工作状态为激活状态;如果当前添加的所述伪线成员状态为异常,设置该伪线成员的工作状态为非激活状态。In load sharing mode: if the status of the currently added pseudowire member is UP, set the working status of the pseudowire member to active status; if the status of the currently added pseudowire member is abnormal, set the status of the pseudowire member to The working state is inactive. 8.如权利要求7所述的伪线分载转发方法,其特征在于,根据所述业务报文在聚合伪线组中的各伪线成员中选择一个作为目标伪线包括:8. The pseudowire load-sharing and forwarding method according to claim 7, wherein selecting one of the pseudowire members in the aggregation pseudowire group as the target pseudowire according to the service message includes: 在主备转发模式下,选择聚合伪线组中的主伪线作为目标伪线;In the active/standby forwarding mode, select the primary pseudowire in the aggregated pseudowire group as the target pseudowire; 在负荷分担模式下,根据所述业务报文中的用户虚拟局域网或物理地址从聚合伪线组中的各工作状态为激活的伪线成员中选择一个作为目标伪线。In the load sharing mode, one of the activated pseudowire members in the aggregated pseudowire group is selected as the target pseudowire according to the virtual local area network or physical address of the user in the service message. 9.一种边缘路由器,包括:9. An edge router comprising: 报文接收模块,用于接收来自用户设备的业务报文;A message receiving module, configured to receive service messages from user equipment; 伪线选择模块,用于根据所述业务报文在聚合伪线组中的各伪线成员中选择一个作为目标伪线;所述聚合伪线组为:本端边缘路由器和对端边缘路由器预先设置的属于同一虚拟专用网实例的伪线集合,该伪线集合中的各伪线成员之传输路径的源边缘路由器和目的边缘路由器分别为本端边缘路由器和对端边缘路由器,且本端边缘路由器为所述业务报文的入口,对端边缘路由器为所述业务报文的出口;A pseudowire selection module, configured to select one of the pseudowire members in the aggregated pseudowire group as a target pseudowire according to the service message; the aggregated pseudowire group is: the edge router at the local end and the edge router at the opposite end The set of pseudowires belonging to the same virtual private network instance, the source edge router and destination edge router of the transmission path of each pseudowire member in the pseudowire set are the local edge router and the opposite end edge router respectively, and the local edge router The router is the entrance of the service message, and the peer edge router is the exit of the service message; 报文转发模块,用于通过所述目标伪线将所述业务报文转发至所述对端边缘路由器。A message forwarding module, configured to forward the service message to the peer edge router through the target pseudowire. 10.如权利要求9所述的边缘路由器,其特征在于,所述聚合伪线组包括静态聚合伪线组;10. The edge router according to claim 9, wherein the aggregated pseudowire group comprises a static aggregated pseudowire group; 所述边缘路由器还包括静态聚合伪线组配置模块,用于接收静态伪线配置信息,并获取静态聚合属性信息,所述静态伪线配置信息中包含待配置伪线;以及用于将所述待配置伪线中与所述静态聚合属性信息匹配的伪线作为伪线成员加入静态聚合伪线组,并设置该伪线成员的工作状态。The edge router also includes a static aggregation pseudowire group configuration module, configured to receive static pseudowire configuration information, and obtain static aggregation attribute information, the static pseudowire configuration information includes a pseudowire to be configured; Among the pseudowires to be configured, the pseudowires matching the static aggregation attribute information are added to the static aggregation pseudowire group as pseudowire members, and the working status of the pseudowire members is set. 11.如权利要求9所述的边缘路由器,其特征在于,所述聚合伪线组包括动态聚合伪线组;11. The edge router according to claim 9, wherein the aggregated pseudowire group comprises a dynamic aggregated pseudowire group; 所述边缘路由器还包括动态聚合伪线组配置模块,用于接收动态伪线配置信息,并获取动态聚合属性信息,所述动态伪线配置信息中包含待配置伪线;以及用于将所述待配置伪线中与所述动态聚合属性信息匹配的伪线作为选中伪线加入动态聚合伪线组,并与对端边缘路由器协商,将本端边缘路由器动态聚合伪线组中与对端边缘路由器动态聚合伪线组中所共有的选中伪线作为伪线成员加入各自的动态聚合伪线组,并设置该伪线成员的工作状态。The edge router also includes a dynamic aggregation pseudowire group configuration module, configured to receive dynamic pseudowire configuration information, and obtain dynamic aggregation attribute information, the dynamic pseudowire configuration information includes pseudowires to be configured; Among the pseudowires to be configured, the pseudowires that match the dynamic aggregation attribute information are added to the dynamic aggregation pseudowire group as the selected pseudowire, and negotiated with the peer edge router, and the local edge router dynamically aggregates the pseudowire group with the peer edge router. The selected pseudowires shared by the dynamic aggregation pseudowire groups of the routers are added to the respective dynamic aggregation pseudowire groups as pseudowire members, and the working status of the pseudowire members is set.
CN201610817700.9A 2016-09-12 2016-09-12 Pseudo-wire load sharing retransmission method and edge router Pending CN107819681A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610817700.9A CN107819681A (en) 2016-09-12 2016-09-12 Pseudo-wire load sharing retransmission method and edge router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610817700.9A CN107819681A (en) 2016-09-12 2016-09-12 Pseudo-wire load sharing retransmission method and edge router

Publications (1)

Publication Number Publication Date
CN107819681A true CN107819681A (en) 2018-03-20

Family

ID=61601078

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610817700.9A Pending CN107819681A (en) 2016-09-12 2016-09-12 Pseudo-wire load sharing retransmission method and edge router

Country Status (1)

Country Link
CN (1) CN107819681A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101710877A (en) * 2009-12-04 2010-05-19 华为技术有限公司 Method, device and system for processing traffic flow based on pseudowire
CN102739529A (en) * 2012-06-18 2012-10-17 中兴通讯股份有限公司 Method and device for protecting pseudo wire protection group
CN103053138A (en) * 2010-07-29 2013-04-17 惠普发展公司,有限责任合伙企业 Apparatus and method for outbound packet forwarding using mesh labels
CN103379042A (en) * 2012-04-25 2013-10-30 丛林网络公司 Path weighted equal-cost multipath
CN103618678A (en) * 2013-11-18 2014-03-05 北京星网锐捷网络技术有限公司 Method, device and system for self-adaptation multiple-link aggregation
US20150124606A1 (en) * 2013-11-01 2015-05-07 Cisco Technology, Inc. Routing Packet Traffic Using Hierarchical Forwarding Groups

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101710877A (en) * 2009-12-04 2010-05-19 华为技术有限公司 Method, device and system for processing traffic flow based on pseudowire
CN103053138A (en) * 2010-07-29 2013-04-17 惠普发展公司,有限责任合伙企业 Apparatus and method for outbound packet forwarding using mesh labels
CN103379042A (en) * 2012-04-25 2013-10-30 丛林网络公司 Path weighted equal-cost multipath
CN102739529A (en) * 2012-06-18 2012-10-17 中兴通讯股份有限公司 Method and device for protecting pseudo wire protection group
US20150124606A1 (en) * 2013-11-01 2015-05-07 Cisco Technology, Inc. Routing Packet Traffic Using Hierarchical Forwarding Groups
CN103618678A (en) * 2013-11-18 2014-03-05 北京星网锐捷网络技术有限公司 Method, device and system for self-adaptation multiple-link aggregation

Similar Documents

Publication Publication Date Title
EP3016323B1 (en) Service transmission path determination method, device and system
US10432514B2 (en) Multiprotocol label switching traffic engineering tunnel establishing method and device
CN103391296B (en) A kind of controller, transponder and Path Setup method and system
US20140115189A1 (en) Method and system for implementing elastic network interface and interconnection
CN110050445B (en) Method, device and system for sending and receiving message
CN106656801A (en) Method and device for redirection of forwarding path of business flow and business flow forwarding system
US11563680B2 (en) Pseudo wire load sharing method and device
CN105577540B (en) A kind of method for building up of service link, apparatus and system
EP3863233B1 (en) Method and device used for ethernet virtual private network
US10291957B2 (en) Quicker IPTV channel with static group on IGMP loopback interface
EP2911354A1 (en) Method, device and system for bidirectional flow on same path in aggregation group
CN103067277A (en) Method of building control channel, forwarding point (FP) and controller
CN102098202B (en) Virtual private topology control method, device and system
WO2015144018A1 (en) Information transmission method, device and communication system
CN103326915A (en) Method, device and system for achieving three-layer VPN
CN103534985B (en) Service load allocating method, apparatus and communication system
US8675658B2 (en) Using multiple IGMP queriers in a layer 2 network
CN102394804A (en) VPN system building method and VPN system
WO2018193285A1 (en) Method and apparatus for enabling a scalable multicast virtual private network service across a multicast label distribution protocol network using in-band signaling
WO2007095799A1 (en) Method and system for performing edge to edge pseudo wire emulation of the bundling interface
CN102239670B (en) A load sharing method and device
CN103780511B (en) The machinery of consultation of flow path and device in link aggregation group
US9479439B1 (en) Methods and apparatus for load balancing VLAN traffic
CN118282932A (en) Information processing method, device and storage medium
CN103841048B (en) Neighbours' connection establishment method and apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180320