[go: up one dir, main page]

CN103152202B - Parameter deployment, communication node and communication network - Google Patents

Parameter deployment, communication node and communication network Download PDF

Info

Publication number
CN103152202B
CN103152202B CN201310079935.9A CN201310079935A CN103152202B CN 103152202 B CN103152202 B CN 103152202B CN 201310079935 A CN201310079935 A CN 201310079935A CN 103152202 B CN103152202 B CN 103152202B
Authority
CN
China
Prior art keywords
information
communication node
message
node
mep
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.)
Active
Application number
CN201310079935.9A
Other languages
Chinese (zh)
Other versions
CN103152202A (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310079935.9A priority Critical patent/CN103152202B/en
Publication of CN103152202A publication Critical patent/CN103152202A/en
Application granted granted Critical
Publication of CN103152202B publication Critical patent/CN103152202B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

本发明实施例公开了一种参数部署方法、通信节点及通信网络,能够自动对节点进行参数部署,从而提高参数部署效率。该方法包括:通信节点接收邻节点发送的包含MD信息及MA信息的报文;如果该邻节点中至少一个邻节点发送的报文包含的MD信息及MA信息与该通信节点的MD信息及MA信息相同,则该通信节点获取配置参数,并部署该配置参数。这样,通过接收邻节点发送的包含MD信息及MA信息的报文,报文包含的MD信息及MA信息与本地设备的MD信息及MA信息相同时,获取配置参数并部署配置参数,从而实现自动部署配置参数,因此能够提高参数部署效率。

The embodiment of the invention discloses a parameter deployment method, a communication node and a communication network, which can automatically deploy parameters to nodes, thereby improving the efficiency of parameter deployment. The method includes: a communication node receives a message containing MD information and MA information sent by a neighboring node; If the information is the same, the communication node obtains the configuration parameter and deploys the configuration parameter. In this way, by receiving the message containing MD information and MA information sent by the neighboring node, when the MD information and MA information contained in the message are the same as the MD information and MA information of the local device, the configuration parameters are obtained and deployed, so as to realize automatic Deploy configuration parameters, so the efficiency of parameter deployment can be improved.

Description

参数部署方法、通信节点及通信网络Parameter deployment method, communication node and communication network

技术领域technical field

本发明涉及通信领域,特别涉及一种参数部署方法、通信节点及通信网络。The present invention relates to the communication field, in particular to a parameter deployment method, a communication node and a communication network.

背景技术Background technique

在通信领域中,对网络进行的操作、管理、维护称为OAM(操作管理维护,英文全称为OperationAdministrationMaintenance)。In the communication field, the operation, management, and maintenance of the network are called OAM (Operation Administration Maintenance, the English full name is OperationAdministrationMaintenance).

网络OAM过程中,常需要对网络中的节点进行参数部署。目前,对节点进行参数部署多通过维护人员手工实现,当节点较多时,参数部署工作量较大,参数部署耗时较长。During the network OAM process, it is often necessary to deploy parameters to nodes in the network. At present, the parameter deployment of nodes is mostly implemented manually by maintenance personnel. When there are many nodes, the workload of parameter deployment is large, and the parameter deployment takes a long time.

可见,手工对节点进行参数部署,参数部署效率较低。It can be seen that manually deploying parameters to nodes is less efficient.

发明内容Contents of the invention

本发明实施例提供一种参数部署方法、通信节点及通信网络,能够自动对节点进行参数部署,从而提高参数部署效率。Embodiments of the present invention provide a parameter deployment method, a communication node, and a communication network, which can automatically deploy parameters to nodes, thereby improving parameter deployment efficiency.

本发明实施例采用如下技术方案:The embodiment of the present invention adopts following technical scheme:

第一方面,提供一种参数部署方法,包括:In the first aspect, a parameter deployment method is provided, including:

通信节点接收邻节点发送的包含维护域MD信息及维护联盟MA信息的报文;如果所述邻节点中至少一个邻节点发送的报文包含的MD信息及MA信息与所述通信节点的MD信息及MA信息相同,则所述通信节点获取配置参数,并部署所述配置参数。The communication node receives the message containing the maintenance domain MD information and the maintenance alliance MA information sent by the neighboring node; and MA information, the communication node acquires configuration parameters and deploys the configuration parameters.

在第一方面第一种可能的实现方式中,所述通信节点为维护联盟边缘节点MEP时,所述配置参数包括MEP值,所述通信节点获取配置参数,并部署所述配置参数包括:所述通信节点生成本地设备的MEP值,并在本地设备部署所述本地设备的MEP值。In the first possible implementation manner of the first aspect, when the communication node is maintaining an alliance edge node MEP, the configuration parameter includes an MEP value, and the communication node acquires the configuration parameter, and deploying the configuration parameter includes: The communication node generates the MEP value of the local device, and deploys the MEP value of the local device on the local device.

结合第一方面或结合第一种可能的实现方式,在第二种可能的实现方式中,所述通信节点为MEP时,所述配置参数包括收发cc报文使能标识,所述通信节点获取配置参数,并部署所述配置参数包括:所述通信节点生成所述收发cc报文使能标识或者接收与所述通信节点具有相同MD信息及MA信息的邻节点发送的所述收发cc报文使能标识;所述通信节点在本地设备部署所述收发cc报文使能标识。In combination with the first aspect or in combination with the first possible implementation, in the second possible implementation, when the communication node is an MEP, the configuration parameters include an enable flag for sending and receiving cc messages, and the communication node acquires Configuring parameters, and deploying the configuration parameters includes: the communication node generating the sending and receiving cc message enablement identifier or receiving the sending and receiving cc message sent by a neighboring node having the same MD information and MA information as the communication node An enabling flag; the communication node deploys the enabling flag for sending and receiving cc messages on a local device.

结合第一种可能的实现方式,在第三种可能的实现方式中,在所述通信节点生成本地设备的MEP值之后,还包括:所述通信节点生成所述至少一个邻节点中每个邻节点的MEP值;所述通信节点向所述每个邻节点发送所述每个邻节点的MEP值,使得所述每个邻节点将收到的MEP值部署到所述每个邻节点。With reference to the first possible implementation manner, in a third possible implementation manner, after the communication node generates the MEP value of the local device, the method further includes: the communication node generating the MEP value of each neighbor in the at least one neighbor node. The MEP value of the node; the communication node sends the MEP value of each neighboring node to each neighboring node, so that each neighboring node deploys the received MEP value to each neighboring node.

结合第一方面或者结合第一种可能的实现方式或者结合第二种可能的实现方式,在第四种可能的实现方式中,所述报文为标签分发协议LDP报文且所述通信节点使能了MD信息及MA信息时,所述通信节点为MEP;或者,所述报文为链路层发现协议LLDP报文且所述邻节点中仅一个邻节点发送的报文包含的MD信息及MA信息与所述通信节点的MD信息及MA信息相同时,所述通信节点为MEP。In combination with the first aspect or the first possible implementation manner or the second possible implementation manner, in a fourth possible implementation manner, the message is a label distribution protocol LDP message and the communication node uses When the MD information and the MA information are available, the communication node is a MEP; or, the message is a Link Layer Discovery Protocol LLDP message and only one of the neighboring nodes sends the MD information and the message contained in the message When the MA information is the same as the MD information and MA information of the communication node, the communication node is an MEP.

在第一方面第五种可能侧实现方式中,所述通信节点为维护联盟内部节点MIP时,所述配置参数包括MIP使能标识。In a fifth possible implementation manner of the first aspect, when the communication node is an internal node MIP of the maintenance alliance, the configuration parameter includes an MIP enablement identifier.

结合第一方面或者结合第五种可能的实现方式,第六种可能侧实现方式中,所述报文为LLDP报文且所述邻节点中至少两个邻节点发送的报文包含的MD信息及MA信息与所述通信节点的MD信息及MA信息相同时,所述通信节点为MIP。In combination with the first aspect or the fifth possible implementation, in the sixth possible implementation, the message is an LLDP message and the MD information contained in the message sent by at least two of the neighboring nodes and MA information are the same as the MD information and MA information of the communication node, the communication node is a MIP.

结合第一方面或者结合第一方面的任一种可能的实现方式,在第六种可能的实现方式中,所述邻节点发送的报文包含的MD信息及MA信息携带于所述报文的类型长度值TLV字段。In combination with the first aspect or any possible implementation manner of the first aspect, in a sixth possible implementation manner, the MD information and MA information contained in the message sent by the neighboring node are carried in the Type Length Value TLV field.

第二方面,提供一种通信节点,其特征在于,包括:In a second aspect, a communication node is provided, characterized in that it includes:

接收单元,用于接收邻节点发送的包含维护域MD信息及维护联盟MA信息的报文;部署单元,用于如果所述邻节点中至少一个邻节点发送的报文包含的MD信息及MA信息与所述通信节点的MD信息及MA信息相同,则获取配置参数,并部署所述配置参数。The receiving unit is used to receive the message containing the maintenance domain MD information and the maintenance alliance MA information sent by the neighboring node; the deploying unit is used to receive the MD information and the MA information contained in the message sent by at least one of the neighboring nodes If it is the same as the MD information and MA information of the communication node, the configuration parameters are acquired and deployed.

在第二方面第一种可能的实现方式中,所述通信节点为维护联盟边缘节点MEP时,所述配置参数包括MEP值,所述部署单元具体用于,生成本地设备的MEP值,并在本地设备部署所述本地设备的MEP值。In the first possible implementation manner of the second aspect, when the communication node is maintaining an alliance edge node MEP, the configuration parameters include an MEP value, and the deployment unit is specifically configured to generate the MEP value of the local device, and The local device deploys the MEP value of the local device.

结合第二方面或者结合第一种可能的实现方式,在第二种可能的实现方式中,所述通信节点为MEP时,所述配置参数包括收发cc报文使能标识,所述部署单元具体用于,生成所述收发cc报文使能标识或者接收与所述通信节点具有相同MD信息及MA信息的邻节点发送的所述收发cc报文使能标识;在本地设备部署所述收发cc报文使能标识。In combination with the second aspect or in combination with the first possible implementation manner, in the second possible implementation manner, when the communication node is an MEP, the configuration parameters include an enable flag for sending and receiving cc messages, and the deployment unit specifically It is used to generate the sending and receiving cc message enabling identifier or receive the sending and receiving cc message enabling identifier sent by a neighboring node having the same MD information and MA information as the communication node; deploy the sending and receiving cc message on the local device Packet enable flag.

结合第一种可能的实现方式,在第三种可能的实现方式中,所述部署单元用于,生成所述至少一个邻节点中每个邻节点的MEP值;则所述通信节点还包括发送单元,用于向所述每个邻节点发送所述每个邻节点的MEP值,使得所述每个邻节点将收到的MEP值部署到所述每个邻节点。With reference to the first possible implementation, in a third possible implementation, the deploying unit is configured to generate the MEP value of each adjacent node in the at least one adjacent node; then the communication node further includes sending A unit, configured to send the MEP value of each neighboring node to each neighboring node, so that each neighboring node deploys the received MEP value to each neighboring node.

结合第二方面或者结合第一方面或者结合第二方面,在第四种可能的实现方式中,所述报文为标签分发协议LDP报文且所述通信节点使能了MD信息及MA信息时,所述通信节点为MEP;或者,所述报文为链路层发现协议LLDP报文且所述邻节点中仅一个邻节点发送的报文包含的MD信息及MA信息与所述通信节点的MD信息及MA信息相同时,所述通信节点为MEP。In combination with the second aspect or the first aspect or the second aspect, in a fourth possible implementation manner, when the message is a label distribution protocol LDP message and the communication node is enabled with MD information and MA information , the communication node is a MEP; or, the message is a Link Layer Discovery Protocol LLDP message and the MD information and MA information contained in the message sent by only one of the neighboring nodes is the same as that of the communication node When the MD information and the MA information are the same, the communication node is an MEP.

在第二方面的第五种坑的实现方式中,所述通信节点为维护联盟内部节点MIP时,所述配置参数包括MIP使能标识。In the fifth pit implementation of the second aspect, when the communication node is an internal node MIP of the maintenance alliance, the configuration parameters include an MIP enabling flag.

结合第二方面或者结合第五种可能的实现方式,第六种可能侧实现方式中,所述报文为LLDP报文且所述邻节点中至少两个邻节点发送的报文包含的MD信息及MA信息与所述通信节点的MD信息及MA信息相同时,所述通信节点为MIP。In combination with the second aspect or the fifth possible implementation, in the sixth possible implementation, the message is an LLDP message and the MD information contained in the message sent by at least two of the neighboring nodes and MA information are the same as the MD information and MA information of the communication node, the communication node is a MIP.

第三方面,提供一种通信网络,包括:至少一个第二方面或第二方面任一种可能的实现方式中的通信节点及至少一个与所述通信节点相邻的邻节点;In a third aspect, a communication network is provided, including: at least one communication node in the second aspect or any possible implementation manner of the second aspect, and at least one neighboring node adjacent to the communication node;

所述邻节点用于,向所述通信节点发送包含MD信息及MA信息的报文。The adjacent node is configured to send a message including MD information and MA information to the communication node.

本发明实施例的参数部署方法、通信节点及通信网络,通过接收邻节点发送的包含MD信息及MA信息的报文,报文包含的MD信息及MA信息与本地设备的MD信息及MA信息相同时,获取配置参数并部署配置参数,从而实现自动部署配置参数,因此能够提高参数部署效率。The parameter deployment method, communication node, and communication network of the embodiment of the present invention receive a message containing MD information and MA information sent by a neighboring node, and the MD information and MA information contained in the message are related to the MD information and MA information of the local device. At the same time, the configuration parameters are acquired and deployed, so as to realize the automatic deployment of the configuration parameters, so that the efficiency of parameter deployment can be improved.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.

图1为本发明实施例提供的一种参数部署方法的流程图;FIG. 1 is a flowchart of a parameter deployment method provided by an embodiment of the present invention;

图2为本发明实施例提供的一种应用场景示意图;FIG. 2 is a schematic diagram of an application scenario provided by an embodiment of the present invention;

图3为本发明实施例提供的另一种参数部署方法的流程图;FIG. 3 is a flowchart of another parameter deployment method provided by an embodiment of the present invention;

图4为本发明实施例提供的另一种应用场景示意图;FIG. 4 is a schematic diagram of another application scenario provided by an embodiment of the present invention;

图5为本发明实施例提供的又一种参数部署方法的流程图;FIG. 5 is a flowchart of another parameter deployment method provided by an embodiment of the present invention;

图6为本发明实施例提供的又一种应用场景示意图;FIG. 6 is a schematic diagram of another application scenario provided by an embodiment of the present invention;

图7为本发明实施例提供的再一种参数部署方法的流程图;FIG. 7 is a flowchart of another parameter deployment method provided by an embodiment of the present invention;

图8为本发明实施例提供的一种通信节点的结构示意图;FIG. 8 is a schematic structural diagram of a communication node provided by an embodiment of the present invention;

图9为本发明实施例提供的另一种通信节点的结构示意图;FIG. 9 is a schematic structural diagram of another communication node provided by an embodiment of the present invention;

图10为本发明实施例提供的又一种通信节点的结构示意图;FIG. 10 is a schematic structural diagram of another communication node provided by an embodiment of the present invention;

图11为本发明实施例提供的一种通信网络的结构示意图。FIG. 11 is a schematic structural diagram of a communication network provided by an embodiment of the present invention.

具体实施方式detailed description

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

本发明实施例中,通信节点包括但不限于PE(运营商边缘,英文全称为provideredge)、CE(用户设备,英文全称为consumerequipment)、GW(网关,英文全称为GateWay)、AGS(汇聚交换机,英文全称为aggregationswitch)、ACS(接入交换机,英文全称为accessswitch)。In the embodiment of the present invention, the communication nodes include but are not limited to PE (operator edge, English full name is provideredge), CE (user equipment, English full name is consumerequipment), GW (gateway, English full name is GateWay), AGS (aggregation switch, English full name is aggregation switch), ACS (access switch, English full name is access switch).

本发明实施例的参数部署方法可以应用于多种网络,如VLAN(虚拟局域网,英文全称为virtuallocalareanetwork)网络、E2E(端到端,英文全称为endtoend)VPN(虚拟专用网,英文全称为VirtualPrivateNetwork)网络(可以基于VLL(虚拟租用专线,英文全称为virtualleasedline)业务部署)、HVPN(分层虚拟专用网,英文全称为Hierarchyvirtualprivatenetwork)网络(可以基于VPLS(虚拟专用局域网业务,英文全称为virtualprivateLANservice)业务部署)、MixedVPN网络(可以VLL&VPLS混合业务部署)等。The parameter deployment method in the embodiment of the present invention can be applied to various networks, such as VLAN (virtual local area network, English full name is virtuallocalareanetwork) network, E2E (end-to-end, English full name is endtoend) VPN (virtual private network, English full name is VirtualPrivateNetwork) Network (can be deployed based on VLL (virtual leased line, English full name is virtualleasedline)), HVPN (hierarchical virtual private network, English full name is Hierarchyvirtualprivatenetwork) network (can be based on VPLS (virtual private LAN service, English full name is virtualprivateLANservice) business deployment ), MixedVPN network (can be deployed with VLL&VPLS mixed services), etc.

本发明实施例提供一种参数部署方法,如图1所示,该方法可以包括:An embodiment of the present invention provides a parameter deployment method, as shown in Figure 1, the method may include:

110、通信节点接收邻节点发送的包含MD(维护域,英文全称为maintenancedomain)信息及MA(维护联盟,英文全称为maintenancealliance)信息的报文。110. The communication node receives a message including MD (Maintenance Domain, English full name maintenance domain) information and MA (Maintenance Alliance, English full name maintenance alliance) information sent by a neighboring node.

其中,邻节点是指与该通信节点相连接的通信节点,邻节点可以为一个或多个,MD信息及MA信息可以为MD标识及MA标识,MD标识及MA标识可以携带在该报文的特定字段。另外根据不同的场景本发明实施例中的报文可以为不同类型的协议报文,如LDP(标签分发协议,英文全称为LabelDistributionProtocol)报文、LLDP(链路层发现协议,LinkLayerDiscoveryProtocol)报文等。Among them, the adjacent node refers to the communication node connected to the communication node, and there can be one or more adjacent nodes, and the MD information and MA information can be MD identification and MA identification, and the MD identification and MA identification can be carried in the message specific fields. In addition, according to different scenarios, the messages in the embodiments of the present invention can be different types of protocol messages, such as LDP (Label Distribution Protocol, English full name is LabelDistributionProtocol) message, LLDP (Link Layer Discovery Protocol, LinkLayerDiscoveryProtocol) message, etc. .

120、如果该邻节点中至少一个邻节点发送的报文包含的MD信息及MA信息与该通信节点的MD信息及MA信息相同,则该通信节点获取配置参数,并部署该配置参数。120. If the MD information and MA information included in the message sent by at least one of the neighboring nodes are the same as the MD information and MA information of the communication node, then the communication node acquires configuration parameters and deploys the configuration parameters.

其中,该通信节点的MD信息及MA信息可以预先部署在该通信节点,本发明实施例不限定MD信息及MA信息的具体部署方法,可以自动部署MD信息及MA信息也可以人工部署MD信息及MA信息。Wherein, the MD information and MA information of the communication node can be pre-deployed on the communication node. The embodiment of the present invention does not limit the specific deployment method of the MD information and the MA information. The MD information and the MA information can be deployed automatically or manually. MA information.

本发明实施例的参数部署方法,通过接收邻节点发送的包含MD信息及MA信息的报文,报文包含的MD信息及MA信息与本地设备的MD信息及MA信息相同时,获取配置参数并部署配置参数,从而实现自动部署配置参数,因此能够提高参数部署效率。In the parameter deployment method of the embodiment of the present invention, by receiving a message containing MD information and MA information sent by a neighboring node, when the MD information and MA information contained in the message are the same as the MD information and MA information of the local device, the configuration parameters are obtained and Deploy configuration parameters, so as to realize automatic deployment of configuration parameters, so that the efficiency of parameter deployment can be improved.

本发明实施例中,根据不同的应用场景,该通信节点可以为MEP(维护联盟的边缘节点,英文全称为maintenanceassociationendpoint)也可以为MIP(维护联盟内部节点,英文全称为maintenanceassociationintermediatepoint)。该通信节点为MEP时,该配置参数可以包括MEP值,或者该配置参数可以包括收发cc报文(CFM(连通性故障管理,英文全称为connectivityfaultmanagement)的组播协议报文)使能标识,或者该配置参数可以包括MEP值和收发cc报文使能标识。该通信节点为MIP时,该配置参数可以包括MIP使能标识。例如,该收发cc报文使能标识可以为发送cc报文使能和/或接收cc报文使能,该MIP使能标识可以用于MIP进行故障定位。In the embodiment of the present invention, according to different application scenarios, the communication node can be MEP (edge node of maintenance alliance, full name in English is maintenanceassociationendpoint) or MIP (internal node of maintenance alliance, full name in English is maintenanceassociationintermediatepoint). When the communication node is an MEP, the configuration parameter may include an MEP value, or the configuration parameter may include an enabling identifier for sending and receiving cc messages (multicast protocol messages of CFM (connectivity fault management, English full name connectivity fault management)), or The configuration parameters may include an MEP value and an enable flag for sending and receiving cc messages. When the communication node is a MIP, the configuration parameter may include a MIP enabling flag. For example, the enabling flag for sending and receiving cc messages may be enabling sending cc messages and/or enabling receiving cc messages, and the enabling flag for MIP may be used for fault location by MIP.

本发明实施例中,根据不同的应用场景,上述110中该邻节点发送的报文可以为LDP报文也可以为LLDP报文。例如,E2EVPN网络(基于VLL业务部署)、HVPN网络(基于VPLS业务部署)、MixedVPN网络(基于VLL&VPLS混合业务部署)等网络中的通信节点之间可以应用LDP报文进行通信。再例如,E2EVPN网络(基于VLL业务部署)、HVPN网络(基于VPLS业务部署)、MixedVPN网络(基于VLL&VPLS混合业务部署)及VLAN网络等网络中的通信节点之间可以应用LLDP报文进行通信。In the embodiment of the present invention, according to different application scenarios, the message sent by the neighboring node in the above step 110 may be an LDP message or an LLDP message. For example, communication nodes in networks such as E2EVPN network (based on VLL service deployment), HVPN network (based on VPLS service deployment), and MixedVPN network (based on VLL&VPLS mixed service deployment) can use LDP packets to communicate. For another example, communication nodes in networks such as E2EVPN network (based on VLL service deployment), HVPN network (based on VPLS service deployment), MixedVPN network (based on VLL&VPLS mixed service deployment) and VLAN network can use LLDP packets for communication.

本发明实施例可以通过多种方法判断该通信节点为MEP或者MIP。例如,该报文为LDP报文且该通信节点使能了MD信息及MA信息时,该通信节点为MEP。即该通信节点收到的LDP报文的TLV字段中包含与该通信节点相同的MD信息及MA信息,该通信节点为MEP,则在该通信节点自动配置MEP值。In the embodiment of the present invention, multiple methods may be used to determine whether the communication node is an MEP or a MIP. For example, when the message is an LDP message and the communication node is enabled with MD information and MA information, the communication node is a MEP. That is, the TLV field of the LDP message received by the communication node contains the same MD information and MA information as the communication node, and the communication node is an MEP, then the MEP value is automatically configured on the communication node.

或者,该报文为LLDP报文且该邻节点中仅一个邻节点发送的报文包含的MD信息及MA信息与该通信节点的MD信息及MA信息相同时,该通信节点为MEP。再例如,该报文为LLDP报文且该邻节点中至少两个邻节点发送的报文包含的MD信息及MA信息与该通信节点的MD信息及MA信息相同时,该通信节点为MIP。Or, when the message is an LLDP message and the MD information and MA information contained in the message sent by only one of the neighboring nodes are the same as the MD information and MA information of the communication node, the communication node is an MEP. For another example, when the message is an LLDP message and the MD information and MA information contained in the message sent by at least two of the neighboring nodes are the same as the MD information and MA information of the communication node, the communication node is a MIP.

本发明实施例中,可选地,该邻节点发送的报文包含的MD信息及MA信息携带于该报文的TLV(类型长度值,英文全称为TypeLengthValue)字段。例如,该邻节点发送LDP报文时,可以在LDP报文的TLV字段携带该MD信息及MA信息;再例如,该邻节点发送LLDP报文时,可以在LLDP报文的TLV字段携带该MD信息及MA信息。In the embodiment of the present invention, optionally, the MD information and MA information contained in the message sent by the neighboring node are carried in the TLV (Type Length Value, English full name is TypeLengthValue) field of the message. For example, when the neighbor node sends an LDP message, the MD information and MA information can be carried in the TLV field of the LDP message; for another example, when the neighbor node sends an LLDP message, the MD information can be carried in the TLV field of the LLDP message information and MA information.

本发明实施例中,可选地,该通信节点为MEP时,该配置参数可以包括MEP值,上述120中该通信节点获取配置参数,并部署该配置参数时,该通信节点生成本地设备的MEP值,并部署本地设备的MEP值。其中,该通信节点本地设备的MEP值为该通信节点上部署的MEP值。In this embodiment of the present invention, optionally, when the communication node is an MEP, the configuration parameter may include an MEP value. When the communication node acquires the configuration parameter in the above step 120 and deploys the configuration parameter, the communication node generates the MEP of the local device value, and deploy the MEP value of the local device. Wherein, the MEP value of the local device of the communication node is the MEP value deployed on the communication node.

进一步可选地,在该通信节点生成本地设备的MEP值之后,该通信节点生成该至少一个邻节点中每个邻节点的MEP值;该通信节点向该每个邻节点发送该每个邻节点的MEP值,使得该每个邻节点按收到的MEP值进行MEP值部署。Further optionally, after the communication node generates the MEP value of the local device, the communication node generates the MEP value of each adjacent node in the at least one adjacent node; the communication node sends the MEP value of each adjacent node to each adjacent node MEP value, so that each neighboring node performs MEP value deployment according to the received MEP value.

本发明实施例中,可选地,该通信节点为MEP时,该配置参数可以包括收发cc报文使能标识,上述120中该通信节点获取配置参数,并部署该配置参数时,该通信节点生成该收发cc报文使能标识或者接收与该通信节点具有相同MD信息及MA信息的邻节点发送的该收发cc报文使能标识;该通信节点在本地设备部署该收发cc报文使能标识。其中,该收发cc报文使能标识包括接收cc报文的使能标识和/或发送cc报文的使能标识。In the embodiment of the present invention, optionally, when the communication node is an MEP, the configuration parameters may include the enable identifier for sending and receiving cc messages. When the communication node obtains the configuration parameters in the above 120 and deploys the configuration parameters, the communication node Generate the cc message enabling flag for sending and receiving or receive the cc message enabling flag sent by a neighboring node with the same MD information and MA information as the communication node; the communication node deploys the cc message enabling flag on the local device logo. Wherein, the enabling identifier for sending and receiving cc messages includes an enabling identifier for receiving cc messages and/or an enabling identifier for sending cc messages.

本发明实施例中,可选地,该通信节点为MEP时,该配置参数可以包括MEP值和收发cc报文使能标识,上述120中该通信节点获取配置参数,并部署该配置参数时,该通信节点生成本地设备的MEP值,生成该收发cc报文使能标识或者接收该邻节点发送的该收发cc报文使能标识。该通信节点在本地设备部署该本地设备的MEP值,该通信节点在本地设备部署该收发cc报文使能标识。In this embodiment of the present invention, optionally, when the communication node is an MEP, the configuration parameters may include an MEP value and an enable identifier for sending and receiving cc messages. When the communication node acquires the configuration parameters in the above 120 and deploys the configuration parameters, The communication node generates the MEP value of the local device, and generates the cc message enabling identifier or receives the cc message enabling identifier sent by the neighboring node. The communication node deploys the MEP value of the local device on the local device, and the communication node deploys the sending and receiving cc message enabling flag on the local device.

图2示出了本发明实施例的一种应用场景,图2中基于BGP(边界网关协议,英文全称为bordergatewayprotocol)的LDP扩展实现通信节点PE1、PE2、PE3自动部署配置参数。图2所示的场景中,CE3连接PE3,PE3分别连接PE1、PE2,PE1与PE2连接,PE1与CE1连接,PE2与CE2连接,应当理解,本发明实施例中的连接可以为物理连接也可以为无线连接。FIG. 2 shows an application scenario of an embodiment of the present invention. In FIG. 2, communication nodes PE1, PE2, and PE3 automatically deploy configuration parameters based on the LDP extension of BGP (Border Gateway Protocol, English full name is bordergatewayprotocol). In the scenario shown in Figure 2, CE3 is connected to PE3, PE3 is connected to PE1 and PE2 respectively, PE1 is connected to PE2, PE1 is connected to CE1, and PE2 is connected to CE2. It should be understood that the connections in this embodiment of the present invention may be physical connections or for a wireless connection.

下面以通信节点PE1自动部署配置参数为例,详细说明自动部署配置参数的实现过程,具体步骤如图3所示:The following takes the automatic deployment configuration parameters of communication node PE1 as an example to describe the implementation process of automatic deployment configuration parameters in detail. The specific steps are shown in Figure 3:

301、PE1部署MD信息及MA信息。301. PE1 deploys MD information and MA information.

例如,PE1部署MD信息及MA信息时,可以自动将MD信息及MA信息部署到PE1,也可以人工将MD信息及MA信息部署到PE1。For example, when PE1 deploys MD information and MA information, it can automatically deploy the MD information and MA information to PE1, or manually deploy the MD information and MA information to PE1.

302、PE1接收邻节点PE2及PE3发送的包含MD信息及MA信息的LDP报文。302. PE1 receives an LDP packet including MD information and MA information sent by neighboring nodes PE2 and PE3.

具体地,PE2发送的LDP报文包含PE2上部署的MD信息及MA信息,PE3发送的LDP报文包含PE3上部署的MD信息及MA信息,其中,MD信息及MA信息可以携带于LDP报文的TLV字段,例如,LDP报文中PW(伪线,英文全称为pseudowire)的interfaceTLV字段。Specifically, the LDP packet sent by PE2 includes the MD information and MA information deployed on PE2, and the LDP packet sent by PE3 includes the MD information and MA information deployed on PE3. The MD information and MA information can be carried in the LDP packet TLV field, for example, the interfaceTLV field of PW (pseudowire, English full name is pseudowire) in the LDP message.

本发明实施例中,PE2和PE3部署MD信息及MA信息时,可以自动将MD信息及MA信息分别部署到PE2和PE3,也可以人工将MD信息及MA信息分别部署到PE2和PE3,本发明实施例不限定MD信息及MA信息的部署方式。In the embodiment of the present invention, when PE2 and PE3 deploy MD information and MA information, they can automatically deploy MD information and MA information to PE2 and PE3 respectively, or manually deploy MD information and MA information to PE2 and PE3 respectively. The embodiment does not limit the deployment manner of the MD information and the MA information.

303、PE1将收到的LDP报文中的MD信息及MA信息与本地设备部署的MD信息及MA信息进行比对,如果PE2及PE3发送的LDP报文中的MD信息及MA信息与本地设备的MD信息及MA信息相同,则生成本地设备的MEP值并生成PE2的MEP值及PE3的MEP值。303. PE1 compares the MD information and MA information in the received LDP message with the MD information and MA information deployed by the local device. If the MD information and MA information in the LDP message sent by PE2 and PE3 are consistent with the local device If the MD information and MA information are the same, generate the MEP value of the local device and generate the MEP value of PE2 and the MEP value of PE3.

其中,本地设备的MEP值、PE2的MEP值、PE3的MEP值不同,本地设备是指PE1,本地设备的MEP值是指PE1的MEP值。Wherein, the MEP value of the local device, the MEP value of PE2, and the MEP value of PE3 are different, the local device refers to PE1, and the MEP value of the local device refers to the MEP value of PE1.

304、PE1将本地设备的MEP值部署到自身。304. PE1 deploys the MEP value of the local device to itself.

305、PE1向PE2发送PE2的MEP值、向PE3发送PE3的MEP值,PE2将收到的MEP值部署到自身、PE3将收到的MEP值部署到自身。305. PE1 sends the MEP value of PE2 to PE2, and sends the MEP value of PE3 to PE3, PE2 deploys the received MEP value to itself, and PE3 deploys the received MEP value to itself.

306、PE1获取收发cc报文使能标识,并在本地设备部署收发cc报文使能标识。306. PE1 obtains the enabling flag for sending and receiving cc messages, and deploys the enabling flag for sending and receiving cc messages on the local device.

例如,PE1可以在生成本地设备的MEP值时生成收发cc报文使能标识,也可以接收与PE1具有相同MD信息及MA信息的邻节点(如PE2或PE3)发送的收发使能标识,相同MD信息及MA信息的通信节点的使能标识相同。For example, when PE1 generates the MEP value of the local device, it can generate the cc message enabling identifier, or it can receive the sending and receiving enable identifier sent by the neighbor node (such as PE2 or PE3) that has the same MD information and MA information as PE1. The enabling identifiers of the communication nodes of the MD information and the MA information are the same.

本发明实施例中,收发cc报文使能标识包括接收cc报文的使能标识和/或发送cc报文的使能标识。In the embodiment of the present invention, the enabling identifier for sending and receiving cc messages includes an enabling identifier for receiving cc messages and/or an enabling identifier for sending cc messages.

本发明的其他实施例中,如果上述303中仅一个邻节点发送LDP报文包含的MD信息及MA信息与本地设备的MD信息及MA信息相同,则PE1生成MD信息及MA信息相同的邻节点的MEP值,相应地上述305中PE1生成MD信息及MA信息相同的邻节点的cc报文使能标识或者PE1接收MD信息及MA信息相同的邻节点发送的cc报文使能标识。例如,PE2发送的LDP报文包含的MD信息及MA信息与PE1的MD信息及MA信息相同,PE3发送的LDP报文包含的MD信息及MA信息不相同,则生成本地设备的MEP值后生成PE2的MEP值,不再生成PE3的MEP值。In other embodiments of the present invention, if the MD information and MA information contained in the LDP message sent by only one neighboring node in the above 303 are the same as the MD information and MA information of the local device, then PE1 generates a neighboring node with the same MD information and MA information Correspondingly, in 305 above, PE1 generates the cc message enablement identifier of the neighbor node whose MD information and MA information are the same, or PE1 receives the cc message enablement identifier sent by the neighbor node whose MD information and MA information are the same. For example, the MD information and MA information contained in the LDP packet sent by PE2 are the same as the MD information and MA information of PE1, but the MD information and MA information contained in the LDP packet sent by PE3 are different. The MEP value of PE2 will no longer generate the MEP value of PE3.

本发明的其他实施例中,如果上述303中邻节点PE2、PE3发送LDP报文包含的MD信息及MA信息均与本地设备的MD信息及MA信息不相同,则不进行参数配置。In other embodiments of the present invention, if the MD information and MA information contained in the LDP message sent by the neighboring nodes PE2 and PE3 in the above 303 are different from the MD information and MA information of the local device, no parameter configuration is performed.

本发明实施例的参数部署方法可以应用于多种网络,如IPRAN(无线接入网IP化,英文全称为InternetProtocolradioaccessnetwork)解决方案的E2EVPN网络(可以基于VLL业务部署)、HVPN网络(可以基于VPLS业务部署)、MixedVPN网络(可以VLL&VPLS混合业务部署)等。可以实现内向(inward)类型网络进行配置参数的自动部署。内向类型网络中,通信节点发送协议报文时,通过该通信节点所在的接口向内发送。内向类型网络根据LDP报文的TLV字段中携带的MD信息及MA信息对比结果自动完成配置参数的部署。具体地,如果邻节点中至少一个邻节点发送的报文包含的MD信息及MA信息与本地设备的MD信息及MA信息相同,则本地设备获取配置参数,并在本地设备部署配置参数。The parameter deployment method in the embodiment of the present invention can be applied to various networks, such as E2EVPN network (can be deployed based on VLL service), HVPN network (can be based on VPLS service) Deployment), MixedVPN network (can be deployed with VLL&VPLS mixed services), etc. Automatic deployment of configuration parameters for inward-type networks can be realized. In an inward type network, when a communication node sends a protocol message, it sends it inward through the interface where the communication node is located. The inward type network automatically completes the deployment of configuration parameters according to the MD information carried in the TLV field of the LDP packet and the comparison result of the MA information. Specifically, if the MD information and MA information contained in the message sent by at least one of the neighboring nodes are the same as the MD information and MA information of the local device, the local device obtains the configuration parameters and deploys the configuration parameters on the local device.

