WO2014127633A1 - Lldp packet transmission method and dcb device - Google Patents

Lldp packet transmission method and dcb device Download PDF

Info

Publication number
WO2014127633A1
WO2014127633A1 PCT/CN2013/083946 CN2013083946W WO2014127633A1 WO 2014127633 A1 WO2014127633 A1 WO 2014127633A1 CN 2013083946 W CN2013083946 W CN 2013083946W WO 2014127633 A1 WO2014127633 A1 WO 2014127633A1
Authority
WO
WIPO (PCT)
Prior art keywords
application priority
sequence
data
bit segment
tlv
Prior art date
Application number
PCT/CN2013/083946
Other languages
French (fr)
Chinese (zh)
Inventor
曹淑玲
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2014127633A1 publication Critical patent/WO2014127633A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/324Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the data link layer [OSI layer 2], e.g. HDLC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks

Definitions

  • the present invention relates to the field of communication technologies, and in particular, to a Link Layer Discovery Protocol (Link Layer Discovery Protocol) for carrying an Application Priority (APPP) Type Length Value (TLV).
  • Link Layer Discovery Protocol for carrying an Application Priority (APPP) Type Length Value (TLV).
  • a data center is a center for providing enterprise application service services, and is a center for data calculation, exchange, and storage. It combines advanced network technology and storage technology to carry more than 80% of service requests and data storage in the network, providing services and operating platforms for the healthy operation of the customer's business system.
  • enhanced Ethernet is currently proposed. Enhanced Ethernet allows for the division of different services to meet the needs of both ordinary Ethernet and data center networks.
  • the Data Center Bridging Exchange (DCBX) protocol specifies the DCB (automatic discovery and capability exchange protocol for devices), which is directly applied to DCB devices in the data center environment.
  • the peer device exchanges the configuration information and configures the DCB function for the peer device if the peer device allows it. This protocol is also used for the detection of the mismatch configuration and the configuration of the peer device directly connected to it.
  • the data center protocol extends the TLV field of the IEEE 802.1AB LLDP Organization Specific Identifier (OUI) and carries it in the LLDP packet for transmission.
  • the application priority protocol can be based on the port number or the packet. The protocol type divides the received packets according to their priorities, so that different service flows can be classified.
  • Application priority function divides local users into services through DCBX.
  • the situation is encapsulated into an LLDP TLV message and sent to the peer.
  • the configuration of the LLDP TLV packet is as follows: Figure 1 shows the structure of an LLDP TLV packet.
  • the LLDP service consumes three bytes of the TLV field. 2)), the service packets are divided according to the port number or the protocol type.
  • the problem is that the length of the packet occupied by the service division information in the packet is likely to exceed The maximum length of the message; in addition, even if only the port number is divided, sometimes the packet transmission is required, and the split message may have hundreds of messages or even more, thereby increasing the central processing unit.
  • the embodiments of the present invention provide an LLDP packet transmission method and a DCB device that carry an application priority TLV.
  • a method for transmitting an LLDP packet carrying an application priority TLV including:
  • the DCB device is configured to carry the extended LLDP packet with the application priority TLV, and expand, in the field of the application priority TLV, a sequence bit segment indicating whether the application priority packet content is continuous; according to the service data of the current port of the DCB device The continuity is filled with the corresponding service data, and the sequence bit segment is set accordingly; the extended LLDP packet after the data is filled is sent to the peer device.
  • the step of filling the corresponding service data according to the continuity of the service data of the current port of the DCB device, and performing the corresponding set operation on the sequence bit segment comprises: applying the priority priority entry of the DCB device to the current port configuration Performing a categorization, and checking a continuous state of an application priority entry of the same service type; calculating and generating a service data sequence of the same service type under the current port according to the continuous state; transmitting an extended LLDP carrying an application priority TLV In the message, if the service data sequence is a contiguous sequence, the application priority TLV field is filled with the start data and the end data of the contiguous sequence, and the sequence bit segment is set; otherwise, the priority TLV is applied according to the default padding rule.
  • the method further includes: updating a division type of the service data of the current port of the DCB device according to the user modification operation, and returning to the execution step to calculate and generate a service data sequence of the same service type under the current port according to the continuous state.
  • the rules of the set sequence bit segment include: If the start data is the first field of the application priority TLV field, the sequence bit segment is set or not set; if the start data is other fields of the application priority TLV field, The sequence bit segment is not set.
  • the rule of the set sequence bit segment further comprises: if the sequence bit segment of the plurality of consecutive fields is set, the sequence bit segment of the last field is set to be valid.
  • a DCB device for transmitting an LLDP packet carrying an application priority TLV including: a configuration module, configured to configure an extended LLDP packet carrying an application priority TLV, where The field extension of the application priority TLV indicates whether the application priority message content is consecutive sequence segments; the operation module is configured to fill the corresponding service data according to the continuity of the service data of the current port of the DCB device, and The sequence bit segment is set to be correspondingly set; the sending module is configured to send the extended LLDP packet after the data is filled to the peer device.
  • the operation module includes: a categorization checking unit, configured to classify an application priority entry configured by the current port of the DCB device, and check a continuous state of an application priority entry of the same service type; And setting, according to the continuous state, a service data sequence of the same service type under the current port, and a data filling unit, configured to send the service data when the extended LLDP packet carrying the application priority TLV is sent If the sequence is a contiguous sequence, the start and end data of the contiguous sequence are filled in the application priority TLV field, and the sequence bit segment is set; otherwise, the service data is filled in the application priority TLV field according to the default padding rule.
  • a categorization checking unit configured to classify an application priority entry configured by the current port of the DCB device, and check a continuous state of an application priority entry of the same service type
  • a data filling unit configured to send the service data when the extended LLDP packet carrying the application priority TLV is sent If the sequence is a contiguous sequence, the start and end data
  • the categorization checking unit is further configured to update a division category of the service data of the current port of the DCB device according to a user modification operation, and recalculate and generate the same service type under the current port by the calculation generation unit.
  • Business data sequence Preferably, the rules of the set sequence bit segment include: If the start data is the first field of the application priority TLV field, the sequence bit segment is set or not set; if the start data is other fields of the application priority TLV field, The sequence bit segment is not set.
  • the rule of the set sequence bit segment further comprises: if the sequence bit segment of the plurality of consecutive fields is set, the sequence bit segment of the last field is set to be valid.
  • An LLDP packet transmission method and a DCB device carrying an application priority TLV are configured to extend an LLDP packet carrying an application priority TLV and extend the application priority in a field of an application priority TLV.
  • the content of the message is a continuous sequence segment; when transmitting the message, filling the corresponding service data according to the continuity of the service data of the current port of the DCB device, and performing corresponding positioning operations on the sequence bit segment;
  • the content length of the message can be greatly shortened, the data transmission can be reduced, and the CPU resource consumption can be reduced.
  • FIG. 2 is a schematic structural diagram of an APPP in an LLDP TLV according to the related art
  • FIG. 3 is a schematic diagram of an LLDP packet transmission method carrying an application priority TLV according to the present invention
  • FIG. 4 is a schematic diagram of an extended application priority TLV field in the embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of an embodiment of a DCB device for transmitting an LLDP packet carrying an application priority TLV according to an embodiment of the present invention
  • It is a schematic structural diagram of an operation module in an embodiment of a DCB device that transmits an LLDP packet carrying an application priority TLV.
  • the solution of the embodiment of the present invention is: For a fixed set, if the number of samples is larger, the probability that the data is continuous is larger. For a continuous data, the intermediate data is actually not necessary to transmit, just need to tell the peer that the data is continuous. Therefore, the embodiment of the present invention extends the application priority TLV field (occupying the upper field of the Rsv field); the bit segment is used to indicate whether the content in the protocol ID is continuous, if continuous, The application priority TLV field only needs to fill the start data and the end data of the continuous sequence, thereby optimizing the content length of the message, reducing the data transmission, and reducing the CPU resource consumption. As shown in FIG.
  • a method for transmitting an LLDP packet carrying an application priority TLV includes: Step S101: A DCB device configures an extended LLDP packet carrying an application priority TLV, where The intra-field extension of the application priority TLV indicates whether the application priority packet content is consecutive sequence segments.
  • the solution in this embodiment relates to a scheme for optimizing the content length of the application priority packet of the LLDP packet, which can be greatly shortened by optimization.
  • the content length of the message reduces the transmission of data.
  • the principle of this embodiment is based on: For a fixed set, if there are more samples, the probability that the data is continuous is larger. For a continuous data, the intermediate data is actually not necessary to transmit, just tell the peer that the data is continuous.
  • each service division occupies 3 fields (as shown in Figure 2), and N service divisions need to occupy N*3 bytes in length.
  • the embodiment of the present invention needs to first extend the application priority TLV field (occupying the upper field of the Rsv field), as shown in FIG. 2 and FIG. 4; the bit segment is used to indicate whether the content in the protocol ID is continuous.
  • Step S102 Fill the corresponding service data according to the continuity of the service data of the current port of the DCB device, and perform corresponding positioning operations on the sequence bit segment.
  • the DCB device is based on the application priority entry configured by the current port, according to Sel.
  • the fields categorize these entries and check the contiguous state of the application priority entries for the same business type (Sel field). Then, according to the continuous state, the service data sequence of the same service type under the current port is calculated and generated, and the LLDP is sent to send the APPP-related TLV.
  • the advantage of generating a sequence of service data is that unnecessary transfer of intermediate data can be omitted, thereby saving bandwidth.
  • the service data is filled in the application priority TLV field according to the default filling rule, for example, data filling is performed according to the protocol.
  • the foregoing steps need to be performed again, that is, the service data sequence of the same service type under the current port is recalculated and generated.
  • the processing principle of setting the Serial bit segment in the APPP TLV packet sending in this embodiment is: 1) If the starting data is the first field of the APPP TLV field (Application Priority Table field), the Serial may or may not be set; for other fields of the APPP TLV field, the Serial bit of the starting data must not be Set, otherwise it may be transmitted as intermediate data.
  • Step S103 Send the extended LLDP packet that is filled with the data to the peer device.
  • the extended LLDP packet is filled to the peer device.
  • the peer device After receiving the APPP TLV, the peer device can process the packet according to the following rules: The sequence of the service data sent by the peer (DCB device) is local. The data contained in all the sequences may be expanded as needed or not, and no specific requirements are made here.
  • the extended LLDP packet carrying the application priority TLV is configured, and the sequence segment indicating whether the application priority packet content is continuous is expanded in the field of the application priority TIN;
  • the continuity of the service data of the current port of the DCB device fills the corresponding service data, and performs corresponding positioning operations on the sequence bit segment; thereby optimizing, the content length of the message can be greatly shortened, the data transmission is reduced, and the CPU is reduced.
  • the consumption of resources As shown in FIG.
  • an embodiment of the present invention provides a DCB device that transmits an LLDP packet carrying an application priority TLV, and includes: a configuration module 201, an operation module 202, and a sending module 203, where: the configuration module 201 is set to Configuring an extended LLDP packet carrying the application priority TLV, and expanding, in the field of the application priority TLV, a sequence bit segment indicating whether the application priority message content is continuous; the operation module 202 is configured to be based on the current DCB device The continuity of the service data of the port is filled with the corresponding service data, and the sequence bit segment is correspondingly set.
  • the sending module 203 is configured to send the extended LLDP packet after the data is filled to the peer device.
  • the solution in this embodiment relates to a solution for optimizing the content length of an application priority packet in an LLDP packet.
  • the principle of this embodiment is based on: For a fixed set, if there are more samples, the probability that the data is continuous is larger. For a continuous data, the intermediate data is actually not necessary to transmit, just tell the peer that the data is continuous. In this worst case, that is, the situation described in the agreement, each industry The service partition occupies 3 fields (as shown in Figure 2). The N services are divided into N*3 bytes.
  • the embodiment of the present invention needs to first extend the application priority TLV field (occupying the upper field of the Rsv field), as shown in FIG. 2 and FIG.
  • the configuration module 201 is configured to configure an extended LLDP packet carrying the application priority TLV, and expand, in a field of the application priority TLV, a sequence bit segment indicating whether the application priority message content is continuous; and then the operation module 202 is configured according to the DCB.
  • the continuity of the service data of the current port of the device is filled with the corresponding service data, and the sequence bit segment is correspondingly set.
  • the operation module 202 classifies the entries according to the Sel field based on the application priority entries of the current port configuration, and checks the continuous state of the application priority entries of the same service type (Sel field).
  • the service data sequence of the same service type under the current port is calculated and generated, and the LLDP is sent to send the APPP-related TLV.
  • the advantage of generating a sequence of service data is that unnecessary transfer of intermediate data can be omitted, thereby saving bandwidth.
  • the processing principle of setting the Serial bit segment in the APPP TLV packet sending in this embodiment is as follows: 1) If the starting data is the first field of the APPP TLV field (Application Priority Table field), the Serial may be set or not set. Bit; For other fields of the APPP TLV field, the Serial bit of the start data must not be set, otherwise it may be transmitted as intermediate data.
  • the sending module 203 sends the extended LLDP packet to the peer device
  • the peer device can process the packet according to the following rules: After receiving the APPP TLV, the peer device sends the packet to the peer (DCB device).
  • the sequence of division of business data, the data contained in all the sequences may be expanded locally or not according to requirements, and no specific requirements are required here. More specifically, as shown in FIG.
  • the operation module 202 may include: a classification checking unit 2021, a calculation generating unit 2022, and a data filling unit 2023, where: the classification checking unit 2021 is configured to be current to the DCB device.
  • the application priority entry of the port configuration is categorized, and the continuous state of the application priority entry of the same service type is checked.
  • the calculation generating unit 2022 is configured to calculate and generate the service of the same service type under the current port according to the continuous state.
  • the data padding unit 2023 is configured to: when the extended LLDP message carrying the application priority TLV is sent, if the service data sequence is a continuous sequence, the application priority TLV field is filled with the start data of the continuous sequence and End the data, and set the sequence bit segment; otherwise, fill the service data in the application priority TLV field according to the default fill rule. Further, the categorization checking unit 2021 is further configured to update the division type of the service data of the current port of the DCB device according to the user modification operation, and recalculate and generate the same service under the current port by the calculation generation unit 2022. A type of business data sequence.
  • the extended LLDP packet carrying the application priority TLV is configured, and the sequence segment indicating whether the application priority packet content is continuous is expanded in the field of the application priority TLV; when the packet is transmitted, The corresponding service data is filled according to the continuity of the service data of the current port of the DCB device, and the sequence bit segment is correspondingly set; thereby, the optimization can greatly shorten the content length of the message, reduce the data transmission, and thereby reduce CPU resource consumption.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Communication Control (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention relates to a method for transmitting a Link Layer Discovery Protocol (LLDP) packet carrying an application priority type length value (TLV), and a data center bridging (DCB) device. The method comprises: the DCB device configuring an extended LLDP packet carrying an application priority TLV, and extending, within a field of the application priority TLV, a sequence bit field indicating whether content of an application priority packet is continuous; filling corresponding service data according to the continuity of service data of a current port of the DCB device, and performing a corresponding resetting operation on the sequence bit field; and sending the extended LLDP packet filled with the data to a peer device. By means of optimization, the present invention can greatly shorten the content length of the packet, reduce data transmission, and decrease resource consumption of the CPU.

Description

LLDP报文传输方法及 DCB设备  LLDP packet transmission method and DCB device
技术领域 本发明涉及通讯技术领域, 尤其涉及一种携带应用优先级 (Application priority, 简称为 APPP)类型长度值(Type Length Value,简称为 TLV)的链路层发现协议(Link Layer Discovery Protocol, 简称为 LLDP) 报文传输方法及数据中心桥接 (Data Center Bridging, 简称为 DCB ) 设备。 背景技术 数据中心是企业应用业务服务的提供中心, 是数据运算、 交换、 存储的中心。 它 结合了先进的网络技术和存储技术,承载了网络中 80%以上的服务请求和数据存储量, 为客户业务体系的健康运转提供服务和运行平台。 为了整合企业内部网和以太网, 目前提出了增强以太网的概念。 增强以太网允许 对不同的业务进行划分, 从而既能满足普通以太网的需要, 又能满足数据中心网络的 需要。 在增强以太网络中, 数据中心桥接交换 (Data Center Bridging Exchange, 简称为 DCBX) 协议规定了应用于 DCB (设备的自动发现和能力交换协议, 应用于数据中心 环境的 DCB设备通过该协议直接与其直连的对等设备交换配置信息,在对端设备允许 的情况下, 为对端设备进行 DCB功能配置。该协议也用于不匹配配置的检测和对与其 直连对等设备的配置。 DCBX功能是数据中心协议对 IEEE 802.1AB LLDP组织唯一指 示符 (Organization Specific Identifier, 简称为 OUI) TLV字段扩展, 并承载于 LLDP 报文中进行传输。 此外, 应用优先级协议可以按照端口号, 或者报文协议类型对经过的报文按优先 级划分, 从而可以对不同的业务流分类, 用户可以根据需要对不同的优先级业务流进 行相应处理。 应用优先级功能通过 DCBX功能把本地用户对业务的划分情况封装到 LLDP TLV 消息中并发送到对端。 对端设备通过获取对端的配置从而知道哪些业务报文对应哪些 优先级, LLDP TLV报文的结构如图 1所示; 由于 LLDP中一种业务报文信息需要占 用 TLV字段的三个字节 (如图 2所示), 这些业务报文根据端口号或者协议类型进行 划分, 由此存在的问题是, 业务划分信息携带在报文中占用的报文长度极有可能超出 报文的最大长度; 此外, 即使只按端口号进行划分, 有时也需要分包发送, 而拆分的 报文有可能多达几百个报文, 甚至更多, 由此增加了中央处理器 (Central Processing Unit, 简称为 CPU) 资源的消耗, 甚至还可能影响其它业务的正常运行。 发明内容 本发明实施例提供了一种携带应用优先级 TLV的 LLDP报文传输方法及 DCB设 备。 根据本发明实施例的一个方面,提出一种携带应用优先级 TLV的 LLDP报文传输 方法, 包括: The present invention relates to the field of communication technologies, and in particular, to a Link Layer Discovery Protocol (Link Layer Discovery Protocol) for carrying an Application Priority (APPP) Type Length Value (TLV). For LLDP) message transmission method and Data Center Bridging (DCB) device. BACKGROUND A data center is a center for providing enterprise application service services, and is a center for data calculation, exchange, and storage. It combines advanced network technology and storage technology to carry more than 80% of service requests and data storage in the network, providing services and operating platforms for the healthy operation of the customer's business system. In order to integrate the intranet and Ethernet, the concept of enhanced Ethernet is currently proposed. Enhanced Ethernet allows for the division of different services to meet the needs of both ordinary Ethernet and data center networks. In the enhanced Ethernet network, the Data Center Bridging Exchange (DCBX) protocol specifies the DCB (automatic discovery and capability exchange protocol for devices), which is directly applied to DCB devices in the data center environment. The peer device exchanges the configuration information and configures the DCB function for the peer device if the peer device allows it. This protocol is also used for the detection of the mismatch configuration and the configuration of the peer device directly connected to it. The data center protocol extends the TLV field of the IEEE 802.1AB LLDP Organization Specific Identifier (OUI) and carries it in the LLDP packet for transmission. In addition, the application priority protocol can be based on the port number or the packet. The protocol type divides the received packets according to their priorities, so that different service flows can be classified. Users can process different priority traffic flows according to their needs. Application priority function divides local users into services through DCBX. The situation is encapsulated into an LLDP TLV message and sent to the peer. The configuration of the LLDP TLV packet is as follows: Figure 1 shows the structure of an LLDP TLV packet. The LLDP service consumes three bytes of the TLV field. 2)), the service packets are divided according to the port number or the protocol type. The problem is that the length of the packet occupied by the service division information in the packet is likely to exceed The maximum length of the message; in addition, even if only the port number is divided, sometimes the packet transmission is required, and the split message may have hundreds of messages or even more, thereby increasing the central processing unit. (Central Processing Unit, CPU for short) The consumption of resources may even affect the normal operation of other services. SUMMARY OF THE INVENTION The embodiments of the present invention provide an LLDP packet transmission method and a DCB device that carry an application priority TLV. According to an aspect of the embodiments of the present invention, a method for transmitting an LLDP packet carrying an application priority TLV is provided, including:
DCB设备配置携带有应用优先级 TLV的扩展 LLDP报文,在所述应用优先级 TLV 的字段内扩展表示应用优先级报文内容是否连续的序列位段; 根据所述 DCB设备当前端口的业务数据的连续性填充相应业务数据,并对所述序 列位段进行相应置位操作; 将填充数据后的扩展 LLDP报文发送至对端设备。 优选地,所述根据 DCB设备当前端口的业务数据的连续性填充相应业务数据,并 对所述序列位段进行相应置位操作的步骤包括: 所述 DCB设备对当前端口配置的应用优先级条目进行归类,并检查相同业务类型 的应用优先级条目的连续状态; 根据所述连续状态计算并生成所述当前端口下相同业务类型的业务数据序列; 在发送携带有应用优先级 TLV的扩展 LLDP报文时,若所述业务数据序列为连续 序列, 则在应用优先级 TLV字段填充连续序列的起始数据和结束数据, 并置位序列位 段; 否则按照默认的填充规则在应用优先级 TLV字段填充业务数据。 优选地, 该方法还包括: 根据用户修改操作更新所述 DCB设备当前端口的业务数据的划分类别,并返回执 行步骤根据所述连续状态计算并生成所述当前端口下相同业务类型的业务数据序列。 优选地, 所述置位序列位段的规则包括: 若所述起始数据是应用优先级 TLV字段的第一个字段,则对所述序列位段置位或 不置位; 若所述起始数据是应用优先级 TLV字段的其它字段, 则对所述序列位段不置 位。 优选地, 所述置位序列位段的规则进一步包括: 若存在多个连续的字段的序列位 段置位, 则最后一个字段的序列位段置位生效。 根据本发明实施例的另一方面,还提出一种传输携带应用优先级 TLV的 LLDP报 文的 DCB设备, 包括: 配置模块, 设置为配置携带有应用优先级 TLV的扩展 LLDP报文, 在所述应用优 先级 TLV的字段内扩展表示应用优先级报文内容是否连续的序列位段; 操作模块,设置为根据所述 DCB设备当前端口的业务数据的连续性填充相应业务 数据, 并对所述序列位段进行相应置位操作; 发送模块, 设置为将填充数据后的扩展 LLDP报文发送至对端设备。 优选地, 所述操作模块包括: 归类检查单元, 设置为对所述 DCB 设备当前端口配置的应用优先级条目进行归 类, 并检查相同业务类型的应用优先级条目的连续状态; 计算生成单元, 设置为根据所述连续状态计算并生成所述当前端口下相同业务类 型的业务数据序列; 数据填充单元, 设置为在发送携带有应用优先级 TLV的扩展 LLDP报文时, 若所 述业务数据序列为连续序列,则在应用优先级 TLV字段填充连续序列的起始数据和结 束数据, 并置位序列位段; 否则按照默认的填充规则在应用优先级 TLV字段填充业务 数据。 优选地,所述归类检查单元还设置为根据用户修改操作更新所述 DCB设备当前端 口的业务数据的划分类别, 并由所述计算生成单元重新计算并生成所述当前端口下相 同业务类型的业务数据序列。 优选地, 所述置位序列位段的规则包括: 若所述起始数据是应用优先级 TLV字段的第一个字段,则对所述序列位段置位或 不置位; 若所述起始数据是应用优先级 TLV字段的其它字段, 则对所述序列位段不置 位。 优选地, 所述置位序列位段的规则进一步包括: 若存在多个连续的字段的序列位 段置位, 则最后一个字段的序列位段置位生效。 本发明实施例提出的一种携带应用优先级 TLV的 LLDP报文传输方法及 DCB设 备, 通过配置携带有应用优先级 TLV的扩展 LLDP报文, 在应用优先级 TLV的字段 内扩展表示应用优先级报文内容是否连续的序列位段;在传输报文时,根据 DCB设备 当前端口的业务数据的连续性填充相应业务数据, 并对所述序列位段进行相应置位操 作; 由此通过优化, 可以大大缩短报文的内容长度, 减少数据的传送, 进而减少 CPU 资源的消耗。 附图说明 图 1是相关技术中的 LLDP TLV报文的结构示意图; 图 2是相关技术中 APPP在 LLDP TLV中的结构示意图; 图 3是本发明携带应用优先级 TLV的 LLDP报文传输方法一实施例的流程示意 图; 图 4是本发明实施例中扩展应用优先级 TLV字段的示意图; 图 5是本发明传输携带应用优先级 TLV的 LLDP报文的 DCB设备一实施例的结 构示意图; 图 6是本发明传输携带应用优先级 TLV的 LLDP报文的 DCB设备一实施例中操 作模块的结构示意图。 具体实施方式 本发明实施例的解决方案是: 对于一个固定的集合, 如果抽样越多, 数据连续的 概率则越大。 而对于一个连续的数据, 中间的数据实际上是没有必要传送, 只需要告 诉对端本数据是连续的即可。 因此, 本发明实施例通过扩展应用优先级 TLV字段(占 用 Rsv字段的高位字段); 该位段用来表示 Protocol ID中的内容是否连续, 若连续, 则只需在应用优先级 TLV字段填充连续序列的起始数据和结束数据, 由此通过优化, 可以大大缩短报文的内容长度, 减少数据的传送, 进而减少 CPU资源的消耗。 如图 3所示,本发明一实施例提出的一种携带应用优先级 TLV的 LLDP报文传输 方法, 包括: 步骤 S101, DCB设备配置携带有应用优先级 TLV的扩展 LLDP报文, 在所述应 用优先级 TLV的字段内扩展表示应用优先级报文内容是否连续的序列位段; 本实施例方案涉及一种优化 LLDP报文携带应用优先级报文内容长度的方案, 通 过优化, 可以大大缩短报文的内容长度, 减少数据的传送。 本实施例的原理依据为: 对于一个固定的集合, 如果抽样越多, 则数据连续的概 率越大。 而对于一个连续的数据, 中间的数据实际上是没有必要传送的, 只需要告诉 对端本数据是连续的即可。 这样最坏的情况下, 也就是协议中描述的情况, 每一种业 务划分占用 3个字段 (如图 2所示), N个业务划分, 共需要占用 N*3个字节长度。 本发明实施例需要首先扩展应用优先级 TLV字段 (占用 Rsv字段的高位字段), 如图 2及图 4所示; 该位段用来表示 Protocol ID中的内容是否连续。 步骤 S102,根据所述 DCB设备当前端口的业务数据的连续性填充相应业务数据, 并对所述序列位段进行相应置位操作; 首先, DCB设备基于当前端口配置的应用优先级条目, 根据 Sel字段对这些条目 进行归类, 并检查相同业务类型 (Sel字段) 的应用优先级条目的连续状态。 然后根据所述连续状态计算、生成并更新当前端口下相同业务类型的业务数据序 列, 等待 LLDP发送 APPP相关 TLV。 生成业务数据序列的优点是可以省略不必要的 中间数据的传送, 从而节省带宽。 在发送携带有应用优先级 TLV的扩展 LLDP报文时,如果要填充的字段是某种业 务的一个连续的业务数据序列, 则只需要填充连续序列的起始数据, 接下来填充连续 序列的结束数据, 并置位 Serial位段。 如果不是连续的数据, 则按照默认的填充规则 在应用优先级 TLV字段填充业务数据, 比如按协议规定进行数据填充即可。 此外, 后续如果用户修改端口下的业务数据的划分类别, 则需要重新执行上述步 骤, 即重新计算并生成所述当前端口下相同业务类型的业务数据序列。 本实施例 APPP TLV报文发送中置位 Serial位段的处理原则为: 1 )如果起始数据是 APPP TLV字段的第一个字段 (Application Priority Table字段), 则 Serial可置位, 也可不置位; 对于 APPP TLV字段的其它字段, 起始数据的 Serial 位段一定不能置位, 否则可能会按中间数据传输。 The DCB device is configured to carry the extended LLDP packet with the application priority TLV, and expand, in the field of the application priority TLV, a sequence bit segment indicating whether the application priority packet content is continuous; according to the service data of the current port of the DCB device The continuity is filled with the corresponding service data, and the sequence bit segment is set accordingly; the extended LLDP packet after the data is filled is sent to the peer device. Preferably, the step of filling the corresponding service data according to the continuity of the service data of the current port of the DCB device, and performing the corresponding set operation on the sequence bit segment comprises: applying the priority priority entry of the DCB device to the current port configuration Performing a categorization, and checking a continuous state of an application priority entry of the same service type; calculating and generating a service data sequence of the same service type under the current port according to the continuous state; transmitting an extended LLDP carrying an application priority TLV In the message, if the service data sequence is a contiguous sequence, the application priority TLV field is filled with the start data and the end data of the contiguous sequence, and the sequence bit segment is set; otherwise, the priority TLV is applied according to the default padding rule. Fields populate business data. Preferably, the method further includes: updating a division type of the service data of the current port of the DCB device according to the user modification operation, and returning to the execution step to calculate and generate a service data sequence of the same service type under the current port according to the continuous state. . Preferably, the rules of the set sequence bit segment include: If the start data is the first field of the application priority TLV field, the sequence bit segment is set or not set; if the start data is other fields of the application priority TLV field, The sequence bit segment is not set. Preferably, the rule of the set sequence bit segment further comprises: if the sequence bit segment of the plurality of consecutive fields is set, the sequence bit segment of the last field is set to be valid. According to another aspect of the present invention, a DCB device for transmitting an LLDP packet carrying an application priority TLV is further provided, including: a configuration module, configured to configure an extended LLDP packet carrying an application priority TLV, where The field extension of the application priority TLV indicates whether the application priority message content is consecutive sequence segments; the operation module is configured to fill the corresponding service data according to the continuity of the service data of the current port of the DCB device, and The sequence bit segment is set to be correspondingly set; the sending module is configured to send the extended LLDP packet after the data is filled to the peer device. Preferably, the operation module includes: a categorization checking unit, configured to classify an application priority entry configured by the current port of the DCB device, and check a continuous state of an application priority entry of the same service type; And setting, according to the continuous state, a service data sequence of the same service type under the current port, and a data filling unit, configured to send the service data when the extended LLDP packet carrying the application priority TLV is sent If the sequence is a contiguous sequence, the start and end data of the contiguous sequence are filled in the application priority TLV field, and the sequence bit segment is set; otherwise, the service data is filled in the application priority TLV field according to the default padding rule. Preferably, the categorization checking unit is further configured to update a division category of the service data of the current port of the DCB device according to a user modification operation, and recalculate and generate the same service type under the current port by the calculation generation unit. Business data sequence. Preferably, the rules of the set sequence bit segment include: If the start data is the first field of the application priority TLV field, the sequence bit segment is set or not set; if the start data is other fields of the application priority TLV field, The sequence bit segment is not set. Preferably, the rule of the set sequence bit segment further comprises: if the sequence bit segment of the plurality of consecutive fields is set, the sequence bit segment of the last field is set to be valid. An LLDP packet transmission method and a DCB device carrying an application priority TLV according to an embodiment of the present invention are configured to extend an LLDP packet carrying an application priority TLV and extend the application priority in a field of an application priority TLV. Whether the content of the message is a continuous sequence segment; when transmitting the message, filling the corresponding service data according to the continuity of the service data of the current port of the DCB device, and performing corresponding positioning operations on the sequence bit segment; The content length of the message can be greatly shortened, the data transmission can be reduced, and the CPU resource consumption can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic structural diagram of an LLDP TLV packet in the related art; FIG. 2 is a schematic structural diagram of an APPP in an LLDP TLV according to the related art; FIG. 3 is a schematic diagram of an LLDP packet transmission method carrying an application priority TLV according to the present invention; FIG. 4 is a schematic diagram of an extended application priority TLV field in the embodiment of the present invention; FIG. 5 is a schematic structural diagram of an embodiment of a DCB device for transmitting an LLDP packet carrying an application priority TLV according to an embodiment of the present invention; It is a schematic structural diagram of an operation module in an embodiment of a DCB device that transmits an LLDP packet carrying an application priority TLV. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The solution of the embodiment of the present invention is: For a fixed set, if the number of samples is larger, the probability that the data is continuous is larger. For a continuous data, the intermediate data is actually not necessary to transmit, just need to tell the peer that the data is continuous. Therefore, the embodiment of the present invention extends the application priority TLV field (occupying the upper field of the Rsv field); the bit segment is used to indicate whether the content in the protocol ID is continuous, if continuous, The application priority TLV field only needs to fill the start data and the end data of the continuous sequence, thereby optimizing the content length of the message, reducing the data transmission, and reducing the CPU resource consumption. As shown in FIG. 3, a method for transmitting an LLDP packet carrying an application priority TLV according to an embodiment of the present invention includes: Step S101: A DCB device configures an extended LLDP packet carrying an application priority TLV, where The intra-field extension of the application priority TLV indicates whether the application priority packet content is consecutive sequence segments. The solution in this embodiment relates to a scheme for optimizing the content length of the application priority packet of the LLDP packet, which can be greatly shortened by optimization. The content length of the message reduces the transmission of data. The principle of this embodiment is based on: For a fixed set, if there are more samples, the probability that the data is continuous is larger. For a continuous data, the intermediate data is actually not necessary to transmit, just tell the peer that the data is continuous. In the worst case, that is, the situation described in the protocol, each service division occupies 3 fields (as shown in Figure 2), and N service divisions need to occupy N*3 bytes in length. The embodiment of the present invention needs to first extend the application priority TLV field (occupying the upper field of the Rsv field), as shown in FIG. 2 and FIG. 4; the bit segment is used to indicate whether the content in the protocol ID is continuous. Step S102: Fill the corresponding service data according to the continuity of the service data of the current port of the DCB device, and perform corresponding positioning operations on the sequence bit segment. First, the DCB device is based on the application priority entry configured by the current port, according to Sel. The fields categorize these entries and check the contiguous state of the application priority entries for the same business type (Sel field). Then, according to the continuous state, the service data sequence of the same service type under the current port is calculated and generated, and the LLDP is sent to send the APPP-related TLV. The advantage of generating a sequence of service data is that unnecessary transfer of intermediate data can be omitted, thereby saving bandwidth. When transmitting an extended LLDP packet carrying an application priority TLV, if the field to be filled is a continuous service data sequence of a certain service, only the start data of the continuous sequence needs to be filled, and then the end of the continuous sequence is filled. Data, and set the Serial bit. If it is not continuous data, the service data is filled in the application priority TLV field according to the default filling rule, for example, data filling is performed according to the protocol. In addition, if the user modifies the division type of the service data under the port, the foregoing steps need to be performed again, that is, the service data sequence of the same service type under the current port is recalculated and generated. The processing principle of setting the Serial bit segment in the APPP TLV packet sending in this embodiment is: 1) If the starting data is the first field of the APPP TLV field (Application Priority Table field), the Serial may or may not be set; for other fields of the APPP TLV field, the Serial bit of the starting data must not be Set, otherwise it may be transmitted as intermediate data.
2) 如果多个连续的字段(Application Priority Table字段) Serial位置位, 则最后 一个字段 (Application Priority Table字段) 的 Serial位置位生效。 此外, 本实施例传输的数据序列并不一定要求是起始数据小, 终止数据大。 步骤 S103, 将填充数据后的扩展 LLDP报文发送至对端设备。 之后将填充数据后的扩展 LLDP报文发送至对端设备,对端设备接收到 APPP TLV 后, 可以按照以下规则处理报文: 对于对端 (DCB设备)发送过来的业务数据的划分 序列, 本地可以根据需要把所有序列包含的数据展开, 也可以不展开, 在此不作具体 要求。 本实施例通过上述方案, 配置携带有应用优先级 TLV的扩展 LLDP报文, 在应用 优先级 TIN的字段内扩展表示应用优先级报文内容是否连续的序列位段;在传输报文 时,根据 DCB设备当前端口的业务数据的连续性填充相应业务数据,并对所述序列位 段进行相应置位操作; 由此通过优化, 可以大大缩短报文的内容长度, 减少数据的传 送, 进而减少 CPU资源的消耗。 如图 5所示,本发明一实施例提出一种传输携带应用优先级 TLV的 LLDP报文的 DCB设备, 包括: 配置模块 201、 操作模块 202以及发送模块 203, 其中: 配置模块 201, 设置为配置携带有应用优先级 TLV的扩展 LLDP报文, 在所述应 用优先级 TLV的字段内扩展表示应用优先级报文内容是否连续的序列位段; 操作模块 202,设置为根据所述 DCB设备当前端口的业务数据的连续性填充相应 业务数据, 并对所述序列位段进行相应置位操作; 发送模块 203, 设置为将填充数据后的扩展 LLDP报文发送至对端设备。 本实施例方案涉及一种优化 LLDP报文携带应用优先级报文内容长度的方案, 通 过优化, 可以大大缩短报文的内容长度, 减少数据的传送。 本实施例的原理依据为: 对于一个固定的集合, 如果抽样越多, 则数据连续的概 率越大。 而对于一个连续的数据, 中间的数据实际上是没有必要传送的, 只需要告诉 对端本数据是连续的即可。 这样最坏的情况下, 也就是协议中描述的情况, 每一种业 务划分占用 3个字段 (如图 2所示), N个业务划分, 共需要占用 N*3个字节长度。 本发明实施例需要首先扩展应用优先级 TLV字段 (占用 Rsv字段的高位字段), 如图 2及图 4所示; 该位段用来表示 Protocol ID中的内容是否连续。 通过配置模块 201配置携带有应用优先级 TLV的扩展 LLDP报文,在所述应用优 先级 TLV的字段内扩展表示应用优先级报文内容是否连续的序列位段;然后操作模块 202根据所述 DCB设备当前端口的业务数据的连续性填充相应业务数据,并对所述序 列位段进行相应置位操作。 具体地, 操作模块 202基于当前端口配置的应用优先级条目, 根据 Sel字段对这 些条目进行归类, 并检查相同业务类型 (Sel字段) 的应用优先级条目的连续状态。 然后根据所述连续状态计算、生成并更新当前端口下相同业务类型的业务数据序 列, 等待 LLDP发送 APPP相关 TLV。 生成业务数据序列的优点是可以省略不必要的 中间数据的传送, 从而节省带宽。 在发送携带有应用优先级 TLV的扩展 LLDP报文时,如果要填充的字段是某种业 务的一个连续的业务数据序列, 则只需要填充连续序列的起始数据, 接下来填充连续 序列的结束数据, 并置位 Serial位段。 如果不是连续的数据, 则按照默认的填充规则 在应用优先级 TLV字段填充业务数据, 比如按协议规定进行数据填充即可。 后续如果用户修改端口下的业务数据的划分类别, 则需要重新执行上述步骤, 即 重新计算并生成所述当前端口下相同业务类型的业务数据序列。 本实施例 APPP TLV报文发送中置位 Serial位段的处理原则为: 1 )如果起始数据是 APPP TLV字段的第一个字段 (Application Priority Table字段), 则 Serial可置位, 也可不置位; 对于 APPP TLV字段的其它字段, 起始数据的 Serial 位段一定不能置位, 否则可能会按中间数据传输。 2) If multiple consecutive fields (Application Priority Table field) are in the Serial position, the Serial bit of the last field (Application Priority Table field) is valid. In addition, the data sequence transmitted in this embodiment is not necessarily required to be small in starting data and large in terminating data. Step S103: Send the extended LLDP packet that is filled with the data to the peer device. The extended LLDP packet is filled to the peer device. After receiving the APPP TLV, the peer device can process the packet according to the following rules: The sequence of the service data sent by the peer (DCB device) is local. The data contained in all the sequences may be expanded as needed or not, and no specific requirements are made here. In this embodiment, the extended LLDP packet carrying the application priority TLV is configured, and the sequence segment indicating whether the application priority packet content is continuous is expanded in the field of the application priority TIN; The continuity of the service data of the current port of the DCB device fills the corresponding service data, and performs corresponding positioning operations on the sequence bit segment; thereby optimizing, the content length of the message can be greatly shortened, the data transmission is reduced, and the CPU is reduced. The consumption of resources. As shown in FIG. 5, an embodiment of the present invention provides a DCB device that transmits an LLDP packet carrying an application priority TLV, and includes: a configuration module 201, an operation module 202, and a sending module 203, where: the configuration module 201 is set to Configuring an extended LLDP packet carrying the application priority TLV, and expanding, in the field of the application priority TLV, a sequence bit segment indicating whether the application priority message content is continuous; the operation module 202 is configured to be based on the current DCB device The continuity of the service data of the port is filled with the corresponding service data, and the sequence bit segment is correspondingly set. The sending module 203 is configured to send the extended LLDP packet after the data is filled to the peer device. The solution in this embodiment relates to a solution for optimizing the content length of an application priority packet in an LLDP packet. By optimizing, the content length of the packet can be greatly shortened, and data transmission is reduced. The principle of this embodiment is based on: For a fixed set, if there are more samples, the probability that the data is continuous is larger. For a continuous data, the intermediate data is actually not necessary to transmit, just tell the peer that the data is continuous. In this worst case, that is, the situation described in the agreement, each industry The service partition occupies 3 fields (as shown in Figure 2). The N services are divided into N*3 bytes. The embodiment of the present invention needs to first extend the application priority TLV field (occupying the upper field of the Rsv field), as shown in FIG. 2 and FIG. 4; the bit segment is used to indicate whether the content in the protocol ID is continuous. The configuration module 201 is configured to configure an extended LLDP packet carrying the application priority TLV, and expand, in a field of the application priority TLV, a sequence bit segment indicating whether the application priority message content is continuous; and then the operation module 202 is configured according to the DCB. The continuity of the service data of the current port of the device is filled with the corresponding service data, and the sequence bit segment is correspondingly set. Specifically, the operation module 202 classifies the entries according to the Sel field based on the application priority entries of the current port configuration, and checks the continuous state of the application priority entries of the same service type (Sel field). Then, according to the continuous state, the service data sequence of the same service type under the current port is calculated and generated, and the LLDP is sent to send the APPP-related TLV. The advantage of generating a sequence of service data is that unnecessary transfer of intermediate data can be omitted, thereby saving bandwidth. When transmitting an extended LLDP packet carrying an application priority TLV, if the field to be filled is a continuous service data sequence of a certain service, only the start data of the continuous sequence needs to be filled, and then the end of the continuous sequence is filled. Data, and set the Serial bit. If it is not continuous data, the service data is filled in the application priority TLV field according to the default filling rule, for example, data filling is performed according to the protocol. If the user modifies the classification of the service data under the port, the user needs to perform the above steps again, that is, recalculate and generate the service data sequence of the same service type under the current port. The processing principle of setting the Serial bit segment in the APPP TLV packet sending in this embodiment is as follows: 1) If the starting data is the first field of the APPP TLV field (Application Priority Table field), the Serial may be set or not set. Bit; For other fields of the APPP TLV field, the Serial bit of the start data must not be set, otherwise it may be transmitted as intermediate data.
2) 如果多个连续的字段(Application Priority Table字段) Serial位置位, 则最后 一个字段 (Application Priority Table字段) 的 Serial位置位生效。 此外, 本实施例传输的数据序列并不一定要求是起始数据小, 终止数据大。 之后发送模块 203将填充数据后的扩展 LLDP报文发送至对端设备, 对端设备接 收到 APPP TLV后, 可以按照以下规则处理报文: 对于对端 (DCB设备) 发送过来的 业务数据的划分序列,本地可以根据需要把所有序列包含的数据展开, 也可以不展开, 在此不作具体要求。 更为具体地, 如图 6所示, 上述操作模块 202可以包括: 归类检查单元 2021、 计 算生成单元 2022以及数据填充单元 2023, 其中: 归类检查单元 2021, 设置为对所述 DCB设备当前端口配置的应用优先级条目进 行归类, 并检查相同业务类型的应用优先级条目的连续状态; 计算生成单元 2022, 设置为根据所述连续状态计算并生成所述当前端口下相同业 务类型的业务数据序列; 数据填充单元 2023, 设置为在发送携带有应用优先级 TLV的扩展 LLDP报文时, 若所述业务数据序列为连续序列,则在应用优先级 TLV字段填充连续序列的起始数据 和结束数据, 并置位序列位段; 否则按照默认的填充规则在应用优先级 TLV字段填充 业务数据。 进一步地, 所述归类检查单元 2021还设置为根据用户修改操作更新所述 DCB设 备当前端口的业务数据的划分类别,并由所述计算生成单元 2022重新计算并生成所述 当前端口下相同业务类型的业务数据序列。 本发明实施例通过上述方案, 配置携带有应用优先级 TLV的扩展 LLDP报文, 在 应用优先级 TLV的字段内扩展表示应用优先级报文内容是否连续的序列位段;在传输 报文时,根据 DCB设备当前端口的业务数据的连续性填充相应业务数据,并对所述序 列位段进行相应置位操作; 由此通过优化, 可以大大缩短报文的内容长度, 减少数据 的传送, 进而减少 CPU资源的消耗。 以上所述仅为本发明的优选实施例, 并非因此限制本发明的专利范围, 凡是利用 本发明说明书及附图内容所作的等效结构或流程变换, 或直接或间接运用在其它相关 的技术领域, 均同理包括在本发明的专利保护范围内。 2) If multiple consecutive fields (Application Priority Table field) are in the Serial position, the Serial bit of the last field (Application Priority Table field) is valid. In addition, the data sequence transmitted in this embodiment is not necessarily required to be small in starting data and large in terminating data. After the sending module 203 sends the extended LLDP packet to the peer device, the peer device can process the packet according to the following rules: After receiving the APPP TLV, the peer device sends the packet to the peer (DCB device). The sequence of division of business data, the data contained in all the sequences may be expanded locally or not according to requirements, and no specific requirements are required here. More specifically, as shown in FIG. 6, the operation module 202 may include: a classification checking unit 2021, a calculation generating unit 2022, and a data filling unit 2023, where: the classification checking unit 2021 is configured to be current to the DCB device. The application priority entry of the port configuration is categorized, and the continuous state of the application priority entry of the same service type is checked. The calculation generating unit 2022 is configured to calculate and generate the service of the same service type under the current port according to the continuous state. The data padding unit 2023 is configured to: when the extended LLDP message carrying the application priority TLV is sent, if the service data sequence is a continuous sequence, the application priority TLV field is filled with the start data of the continuous sequence and End the data, and set the sequence bit segment; otherwise, fill the service data in the application priority TLV field according to the default fill rule. Further, the categorization checking unit 2021 is further configured to update the division type of the service data of the current port of the DCB device according to the user modification operation, and recalculate and generate the same service under the current port by the calculation generation unit 2022. A type of business data sequence. In the embodiment of the present invention, the extended LLDP packet carrying the application priority TLV is configured, and the sequence segment indicating whether the application priority packet content is continuous is expanded in the field of the application priority TLV; when the packet is transmitted, The corresponding service data is filled according to the continuity of the service data of the current port of the DCB device, and the sequence bit segment is correspondingly set; thereby, the optimization can greatly shorten the content length of the message, reduce the data transmission, and thereby reduce CPU resource consumption. The above is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and equivalent structural or process changes made by the present specification and drawings may be directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.

