WO2012022182A1 - 一种控制字能力的协商方法及伪线建立设备 - Google Patents
一种控制字能力的协商方法及伪线建立设备 Download PDFInfo
- Publication number
- WO2012022182A1 WO2012022182A1 PCT/CN2011/074661 CN2011074661W WO2012022182A1 WO 2012022182 A1 WO2012022182 A1 WO 2012022182A1 CN 2011074661 W CN2011074661 W CN 2011074661W WO 2012022182 A1 WO2012022182 A1 WO 2012022182A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- control word
- capability
- attribute
- negotiation
- party
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/64—Hybrid switching systems
- H04L12/6418—Hybrid transport
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/24—Negotiation of communication capabilities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/68—Pseudowire emulation, e.g. IETF WG PWE3
Definitions
- the present invention relates to the field of a Layer 2 virtual private network, and in particular, to a method for negotiating control word capabilities and a pseudowire establishing device.
- a Layer 2 Virtual Private Network (L2VPN) service is an extension of a customer's private network by using a part of its public shared network to provide Layer 2 connectivity of user networks in different regions.
- Sex. Pseudo Wire (PW) is the basis for L2VPN service deployment.
- Layer 2 services such as Ethernet (Ethernet) services, Frame Relay services, and Asynchronous Transfer Mode services, can be specifically encapsulated by the corresponding Layer 2 packet format.
- the pseudowire established between the operator's edge devices is transparently transmitted. By deploying this service, the operator guarantees the connectivity of the same customers separated in different geographical areas and the isolation between different users.
- a typical pseudo-line emulation network reference model is shown in Figure 1.
- the user edge (Customer Edge, CE) 1 of a user's local area network 1 is connected to the operation through an Attachment Circuit (AC) 1 .
- the user edge (CE2) device of the user's local area network 2 accesses the carrier through the access link (AC2) Edge (PE2) device of the MPLS backbone network;
- the operator deploys a pseudowire for the service between PE1 and PE2.
- a pseudowire is a collection of a pair of unidirectional Label Switch Paths (LSPs) in opposite directions.
- LSPs Label Switch Paths
- the packet in the local area network 1 of the user which is sent from the ACl, is encapsulated into a protocol data unit (PDU) of the pseudowire, and is transparently transmitted to the peer device of the peer end through the pseudowire.
- PDU protocol data unit
- the ⁇ 2 device is restored to the local form after being locally processed, and forwarded to the network of the user's local area network 2 through AC2.
- the forwarding of CE2 to CE1 is similar to the above process.
- the information exchange of the local area network of the user in different regions is completed, and the user's The packets are transparently transmitted in the carrier's backbone network.
- the operator can distinguish the packets of different users by deploying different pseudowires or other technical means to ensure the security and isolation of the user services.
- Control Word in Pseudo Wire Emulation Edge-to-Edge (PWE3) is described in RFC4385.
- the format of the general pseudowire multi-protocol label switching control word is as shown in FIG. 2, which occupies four bytes of message size.
- Figure 3 shows the location of the control word in the pseudowire PDU message, where the control word is located between the pseudowire label of the pseudowire PDU message and the user L2PDU.
- the main applications of adding control words in the pseudowires include the following two aspects:
- the pseudowire packets belonging to one user may reach the destination edge (Provider Edge, PE) device node through multiple label forwarding paths (LSPs). Therefore, there is a possibility that the pseudowire packets arriving at the destination PE device node may be out of order.
- PE Provide Edge
- LSPs label forwarding paths
- the In-Band Control Channel (CC) type in the VCCV technology requires the use of control words when implemented. Whether the control word field needs to be added when a certain pseudowire is forwarded, and negotiated between the two PE devices that establish the PW as a parameter in the PW signaling negotiation process. When the pseudowire packet is forwarded, the forwarding result needs to be guided according to the negotiation result of the control word at the signaling level. Whether the local control device needs to support the control word, which is derived from the user's configuration information. When the user configures the PW to support the control word on the PE at the end, the PE sends the label advertisement message (also called the mapping message) to the peer PE. It is required to carry information about whether the control word needs to be supported locally.
- the label advertisement message also called the mapping message
- the information is carried in the C field of the Mapping message PWid FEC TLV, which is also called C bit (Bit).
- CBit When CBit is 1, it indicates that the sender of the Mapping message expects the PW. Supporting the control word capability, when CBit is 0, indicating that the sender of the Mapping message does not expect the PW to support the control word capability or the The sending end does not have the ability to support control words.
- the negotiation rule of the control word capability is defined. That is, only when the CBit in the Mapping message advertised by the two PEs of the PW is 1, the PW finally negotiates to support the control word, and the final negotiation result in other cases. All are not supported.
- the negotiation rule of the control word capability is as follows: Scenario 1: When the local PE receives the Mapping message from the peer end, it has not advertised the Mapping message to the peer end. Then: Rule 1.1: If the peer end advertises If the CBit in the Mapping message is 0, it means that the peer does not support the control word. Then, whether the local configuration supports the control word, the subsequent notification message is sent to the peer with the CBit being 0.
- Rule 1.2 If the peer advertises If the CBit in the mapping message is 1, it indicates that the peer supports the control word. If the subsequent local control is configured to support the control word, the peer will advertise the mapping message with CBit 1 to the peer. Finally, the negotiation result of the PW control word is supported. Word mode; Rule 1.3: If the CBit in the Mapping message advertised by the peer is 1, it means that the peer supports the control word. If the subsequent local configuration does not support the control word, then the processing of the peer Mapping message is not received. In the mode, the negotiation is unsuccessful, and the mapping message with CBit 0 is advertised to the peer. Scenario 2: When the mapping message is advertised to the peer, the peer notification mapping message has not been received yet. Rule 2.1: If the mapping message of the peer advertisement has not been received, notify the peer end.
- the CBit of the Mapping message is completely determined by the local control word configuration information. That is, if the local configuration supports the control word, the CBit of the Mapping message advertised to the opposite end is 1; if the local configuration does not support the control word, the CBit of the Mapping message advertised to the opposite end is 0; Rule 2.2: If subsequently received The CBit in the Mapping message of the peer end and the CBit in the Mapping message previously advertised to the peer end, the CBit negotiation process ends.
- the negotiation result is that the control word is not used on the PW; Rule 2.5: For receiving the Withdraw message carrying the "Wrong C-bit" status code, and The Withdraw message has the same processing flow, but does not reply to the peer to release the message, and then waits for the new Mapping message advertised by the peer.
- the general principle of the negotiation of the control word defined in RFC4447 is that when the control word is negotiated, the local notification to the remote mapping message and the CBit carried in the mapping message from the peer end must be the same, then the PW can negotiate successfully. At the same time, when only the CBit of the Mapping message carried on both sides is 1, the PW can negotiate the way to use the control word. Therefore, under this principle, in some scenarios (such as rule 2.4), protocol messages are required to correct the CBit information previously advertised to the remote end, that is, a process of first revoking and re-announcement is performed. In order to achieve the final success of the negotiations. According to the above control word negotiation rule, there may be a problem that the negotiation result is inconsistent with the configuration in the following scenarios.
- Step 403 The local negotiation of the PW is successful for the PW, and the control word negotiation is unsupported;
- Step 404: The PE2 receives the notification of the peer end 3 ⁇ 4 0 The mapping message of the PW is successful.
- the PW negotiation is unsupported. In this case, the negotiation between the two ends is successful, and the control word negotiation is unsupported.
- Step 405 The local configuration of the PE2 is deleted, the local PW is revoked, and the PE2 sends a Withdraw message to the PE1.
- Step 406 The PE1 receives the Withdraw message of the PE2, and the remote message is received, and the PE2 replies with a Release message.
- Step 408 The local negotiation of the P2 is successful for the PW, and the control word negotiation is unsupported;
- Step 409 The PE1 receives the notification from the PE2. After the mapping message of 0 >, the local negotiation of the PW is successful, and the control word negotiation is unsupported. Finally, the two ends of the PW negotiate successfully, and the control word negotiation is unsupported.
- the technical problem to be solved by the present invention is to provide a negotiation method of a control word capability and a pseudowire establishing device, which solves the problem that the control word capability configuration is inconsistent with the negotiation result when the control word capability is negotiated in the pseudowire establishment process.
- the present invention provides a method for negotiating a control word capability, the method comprising: configuring an attribute of a control word capability on a local device and a peer device, and notifying the attribute of the configured control word capability to And the other party performs a comparison process according to the obtained attribute of the control word capability.
- the step of performing the comparison processing by the other party according to the obtained attribute of the control word capability comprises: after the local device and the peer device learn the attribute of the control word capability of the other party, the other party and the user The attributes of the control word capabilities are compared. When the attributes are supported, the negotiation result is determined to be a support control word; otherwise, the negotiation result is determined to not support the control word.
- the step of notifying the attribute of the configured control word capability to the other party includes: sending, by the local device and the peer device, a label advertisement message to the other party, carrying the value and the configured information in the label advertisement message The control word capability flag corresponding to the attribute is used to notify the other party of the attribute of the configured control word capability.
- the step of performing the comparison processing by the other party according to the obtained attribute of the control word capability includes: the local device and the peer device carrying the message after receiving the label advertisement message The value of the control word capability flag is compared with the value of the control word capability flag in the tag advertisement message sent by itself, and the negotiation result is obtained according to the result of the operation.
- the method further includes: when the attribute of the control device capability of the local device and the peer device is changed, canceling the attribute of the notified control word capability to the other party, and notifying the other party of the attribute of the reconfigured control word capability. So that the other party can re-determine the result of the negotiation.
- the method further includes: after the local device and the peer device notify the other party of the attribute of the reconfigured control word capability, the attribute of the control word capability reconfigured by itself and the learned attribute of the control word capability of the other party Compare and reconfirm the results of the negotiations.
- the present invention further provides a pseudowire establishing device, the device comprising: a capability configuration module, a capability notification module, and a comparison module, where: the capability configuration module is configured as: an attribute of a device configuration control word capability And notifying the configured attribute to the capability notification module; The capability notification module is configured to: notify the peer device of the attribute of the configured control word capability;
- the comparison module is configured to: obtain an attribute of a control word capability configured by the peer device, and perform a comparison process according to the obtained attribute of the control word capability of the peer device.
- the comparison module includes: a negotiation determination module, where the negotiation determination module is configured to: after learning the attribute of the control word capability of the peer device, comparing the attributes of the peer device with its own control word capability When the attributes are all supported, the negotiation result is determined to be a support control word; otherwise, the negotiation result is determined to be that the control word is not supported.
- the capability notification module is configured to notify the peer device of the attribute of the configured control word capability in the following manner: sending a label advertisement message to the peer device, and carrying the value in the label advertisement message A control word capability flag corresponding to the configured attribute to notify the peer device of the attribute of the configured control word capability.
- the comparison module is configured to perform the comparison processing as follows: after receiving the label advertisement message sent by the peer device, the value of the control word capability identifier bit carried in the message is The value of the control word capability flag in the sent tag advertisement message is ANDed, and the negotiation result is obtained according to the operation result.
- the capability notification module is further configured to: when the attribute of the control word capability of the device changes, notify the peer device and the comparison module of the attribute of the reconfigured control word capability, so that The end device and the device re-determine the negotiation result.
- the comparison module is further configured to: after receiving the attribute of the self-reconfigured control word capability sent by the capability notification module, the attribute of the control word capability reconfigured by itself and the learned peer device The attributes of the control word capabilities are compared to re-determine the result of the negotiation; or after receiving the attribute of the reconfigured control word capability sent by the peer device, the attribute of the control word capability configured by itself and the control word capability of the peer device are reconfigured.
- the properties are compared to re-determine the negotiation results;
- the device further includes a revocation notification module;
- the capability configuration module is further configured to: when the attribute of the control word capability of the device changes, Knowing that the revoked notification module controls the attribute change of the function; and the revoked notification module is configured to: revoke the attribute of the notified control word capability to the peer device when the attribute of the control word capability is changed from the capability configuration module.
- the CBit information in the Mapping message of the present invention completely reflects the configuration of the local device's control word capability for the PW.
- the present invention performs an AND operation on the identification bit of the local control word capability and the identification bit of the remote control word capability, and the result is used as a final negotiation result of the PW control word capability to guide the forwarding.
- the invention solves the problem that the control word capability configuration and the negotiation result existing in the current definition defined in RFC4447 are inconsistent, and on the other hand optimizes the control word capability negotiation process.
- FIG. 1 is a reference model diagram of a typical pseudowire emulation network in the prior art
- FIG. 2 is a schematic diagram of a format of a pseudowire multi-protocol label switching control word in the prior art
- FIG. 3 is a control word in the prior art.
- FIG. 4 is an interaction diagram of a control word capability negotiation process defined in RFC 4447 in the prior art
- FIG. 5 is a flowchart of a method for negotiating control word capabilities according to an embodiment of the present invention
- FIG. 7 is a flowchart of a method for negotiating a control word capability according to an example of the present invention
- FIG. 8 is a flowchart of a method for establishing a pseudowire device according to an embodiment of the present invention
- the local device and the peer device that establish the pseudowire configure the attribute of the control word capability for the pseudowire, and notify the other party of the attribute of the configured control word capability, and learn the attribute of the control function of the other party. After that, the other party is compared with the attribute of its own control word capability.
- the negotiation result is determined to be a support control word.
- the negotiation result is determined to be that the control word is not supported.
- the CBit Control Word Capability Flag
- the CBit Control Word Capability Flag
- the local control word capability flag is used to perform an AND operation with the value of the control word capability flag bit notified by the remote end. result.
- FIG. 5 is a flowchart of a method for negotiating a control word capability in a pseudowire establishment process according to an embodiment of the present invention.
- the method includes: 501: configuring, for a local device, a local control word capability of the PW;
- PW's local control word capabilities include two types: supported and unsupported. Attributes can be explicitly specified by configuration commands or default parameters that inherit from the device's control word capabilities.
- the local device advertises a mapping message to the peer device, where the value of the CBit carried in the mapping message completely reflects the attribute of the control word capability for the PW.
- the value of the CBit carried in the mapping message is completely determined by the attribute of the control word that is currently configured locally on the PW. Specifically, when the control function of the PW is configured locally, the mapping message is carried. The value of CBit is 1; when the control word capability configured locally for the PW is not supported, the CBit carried in the Mapping message is 0.
- the peer device also configures the PW for the PW, configures the attributes of the control word capability of the PW, and advertises the mapping message to the local device.
- the value of the carried CBit completely reflects the control word capability of the PW. Attributes.
- the local device After receiving the mapping message of the peer end, the local device obtains the value of the CBit in the mapping message of the peer end, and performs an AND operation with the value of the locally configured CBit, and the result of the AND operation is used as the control of the PW.
- the result of the final negotiation of the word capability when the local device takes the "AND" operation between the CBit in the mapping message of the peer and the locally configured CBit, when the local and remote CBit values are all 1, the negotiation result is 1; The result of the negotiation is 0. There is no unsuccessful negotiation, and there is no need to add an additional signaling flow to complete the control word negotiation operation.
- the peer device After receiving the mapping message sent by the local device, the peer device performs an AND operation on the value of the CBit in the received Mapping message and the value of the CBit corresponding to the attribute of the configuration control word capability. The result is the final result of the negotiation of the control word capabilities of the PW.
- the forwarding plane of the pseudowire performs corresponding encapsulation and forwarding of the pseudowire packet according to the result of the negotiation of the signaling layer.
- the forwarding plane of the pseudowire When the forwarding plane of the pseudowire is correspondingly encapsulated and forwarded according to the result of the negotiation of the signaling plane, when the negotiation result of the control word of the signaling plane is 1, the PW packet is forwarded after the PW label.
- a four-byte control word field is added before the user's Layer 2 message; other control results do not need to be added to the control word field.
- the specific encoding of the control word field is determined by the application currently using the control word.
- the value of the control word capability identifier corresponding to the attribute reconfigured by itself is compared with the value of the obtained control word capability identifier of the other party. Re-determine the negotiation result by comparing the attributes of the control word capabilities of the method.
- Step 601 PE2 configures the local support control word for the PW, according to the local configuration capability.
- Step 602: The PE1 is configured to notify the corresponding PW local support control word, and advertise the ⁇ CBit 1> Mapping message to the PE2 according to the locally configured capability;
- the control word capability negotiation is supported.
- Step 604: PE2 receives the peer notification 3 ⁇ 4 1 > Mapping message, will receive
- Step 704: PE2 receives the 3 ⁇ 4 1 > Mapping message from the peer end, and will receive it.
- the value of CBit in the mapping message is the value of CBit corresponding to the local control word capability.
- the result of the AND operation is the result of the negotiation.
- the CBit value of the remote mapping message is 1 and the local value is 0.
- the control word negotiation is not supported. not support.
- Step 705 The local configuration of the PE2 is deleted, and the local sale is performed, and the Withdraw message is sent to the PE1.
- Step 706 The PE1 receives the Withdraw message of the PE2, and the remote end sells the message to the PE2.
- the value of the corresponding CBit bit is ANDed.
- the CBit of the received remote destination message is 1 and the local capability corresponds to CBit 1.
- the control word capability negotiation is supported.
- Step 709: PE1 After receiving the mapping message of ⁇ CBit 1> advertised by the PE2, the value of the CBit in the Mapping message is ANDed with the value of the CBit corresponding to the local control word capability.
- the result is used as the negotiation result.
- CBit is 1, local capability corresponds to CBit, and control word negotiation is supported. At this time, the negotiation between the two ends of the PW is successful, and the control word capability negotiation is supported.
- the device includes: a capability configuration module, a capability notification module, a comparison module, and a revocation notification module, where: the capability configuration module is configured to: configure a property of a control word capability for a pseudowire, The configured attribute is notified to the capability notification module and the comparison module; when the attribute of the control word capability is changed, the notification cancellation notification module configuration is modified, and the reconfigured attribute is notified to the capability notification module and the comparison module.
- the capability notification module is configured to: send a label advertisement message to the peer pseudowire establishment device, and carry the control word capability flag corresponding to the attribute notified by the capability configuration module in the label advertisement message.
- the comparison module is configured to: compare the attributes of the control word capabilities obtained from the capability configuration module and the capability notification module, wherein the comparison module comprises: a negotiation determination module, the negotiation determination module is set to: the control word capability of the other party and itself When the attributes are compared, when the attributes are supported, the negotiation result is determined to be a support control word; otherwise, the negotiation result is determined to be that the control word is not supported; when the comparison module performs comparison, the label notification message is received from the capability notification module. And the value of the control word capability identifier bit is compared with the value of the control word capability flag bit corresponding to the attribute of the control word capability learned from the capability configuration module, and the negotiation result is obtained according to the operation result; and the function is obtained from the capability configuration module.
- the reconfigured attribute is compared with the learned attribute of the other party's control word capability to re-determine the negotiation result.
- the revocation notification module is configured to: when the attribute of the control word capability is changed from the capability configuration module, establish a property of the device to revoke the notified control word capability to the pseudowire. For other functions of each module in the pseudowire establishment device, please refer to the description of the method content.
- the CBit information in the Mapping message of the present invention fully reflects the configuration of the local device's control word capability for the PW.
- the present invention performs an AND operation on the identification bit of the local control word capability and the identification bit of the remote control word capability, and the result is used as a final negotiation result of the control word capability of the PW to guide the forwarding.
- the invention solves the problem that the control word capability configuration and the negotiation result existing in the rules defined in the current RFC4447 are inconsistent, and on the other hand optimizes the flow of the control word capability negotiation.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Communication Control (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了一种控制字能力的协商方法,该方法包括:在本地设备和对端设备上配置控制字能力的属性,并将所配置的控制字能力的属性通知给对方;以及所述对方根据获得的所述控制字能力的属性,进行比较处理。本发明还公开了一种伪线建立设备,该设备包括:能力配置模块、能力通告模块和比较模块。本发明解决了目前RFC4447中定义的规则中存在的控制字能力配置与协商结果不一致的问题。
Description
一种控制字能力的协商方法及伪线建立设备
技术领域 本发明涉及二层虚拟专用网领域, 尤其涉及控制字能力的协商方法及伪 线建立设备。
背景技术 二层虚拟专用网 ( Layer 2 Virtual Private Network, L2VPN )服务, 是运 营商利用其公共共享网络的一部分对客户的专用网络加以扩展, 从而提供在 不同地域中的用户网络的二层的连通性。 伪线(Pseudo Wire, PW )是 L2VPN业务部署的基础。 二层的服务, 如 以太网 (Ethernet ) 服务、 帧中继 (Frame Relay ) 服务和异步传输模式 ( Asynchronous Transfer Mode )服务等, 都可以通过将相应的二层报文格式 进行特定封装, 并在运营商边缘设备之间建立的伪线上进行透明传输。 运营 商通过部署该服务保证了分隔在不同地域的相同客户的连通性以及不同用户 之间的隔离性。 一个典型的伪线仿真的网络参考模型如图 1所示, 某个用户的局域网络 1的用户边缘( Customer Edge, CE ) 1设备通过接入链路( Attachment Circuit, AC ) 1 接入到运营商的多协议标签交换(Multi-Protocol Label Switching, MPLS )骨干网络的边缘(PEl )设备;该用户的局域网络 2的用户边缘(CE2 ) 设备通过接入链路(AC2 )接入到运营商的 MPLS骨干网络的边缘(PE2 ) 设备; 运营商在 PE1和 PE2之间为该业务部署一条伪线。伪线是一对方向相 反的单向的标签转发路径(Label Switch Path, LSP )的集合。 从 ACl上发送 的该用户的局域网 1 内的报文被封装成伪线的协议数据单元(Protocol Data Unit, PDU ) , 通过该伪线透传给对端的 ΡΕ2设备。 当报文到达 ΡΕ2设备时 , ΡΕ2设备经过本地处理后重新恢复为本地形式,并通过 AC2转发到该用户的 局域网 2的网络中去。 CE2到 CE1的 4艮文转发与上述过程类似。 通过上述操作, 完成了该用户不同地域的局域网的信息交换, 而用户的
报文在运营商的骨干网络中是透明传输的。 同时运营商对于不同的用户的报 文可以通过部署不同的伪线或者其它技术手段进行区分, 从而保证了用户业 务的安全性和隔离性。
RFC4385 中描述了端到端的伪线仿真 ( Pseudo Wire Emulation Edge-to-Edge, PWE3 ) 中控制字 ( Control Word, CW ) 的格式定义和作用。 其中, 通用伪线多协议标签交换控制字的格式如图 2所示, 占四个字节的报 文大小。 图 3所示为控制字在伪线 PDU报文中的位置, 其中,控制字位于伪 线 PDU报文的伪线标签和用户 L2PDU之间。 目前, 在伪线 ^艮文中增加控制字的主要应用包括以下两个方面:
一方面, 对于存在负荷分担的组网场景中, 属于一个用户的伪线报文可 能通过多条标签转发路径 (LSP )到达目的边缘(Provider Edge, PE )设备 节点。 因此, 就有可能导致到达目的 PE设备节点的伪线报文出现乱序的情 况, 通过在控制字中定义序列号, 当用户报文向公网侧进行转发的时候, 通 过对伪线报文加上序列号的方式来标识该伪线报文的时序, 从而使目的 PE 设备节点分析伪线报文中的控制字的序列号来对报文进行重组和转发, 保证 用户报文的时序。
VCCV )技术中的带内 (In-Band )控制通道( Control Channel, CC )类型在 实现的时候需要使用到控制字。 某个伪线上在转发的时候是否需要加上控制字字段, 在该 PW信令协商 过程中作为一个参数在建立该 PW的两个 PE设备的之间进行协商的。 伪线 报文转发的时候需要根据信令层面的控制字的协商结果来指导转发。 本地是 否需要支持控制字, 来源于用户的配置信息, 当用户在一端 PE上配置该 PW 需要支持控制字的时候, 则该 PE在发送给对端 PE的标签通告消息 (又称 Mapping消息) 中需要携带本地是否需要支持控制字的信息, 该信息携带在 Mapping消息 PWid FEC TLV中的 C字段中, 又称 C位( Bit ) , 当 CBit为 1时, 表示该 Mapping消息的发送方期望该 PW支持控制字能力, 当 CBit为 0时, 表示该 Mapping消息的发送方不期望该 PW支持控制字能力或者该发
送端不具备支持控制字能力。
RFC4447中定义了控制字能力的协商规则,即只有建立该 PW的两个 PE 互相通告的 Mapping消息中的 CBit都为 1的时候,该 PW才最终协商为支持 控制字, 其它情况最终的协商结果都为不支持。 具体来说, 其控制字能力的 协商规则如下: 场景 1 : 本地 PE在收到对端通告过来的 Mapping消息的时候, 还没有 向对端通告过 Mapping消息 , 则: 规则 1.1 : 如果对端通告过来的 Mapping消息中的 CBit为 0, 则表示对 端不支持控制字, 则后续无论本地配置是否支持控制字, 都向对端通告 CBit 为 0的 Mapping消息; 规则 1.2: 如果对端通告过来的 Mapping消息中的 CBit为 1 , 则表示对 端支持控制字, 如果后续本地配置的是支持控制字, 则向对端通告 CBit为 1 的 Mapping消息, 最终该 PW的控制字的协商结果为支持控制字方式; 规则 1.3: 如果对端通告过来的 Mapping消息中的 CBit为 1 , 则表示对 端支持控制字, 如果后续本地配置的是不支持控制字, 则按照没有收到对端 Mapping消息的处理方式,协商不成功,同时向对端通告 CBit为 0的 Mapping 消息。 场景 2: 向对端通告 Mapping 消息的时候, 还没有收到过对端通告 Mapping消息, 则: 规则 2.1 : 如果还没有收到过对端通告的 Mapping消息, 向对端通告的
Mapping消息的 CBit完全由本地的控制字配置信息决定。 即, 如果本地配置 支持控制字, 则向对端通告的 Mapping消息的 CBit为 1 ; 如果本地配置不支 持控制字, 向对端通告的 Mapping消息的 CBit为 0; 规则 2.2: 如果后续收到的对端的 Mapping消息中的 CBit和之前通告给 对端的 Mapping消息中的 CBit—致, 则 CBit协商过程结束。 即, 如果发送 和接收的 Mapping消息的 CBit都为 1 , 协商结果为 1 , 如果发送和接收的 Mapping消息的 CBit都为 0, 则协商结果为 0;
规则 2.3: 如果之前发送给对端的 Mapping消息 CBit为 0, 但是收到对 端的 Mapping消息的 CBit为 1 , 则忽略此次对端通告过来的 Mapping消息, 等待对端再次通告新的 Mapping消息; 规则 2.4: 如果之前发送给对端的 Mapping消息 CBit为 1 , 但是收到对 端的 Mapping消息的 CBit为 0, 则需要发送一个携带 "Wrong C-bit"状态码 的撤销 ( Withdraw )消息, 随后再发送一个携带 CBit为 0的 Mapping消息给 对端, 控制字协商完成, 协商结果为该 PW上不使用控制字; 规则 2.5: 对于收到携带 "Wrong C-bit"状态码的 Withdraw消息的处理, 和普通的 Withdraw消息的处理流程一样, 但是不向对端应答释放 ( Release ) 消息, 然后等待对端通告过来的新的 Mapping消息。
RFC4447中定义的控制字的协商的总体原则为控制字协商的时候, 本地 通告给远端的 Mapping消息和对端通告过来的 Maping消息中携带的 CBit必 须相同, 则该 PW才能够协商成功。 同时只有两边携带的 Mapping 消息的 CBit为 1的时候, 该 PW才能协商为使用控制字的方式。 因此, 在这个原则 下, 在某些场景 (如规则 2.4 ) 中, 需要使用协议报文对之前通告给远端的 CBit信息进行纠正, 即执行一个先撤销再通告的过程。 以达到最终协商成功 的目的。 根据上述的控制字协商规则, 那么在以下场景中会存在协商结果与配置 不一致的问题。 如图 4所示, 具体描述如下: 步骤 401 : PE2配置该 PW本地不支持控制字, 根据规则 2.1向 PE1发 送一个 <CBit = 0 >的 Mapping消息; 步骤 402: PE1配置该 PW本地支持控制字, 根据规则 1.1向 PE2通告 一个 <CBit = 0 >的 Mapping消息; 步骤 403: PE1针对该 PW本地协商成功, 控制字协商为不支持的方式; 步骤 404: PE2收到对端通告的 ¾ = 0 >的 Mapping消息, PW本地协 商成功, 协商为不支持的方式, 此时, 该 PW两端协商成功, 控制字协商为 不支持的方式;
步骤 405: PE2本地配置删除,本地 PW撤销, PE2向 PE1发送 Withdraw 消息;
步骤 406: PE1收到 PE2的 Withdraw消息, 远端 敦销, 向 PE2应答 一个 Release消息; 步骤 407: PE2重新配置该 PW本地支持控制字, 按照已接收到的 PE1 通告的 CBit为 0的 Mapping消息,根据规则 1.1向 PE1通告一个<〇8 = 0 > 的 Mapping消息; 步骤 408: PE2针对该 PW本地协商成功, 控制字协商为不支持的方式; 步骤 409: PE1收到 PE2通告来的 ¾ = 0 >的 Mapping消息后, 针对 该 PW本地协商成功, 控制字协商为不支持的方式, 最终, 该 PW两端协商 成功, 控制字协商为不支持的方式。 从上面的协商过程的描述可以看出, 在这种时序场景中, 当 PE2修改本 地的控制字配置属性(由不支持修改为支持)的时候, 根据 PE1先前通告给 PE2的 Mapping消息中的 CBit为 0, 判断 PE1为不支持控制字的方式,从而 向对端通告的 Mapping消息中的 CBit为 0,修改配置的目的是使 PE1和 PE2 的本地配置都为支持控制字的方式, 但是根据上述规则的协商结果仍然是不 支持, 造成配置和预期协商结果的不一致。
发明内容
本发明要解决的技术问题是提供一种控制字能力的协商方法及伪线建立 设备, 解决在伪线建立过程中协商控制字能力时, 控制字能力配置与协商结 果不一致的问题。 为解决上述技术问题, 本发明提供了一种控制字能力的协商方法, 该方 法包括: 在本地设备和对端设备上配置控制字能力的属性, 并将所配置的控制字 能力的属性通知给对方; 以及 所述对方根据获得的所述控制字能力的属性, 进行比较处理。
本发明的方法中, 所述对方根据获得的所述控制字能力的属性, 进行比 较处理的步骤包括: 所述本地设备和对端设备在获知对方的控制字能力的属性后, 将对方与 自身的控制字能力的属性进行比较, 当属性均为支持时, 确定协商结果为支 持控制字; 否则, 确定协商结果为不支持控制字。 本发明的方法中,将所配置的控制字能力的属性通知给对方的步骤包括: 所述本地设备和对端设备通过向对方发送标签通告消息, 在该标签通告 消息中携带取值与所配置的属性对应的控制字能力标识位, 以将所配置的控 制字能力的属性通知给对方。 本发明的方法中, 所述对方根据获得的所述控制字能力的属性, 进行比 较处理的步骤包括: 所述本地设备和对端设备在接收到所述标签通告消息后, 将该消息中携 带的控制字能力标识位的取值与自身发送的标签通告消息中控制字能力标识 位的取值进行与运算, 根据与运算结果得到协商结果。 该方法还包括: 所述本地设备和所述对端设备的控制字能力的属性改变时, 向对方撤销 已通知的控制字能力的属性,并将重新配置的控制字能力的属性通知给对方, 以使对方重新确定协商结果。 该方法还包括: 所述本地设备和所述对端设备将重新配置的控制字能力的属性通知给对 方后, 将自身重新配置的控制字能力的属性与已获知的对方的控制字能力的 属性进行比较, 重新确定协商结果。 为解决上述技术问题,本发明还提供了一种伪线建立设备,该设备包括: 能力配置模块、 能力通告模块和比较模块, 其中: 所述能力配置模块设置为: 设备配置控制字能力的属性; 并将所配置的 属性通知给所述能力通告模块;
所述能力通告模块设置为: 将所配置的控制字能力的属性通知给对端设 备;
所述比较模块设置为: 获取对端设备所配置的控制字能力的属性, 根据 获得的对端设备的所述控制字能力的属性, 进行比较处理。 本发明的设备中, 所述比较模块包括: 协商确定模块, 所述协商确定模块设置为: 获知对端设备的控制字能力的属性后, 将对 端设备与自身的控制字能力的属性进行比较, 当属性均为支持时, 确定协商 结果为支持控制字; 否则, 确定协商结果为不支持控制字。 本发明的设备中 , 所述能力通告模块是设置为按如下方式将所配置的控 制字能力的属性通知给对端设备: 向对端设备发送标签通告消息, 在该标签 通告消息中携带取值与所配置的属性对应的控制字能力标识位, 以将所配置 的控制字能力的属性通知给对端设备。 本发明的设备中, 所述比较模块是设置为按如下方式进行比较处理: 在 接收到对端设备发送来的标签通告消息后, 将该消息中携带的控制字能力标 识位的取值与自身发送的标签通告消息中控制字能力标识位的取值进行与运 算, 根据运算结果得到协商结果。 本发明的设备中, 所述能力通告模块还设置为: 当本设备的控制字能力 的属性改变时, 将重新配置的控制字能力的属性通知给对端设备以及所述比 较模块, 以使对端设备以及本设备重新确定协商结果。 本发明的设备中, 所述比较模块还设置为: 接收到能力通告模块发送的 自身重新配置的控制字能力的属性后, 将自身重新配置的控制字能力的属性 与已获知的对端设备的控制字能力的属性进行比较, 重新确定协商结果; 或 者接收到对端设备发送的重新配置的控制字能力的属性后, 将自身配置的控 制字能力的属性与对端设备重新配置的控制字能力的属性进行比较, 重新确 定协商结果; 。 该设备还包括撤销通告模块; 所述能力配置模块还设置为: 当本设备的控制字能力的属性改变时, 通
知所述撤销通告模块控制字能力的属性改变; 以及 所述撤销通告模块设置为: 在从能力配置模块获知控制字能力的属性改 变时, 向对端设备撤销已通知的控制字能力的属性。
综上所述,本发明的 Mapping消息中的 CBit信息, 完全反映本地设备针 对 PW的控制字能力的配置。 在协商过程中, 本发明将本地控制字能力的标 识位与远端控制字能力的标识位进行 "与" 运算, 其结果作为该 PW的控制 字能力的最终协商结果来指导转发。本发明一方面解决了目前 RFC4447中定 义的规则中存在的控制字能力配置与协商结果不一致的问题, 另一方面优化 了控制字能力协商的流程。
附图概述 图 1是现有技术中典型的伪线仿真的网络的参考模型图; 图 2是现有技术中伪线多协议标签交换控制字的格式示意图; 图 3是现有技术中控制字在伪线报文中位置的示意图; 图 4是现有技术中 RFC4447中定义的控制字能力协商流程的交互图; 图 5是本发明实施例控制字能力的协商方法的流程图; 图 6是本发明实施例应用示例 1控制字能力的协商方法的流程图; 图 7是本发明实施例应用示例 2控制字能力的协商方法的流程图; 图 8是本发明实施例伪线建立设备的架构图。
本发明的较佳实施方式 为使本发明的目的、 技术方案和优点更加清楚明白, 下文中将结合附图 对本发明的实施例进行详细说明。 需要说明的是, 在不冲突的情况下, 本申 请中的实施例及实施例中的特征可以相互任意组合。
本发明实施例中, 建立伪线的本地设备和对端设备均针对伪线配置控制 字能力的属性, 并将所配置的控制字能力的属性通知给对方, 在获知对方的 控制字能力的属性后, 将对方与自身的控制字能力的属性进行比较, 当属性 均为支持时, 确定协商结果为支持控制字; 其中有一方的属性为不支持时, 确定协商结果为不支持控制字。 通过向对方发送 Mapping消息, 在该标签通 告消息中携带取值与所配置的属性对应的 CBit (控制字能力标识位)将所配 置的控制字能力的属性通知给对方,在 Mapping消息中的 CBit真实反映本地 设备当前针对 PW的控制字能力的配置, 进行属性比较时, 釆用本地的控制 字能力标识位与远端通告来的控制字能力标识位的取值进行 "与" 操作, 得 到协商结果。 下面结合附图详细说明本实施例。
图 5所示为本实施方式在伪线建立过程中控制字能力的协商方法的流程 图, 该方法包括: 501 : 本地设备中针对某 PW进行配置, 配置该 PW的本地控制字能力的 属性;
PW 的本地控制字能力的属性包括两种: 支持和不支持, 属性可以由配 置命令进行显式指定, 也可以是继承自该设备控制字能力的默认参数。
502: 本地设备向对端设备通告 Mapping消息, 其中 Mapping消息携带 的 CBit的取值完全真实反映针对该 PW的控制字能力的属性;
Mapping消息中携带的 CBit的取值,完全取决于对 PW当前本地配置的 控制字能力的属性, 具体来说, 当对该 PW当前本地配置的控制字能力为支 持时, 则 Mapping消息中携带的 CBit的取值为 1; 当针对该 PW本地配置的 控制字能力为不支持时, 则 Mapping消息中携带的 CBit为 0。 对端设备同时也会针对 PW进行配置,配置该 PW的控制字能力的属性, 并向上述本地设备通告 Mapping消息,携带的 CBit的取值完全真实反映针对 该 PW其自身配置的控制字能力的属性。
503: 本地设备收到对端的 Mapping消息后, 获取对端的 Mapping消息 中的 CBit的取值, 与本地配置的 CBit的取值进行 "与" 操作, "与" 操作 的结果作为对该 PW的控制字能力的最终协商结果; 本地设备取对端的 Mapping消息中的 CBit与本地配置的 CBit进行 "与 " 操作时, 当本地和远端的 CBit取值都为 1时, 协商结果为 1 ; 其它情况, 协 商结果都为 0。 不存在协商不成功的情况, 也不需要增加额外的信令流程来 完成控制字协商的操作。 对端设备接收到上述本地设备发送的 Mapping消息后, 也会将接收到的 Mapping消息中的 CBit的取值, 与自身配置控制字能力的属性对应的 CBit 的取值进行 "与"操作, 其结果作为对该 PW的控制字能力的最终协商结果。
504:伪线的转发面根据信令层面协商的结果来对伪线报文进行相应的封 装转发;
伪线的转发面根据信令层面协商的结果来对伪线报文进行相应的封装转 发时, 当信令层面控制字的协商结果为 1时, 则对 PW报文在转发时在 PW 标签之后和用户二层报文之前加上四个字节的控制字字段;其它协商结果时, 不需要加入控制字字段。 控制字字段的具体编码由当前使用控制字的应用决 定。
505: 当伪线一端设备的控制字能力改变时,需要在信令层面先向对方撤 销已通知的控制字能力的属性, 再重新发送 Mapping消息, 通知重新配置的 对方控制字能力的属性, 以使对方重新确定协商结果。 当伪线一端的控制字能力改变时, 如果建立该伪线的两个 PE设备有一 端修改了本地的控制字能力,则需要通过向对方发送 Withdraw消息撤销之前 通告的 Mapping 消息, 再重新通告携带当前本地最新的控制字能力的 Mapping消息给对方, 重新发送 Mapping消息后, 将自身重新配置的属性对 应的控制字能力标识的取值与已得到的对方的控制字能力标识的取值进行与 运算, 以比较方法的控制字能力的属性, 重新确定协商结果。
应用示例 1 :
场景 1 : 伪线两边的设备配置的控制字能力相同, 以两边设备均支持控 制字为例进行描述, 如图 6所示: 步骤 601 : PE2针对 PW配置本地支持控制字, 根据本地配置的能力向 PE1通告 <CBit = 1 >的 Mapping消息; 步骤 602: PE1配置针对相应 PW本地支持控制字, 根据本地配置的能 力向 PE2通告 <CBit = 1 >的 Mapping消息; 步骤 603: PE1将收到的 Mapping消息中的 CBit的取值与本地控制字能 力的 CBit的取值进行 "与"运算, 针对该 PW本地协商成功, 控制字能力协 商为支持; 步骤 604: PE2收到对端通告的 ¾ = 1 >的 Mapping消息, 将收到的
Mapping 消息中的 CBit 的取值与本地控制字能力对应的 CBit 的取值进行 "与" 运算, PW本地协商成功, 控制字能力协商为支持 此时, 该 PW两端协商成功, 控制字协商为支持的方式。 当两个 PE设备配置均为不支持控制字能力时协商流程与上述流程类似, 在此不再赘述。 应用示例 2: 场景 2: 伪线两边的设备配置的控制字能力不相同, 如图 7所示: 步骤 701 : PE2配置对一 PW本地不支持控制字, 根据本地配置的能力 向 PE1发送一个< 8 = 0 >的 Mapping消息; 步骤 702: PE1配置相应 PW本地支持控制字, 根据本地配置的能力向
PE2通告一个 <CBit =1 >的 Mapping消息; 步骤 703: PE1将收到的 Mapping消息中的 CBit的取值与本地控制字能 力对应的 CBit的取值进行 "与"运算, 其结果作为协商结果, 由于远端 CBit 为 0, 而本地为 1 , 控制字能力协商为不支持; 步骤 704: PE2收到对端通告的 ¾ = 1 >的 Mapping消息, 将收到的
Mapping 消息中的 CBit 的取值与本地控制字能力对应的 CBit 的取值进行
"与"运算,其结果作为协商结果, 由于远端 Mapping消息的 CBit取值为 1 , 而本地为 0, 控制字协商为不支持; 此时, 针对 PW两端协商成功, 控制字能力协商为不支持。 步骤 705: PE2本地配置删除, 本地 敦销, 向 PE1发送 Withdraw消 息; 步骤 706: PE1收到 PE2的 Withdraw消息, 远端 敦销, 向 PE2应答 Release消息; 步骤 707: PE2重新配置该 PW本地支持控制字, 根据本地配置的能力 向 PE1通告一个<〇8 = 1 >的 Mapping消息; 步骤 708: PE2将已从 PE1收到的 Mapping消息 (步骤 704 ) 中的 CBit 的取值与本地控制字能力对应的 CBit位的取值进行 "与"运算, 结果作为协 商结果, 由于已接收到的远端 Mapping消息的 CBit为 1 , 本地能力对应 CBit 为 1 , 控制字能力协商为支持; 步骤 709: PE1收到 PE2通告的 <CBit =1 >的 Mapping消息后,将 Mapping 消息中的 CBit的取值与本地控制字能力对应的 CBit的取值进行 "与"运算, 其结果作为协商结果, 由于远端 CBit为 1 , 本地能力对应 CBit为 1 , 控制字 协商为支持。 此时, 针对 PW两端设备协商成功, 控制字能力协商为支持。
图 8为本实施例的伪线建立设备, 该设备包括: 能力配置模块、 能力通 告模块、 比较模块和撤销通告模块, 其中: 能力配置模块设置为: 针对伪线, 配置控制字能力的属性, 并将所配置 的属性通知给能力通告模块和比较模块; 在控制字能力的属性改变时, 通知 撤销通告模块配置已修改, 并将重新配置的属性通知给能力通告模块和比较 模块。 能力通告模块设置为: 通过向对方伪线建立设备发送标签通告消息, 在 该标签通告消息中携带取值与能力配置模块通知的属性对应的控制字能力标
识位, 以将能力配置模块通知的属性通知给对方伪线建立设备, 并将从对方 的伪线建立设备接收到的用于通知对方控制字能力的属性的标签通告消息发 送给比较模块, 以将对方控制字能力的属性通知给比较模块; 还将从能力配 置模块获知的重新配置的属性通知给对方伪线建立设备, 以使对方重新确定 协商结果。 比较模块设置为: 将从能力配置模块和能力通告模块获得的控制字能力 的属性进行比较, 其中, 比较模块包括: 协商确定模块, 该协商确定模块设置为: 在将对方与自 身的控制字能力的属性进行比较时, 当属性均为支持时, 确定协商结果为支 持控制字; 否则, 确定协商结果为不支持控制字; 比较模块进行比较时, 将 从能力通告模块接收到标签通告消息中携带的控制字能力标识位的取值与从 能力配置模块获知的控制字能力的属性对应的控制字能力标识位的取值进行 与运算, 根据运算结果得到协商结果; 以及将从能力配置模块获知的重新配 置的属性与已获知的对方控制字能力的属性进行比较, 重新确定协商结果。 撤销通告模块设置为:在从能力配置模块获知控制字能力的属性改变时, 向对方伪线建立设备撤销已通知的控制字能力的属性。 伪线建立设备中各模块其它功能请参考方法内容的描述。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 程序可以存储于计算机可读存储介质中, 如只读存储 器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用一个 或多个集成电路来实现。 相应地, 上述实施例中的各模块可以釆用硬件的形 式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任何特定形 式的硬件和软件的结合。 当然, 本发明还可有其他多种实施用例, 在不背离本发明精神及其实质 形, 但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。
工业实用性 本发明的 Mapping消息中的 CBit信息,完全反映了本地设备针对 PW的 控制字能力的配置。 在协商过程中, 本发明将本地控制字能力的标识位与远 端控制字能力的标识位进行 "与" 运算, 其结果作为该 PW的控制字能力的 最终协商结果来指导转发。本发明一方面解决了目前 RFC4447中定义的规则 中存在的控制字能力配置与协商结果不一致的问题, 另一方面优化了控制字 能力协商的流程。
Claims
1、 一种控制字能力的协商方法, 该方法包括: 在本地设备和对端设备上配置控制字能力的属性, 并将所配置的控制字 能力的属性通知给对方; 以及 所述对方根据获得的所述控制字能力的属性, 进行比较处理。
2、如权利要求 1所述的方法, 其中, 所述对方根据获得的所述控制字能 力的属性, 进行比较处理的步骤包括: 所述本地设备和对端设备在获知对方的控制字能力的属性后, 将对方与 自身的控制字能力的属性进行比较, 当属性均为支持时, 确定协商结果为支 持控制字; 否则, 确定协商结果为不支持控制字。
3、如权利要求 1所述的方法, 其中, 将所配置的控制字能力的属性通知 给对方的步骤包括: 所述本地设备和对端设备通过向对方发送标签通告消息, 在该标签通告 消息中携带取值与所配置的属性对应的控制字能力标识位, 以将所配置的控 制字能力的属性通知给对方。
4、 如权利要求 3 所述的方法, 其中, 所述对方根据获得的所述控制字 能力的属性, 进行比较处理的步骤包括: 所述本地设备和对端设备在接收到所述标签通告消息后, 将该消息中携 带的控制字能力标识位的取值与自身发送的标签通告消息中控制字能力标识 位的取值进行与运算, 根据与运算结果得到协商结果。
5、 如权利要求 1~4中任意之一项所述的方法, 该方法还包括: 所述本地设备和所述对端设备的控制字能力的属性改变时, 向对方撤销 已通知的控制字能力的属性,并将重新配置的控制字能力的属性通知给对方, 以使对方重新确定协商结果。
6、 如权利要求 5所述的方法, 该方法还包括: 所述本地设备和所述对端设备将重新配置的控制字能力的属性通知给对 方后, 将自身重新配置的控制字能力的属性与已获知的对方的控制字能力的 属性进行比较, 重新确定协商结果。
7、 一种伪线建立设备, 该设备包括: 能力配置模块、 能力通告模块和比 较模块, 其中: 所述能力配置模块设置为: 设备配置控制字能力的属性; 并将所配置的 属性通知给所述能力通告模块; 所述能力通告模块设置为: 将所配置的控制字能力的属性通知给对端设 备; 所述比较模块设置为: 获取对端设备所配置的控制字能力的属性, 根据 获得的对端设备的所述控制字能力的属性, 进行比较处理。
8、 如权利要求 7所述的设备, 其中: 所述比较模块包括: 协商确定模块, 所述协商确定模块设置为: 获知对端设备的控制字能力的属性后, 将对 端设备与自身的控制字能力的属性进行比较, 当属性均为支持时, 确定协商 结果为支持控制字; 否则, 确定协商结果为不支持控制字。
9、 如权利要求 7所述的设备, 其中: 所述能力通告模块是设置为按如下方式将所配置的控制字能力的属性通 知给对端设备: 向对端设备发送标签通告消息, 在该标签通告消息中携带取 值与所配置的属性对应的控制字能力标识位, 以将所配置的控制字能力的属 性通知给对端设备。
10、 如权利要求 9所述的设备, 其中: 所述比较模块是设置为按如下方式进行比较处理: 在接收到对端设备发 送来的标签通告消息后, 将该消息中携带的控制字能力标识位的取值与自身 发送的标签通告消息中控制字能力标识位的取值进行与运算, 根据运算结果 得到协商结果。
11、 如权利要求 7~10中任意之一项所述的设备, 其中: 所述能力通告模块还设置为: 当本设备的控制字能力的属性改变时, 将 重新配置的控制字能力的属性通知给对端设备以及所述比较模块, 以使对端 设备以及本设备重新确定协商结果。
12、 如权利要求 11所述的设备, 其中: 所述比较模块还设置为: 接收到能力通告模块发送的自身重新配置的控 制字能力的属性后, 将自身重新配置的控制字能力的属性与已获知的对端设 备的控制字能力的属性进行比较, 重新确定协商结果; 或者接收到对端设备 发送的重新配置的控制字能力的属性后, 将自身配置的控制字能力的属性与 对端设备重新配置的控制字能力的属性进行比较, 重新确定协商结果。
13、 如权利要求 11所述的设备, 该设备还包括撤销通告模块; 所述能力配置模块还设置为: 当本设备的控制字能力的属性改变时, 通 知所述撤销通告模块控制字能力的属性改变; 以及 所述撤销通告模块设置为: 在从能力配置模块获知控制字能力的属性改 变时, 向对端设备撤销已通知的控制字能力的属性。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010263099.6 | 2010-08-20 | ||
CN201010263099.6A CN101924676B (zh) | 2010-08-20 | 2010-08-20 | 一种控制字能力的协商方法及伪线建立设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2012022182A1 true WO2012022182A1 (zh) | 2012-02-23 |
Family
ID=43339336
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2011/074661 WO2012022182A1 (zh) | 2010-08-20 | 2011-05-25 | 一种控制字能力的协商方法及伪线建立设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN101924676B (zh) |
WO (1) | WO2012022182A1 (zh) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101924676B (zh) * | 2010-08-20 | 2014-07-02 | 中兴通讯股份有限公司 | 一种控制字能力的协商方法及伪线建立设备 |
CN102624601B (zh) * | 2011-01-28 | 2014-12-03 | 华为技术有限公司 | 一种数据报文发送方法、网络装置及网络系统 |
CN102263700B (zh) * | 2011-08-18 | 2017-02-08 | 中兴通讯股份有限公司 | 一种报文收发方法、装置和系统 |
CN103220220B (zh) * | 2012-01-20 | 2018-06-19 | 中兴通讯股份有限公司 | 一种伪线建立的方法和装置 |
CN104486264B (zh) * | 2014-12-09 | 2018-01-12 | 中国航空工业集团公司第六三一研究所 | 一种基于交换控制字的交换机内部总线结构 |
CN106850247A (zh) * | 2017-01-04 | 2017-06-13 | 安徽皖通邮电股份有限公司 | 一种伪线控制字升级方法 |
CN110912796B (zh) * | 2018-09-15 | 2022-03-11 | 华为技术有限公司 | 一种通信方法、设备和系统 |
CN111953505A (zh) * | 2019-05-14 | 2020-11-17 | 中兴通讯股份有限公司 | 一种确定伪线控制字协商方式的方法及相关设备 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1809070A (zh) * | 2006-01-26 | 2006-07-26 | 华为技术有限公司 | 一种l2vpn实现每vc在接入层资源控制的方法 |
CN101631072A (zh) * | 2008-07-17 | 2010-01-20 | 华为技术有限公司 | 一种伪线建立方法、装置和系统 |
CN101631069A (zh) * | 2008-07-18 | 2010-01-20 | 华为技术有限公司 | 伪线参数协商的方法、系统及设备 |
CN101924676A (zh) * | 2010-08-20 | 2010-12-22 | 中兴通讯股份有限公司 | 一种控制字能力的协商方法及伪线建立设备 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7499395B2 (en) * | 2005-03-18 | 2009-03-03 | Cisco Technology, Inc. | BFD rate-limiting and automatic session activation |
CN101212400B (zh) * | 2006-12-25 | 2011-06-15 | 华为技术有限公司 | 一种协商伪线的双向转发检测会话区分符的方法及系统 |
US8050267B2 (en) * | 2007-02-19 | 2011-11-01 | Cisco Technology, Inc. | Simple virtual private network for small local area networks |
CN101252584B (zh) * | 2008-04-09 | 2011-04-20 | 华为技术有限公司 | 双向转发检测协议会话的认证方法、系统和设备 |
-
2010
- 2010-08-20 CN CN201010263099.6A patent/CN101924676B/zh not_active Expired - Fee Related
-
2011
- 2011-05-25 WO PCT/CN2011/074661 patent/WO2012022182A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1809070A (zh) * | 2006-01-26 | 2006-07-26 | 华为技术有限公司 | 一种l2vpn实现每vc在接入层资源控制的方法 |
CN101631072A (zh) * | 2008-07-17 | 2010-01-20 | 华为技术有限公司 | 一种伪线建立方法、装置和系统 |
CN101631069A (zh) * | 2008-07-18 | 2010-01-20 | 华为技术有限公司 | 伪线参数协商的方法、系统及设备 |
CN101924676A (zh) * | 2010-08-20 | 2010-12-22 | 中兴通讯股份有限公司 | 一种控制字能力的协商方法及伪线建立设备 |
Non-Patent Citations (3)
Title |
---|
"Pseudowire Control Word Negotiation Mechanism Analysis and Update draft-jin-pwe3-cbit-negotiation-00.txt", IETF, 11 October 2010 (2010-10-11) * |
"Pseudowire Control Word Negotiation Mechanism Update draft-jin-pwe3-cbit-negotiation-04.txt", IETF, 11 March 2011 (2011-03-11) * |
"RFC4447 Pseudowire Setup and Maintenance Using the Label Distribution Protocol (LDP)", IETF, April 2006 (2006-04-01) * |
Also Published As
Publication number | Publication date |
---|---|
CN101924676A (zh) | 2010-12-22 |
CN101924676B (zh) | 2014-07-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2012022182A1 (zh) | 一种控制字能力的协商方法及伪线建立设备 | |
WO2008077300A1 (fr) | Procédé et système permettant de négocier le discriminateur de session de détection de transmission bidirectionnelle d'un pseudo-fil | |
WO2013182059A1 (zh) | 多协议标签交换流量工程隧道建立方法及设备 | |
CN103259724B (zh) | 一种mpls vpn的实现方法、系统及客户边缘设备 | |
WO2013139159A1 (zh) | 在网络中转发报文的方法和运营商边缘设备 | |
WO2014044151A1 (zh) | Vpn实现方法和pe设备 | |
WO2013113171A1 (zh) | 流识别的方法、设备和系统 | |
US9191312B2 (en) | Method and system for implementing PW control bit capability negotiation | |
WO2011000140A1 (zh) | 一种伪线的建立方法、装置和系统 | |
WO2015100585A1 (zh) | 光纤到分配点设备及其通信方法 | |
WO2013117165A1 (zh) | 实现基于VPLS的E-tree业务的方法和节点 | |
WO2023035836A1 (zh) | 一种报文处理方法及相关装置 | |
JP6371399B2 (ja) | インターフェースパラメーター同期方法及び装置 | |
WO2022257773A1 (zh) | 路由检测方法、设备、系统及存储介质 | |
JP5840211B2 (ja) | オフセットを用いてインバンド制御チャネルを提供する疑似ワイヤ | |
WO2013016983A1 (zh) | 伪线冗余协商模式的检测方法、系统及装置 | |
US20150281058A1 (en) | Pseudo wire in layer 2 virtual private network | |
WO2022267619A1 (zh) | 一种通信方法及相关设备 | |
WO2022183927A1 (zh) | 一种报文传输方法及装置 | |
WO2012013060A1 (zh) | 通过伪线传输业务的方法及装置 | |
JP3936319B2 (ja) | 疎通確認方法、データ中継装置、データ中継システム | |
CN106850247A (zh) | 一种伪线控制字升级方法 | |
US9294299B2 (en) | Method of communication between two items of termination equipment | |
WO2014082430A1 (zh) | 报文控制方法及装置 | |
CN115086105A (zh) | 一种报文传输方法及装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 11817709 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 11817709 Country of ref document: EP Kind code of ref document: A1 |