需要说明的是,图3所示步骤仅以图2中的PE1为例进行说明,同样的方法也适用于图2中的其它PE以及与图2类似网络中的PE或CE。另外,本发明实施例不限于图2示出的连接方式,例如,图2中的PE1还可以连接更多的PE或CE。It should be noted that the steps shown in FIG. 3 are only described by taking PE1 in FIG. 2 as an example, and the same method is also applicable to other PEs in FIG. 2 and PEs or CEs in a network similar to FIG. 2 . In addition, the embodiment of the present invention is not limited to the connection mode shown in FIG. 2 . For example, PE1 in FIG. 2 may also be connected to more PEs or CEs.

本发明实施例的参数部署方法,通过接收邻节点发送的包含MD信息及MA信息的报文,报文包含的MD信息及MA信息与本地设备的MD信息及MA信息相同时,获取配置参数并部署配置参数,从而实现自动部署配置参数,因此能够提高参数部署效率。In the parameter deployment method of the embodiment of the present invention, by receiving a message containing MD information and MA information sent by a neighboring node, when the MD information and MA information contained in the message are the same as the MD information and MA information of the local device, the configuration parameters are obtained and Deploy configuration parameters, so as to realize automatic deployment of configuration parameters, so that the efficiency of parameter deployment can be improved.