Claims

权 利 要 求 书 、 一种携带应用优先级类型长度值 TLV的链路层发现协议 LLDP报文传输方法, 包括:  The link request discovery protocol LLDP packet transmission method, which includes the application priority type length value TLV, includes:
数据中心桥接 DCB设备配置携带有应用优先级 TLV的扩展 LLDP报文, 在所述应用优先级 TLV 的字段内扩展表示应用优先级报文内容是否连续的序 列位段;  The data center bridges the DCB device to configure the extended LLDP packet carrying the application priority TLV, and expands the sequence segment indicating whether the application priority packet content is continuous in the field of the application priority TLV;
根据所述 DCB 设备当前端口的业务数据的连续性填充相应业务数据, 并 对所述序列位段进行相应置位操作;  And filling the corresponding service data according to the continuity of the service data of the current port of the DCB device, and performing corresponding positioning operations on the sequence bit segment;
将填充数据后的扩展 LLDP报文发送至对端设备。 、 根据权利要求 1所述的方法, 其中, 所述根据 DCB设备当前端口的业务数据 的连续性填充相应业务数据,并对所述序列位段进行相应置位操作的步骤包括: 所述 DCB 设备对当前端口配置的应用优先级条目进行归类, 并检查相同 业务类型的应用优先级条目的连续状态;  The extended LLDP packet is filled to the peer device. The method according to claim 1, wherein the step of filling the corresponding service data according to the continuity of the service data of the current port of the DCB device, and performing the corresponding set operation on the sequence bit segment comprises: the DCB device Classify the application priority entries configured for the current port and check the continuous status of the application priority entries of the same service type;
根据所述连续状态计算并生成所述当前端口下相同业务类型的业务数据序 列;  Calculating and generating a service data sequence of the same service type under the current port according to the continuous state;
在发送携带有应用优先级 TLV的扩展 LLDP报文时,若所述业务数据序列 为连续序列, 则在应用优先级 TLV字段填充连续序列的起始数据和结束数据, 并置位序列位段;否则按照默认的填充规则在应用优先级 TLV字段填充业务数 据。 、 根据权利要求 2所述的方法, 其中, 还包括: 根据用户修改操作更新所述 DCB 设备当前端口的业务数据的划分类别, 并返回执行步骤根据所述连续状态计算并生成所述当前端口下相同业务类型的 业务数据序列。 、 根据权利要求 2或 3所述的方法, 其中, 所述置位序列位段的规则包括:  When the extended LLDP packet carrying the application priority TLV is sent, if the service data sequence is a contiguous sequence, the application priority TLV field is filled with the start data and the end data of the contiguous sequence, and the sequence bit segment is set; Otherwise, the service data is populated in the application priority TLV field according to the default filling rule. The method according to claim 2, further comprising: updating a division type of the service data of the current port of the DCB device according to the user modification operation, and returning to the execution step according to the continuous state calculation and generating the current port A sequence of business data of the same business type. The method according to claim 2 or 3, wherein the rules of the set sequence bit segment include:
若所述起始数据是应用优先级 TLV字段的第一个字段,则对所述序列位段 置位或不置位; 若所述起始数据是应用优先级 TLV字段的其它字段, 则对所述 序列位段不置位。 、 根据权利要求 4所述的方法, 其中, 所述置位序列位段的规则进一步包括: 若 存在多个连续的字段的序列位段置位, 则最后一个字段的序列位段置位生效。 、 一种传输携带应用优先级 TLV的 LLDP报文的 DCB设备, 包括: If the start data is the first field of the application priority TLV field, the sequence bit segment is set or not set; if the start data is other fields of the application priority TLV field, The sequence bit segment is not set. The method according to claim 4, wherein the rule of the set sequence bit segment further comprises: if the sequence bit segment of the plurality of consecutive fields is set, the sequence bit segment of the last field is set to be valid. A DCB device that transmits an LLDP packet carrying an application priority TLV, including:
配置模块, 设置为配置携带有应用优先级 TLV的扩展 LLDP报文, 在所述 应用优先级 TLV的字段内扩展表示应用优先级报文内容是否连续的序列位段; 操作模块, 设置为根据所述 DCB 设备当前端口的业务数据的连续性填充 相应业务数据, 并对所述序列位段进行相应置位操作;  The configuration module is configured to: configure an extended LLDP packet carrying the application priority TLV, and expand, in the field of the application priority TLV, a sequence bit segment indicating whether the application priority packet content is continuous; the operation module is set to be The continuity of the service data of the current port of the DCB device is filled with the corresponding service data, and the sequence bit segment is correspondingly set.
发送模块, 设置为将填充数据后的扩展 LLDP报文发送至对端设备。 、 根据权利要求 6所述的 DCB设备, 其中, 所述操作模块包括:  The sending module is configured to send the extended LLDP packet after the data is filled to the peer device. The DCB device according to claim 6, wherein the operation module comprises:
归类检查单元, 设置为对所述 DCB 设备当前端口配置的应用优先级条目 进行归类, 并检查相同业务类型的应用优先级条目的连续状态;  a categorization checking unit, configured to classify an application priority entry configured for a current port of the DCB device, and check a continuous state of an application priority entry of the same service type;
计算生成单元, 设置为根据所述连续状态计算并生成所述当前端口下相同 业务类型的业务数据序列;  a calculation generating unit, configured to calculate and generate a service data sequence of the same service type under the current port according to the continuous state;
数据填充单元,设置为在发送携带有应用优先级 TLV的扩展 LLDP报文时, 若所述业务数据序列为连续序列,则在应用优先级 TLV字段填充连续序列的起 始数据和结束数据, 并置位序列位段; 否则按照默认的填充规则在应用优先级 TIN字段填充业务数据。 、 根据权利要求 7所述的 DCB设备, 其中, 所述归类检查单元还设置为根据用 户修改操作更新所述 DCB 设备当前端口的业务数据的划分类别, 并由所述计 算生成单元重新计算并生成所述当前端口下相同业务类型的业务数据序列。 、 根据权利要求 7或 8所述的 DCB设备, 其中, 所述置位序列位段的规则包括:  The data padding unit is configured to: when the extended LLDP packet carrying the application priority TLV is sent, if the service data sequence is a continuous sequence, the application priority TLV field is filled with the start data and the end data of the continuous sequence, and Set the sequence bit segment; otherwise, fill the service data in the application priority TIN field according to the default fill rule. The DCB device according to claim 7, wherein the categorization checking unit is further configured to update a division type of service data of a current port of the DCB device according to a user modification operation, and recalculate by the calculation generation unit Generating a service data sequence of the same service type under the current port. The DCB device according to claim 7 or 8, wherein the rule of the set sequence bit segment comprises:
若所述起始数据是应用优先级 TLV字段的第一个字段,则对所述序列位段 置位或不置位; 若所述起始数据是应用优先级 TLV字段的其它字段, 则对所述 序列位段不置位。 、 根据权利要求 9所述的 DCB设备, 其中, 所述置位序列位段的规则进一步包 括: 若存在多个连续的字段的序列位段置位, 则最后一个字段的序列位段置位 生效。  If the start data is the first field of the application priority TLV field, the sequence bit segment is set or not set; if the start data is other fields of the application priority TLV field, The sequence bit segment is not set. The DCB device according to claim 9, wherein the rule of the set sequence bit segment further comprises: if the sequence bit segment of the plurality of consecutive fields is set, the sequence bit segment of the last field is set to be effective .
PCT/CN2013/083946 2013-02-21 2013-09-22 Lldp packet transmission method and dcb device WO2014127633A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310055755.7 2013-02-21
CN201310055755.7A CN104009943B (en) 2013-02-21 2013-02-21 LLDP message transmitting methods and DCB equipment