图4示出了本发明实施例的一种应用场景,图4中基于LLDP扩展实现通信节点PE、CE、接入设备自动部署配置参数。图4所示的场景中,PE1连接PE2、PE3,PE2分别连接CE1、CE2,CE1连接接入设备,应当理解,本发明实施例中通信节点之间的连接可以为物理连接也可以为无线连接。Fig. 4 shows an application scenario of the embodiment of the present invention. In Fig. 4, communication nodes PE, CE, and access devices automatically deploy configuration parameters based on LLDP extensions. In the scenario shown in Figure 4, PE1 is connected to PE2 and PE3, PE2 is connected to CE1 and CE2 respectively, and CE1 is connected to an access device. It should be understood that the connection between communication nodes in this embodiment of the present invention can be a physical connection or a wireless connection .

下面以通信节点CE1自动部署配置参数为例,详细说明自动部署配置参数的实现过程,具体步骤如图5所示:The following takes the automatic deployment configuration parameters of communication node CE1 as an example to describe the implementation process of automatic deployment configuration parameters in detail. The specific steps are shown in Figure 5:

501、CE1部署MD信息及MA信息。501. CE1 deploys MD information and MA information.

例如,可以自动将MD信息及MA信息部署到CE1,也可以人工将MD信息及MA信息部署到CE1。For example, the MD information and MA information can be automatically deployed to CE1, or the MD information and MA information can be manually deployed to CE1.