Publications (1)

Publication Number Publication Date
WO2014127633A1 true WO2014127633A1 (en) 2014-08-28

Family

ID=51370438

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/083946 WO2014127633A1 (en) 2013-02-21 2013-09-22 Lldp packet transmission method and dcb device

Country Status (2)

Country Link
CN (1) CN104009943B (en)
WO (1) WO2014127633A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10749703B2 (en) 2016-10-20 2020-08-18 Zte Corporation Information processing method and device, and computer storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104394160B (en) * 2014-12-03 2017-09-29 武汉烽火网络有限责任公司 A kind of Link Layer Discovery Protocol applies the method in SDH
CN105141440B (en) * 2015-06-30 2019-03-12 新华三技术有限公司 A kind of dispositions method and device of data center's bridge capabilities exchange protocol parameter
CN114244688A (en) * 2021-12-23 2022-03-25 安徽皖通邮电股份有限公司 Method, storage medium and device for realizing Ethernet power failure notification by LLDP

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110035498A1 (en) * 2009-08-07 2011-02-10 Hemal Shah Method and System for Managing Network Power Policy and Configuration of Data Center Bridging
CN102238066A (en) * 2010-04-27 2011-11-09 杭州华三通信技术有限公司 Real-time traffic reporting method, media endpoint and system
CN102315970A (en) * 2011-09-23 2012-01-11 北京星网锐捷网络技术有限公司 Data center bridging parameter configuration method, system and network equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110035498A1 (en) * 2009-08-07 2011-02-10 Hemal Shah Method and System for Managing Network Power Policy and Configuration of Data Center Bridging
CN102238066A (en) * 2010-04-27 2011-11-09 杭州华三通信技术有限公司 Real-time traffic reporting method, media endpoint and system
CN102315970A (en) * 2011-09-23 2012-01-11 北京星网锐捷网络技术有限公司 Data center bridging parameter configuration method, system and network equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10749703B2 (en) 2016-10-20 2020-08-18 Zte Corporation Information processing method and device, and computer storage medium