502、CE1接收邻节点PE2及接入设备发送的包含MD信息及MA信息的LLDP报文。502. CE1 receives an LLDP packet including MD information and MA information sent by a neighboring node PE2 and an access device.

具体地,PE2发送的LLDP报文包含PE2上部署的MD信息及MA信息,接入设备发送的LLDP报文包含接入设备上部署的MD信息及MA信息。本发明实施例中,可以自动将MD信息及MA信息部署到PE2及接入设备,也可以人工将MD信息及MA信息部署到PE2及接入设备。其中,MD信息及MA信息可以携带于LLDP报文的TLV字段。Specifically, the LLDP packet sent by PE2 includes MD information and MA information deployed on PE2, and the LLDP packet sent by the access device includes MD information and MA information deployed on the access device. In the embodiment of the present invention, the MD information and the MA information may be automatically deployed to the PE2 and the access device, or the MD information and the MA information may be manually deployed to the PE2 and the access device. Wherein, the MD information and the MA information may be carried in the TLV field of the LLDP message.

503、CE1将收到的LLDP报文中的MD信息及MA信息与本地设备部署的MD信息及MA信息进行比对,判断目标LLDP报文的数量N,目标LLDP报文为包含的MD信息及MA信息与本地设备的MD信息及MA信息相同的LLDP报文。503. CE1 compares the MD information and MA information in the received LLDP message with the MD information and MA information deployed by the local device, and judges the number N of target LLDP messages. The target LLDP message contains the MD information and LLDP packets whose MA information is the same as the MD information and MA information of the local device.

其中,N(目标LLDP报文的数量)为大于或等于零的整数,如果N=0,则不进行配置参数部署;如果N=1则CE1为MEP,继续执行504;如果N≥2则CE1为MIP,继续执行508。Wherein, N (the number of target LLDP packets) is an integer greater than or equal to zero, if N=0, configuration parameter deployment is not performed; if N=1, CE1 is an MEP, and proceeds to 504; if N≥2, CE1 is MIP, go to 508.

504、CE1生成本地设备的MEP值并生成MD信息及MA信息相同的邻节点的MEP值。504. CE1 generates the MEP value of the local device and generates the MEP value of the neighboring node whose MD information and MA information are the same.

例如,如果仅PE2发送的LLDP报文中的MD信息及MA信息与CE1本地设备的MD信息及MA信息相同,可以判断CE1为MEP,则CE1生成本地设备的MEP值并生成PE2的MEP值。其中,本地设备的MEP值与PE2的MEP值不同,本地设备是指CE1,本地设备的MEP值是指CE1的MEP值。For example, if only the MD and MA information in the LLDP packet sent by PE2 is the same as the MD and MA information of CE1's local device, CE1 can be judged as an MEP, and CE1 generates the MEP value of the local device and the MEP value of PE2. Wherein, the MEP value of the local equipment is different from the MEP value of PE2, the local equipment refers to CE1, and the MEP value of the local equipment refers to the MEP value of CE1.

505、CE1将本地设备的MEP值部署到自身。505. CE1 deploys the MEP value of the local device to itself.

506、CE1向MD信息及MA信息相同的邻节点发送对应的MEP值,使MD信息及MA信息相同的邻节点将收到的MEP值部署到自身。506. CE1 sends the corresponding MEP value to the neighboring node with the same MD information and MA information, so that the neighboring node with the same MD information and MA information deploys the received MEP value to itself.

例如,CE1向PE2发送PE2的MEP值,PE2将收到的MEP值部署到自身。For example, CE1 sends PE2's MEP value to PE2, and PE2 deploys the received MEP value to itself.

507、CE1获取收发cc报文使能标识,并在本地设备部署收发cc报文使能标识。507. CE1 acquires the enabling flag for sending and receiving cc messages, and deploys the enabling flag for sending and receiving cc messages on the local device.

例如,CE1可以在生成本地设备的MEP值时生成收发cc报文使能标识,也可以接收与CE1具有相同MD信息及MA信息的邻节点(如PE2)发送的收发使能标识,其中,相同MD信息及MA信息的通信节点的使能标识相同。For example, CE1 can generate the sending and receiving cc message enabling identifier when generating the MEP value of the local device, and can also receive the sending and receiving enabling identifier sent by a neighboring node (such as PE2) that has the same MD information and MA information as CE1, where the same The enabling identifiers of the communication nodes of the MD information and the MA information are the same.

本发明实施例中,收发cc报文使能标识包括接收cc报文的使能标识,或发送cc报文的使能标识,或接收cc报文的使能标识和发送cc报文的使能标识。接收cc报文的使能标识和发送cc报文的使能标识用于接收cc报文和发送cc报文。In the embodiment of the present invention, the enabling identification of sending and receiving cc messages includes the enabling identification of receiving cc messages, or the enabling identification of sending cc messages, or the enabling identification of receiving cc messages and the enabling of sending cc messages logo. The enabling flag for receiving cc messages and the enabling flag for sending cc messages are used to receive cc messages and send cc messages.

508、CE1生成本地设备的MIP使能标识,将生成的本地设备的MIP使能标识部署到本地设备。508. CE1 generates the MIP enabled identifier of the local device, and deploys the generated MIP enabled identifier of the local device to the local device.

例如,如果PE2及接入设备发送的LLDP报文中的MD信息及MA信息均与本地设备的MD信息及MA信息相同,可以判断CE1为MIP,则CE1生成本地设备的MIP使能标识。For example, if the MD information and MA information in the LLDP packets sent by PE2 and the access device are the same as the MD information and MA information of the local device, it can be judged that CE1 is an MIP, and CE1 generates the MIP enablement identifier of the local device.

其中,本地设备是指CE1,本地设备的MIP使能标识是指CE1的MIP使能标识。MIP使能标识可以用于MIP进行故障定位。Wherein, the local device refers to CE1, and the MIP enabled identifier of the local device refers to the MIP enabled identifier of CE1. The MIP enabled flag can be used for MIP fault location.

本发明实施例的参数部署方法可以应用于多种网络,如IPRAN解决方案的E2EVPN网络(基于VLL业务部署)、HVPN网络(基于VPLS业务部署)、MixedVPN网络(VLL&VPLS混合业务部署)等。可以实现内向(inward)类型网络进行配置参数的自动部署。内向类型网络中,通信节点发送协议报文时,通过该通信节点所在的接口向内发送。内向类型网络根据LDP报文的TLV字段中携带的MD信息及MA信息对比结果自动完成配置参数的部署。具体地,如果邻节点中至少一个邻节点发送的报文包含的MD信息及MA信息与本地设备的MD信息及MA信息相同,则本地设备获取配置参数,并在本地设备部署配置参数。The parameter deployment method in the embodiment of the present invention can be applied to various networks, such as E2EVPN network (based on VLL service deployment), HVPN network (based on VPLS service deployment), MixedVPN network (VLL&VPLS mixed service deployment) of IPRAN solution, etc. Automatic deployment of configuration parameters for inward-type networks can be realized. In an inward type network, when a communication node sends a protocol message, it sends it inward through the interface where the communication node is located. The inward type network automatically completes the deployment of configuration parameters according to the MD information carried in the TLV field of the LDP packet and the comparison result of the MA information. Specifically, if the MD information and MA information contained in the message sent by at least one of the neighboring nodes are the same as the MD information and MA information of the local device, the local device obtains the configuration parameters and deploys the configuration parameters on the local device.

需要说明的是,图5所示步骤仅以图4中的CE1为例进行说明,同样的方法也适用于图5中的其它通信节点(如PE2、接入设备)以及与图4类似网络中的通信节点(如CE、PE等)。另外,本发明实施例不限于图5示出的连接方式,例如,图5中的CE1可以连接更多的接入设备,图5中的PE2、PE3可以与因特网连接。It should be noted that the steps shown in Figure 5 are only illustrated by taking CE1 in Figure 4 as an example, and the same method is also applicable to other communication nodes (such as PE2, access equipment) in Figure 5 and networks similar to Figure 4 communication nodes (such as CE, PE, etc.). In addition, the embodiment of the present invention is not limited to the connection mode shown in FIG. 5. For example, CE1 in FIG. 5 can be connected to more access devices, and PE2 and PE3 in FIG. 5 can be connected to the Internet.

本发明实施例中,接入设备可以为ATN(接入传输网络,英文全称为AccessTransportNetwork)等。In the embodiment of the present invention, the access device may be an ATN (Access Transport Network, the full English name is AccessTransportNetwork) or the like.

本发明实施例的参数部署方法,通过接收邻节点发送的包含MD信息及MA信息的报文,报文包含的MD信息及MA信息与本地设备的MD信息及MA信息相同时,获取配置参数并部署配置参数,从而实现自动部署配置参数,因此能够提高参数部署效率。In the parameter deployment method of the embodiment of the present invention, by receiving a message containing MD information and MA information sent by a neighboring node, when the MD information and MA information contained in the message are the same as the MD information and MA information of the local device, the configuration parameters are obtained and Deploy configuration parameters, so as to realize automatic deployment of configuration parameters, so that the efficiency of parameter deployment can be improved.

图6示出了本发明实施例的一种应用场景,图6中基于LLDP扩展实现通信节点GW、AGS、ACS自动部署配置参数。图6所示的场景中,GW连接AGS1、AGS2,AGS1分别连接ACS1、ACS2,AGS2分别连接ACS1、ACS2,应当理解,本发明实施例中通信节点之间的连接可以为物理连接也可以为无线连接。FIG. 6 shows an application scenario of the embodiment of the present invention. In FIG. 6 , automatic deployment configuration parameters of communication nodes GW, AGS, and ACS are implemented based on LLDP extension. In the scenario shown in Figure 6, the GW is connected to AGS1 and AGS2, AGS1 is connected to ACS1 and ACS2 respectively, and AGS2 is connected to ACS1 and ACS2 respectively. It should be understood that the connection between communication nodes in the embodiment of the present invention can be physical or wireless connect.

下面以通信节点AGS1自动部署配置参数为例,详细说明自动部署配置参数的实现过程,具体步骤如图7所示:The following takes the automatic deployment configuration parameters of the communication node AGS1 as an example to describe the implementation process of the automatic deployment configuration parameters in detail. The specific steps are shown in Figure 7:

701、AGS1部署MD信息及MA信息。701. AGS1 deploys MD information and MA information.

例如,可以自动将MD信息及MA信息部署到AGS1,也可以人工将MD信息及MA信息部署到AGS1。For example, the MD information and MA information can be automatically deployed to AGS1, or the MD information and MA information can be manually deployed to AGS1.

702、AGS1接收邻节点ACS1、ACS2及GW发送的包含MD信息及MA信息的LLDP报文。702. The AGS1 receives the LLDP message including the MD information and the MA information sent by the neighboring nodes ACS1, ACS2, and GW.

具体地,ACS1发送的LLDP报文包含ACS1上部署的MD信息及MA信息,ACS2发送的LLDP报文包含ACS2上部署的MD信息及MA信息,GW发送的LLDP报文包含GW上部署的MD信息及MA信息。本发明实施例中,可以自动将MD信息及MA信息部署到ACS1、ACS2及GW,也可以人工将MD信息及MA信息部署到ACS1、ACS2及GW。其中,MD信息及MA信息可以携带于LLDP报文的TLV字段。Specifically, the LLDP packet sent by ACS1 contains the MD information and MA information deployed on ACS1, the LLDP packet sent by ACS2 contains the MD information and MA information deployed on ACS2, and the LLDP packet sent by GW contains the MD information deployed on GW and MA information. In the embodiment of the present invention, the MD information and MA information may be automatically deployed to ACS1, ACS2 and GW, or the MD information and MA information may be manually deployed to ACS1, ACS2 and GW. Wherein, the MD information and the MA information may be carried in the TLV field of the LLDP message.

703、AGS1将收到的LLDP报文中的MD信息及MA信息与本地设备部署的MD信息及MA信息进行比对,判断目标LLDP报文的数量N,目标LLDP报文为包含的MD信息及MA信息与AGS1本地设备的MD信息及MA信息相同的LLDP报文。703. AGS1 compares the MD information and MA information in the received LLDP message with the MD information and MA information deployed by the local device, and determines the number N of target LLDP messages, and the target LLDP message contains the MD information and An LLDP packet whose MA information is the same as the MD information and MA information of the AGS1 local device.

其中,N(目标LLDP报文的数量)为大于或等于零的整数,如果N=0,则不进行配置参数部署;如果N=1则CE1为MEP,继续执行704;如果N≥2则CE1为MIP,继续执行708。Wherein, N (the number of target LLDP packets) is an integer greater than or equal to zero, if N=0, configuration parameter deployment is not performed; if N=1, CE1 is an MEP, and proceeds to 704; if N≥2, CE1 is MIP, go to step 708.

704、AGS1生成本地设备的MEP值并生成MD信息及MA信息相同的邻节点的MEP值。704. AGS1 generates the MEP value of the local device and generates the MEP value of the neighbor node whose MD information and MA information are the same.

例如,如果仅ACS1发送的LLDP报文中的MD信息及MA信息与本地设备的MD信息及MA信息相同,可以判断AGS1为MEP,则AGS1生成本地设备的MEP值并生成ACS1的MEP值。其中,本地设备的MEP值、ACS1的MEP值不同,本地设备是指AGS1,本地设备的MEP值是指AGS1的MEP值。For example, if only the MD and MA information in the LLDP packet sent by ACS1 is the same as the MD and MA information of the local device, it can be determined that AGS1 is an MEP, and then AGS1 generates the MEP value of the local device and the MEP value of ACS1. Wherein, the MEP value of the local device and the MEP value of the ACS1 are different, the local device refers to the AGS1, and the MEP value of the local device refers to the MEP value of the AGS1.

705、AGS1将本地设备的MEP值部署到自身。705. AGS1 deploys the MEP value of the local device to itself.

706、AGS1向MD信息及MA信息相同的邻节点发送对应的MEP值,MD信息及MA信息相同的邻节点将收到的MEP值部署到自身。706. The AGS1 sends the corresponding MEP value to the neighboring node with the same MD information and MA information, and the neighboring node with the same MD information and MA information deploys the received MEP value to itself.

例如,ACS1的MD信息及MA信息与AGS1的MD信息及MA信息相同,则AGS1向ACS1发送ACS1的MEP值,ACS1将收到的MEP值部署到自身。For example, if the MD information and MA information of ACS1 are the same as those of AGS1, AGS1 sends the MEP value of ACS1 to ACS1, and ACS1 deploys the received MEP value to itself.

707、AGS1获取收发cc报文使能标识,并在本地设备部署收发cc报文使能标识。707. The AGS1 acquires the enabling flag for sending and receiving cc messages, and deploys the enabling flag for sending and receiving cc messages on the local device.

例如,AGS1可以在生成本地设备的MEP值时生成收发cc报文使能标识,也可以接收与AGS1具有相同MD信息及MA信息的邻节点(如ACS1)发送的收发使能标识,其中,相同MD信息及MA信息通信节点的使能标识相同。For example, AGS1 can generate the sending and receiving cc packet enabling identifier when generating the MEP value of the local device, and can also receive the sending and receiving enabling identifier sent by the neighboring node (such as ACS1) that has the same MD information and MA information as AGS1, where the same The MD information and the enabling identifier of the MA information communication node are the same.