Also Published As

Publication number Publication date
CN104009943B (en) 2017-06-20
CN104009943A (en) 2014-08-27

Similar Documents

Publication Publication Date Title
EP3648403B1 (en) Communication method and device, and storage medium
CN110267312B (en) Data transmission method, equipment and medium for managing service quality stream
US20210274418A1 (en) Information Transmission Method and Apparatus
WO2021036962A1 (en) Method and device for service packet transmission
US8811208B2 (en) Method and apparatus for reducing power consumption in a telecommunication network
US11528239B2 (en) Time-sensitive networking communication method and apparatus for configuring virtual switching node
WO2018171398A1 (en) Qos processing method and device
CN110809295A (en) Data transmission method and related device
US20210006421A1 (en) Method and device for controlling qos, smf, upf, ue, pcf and an
CN102932920B (en) Radio resource scheduling request (SR) configuration method and device
CN113630796B (en) Service quality monitoring method, equipment and system
US20200296624A1 (en) Frame aggregation method, network setting frame sending method, and device
CN112019363B (en) Method, device and system for determining service transmission requirement
US20200112523A1 (en) Data Flow Processing Method and Device
WO2021254001A1 (en) Session establishment method, apparatus and system and computer storage medium
JP2021524204A (en) Quality of service monitoring methods, systems, and equipment
WO2019076046A1 (en) Transmission path configuration method, apparatus, and device
WO2014127633A1 (en) Lldp packet transmission method and dcb device
WO2020228686A1 (en) Data radio bearer control method, device, and system for multi-connection system
CN102624620B (en) A kind of transmission system of the Ethernet transmission method based on token frame
CN104009937B (en) A kind of enhanced transmission selection standard configuration information transmission method and device
WO2021129839A1 (en) Method and equipment for sending interface message
WO2022047803A1 (en) Communication method and apparatus
CN111491370B (en) Communication method, network element, system and storage medium
CN114095901A (en) Communication data processing method and device

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

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

Country of ref document: EP

Kind code of ref document: A1