本发明实施例中,收发cc报文使能标识包括接收cc报文的使能标识,或发送cc报文的使能标识,或接收cc报文的使能标识和发送cc报文的使能标识。接收cc报文的使能标识和发送cc报文的使能标识用于接收cc报文和发送cc报文。In the embodiment of the present invention, the enabling identification of sending and receiving cc messages includes the enabling identification of receiving cc messages, or the enabling identification of sending cc messages, or the enabling identification of receiving cc messages and the enabling of sending cc messages logo. The enabling flag for receiving cc messages and the enabling flag for sending cc messages are used to receive cc messages and send cc messages.

708、AGS1生成本地设备的MIP使能标识,将生成的本地设备的MIP使能标识部署到本地设备。708. The AGS1 generates the MIP enabled identifier of the local device, and deploys the generated MIP enabled identifier of the local device to the local device.

例如,如果ACS1、ACS2及GW发送的LLDP报文中的MD信息及MA信息均与本地设备的MD信息及MA信息相同,可以判断AGS1为MIP,则AGS1生成本地设备的MIP使能标识。For example, if the MD information and MA information in the LLDP packets sent by ACS1, ACS2, and GW are the same as the MD information and MA information of the local device, it can be judged that AGS1 is MIP, and then AGS1 generates the MIP enablement identifier of the local device.

其中,本地设备是指AGS1,本地设备的MIP使能标识是指AGS1的MIP使能标识。MIP使能标识可以用于MIP进行故障定位。Wherein, the local device refers to AGS1, and the MIP enabling identifier of the local device refers to the MIP enabling identifier of AGS1. The MIP enabled flag can be used for MIP fault location.

本发明实施例的参数部署方法可以应用于多种网络,如VLAN网络,IPRAN解决方案的E2EVPN网络(可以基于VLL业务部署)、HVPN网络(可以基于VPLS业务部署)、MixedVPN网络(可以VLL&VPLS混合业务部署)等。可以实现外向(outward)类型网络进行配置参数的自动部署。外向类型网络中,通信节点发送协议报文时,通过该通信节点所在的接口向外发送。外向类型网络根据LLDP报文的TLV字段中携带的MD信息及MA信息对比结果自动完成配置参数的部署。具体地,如果邻节点中至少一个邻节点发送的报文包含的MD信息及MA信息与本地设备的MD信息及MA信息相同,则本地设备获取配置参数,并在本地设备部署配置参数。The parameter deployment method in the embodiment of the present invention can be applied to a variety of networks, such as VLAN networks, E2EVPN networks of IPRAN solutions (which can be deployed based on VLL services), HVPN networks (which can be deployed based on VPLS services), and MixedVPN networks (which can be based on VLL&VPLS mixed services) deployment), etc. Automatic deployment of configuration parameters for an outward network can be realized. In an outward-facing network, when a communication node sends a protocol message, it sends out through the interface where the communication node is located. Outbound networks automatically deploy configuration parameters based on the MD information carried in the TLV field of the LLDP packet and the comparison result of the MA information. Specifically, if the MD information and MA information contained in the message sent by at least one of the neighboring nodes are the same as the MD information and MA information of the local device, the local device obtains the configuration parameters and deploys the configuration parameters on the local device.

需要说明的是,图7所示步骤仅以图6中的PE1为例进行说明,同样的方法也适用于图6中的其它通信节点(如AGS2、ACS1、ACS2、GW)以及与图6类似网络中的通信节点。另外,本发明实施例不限于图6示出的的连接方式,例如,图6中的AGS1可以连接跟多的ACS。It should be noted that the steps shown in Figure 7 are only illustrated by taking PE1 in Figure 6 as an example, and the same method is also applicable to other communication nodes (such as AGS2, ACS1, ACS2, GW) in Figure 6 and similar to Figure 6 Communication nodes in the network. In addition, the embodiment of the present invention is not limited to the connection manner shown in FIG. 6 , for example, AGS1 in FIG. 6 may be connected to more ACSs.

本发明实施例的参数部署方法,通过接收邻节点发送的包含MD信息及MA信息的报文,报文包含的MD信息及MA信息与本地设备的MD信息及MA信息相同时,获取配置参数并部署配置参数,从而实现自动部署配置参数,因此能够提高参数部署效率。In the parameter deployment method of the embodiment of the present invention, by receiving a message containing MD information and MA information sent by a neighboring node, when the MD information and MA information contained in the message are the same as the MD information and MA information of the local device, the configuration parameters are obtained and Deploy configuration parameters, so as to realize automatic deployment of configuration parameters, so that the efficiency of parameter deployment can be improved.

如图8所示,本发明实施例提供的一种通信节点,可以包括:接收单元81,部署单元82,其中,As shown in FIG. 8, a communication node provided by an embodiment of the present invention may include: a receiving unit 81 and a deploying unit 82, wherein,

接收单元81,用于接收邻节点发送的包含MD信息及MA信息的报文;A receiving unit 81, configured to receive a message including MD information and MA information sent by a neighboring node;

其中,邻节点是指与通信节点线连接的通信节点,邻节点可以为一个或多个。另外根据不同的场景本发明实施例中的报文可以为不同类型的协议报文,如LDP报文、LLDP报文等。Wherein, an adjacent node refers to a communication node connected to a communication node by a line, and there may be one or more adjacent nodes. In addition, according to different scenarios, the packets in the embodiments of the present invention may be different types of protocol packets, such as LDP packets, LLDP packets, and the like.

部署单元82,用于如果邻节点中至少一个邻节点发送的报文包含的MD信息及MA信息与通信节点的MD信息及MA信息相同,则获取配置参数,并部署配置参数。The deploying unit 82 is configured to obtain configuration parameters and deploy the configuration parameters if the MD information and MA information contained in the message sent by at least one of the neighboring nodes are the same as the MD information and MA information of the communication node.

其中,通信节点的MD信息及MA信息可以预先部署在通信节点,本发明实施例不限定MD信息及MA信息的具体部署方法,可以自动部署MD信息及MA信息也可以人工部署MD信息及MA信息。Among them, the MD information and MA information of the communication node can be pre-deployed on the communication node. The embodiment of the present invention does not limit the specific deployment method of the MD information and the MA information. The MD information and the MA information can be deployed automatically or manually. .

本发明实施例中,可选地,通信节点为维护联盟边缘节点MEP时,配置参数包括MEP值,部署单元82具体用于,生成本地设备的MEP值,并在本地设备部署本地设备的MEP值。In the embodiment of the present invention, optionally, when the communication node is an MEP maintenance alliance edge node, the configuration parameters include the MEP value, and the deployment unit 82 is specifically used to generate the MEP value of the local device, and deploy the MEP value of the local device on the local device .

本发明实施例中,可选地,通信节点为MEP时,配置参数包括收发cc报文使能标识,部署单元82具体用于,生成收发cc报文使能标识或者接收邻节点发送的收发cc报文使能标识;在本地设备部署收发cc报文使能标识。In this embodiment of the present invention, optionally, when the communication node is an MEP, the configuration parameters include the enabling identifier of sending and receiving cc messages, and the deployment unit 82 is specifically used to generate an enabling identifier of sending and receiving cc messages or receive the sending and receiving cc messages sent by neighboring nodes. Message enablement flag; the local device is deployed to send and receive cc message enablement flags.

本发明实施例中,可选地,部署单元82用于,生成至少一个邻节点中每个邻节点的MEP值;In the embodiment of the present invention, optionally, the deploying unit 82 is configured to generate the MEP value of each neighboring node in at least one neighboring node;

相应地,如图9所示,通信节点还包括发送单元83,用于向每个邻节点发送每个邻节点的MEP值,使得每个邻节点将收到的MEP值部署到每个邻节点。Correspondingly, as shown in FIG. 9, the communication node further includes a sending unit 83, configured to send the MEP value of each neighboring node to each neighboring node, so that each neighboring node deploys the received MEP value to each neighboring node .

本发明实施例中,可选地,报文为标签分发协议LDP报文时,通信节点为MEP;或者,报文为链路层发现协议LLDP报文且邻节点中仅一个邻节点发送的报文包含的MD信息及MA信息与通信节点的MD信息及MA信息相同时,通信节点为MEP。In this embodiment of the present invention, optionally, when the message is a label distribution protocol LDP message, the communication node is an MEP; or, the message is a link layer discovery protocol LLDP message and only one of the adjacent nodes sends a message. When the MD information and MA information contained in the document are the same as the MD information and MA information of the communication node, the communication node is an MEP.

本发明实施例中,可选地,通信节点为维护联盟内部节点MIP时,配置参数包括MIP使能标识。In the embodiment of the present invention, optionally, when the communication node is an internal node MIP of the maintenance alliance, the configuration parameters include the MIP enablement identifier.

本发明实施例中,可选地,报文为LLDP报文且邻节点中至少两个邻节点发送的报文包含的MD信息及MA信息与通信节点的MD信息及MA信息相同时,通信节点为MIP。In this embodiment of the present invention, optionally, when the message is an LLDP message and the MD information and MA information contained in the message sent by at least two neighboring nodes among the neighboring nodes are the same as the MD information and MA information of the communication node, the communication node for MIPs.

本发明实施例的通信节点可以上述方法实施例,具体实现过程请参阅上述方法实施例。另外本发明实施例的通信节点可以为PE、CE、GW、AGS、ACS等。The communication node in this embodiment of the present invention may use the foregoing method embodiments, and reference may be made to the foregoing method embodiments for a specific implementation process. In addition, the communication nodes in this embodiment of the present invention may be PEs, CEs, GWs, AGSs, ACSs, and the like.

本发明实施例的通信节点,通过接收邻节点发送的包含MD信息及MA信息的报文,报文包含的MD信息及MA信息与本地设备的MD信息及MA信息相同时,获取配置参数并部署配置参数,从而实现自动部署配置参数,因此能够提高参数部署效率。The communication node in the embodiment of the present invention obtains the configuration parameters and deploys them when the message containing the MD information and MA information sent by the neighboring node is the same as the MD information and MA information of the local device. Configure parameters, so as to realize automatic deployment of configuration parameters, so the efficiency of parameter deployment can be improved.

如图10所示,本发明实施例提供的另一种通信节点,该装置可以包括:总线11及连接到总线11的接口12、处理器13,其中:As shown in FIG. 10, another communication node provided by an embodiment of the present invention may include: a bus 11, an interface 12 connected to the bus 11, and a processor 13, wherein:

接口12用于,接收邻节点发送的包含MD信息及MA信息的报文;The interface 12 is used to receive a message including MD information and MA information sent by a neighboring node;

处理器13,用于如果邻节点中至少一个邻节点发送的报文包含的MD信息及MA信息与通信节点的MD信息及MA信息相同,则获取配置参数,并部署配置参数。The processor 13 is configured to obtain configuration parameters and deploy configuration parameters if the MD information and MA information contained in the message sent by at least one of the neighboring nodes are the same as the MD information and MA information of the communication node.

本发明实施例中,可选地,通信节点为维护联盟边缘节点MEP时,配置参数包括MEP值,处理器13具体用于生成本地设备的MEP值,并在本地设备部署本地设备的MEP值。In the embodiment of the present invention, optionally, when the communication node is an MEP maintenance alliance edge node, the configuration parameters include the MEP value, and the processor 13 is specifically configured to generate the MEP value of the local device, and deploy the MEP value of the local device on the local device.

本发明实施例中,可选地,通信节点为MEP时,配置参数包括收发cc报文使能标识,处理器13具体用于,生成收发cc报文使能标识或者接收邻节点发送的收发cc报文使能标识;在本地设备部署收发cc报文使能标识。In this embodiment of the present invention, optionally, when the communication node is an MEP, the configuration parameters include an enable flag for sending and receiving cc messages, and the processor 13 is specifically used to generate an enable flag for sending and receiving cc messages or receive a sending and receiving cc message sent by a neighboring node. Message enablement flag; the local device is deployed to send and receive cc message enablement flags.

处理器13用于,生成至少一个邻节点中每个邻节点的MEP值;The processor 13 is used to generate the MEP value of each neighboring node in at least one neighboring node;

则接口12用于向每个邻节点发送每个邻节点的MEP值,使得每个邻节点将收到的MEP值部署到每个邻节点。Then the interface 12 is used to send the MEP value of each neighboring node to each neighboring node, so that each neighboring node deploys the received MEP value to each neighboring node.

本发明实施例中,可选地,报文为标签分发协议LDP报文且通信节点使能了MD信息及MA信息时,通信节点为MEP。即该通信节点收到的LDP报文的TLV字段中包含与该通信节点相同的MD信息及MA信息,该通信节点为MEP,则在该通信节点自动配置MEP值。或者,报文为链路层发现协议LLDP报文且邻节点中仅一个邻节点发送的报文包含的MD信息及MA信息与通信节点的MD信息及MA信息相同时,通信节点为MEP。In the embodiment of the present invention, optionally, when the message is a label distribution protocol LDP message and the communication node is enabled with MD information and MA information, the communication node is an MEP. That is, the TLV field of the LDP message received by the communication node contains the same MD information and MA information as the communication node, and the communication node is an MEP, then the MEP value is automatically configured on the communication node. Or, when the message is a link layer discovery protocol LLDP message and the MD information and MA information contained in the message sent by only one of the neighboring nodes are the same as the MD information and MA information of the communication node, the communication node is an MEP.

本发明实施例中,可选地,通信节点为维护联盟内部节点MIP时,配置参数包括MIP使能标识。In the embodiment of the present invention, optionally, when the communication node is an internal node MIP of the maintenance alliance, the configuration parameters include the MIP enablement identifier.

本发明实施例中,可选地,报文为LLDP报文且邻节点中至少两个邻节点发送的报文包含的MD信息及MA信息与通信节点的MD信息及MA信息相同时,通信节点为MIP。In this embodiment of the present invention, optionally, when the message is an LLDP message and the MD information and MA information contained in the message sent by at least two neighboring nodes among the neighboring nodes are the same as the MD information and MA information of the communication node, the communication node for MIPs.

本发明实施例的通信节点可以上述方法实施例,具体实现过程请参阅上述方法实施例。另外本发明实施例的通信节点可以为PE、CE、GW、AGS、ACS等。The communication node in the embodiment of the present invention may use the above-mentioned method embodiment, and refer to the above-mentioned method embodiment for a specific implementation process. In addition, the communication nodes in this embodiment of the present invention may be PEs, CEs, GWs, AGSs, ACSs, and the like.

本发明实施例的通信节点,通过接收邻节点发送的包含MD信息及MA信息的报文,报文包含的MD信息及MA信息与本地设备的MD信息及MA信息相同时,获取配置参数并部署配置参数,从而实现自动部署配置参数,因此能够提高参数部署效率。The communication node in the embodiment of the present invention obtains the configuration parameters and deploys them when the message containing the MD information and MA information sent by the neighboring node is the same as the MD information and MA information of the local device. Configure parameters, so as to realize automatic deployment of configuration parameters, so the efficiency of parameter deployment can be improved.

如图11所示,本发明实施例提供一种通信网络,包括:至少一个通信节点S1及至少一个与通信节点相邻的邻节点S2;As shown in FIG. 11, an embodiment of the present invention provides a communication network, including: at least one communication node S1 and at least one neighboring node S2 adjacent to the communication node;

通信节点S1,用于接收邻节点S2发送的包含MD信息及MA信息的报文;The communication node S1 is configured to receive a message including MD information and MA information sent by the neighboring node S2;

如果邻节点S2中至少一个邻节点发送的报文包含的MD信息及MA信息与通信节点S1的MD信息及MA信息相同,则通信节点S1获取配置参数,并部署配置参数。If the MD information and MA information contained in the message sent by at least one of the neighboring nodes S2 are the same as the MD information and MA information of the communication node S1, the communication node S1 obtains the configuration parameters and deploys the configuration parameters.

邻节点S2用于,向通信节点发送包含MD信息及MA信息的报文。The neighboring node S2 is configured to send a message including MD information and MA information to the communication node.

具体地,通信节点S1的组成单元,及各单元的具体功能与上述实本发明实施例的通信节点相同,请参阅。Specifically, the constituent units of the communication node S1 and the specific functions of each unit are the same as those of the above communication node implementing the embodiment of the present invention, please refer to.

本发明实施例的通信网络,通信节点接收邻节点发送的包含MD信息及MA信息的报文,报文包含的MD信息及MA信息与本地设备的MD信息及MA信息相同时,获取配置参数并部署配置参数,从而实现自动部署配置参数,因此能够提高参数部署效率。In the communication network of the embodiment of the present invention, the communication node receives a message containing MD information and MA information sent by a neighboring node, and when the MD information and MA information contained in the message are the same as the MD information and MA information of the local device, the configuration parameters are obtained and Deploy configuration parameters, so as to realize automatic deployment of configuration parameters, so that the efficiency of parameter deployment can be improved.

本发明实施例主要应用于通信节点的参数部署,能够自动对节点进行参数部署,从而提高参数部署效率。The embodiments of the present invention are mainly applied to parameter deployment of communication nodes, and can automatically perform parameter deployment on nodes, thereby improving parameter deployment efficiency.

需要说明的是:上述实施例提供的数据发送装置及数据接收装置,在表述时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成拨通的功能模块,以完成上述的全部或部分功能。另外,上述实施例提供的装置与相应的方法属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: the data sending device and the data receiving device provided by the above-mentioned embodiments are only described by using the division of the above-mentioned functional modules as examples. In practical applications, the above-mentioned functions can be assigned to different function modules according to needs Module completion means that the internal structure of the device is divided into dial-up functional modules to complete all or part of the above functions. In addition, the device provided by the above embodiment and the corresponding method belong to the same idea, and the specific implementation process thereof is detailed in the method embodiment, and will not be repeated here.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, and can also be completed by instructing related hardware through a program. The program can be stored in a computer-readable storage medium. The above-mentioned The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, and the like.

本说明书中的各个实施例均采用递进的方式描述,各个实施例相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。Each embodiment in this specification is described in a progressive manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, as for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for relevant parts, please refer to part of the description of the method embodiment. The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without creative effort.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件的方式来实现,通用硬件包括通用集成电路、通用CPU、通用存储器、通用元器件等,当然也可以通过专用硬件包括专用集成电路、专用CPU、专用存储器、专用元器件等来实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘,硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be realized by means of software plus necessary general-purpose hardware. The general-purpose hardware includes general-purpose integrated circuits, general-purpose CPUs, general-purpose memories, general-purpose components, etc. , Of course, it can also be realized by dedicated hardware including application-specific integrated circuits, dedicated CPUs, dedicated memories, dedicated components, etc., but in many cases the former is a better implementation. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a readable storage medium, such as a floppy disk of a computer , a hard disk or an optical disk, etc., including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute the methods of various embodiments of the present invention.

以上仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection scope of the present invention Inside.

Claims (12)

1.一种参数部署方法,其特征在于,包括:1. A parameter deployment method, characterized in that, comprising: 通信节点接收邻节点发送的包含维护域MD信息及维护联盟MA信息的报文,所述报文为标签分发协议LDP报文或链路层发现协议LLDP报文;The communication node receives the message containing the maintenance domain MD information and the maintenance alliance MA information sent by the neighboring node, and the message is a label distribution protocol LDP message or a link layer discovery protocol LLDP message; 如果所述邻节点中至少一个邻节点发送的报文包含的MD信息及MA信息与所述通信节点的MD信息及MA信息相同,则所述通信节点获取配置参数,并部署所述配置参数;If the MD information and MA information contained in the message sent by at least one of the neighboring nodes are the same as the MD information and MA information of the communication node, the communication node acquires configuration parameters and deploys the configuration parameters; 所述通信节点为维护联盟边缘节点MEP时,所述配置参数包括MEP值,所述通信节点获取配置参数,并部署所述配置参数包括:When the communication node is maintaining an alliance edge node MEP, the configuration parameters include an MEP value, and the communication node obtains the configuration parameters, and deploying the configuration parameters includes: 所述通信节点生成本地设备的MEP值,并在本地设备部署所述本地设备的MEP值;The communication node generates the MEP value of the local device, and deploys the MEP value of the local device on the local device; 所述通信节点为维护联盟内部节点MIP时,所述配置参数包括MIP使能标识,所述通信节点获取配置参数,并部署所述配置参数包括:When the communication node is an internal node MIP of the maintenance alliance, the configuration parameters include a MIP enablement identifier, the communication node obtains the configuration parameters, and deploying the configuration parameters includes: 所述通信节点生成本地设备的MIP使能标识,并在本地设备部署所述本地设备的MIP使能标识。The communication node generates the MIP enabling identifier of the local device, and deploys the MIP enabling identifier of the local device on the local device. 2.根据权利要求1所述的方法,其特征在于,所述通信节点为MEP时,所述配置参数包括收发连通性故障管理的组播协议cc报文使能标识,所述通信节点获取配置参数,并部署所述配置参数包括:2. The method according to claim 1, wherein when the communication node is an MEP, the configuration parameters include the multicast protocol cc message enablement identifier for sending and receiving connectivity fault management, and the communication node obtains the configuration Parameters, and deployment The configuration parameters include: 所述通信节点生成所述收发cc报文使能标识或者接收与所述通信节点具有相同MD信息及MA信息的邻节点发送的所述收发cc报文使能标识;The communication node generates the enabling identification of the sending and receiving cc message or receives the sending and receiving cc message enabling identification sent by a neighboring node having the same MD information and MA information as the communication node; 所述通信节点在本地设备部署所述收发cc报文使能标识。The communication node deploys the enabling flag for sending and receiving cc messages on a local device. 3.根据权利要求1所述的方法,其特征在于,在所述通信节点生成本地设备的MEP值之后,还包括:3. The method according to claim 1, further comprising: after the communication node generates the MEP value of the local device: 所述通信节点生成所述至少一个邻节点中每个邻节点的MEP值;generating, by the communication node, a MEP value for each of the at least one neighboring node; 所述通信节点向所述每个邻节点发送所述每个邻节点的MEP值,使得所述每个邻节点将收到的MEP值部署到所述每个邻节点。The communication node sends the MEP value of each neighboring node to each neighboring node, so that each neighboring node deploys the received MEP value to each neighboring node. 4.根据权利要求1至3中任一项所述的方法,其特征在于,所述报文为标签分发协议LDP报文且所述通信节点使能了MD信息及MA信息时,所述通信节点为MEP;4. The method according to any one of claims 1 to 3, wherein when the message is a Label Distribution Protocol (LDP) message and the communication node enables MD information and MA information, the communication Node is MEP; 或者,所述报文为链路层发现协议LLDP报文且所述邻节点中仅一个邻节点发送的报文包含的MD信息及MA信息与所述通信节点的MD信息及MA信息相同时,所述通信节点为MEP。Or, when the message is a link layer discovery protocol LLDP message and the MD information and MA information contained in the message sent by only one of the neighboring nodes are the same as the MD information and MA information of the communication node, The communication node is an MEP. 5.根据权利要求1所述的方法,其特征在于,所述报文为LLDP报文且所述邻节点中至少两个邻节点发送的报文包含的MD信息及MA信息与所述通信节点的MD信息及MA信息相同时,所述通信节点为MIP。5. The method according to claim 1, characterized in that, the message is an LLDP message and the MD information and the MA information contained in the message sent by at least two of the adjacent nodes in the adjacent nodes are the same as those of the communication node When the MD information and the MA information are the same, the communication node is a MIP. 6.根据权利要求1-3、5中任一项所述的方法,其特征在于,所述邻节点发送的报文包含的MD信息及MA信息携带于所述报文的类型长度值TLV字段。6. The method according to any one of claims 1-3, 5, characterized in that the MD information and MA information contained in the message sent by the neighboring node are carried in the Type Length Value TLV field of the message . 7.一种通信节点,其特征在于,包括:7. A communication node, characterized in that, comprising: 接收单元,用于接收邻节点发送的包含维护域MD信息及维护联盟MA信息的报文,所述报文为标签分发协议LDP报文或链路层发现协议LLDP报文;The receiving unit is configured to receive a message including maintenance domain MD information and maintenance alliance MA information sent by a neighboring node, where the message is a label distribution protocol LDP message or a link layer discovery protocol LLDP message; 部署单元,用于如果所述邻节点中至少一个邻节点发送的报文包含的MD信息及MA信息与所述通信节点的MD信息及MA信息相同,则获取配置参数,并部署所述配置参数;A deploying unit, configured to obtain configuration parameters and deploy the configuration parameters if the MD information and MA information contained in the message sent by at least one of the neighboring nodes are the same as the MD information and MA information of the communication node ; 所述通信节点为维护联盟边缘节点MEP时,所述配置参数包括MEP值,所述部署单元具体用于,生成本地设备的MEP值,并在本地设备部署所述本地设备的MEP值;When the communication node is an MEP maintenance alliance edge node, the configuration parameters include an MEP value, and the deployment unit is specifically configured to generate an MEP value of a local device, and deploy the MEP value of the local device on the local device; 所述通信节点为维护联盟内部节点MIP时,所述配置参数包括MIP使能标识,所述部署单元具体用于,生成本地设备的MIP使能标识,并在本地设备部署所述本地设备的MIP使能标识。When the communication node is an internal node MIP of the maintenance alliance, the configuration parameters include a MIP enablement identifier, and the deployment unit is specifically used to generate a MIP enablement identifier of a local device, and deploy the MIP of the local device on the local device enable flag. 8.根据权利要求7所述的通信节点,其特征在于,所述通信节点为MEP时,所述配置参数包括收发cc报文使能标识,所述部署单元具体用于,生成所述收发cc报文使能标识或者接收与所述通信节点具有相同MD信息及MA信息的邻节点发送的所述收发cc报文使能标识;在本地设备部署所述收发cc报文使能标识。8. The communication node according to claim 7, wherein when the communication node is an MEP, the configuration parameters include an enable flag for sending and receiving cc messages, and the deployment unit is specifically used to generate the sending and receiving cc message Message enablement identification or receiving the sending and receiving cc message enabling identification sent by a neighboring node having the same MD information and MA information as the communication node; deploying the sending and receiving cc message enabling identification on the local device. 9.根据权利要求7所述的通信节点,其特征在于,所述部署单元用于,生成所述至少一个邻节点中每个邻节点的MEP值;9. The communication node according to claim 7, wherein the deploying unit is used to generate the MEP value of each neighboring node in the at least one neighboring node; 则所述通信节点还包括发送单元,用于向所述每个邻节点发送所述每个邻节点的MEP值,使得所述每个邻节点将收到的MEP值部署到所述每个邻节点。Then the communication node further includes a sending unit, configured to send the MEP value of each neighboring node to each neighboring node, so that each neighboring node deploys the received MEP value to each neighboring node node. 10.根据权利要求7至9中任一项所述的通信节点,其特征在于,所述报文为标签分发协议LDP报文且所述通信节点使能了MD信息及MA信息时,所述通信节点为MEP;10. The communication node according to any one of claims 7 to 9, wherein when the message is a Label Distribution Protocol (LDP) message and the communication node enables MD information and MA information, the The communication node is MEP; 或者,所述报文为链路层发现协议LLDP报文且所述邻节点中仅一个邻节点发送的报文包含的MD信息及MA信息与所述通信节点的MD信息及MA信息相同时,所述通信节点为MEP。Or, when the message is a link layer discovery protocol LLDP message and the MD information and MA information contained in the message sent by only one of the neighboring nodes are the same as the MD information and MA information of the communication node, The communication node is an MEP. 11.根据权利要求7所述的通信节点,其特征在于,所述报文为LLDP报文且所述邻节点中至少两个邻节点发送的报文包含的MD信息及MA信息与所述通信节点的MD信息及MA信息相同时,所述通信节点为MIP。11. The communication node according to claim 7, wherein the message is an LLDP message and the MD information and the MA information contained in the message sent by at least two of the adjacent nodes in the adjacent nodes are related to the communication When the MD information and the MA information of the node are the same, the communication node is a MIP. 12.一种通信网络,其特征在于,包括:至少一个如权利要求7-11中任一项所述的通信节点及至少一个与所述通信节点相邻的邻节点;12. A communication network, characterized in that, comprising: at least one communication node as claimed in any one of claims 7-11 and at least one adjacent node adjacent to the communication node; 所述邻节点用于,向所述通信节点发送包含MD信息及MA信息的报文。The adjacent node is configured to send a message including MD information and MA information to the communication node.
CN201310079935.9A 2013-03-13 2013-03-13 Parameter deployment, communication node and communication network Active CN103152202B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310079935.9A CN103152202B (en) 2013-03-13 2013-03-13 Parameter deployment, communication node and communication network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310079935.9A CN103152202B (en) 2013-03-13 2013-03-13 Parameter deployment, communication node and communication network

Publications (2)

Publication Number Publication Date
CN103152202A CN103152202A (en) 2013-06-12
CN103152202B true CN103152202B (en) 2016-03-30

Family

ID=48550077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310079935.9A Active CN103152202B (en) 2013-03-13 2013-03-13 Parameter deployment, communication node and communication network

Country Status (1)

Country Link
CN (1) CN103152202B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3062461B1 (en) * 2013-11-15 2018-01-10 Huawei Technologies Co., Ltd. Method, device, and system for configuring maintenance association (ma)
CN104683298B (en) * 2013-11-27 2018-04-10 华为技术有限公司 A kind of collocation method and device of differential service rule

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101521603A (en) * 2008-12-26 2009-09-02 中兴通讯股份有限公司 Method and system for quickly detecting connectivity of link
CN101662383A (en) * 2009-09-17 2010-03-03 杭州华三通信技术有限公司 Method and equipment for configuring maintenance end points
CN102215130A (en) * 2011-06-16 2011-10-12 杭州华三通信技术有限公司 CFD (connectivity fault detection) protocol configuration method and device thereof
CN102315962A (en) * 2011-07-07 2012-01-11 杭州华三通信技术有限公司 Method for detecting MTU (Maximum Transmission Unit) of Ethernet and maintenance end point

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7733794B2 (en) * 2005-06-17 2010-06-08 Alcatel Lucent Performance monitoring of frame transmission in data network OAM protocols
CN101155084B (en) * 2006-09-28 2011-04-13 华为技术有限公司 Method and system for acquiring network topological information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101521603A (en) * 2008-12-26 2009-09-02 中兴通讯股份有限公司 Method and system for quickly detecting connectivity of link
CN101662383A (en) * 2009-09-17 2010-03-03 杭州华三通信技术有限公司 Method and equipment for configuring maintenance end points
CN102215130A (en) * 2011-06-16 2011-10-12 杭州华三通信技术有限公司 CFD (connectivity fault detection) protocol configuration method and device thereof
CN102315962A (en) * 2011-07-07 2012-01-11 杭州华三通信技术有限公司 Method for detecting MTU (Maximum Transmission Unit) of Ethernet and maintenance end point

Also Published As

Publication number Publication date
CN103152202A (en) 2013-06-12

Similar Documents

Publication Publication Date Title
EP3188409B1 (en) Oam mechanisms for evpn active-active services
CN106209553B (en) Message processing method, equipment and system
US10666459B1 (en) System and method to facilitate interoperability between virtual private LAN service (VPLS) and ethernet virtual private network (EVPN) with all-active multi-homing
CN103095495B (en) Network beginning collocation method and device, system
WO2018006654A1 (en) Method, apparatus and system for processing flowspec message
JP2010514368A (en) Ethernet (registered trademark) / TMPLS hybrid network OAM frame creation method and corresponding signal
CN104980347A (en) Tunnel establishing method and tunnel establishing device
WO2018058639A1 (en) Pseudo wire load sharing method and apparatus
CN107787020B (en) A method and routing network element for synchronizing topology information in an SFC network
CN102647328B (en) A kind of label distribution method, equipment and system
CN103152202B (en) Parameter deployment, communication node and communication network
WO2022053007A1 (en) Network reachability verification method and apparatus, and computer storage medium
CN103607347B (en) Set up the method and controller of transmission channel
CN103155495B (en) For the method for Routing Protocol configuration, Apparatus and system
CN109728926A (en) Communication method and network device
CN112910771B (en) Connection establishment method, device, equipment and storage medium
CN104639453B (en) Pseudo-wire flow control methods and relevant device
CN103209124B (en) Message processing method, device and system
Lim et al. Design and implementation of hardware accelerated VTEP in datacenter networks
CN107947989B (en) Dynamic AC generation method and device
CN115460141B (en) Network intercommunication method and device
WO2023284547A1 (en) Fault detection method, apparatus and system
CN104683298B (en) A kind of collocation method and device of differential service rule
CN115460140B (en) Network intercommunication method and device
WO2023050932A1 (en) Route advertisement method, network device, and computer storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant