WO2016177229A1 - Method and apparatus for processing operation, administration and maintenance oam messages - Google Patents

Method and apparatus for processing operation, administration and maintenance oam messages Download PDF

Info

Publication number
WO2016177229A1
WO2016177229A1 PCT/CN2016/078168 CN2016078168W WO2016177229A1 WO 2016177229 A1 WO2016177229 A1 WO 2016177229A1 CN 2016078168 W CN2016078168 W CN 2016078168W WO 2016177229 A1 WO2016177229 A1 WO 2016177229A1
Authority
WO
WIPO (PCT)
Prior art keywords
oam
line card
packet
queue
oam packet
Prior art date
Application number
PCT/CN2016/078168
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 WO2016177229A1 publication Critical patent/WO2016177229A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and an apparatus for processing, managing, and maintaining an OAM message.
  • Distributed architecture The management plane and the control plane are completed on the main control board.
  • the forwarding plane is exchanged by a separate line card through the switch line card, and the architecture of the downlink card to complete packet encapsulation and forwarding is called a distributed architecture.
  • Figure 2 shows.
  • Distributed network side queue scheduling management architecture In the distributed system architecture, the system in which the forwarding plane packets are encapsulated and managed after the downlink card is encapsulated is called the distributed network side scheduling management architecture, as shown in Figure 3. .
  • Distributed switching side queue scheduling management architecture In the distributed architecture, the forwarding plane packet is enqueued before the uplink card enters the exchange, and the architecture of the downlink card queue scheduling manager for scheduling and forwarding is called the distributed switching side.
  • the queue scheduling management architecture is shown in Figure 4.
  • the TP OAM packet can be used in the distributed switching side queue scheduling management architecture.
  • the online card is generated and terminated by the working path, and can also be generated and terminated by the online card of the protection path.
  • the line card is referred to as the OAM home line card, as shown in FIG.
  • the OAM packet burst problem exists on the TP OAM packet homepage line card in the distributed switching side queue scheduling architecture, as shown in Figure 6:
  • the calculation formula of the cache M is as follows:
  • ⁇ t is the duration of receiving OAM
  • N is the number of ports on which the line card receives OAM messages
  • S is the rate at which the line card is sent.
  • O is the average of the transmitting side OAM allocated on the O block line card.
  • the protection switching is triggered because no fast OAM packet is detected between the Message Exchange Pattern (MEP) in 10ms. Therefore, only the OAM occupation buffer size within 10ms needs to be calculated. According to the 3.3ms fast OAM packet, 3 OAM packets will be generated in 10ms.
  • MEP Message Exchange Pattern
  • the cache M is positively correlated with the number of OAM instances of the line card, and the more the number of OAM instances, the larger the cache M.
  • the cache M will reach 10Mbytes or even tens of Mbytes.
  • the line card ⁇ M the number of line cards N * M. If calculated according to the 32-line card, the overhead cache will need to reach several hundred MBytes or even several GBytes.
  • the embodiment of the invention provides a method and a device for processing, managing and maintaining an OAM packet, so as to at least solve the problem that the line card OAM queue cache overhead is large in the related art.
  • a method for processing, managing, and maintaining an OAM packet including: obtaining an OAM packet from a network side; determining whether the OAM packet is a non-destination line card OAM; and determining the OAM When the packet is OAM, the OAM packet is sent to the switching network.
  • determining whether the OAM message is a non-destination line card OAM includes: obtaining an identifier of the OAM message; and determining, according to the identifier, whether the OAM message is a non-home line card OAM.
  • the method before obtaining the OAM packet from the network side, the method further includes: assigning a queue number to each line card in the network element, wherein the queue number of the same line card is the same, and the queue numbers of different line cards are different.
  • sending the OAM packet to the switching network includes: sending the OAM packet according to the queue number.
  • the OAM packet belongs to the queue corresponding to the line card; the queue number is written to the switching header; and the OAM packet is sent to the switching network.
  • the method further includes: acquiring the OAM packet from the switching side; and resending the OAM packet into the destination line of the OAM packet according to the queue number carried in the switching header.
  • the card corresponds to the queue.
  • the method when the OAM packet is determined to be the home line card OAM, the method further includes: setting a buffer size of the queue corresponding to the home line card of the OAM packet to a preset value, wherein the preset value is The cached value calculated by the maximum number of OAM packets of the home line card of the OAM packet.
  • an apparatus for processing, managing, and maintaining an OAM packet including: a first acquiring module, configured to acquire an OAM packet from a network side; and a determining module configured to determine an OAM packet Whether it is a non-destination line card OAM; and the first sending module is configured to send the OAM message to the switching network when it is determined that the OAM message is a non-destination line card OAM.
  • the determining module includes: an obtaining unit, configured to obtain an identifier of the OAM message; and a determining unit, configured to determine, according to the identifier, whether the OAM message is a non-destination line card OAM.
  • the device further includes: an allocation module, configured to allocate a queue number to each line card in the network element, wherein the queue numbers of the same line card are the same, and the queue numbers of different line cards are different, first
  • the sending module includes: a first sending unit, configured to send the OAM packet to the queue corresponding to the destination line card of the OAM packet according to the queue number; the writing unit is configured to write the queue number to the switching header; and the second sending unit , set to send OAM packets to the switching network.
  • the device further includes: a second acquiring module, configured to acquire an OAM packet from the switching side; and a second sending module, configured to re-send the OAM packet into the OAM according to the queue number carried by the switching header
  • the destination line of the message is in the queue corresponding to the line card.
  • the device when the OAM packet is determined to be the home line card OAM, the device further includes: a setting module, configured to set a cache size of the queue corresponding to the home line card of the OAM packet to a preset value, where The default value is the cached value calculated based on the maximum number of OAM packets of the home line card of the OAM packet.
  • a setting module configured to set a cache size of the queue corresponding to the home line card of the OAM packet to a preset value, where The default value is the cached value calculated based on the maximum number of OAM packets of the home line card of the OAM packet.
  • a computer storage medium is further provided, and the computer storage medium may store an execution instruction, where the execution instruction is used to execute the OAM message processing method.
  • the OAM packet is obtained from the network side; the OAM packet is determined to be a non-destination line card OAM; and the OAM packet is sent to the switching network when the OAM packet is determined to be a non-destination line card OAM.
  • the invention solves the problem that the line card OAM queue cache overhead is large in the related technology, thereby achieving the effect of reducing the line card OAM queue buffer overhead.
  • FIG. 1 is a schematic diagram of a centralized architecture according to the related art
  • FIG. 2 is a schematic diagram of a distributed architecture according to the related art
  • FIG. 3 is a schematic diagram of a distributed network side scheduling management architecture according to the related art
  • FIG. 4 is a schematic diagram of a distributed switching side scheduling management architecture according to the related art
  • FIG. 5 is a schematic diagram of a distributed switching side scheduling management TP OAM homeboard according to the related art
  • FIG. 6 is a schematic diagram of a distributed switching side scheduling management TP OAM traffic burst according to the related art
  • FIG. 7 is a flowchart of a method for processing, managing, and maintaining an OAM packet according to an embodiment of the present invention
  • FIG. 8 is a schematic diagram of a non-homed line card OAM message sent to an FPGA according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of sending a non-homed line card OAM message to an FPGA according to the prior art
  • FIG. 10 is a schematic diagram of a static queue number based on a line card slot according to an embodiment of the present invention.
  • FIG. 11 is a structural block diagram of an apparatus for processing, managing, and maintaining an OAM message according to an embodiment of the present invention
  • FIG. 12 is a schematic diagram of a general linear PW protection scenario according to an embodiment of the present invention.
  • FIG. 13 is a schematic diagram of a 12K DNI PW protection scenario according to an embodiment of the present invention.
  • FIG. 14 is a schematic diagram of a general linear PW protection OAM aggregation scenario according to an embodiment of the present invention.
  • 15 is a schematic diagram of a 12K DNI PW protection OAM aggregation scenario according to an embodiment of the present invention.
  • FIG. 16 is a schematic diagram of OAM transmission according to an embodiment of the present invention.
  • FIG. 17 is a schematic diagram of a format of an OAM message sent by an FPGA according to an embodiment of the present invention.
  • FIG. 18 is a schematic diagram of a format of an OAM message sent by an NP to a switching network according to an embodiment of the present invention.
  • 19 is a schematic diagram of a format of an OAM packet sent by an NP to an SA message according to an embodiment of the present invention.
  • FIG. 20 is a schematic diagram of a format of an FPGA message sent by an NP in an OAM message according to an embodiment of the present invention
  • 21 is a schematic diagram of a process of entering an LSP/PW fast OAM according to an embodiment of the present invention.
  • 22 is a schematic diagram of a process flow of a unicast outflow point module according to an embodiment of the present invention.
  • FIG. 23 is a schematic diagram of a process of sending an Egress MPLS-TP LSP/PW OAM packet according to an embodiment of the present invention.
  • FIG. 7 is a flowchart of a method for processing, managing, and maintaining an OAM packet according to an embodiment of the present invention. The process includes the following steps:
  • Step S102 Obtain an OAM packet from the network side.
  • Step S104 Determine whether the OAM message is a non-destination line card OAM.
  • the non-destination line card OAM means that the home line card of the OAM message is not the line card that generates the OAM message, but other line cards.
  • the home line card OAM is the line card of the OAM message, that is, the line card that generates the OAM message, that is, the home line card of the OAM message is the line card.
  • determining whether the OAM message is a non-destination line card OAM includes: obtaining an identifier of the OAM message; and determining, according to the identifier, whether the OAM message is a non-home line card OAM.
  • the identifier is used to mark whether the home line card of the OAM message is the line card. For example, if the value of the identifier is 1, it indicates that the home line card of the OAM packet is the line card, that is, the OAM message is the home line card OAM. When the identifier value is 0, it indicates the destination line of the OAM message.
  • the card is another line card, that is, the OAM message is a non-home line card OAM.
  • step S106 when it is determined that the OAM packet is a non-destination line card OAM, the OAM packet is sent to the switching network.
  • the OAM packet when the OAM packet is determined to be a non-destination line card OAM, in order to reduce the buffering overhead of the line card queue, the OAM packet is sent to the switching network, and is exchanged and sent to the home line card through the switching network.
  • FIG. 8 is a schematic diagram of a non-homed line card OAM message sent to an FPGA according to an embodiment of the invention.
  • the inter-board OAM packet passes through the switching network and then reaches the network processor (Network Processer, NP for short).
  • the NP sends the OAM packet that is not the trunk card to the switching network, and the switching network sends it to the NP.
  • the NP then sends the OAM message to a Field Programmable Gate Array (FPGA).
  • FIG. 9 is a schematic diagram of the non-homed line card OAM message sent to the FPGA according to the prior art. As shown in FIG. 9, the non-home line card OAM message is directly sent to the FPGA after being sent to the home line card.
  • the embodiment of the present invention significantly reduces the buffer overhead of the line card queue compared to the prior art.
  • the embodiment of the present invention obtains an OAM packet from the network side, determines whether the OAM packet is a non-destination line card OAM, and sends an OAM packet to the switching network when it is determined that the OAM packet is a non-destination line card OAM.
  • the invention solves the problem that the line card OAM queue cache overhead is large in the related art, thereby achieving the effect of reducing the line card OAM queue buffer overhead.
  • a method for processing, managing, and maintaining an OAM packet including: obtaining an OAM packet from a network side; determining whether the OAM packet is a non-destination line card OAM; and determining the OAM When the packet is OAM, the OAM packet is sent to the switching network.
  • the method further includes: assigning a queue number to each line card in the network element, before the OAM message is obtained from the network side, in order to facilitate the rapid loading of the OAM message into the queue of the corresponding home line card.
  • the queue numbers of the same line card are the same, and the queue numbers of different line cards are different.
  • the embodiment of the present invention allocates a queue number to each line card in the network element in advance.
  • the queue number of each line card may be assigned a number according to the slot number of each line card.
  • FIG. 10 is a schematic diagram of a static queue number based on a line card slot according to an embodiment of the invention.
  • the queue resource numbers assigned to each line card on line card A, line card B, and line card C are x, y, and z, that is, the queue mapping relationship is x--> line card A, y --> Line card B, z--> line card C.
  • the same line card corresponds to the same queue resource number (ie, number) in different queues, and the queue resource numbers of different line cards are different.
  • the OAM packet When the OAM packet is sent to the switching network, the OAM packet is sent to the queue corresponding to the destination line card of the OAM packet according to the queue number. The queue number is written to the switching header; and the OAM packet is sent to the switching network.
  • the OAM packets can be sent to the queue corresponding to the home line card of the OAM packet according to the queue number, and the queue number is written into the switching header so that the subsequent The queue number sends the OAM packet to the queue corresponding to its destination line card.
  • the method further includes: acquiring the OAM packet from the switching side; and correspondingly sending the OAM packet to the destination line card of the OAM packet according to the queue number carried by the switching header. In the queue.
  • the uplink and downlink line cards have the same queue number assigned to the line card, it is ensured that the OAM message received by the line card from the switching side or the network side enters a queue.
  • the method when determining that the OAM message is the home line card OAM, the method further includes: setting a buffer size of the queue corresponding to the home line card of the OAM message to a preset value, wherein the preset value is based on the OAM message.
  • the cached value calculated from the maximum number of OAM packets of the home line card.
  • the embodiment of the present invention After determining that the OAM message is the home line card OAM, the embodiment of the present invention sends the home line card OAM directly to the switching network for scheduling management. Therefore, a larger buffer needs to be allocated for the queue of the home line card OAM.
  • the queue cache maximum value M ie, a preset value
  • M may be calculated according to the maximum number of OAM packet entries per line card in the current system.
  • the non-destination line card OAM message is sent back to the switching network and sent back to the home network, and the OAM message of the home line card is directly sent and sent through the switching network scheduling management, thereby making the non-destination
  • the line card OAM packet only needs to occupy the default queue cache. Only the OAM packet of the home line card needs to occupy a larger queue cache, which reduces the OAM packet queue buffer overhead per line card, thus solving the OAM queue cost calculation complex and each line.
  • the card OAM packet queue cache has a large overhead.
  • each line card occupies a larger cache, and the other line card OAM occupies a default queue cache.
  • the OAM is operated, managed, and maintained in the embodiment of the present invention.
  • the packet processing method includes the following steps:
  • Step 1 Assign each line card queue according to the line card slot number, as shown in Figure 10.
  • the queue resource numbers assigned to each line card on line card A, line card B, and line card C are x, y, and z, that is, the queue mapping relationship is x--> line card A, y--> line card B , z--> line card C.
  • Step 2 Calculate the theoretical queue cache maximum value M according to the current system configurable maximum number of OAM message entries per line card.
  • Step 3 The default size of each line card initialization queue.
  • the queue mapping relationship is the line card, set the OAM queue size to M.
  • Step 4 After receiving the OAM from the network side, the uplink line card is enqueued according to the OAM home line card slot.
  • the queue number is carried on the switch head, so that the downlink card can be sent to the static queue allocated for the line card after the OAM message is extracted from the switch network, thereby ensuring that only the line card is set for each line card.
  • One queue of the line card terminating OAM occupies a larger cache, and other cross-line cards OAM occupy the default queue cache.
  • the queue number is assigned first, and then each queue cache is configured.
  • the enqueue management module processes the enrollment. If the OAM packet is the home line (that is, the OAM packet is the OAM packet), the OAM packet is scheduled and managed by the switching network. After the line card of the OAM packet is another line card (that is, the OAM message is a non-destination line card OAM message), the message is sent to the corresponding queue according to the queue number assigned by A, and Write the queue number to the exchange header. After the OAM packet is exchanged, the downlink card is re-entered by the queue number carried by the switching head after the OAM packet is extracted from the switching side.
  • the subsequent process repeats the enqueue process and the extraction process.
  • the OAM message received by the line card from the switching side or the network side is entered into a queue, thereby ensuring each line card. Only one queue of the line card termination OAM occupies a large cache, and other cross-line cards OAM occupy the default queue cache.
  • the OAM packet processing method in the embodiment of the present invention reduces system complexity and saves exchange storage space.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • An apparatus for processing, managing, and maintaining an OAM packet is provided in this embodiment.
  • the apparatus is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 11 is a structural block diagram of an apparatus for processing, managing, and maintaining an OAM packet according to an embodiment of the present invention. As shown in FIG. 11, the apparatus includes: a first obtaining module 10, a determining module 20, and a first sending module 30.
  • the first obtaining module 10 is configured to obtain an OAM packet from the network side.
  • the determining module 20 is configured to determine whether the OAM message is a non-home line card OAM.
  • the non-destination line card OAM means that the home line card of the OAM message is not the line card that generates the OAM message, but other line cards.
  • the home line card OAM is the line card of the OAM message, that is, the line card that generates the OAM message, that is, the home line card of the OAM message is the line card.
  • the determining module 20 includes: an obtaining unit, configured to acquire an identifier of the OAM message; and a determining unit, configured to determine, according to the identifier, whether the OAM message is a non-home line card OAM.
  • the identifier is used to mark whether the home line card of the OAM message is the line card. For example, if the value of the identifier is 1, it indicates that the home line card of the OAM packet is the line card, that is, the OAM message is the home line card OAM. When the identifier value is 0, it indicates the destination line of the OAM message.
  • the card is another line card, that is, the OAM message is a non-home line card OAM.
  • the first sending module 30 is configured to send the OAM packet to the switching network when it is determined that the OAM packet is the non-home line card OAM.
  • the OAM packet when the OAM packet is determined to be a non-destination line card OAM, the OAM packet is sent to the switching network, and is re-sent to the destination line card after being exchanged via the switching network, in order to reduce the buffering overhead of the line card queue.
  • the first obtaining module 10 obtains an OAM packet from the network side; the determining module 20 determines whether the OAM packet is a non-destination line card OAM; and the first sending module 30 determines that the OAM packet is a non-destination line card.
  • the OAM packet is sent to the switching network.
  • the device further includes: an allocating module, configured to allocate a queue number to each line card in the network element, wherein the same line card has the same queue number, and different line cards have different queue numbers
  • the first sending module includes The first sending unit is configured to send the OAM packet to the queue corresponding to the destination line card of the OAM packet according to the queue number; the writing unit is configured to write the queue number to the switching header; and the second sending unit is set to Send the OAM packet to the switching network.
  • the device further includes: a second acquiring module, configured to obtain an OAM packet from the switching side; and a second sending module, configured to re-deliver the OAM packet into the OAM packet according to the queue number carried by the switching header
  • the destination line card corresponds to the queue.
  • the device when determining that the OAM message is the home line card OAM, the device further includes: a setting module, configured to set a cache size of the queue corresponding to the home line card of the OAM message to a preset value, where the preset The value is the cached value calculated based on the maximum number of OAM packets of the home line card of the OAM packet.
  • a setting module configured to set a cache size of the queue corresponding to the home line card of the OAM message to a preset value, where the preset The value is the cached value calculated based on the maximum number of OAM packets of the home line card of the OAM packet.
  • each line card occupies a larger cache, and the other line card OAM occupies a default queue cache.
  • the OAM report is operated, managed, and maintained in the embodiment of the present invention.
  • the text processing device includes the following modules: a queue number pre-allocation module A, a queue size configuration module B, an enqueue management module C, an OAM message extraction module D, an E module, an F module, and a G module, wherein the E module is set to make the whole
  • the pre-allocated OAM packet queue number is the same on each line card in the NE.
  • the F module is set so that the uplink card is enqueued according to the queue number assigned by A, and the queue number is written to the switch header.
  • the G module is set to make the downlink line.
  • the OAM packet extracted by the card from the switching side is carried by the exchange header.
  • the queue number is entered into the queue.
  • the queue number is first allocated according to the queue number pre-allocation module A, and then each queue cache is configured by the queue size configuration module B.
  • the enqueue management module C processes the enqueue. If the OAM packet is the home line (that is, the OAM packet is the OAM packet of the home line card), the OAM packet is scheduled by the switching network. After the management, the OAM packet extraction module D is sent and sent; if the home line card of the OAM packet is another line card (that is, the OAM message is a non-destination line card OAM message), it is processed by the F module.
  • the F module sends the message to the corresponding queue according to the queue number assigned by A, and writes the queue number to the exchange header.
  • the G-module is processed by the G-module. Specifically, the OAM packet extracted from the switching-side line is re-entered by the queue number carried in the switching header. The subsequent process repeats the C module and The D module performs processing.
  • the queue number assigned by the E-module to the line card is the same, and the OAM packet received by the line card from the switching side or the network side is entered into a queue.
  • Each line card only sets the line card to terminate the OAM.
  • One queue occupies a larger cache, and the other line card OAM occupies the default queue cache.
  • a normal linear pseudowire (Pseudo Wire, PW for short) protects the environment (point-to-point), as shown in Figure 12.
  • the 12K common linear PW protection group, the working OAM and the protection OAM are respectively configured on four boards.
  • the Continuity Check (CC) packet transmission period is 10 ms.
  • the Auto Protect Switch (APS) packet transmission rule is: When there is a change, each OAM ID immediately sends 3 APSs. Packets, when there is no change, send 3 APS packets for each OAM ID at 5s.
  • Dual Node Interconnection Pseudo Wire (DNI PW) environment point-to-point
  • the 12K DNI PW protection group is also configured.
  • the period in which CC packets are sent is 10 ms.
  • the master node needs to send the PW alarm and the STM (ETH) port alarm to the standby node.
  • the standby node needs to send the PW protection group decision and the MSP protection group decision/this point ETH port alarm to the master node.
  • the information transmitted by the active and standby nodes is in the format of APS packets, but the opcode is different. We call it an APS packet.
  • the packet is sent in the same format as the APS packet.
  • each OAM ID immediately sends three packets.
  • each OAM ID sends 3 APS packets.
  • Ordinary linear PW environment (OAM convergence), as shown in Figure 14.
  • the working OAM of the network element 1 is configured on two line cards. Each line card is configured with 4K, and the protection OAM is also configured.
  • the CC transmission period is 10ms
  • the network element 2 works 8K OAM is configured on one line card
  • the protection 8K OAM is also configured on one line card.
  • the APS packet sending rule is that each OAM ID immediately sends three APS packets when there is a change. When there is no change, each OAM ID sends three APS packets at the 5s timing.
  • DNI PW environment (OAM aggregation), as shown in Figure 15.
  • the DNI PW sends 8K OAMs respectively configured on two line cards, and the receiving part 8K OAM is configured on one line card.
  • the OAM message is generated and terminated by the FPGA, and the transmission process passes through the NP and the switching network.
  • Figure 4 shows four points to illustrate the change of OAM packet length during transmission.
  • the OAM message is sent by the FPGA.
  • the format of the OAM message is the longest.
  • the TC indicates the forwarding level
  • the LSP Label indicates the tunnel label
  • the PW Label indicates the pseudo line label
  • the Channel Type indicates the channel.
  • Type, ITMH indicates the incoming TM header
  • NPH indicates the NP header.
  • the format of the packet sent by the NP on the OAM packet is shown in Figure 18.
  • the DA indicates the destination MAC address
  • the SA indicates the source MAC address
  • the TC indicates the forwarding level
  • the LSP Label indicates the tunnel label
  • the PW Label indicates the pseudowire label.
  • Type indicates the channel type.
  • the format of the packet sent by the NP to the switch chip SA is shown in Figure 19.
  • the DA indicates the destination MAC
  • the SA indicates the source MAC address
  • the TC indicates the forwarding level
  • the LSP Label indicates the tunnel label
  • the PW Label indicates the pseudo line label.
  • Type indicates the channel type.
  • the traffic values as described above are calculated assuming OAM is evenly transmitted.
  • the implementation of the FPGA is that the 8K CC message and the APS message are sent at a full bandwidth rate in a short period of time. In the worst case, the 8K CC message and the 8K APS message need to be sent at the same time.
  • the extreme case is that the CC packets of the line card 3 and the line card 4 are simultaneously sent by the APS, and the line card 6 receives 2GE packets from different ports in the same time period, and aggregates them to the SA40, and then sends them.
  • the NP is sent to the FPGA.
  • the ingress message is 2 GE and the egress is 1GE.
  • the SA40 needs to cache the time packet.
  • Cache size M 2 ⁇ 1024000000 ⁇ T–1 ⁇ 1024000000 ⁇ T (T is the OAM message continuous packet sending time)
  • 109 is the length of the packet, 8 is the preamble, and 12 is the frame gap.
  • T ((Message length +8+12) ⁇ (8000/N) ⁇ 8)/1024000000
  • the length of the CC packet is 109 bytes, and the length of the APS packet is 64 bytes. Three packets need to be sent consecutively.
  • the amount of CC packets sent is the same, and the amount of APS packets sent is twice that of Scene 3. Also calculate the sum of the two according to the formula: 4.8MBytes.
  • the switch chip SA has a total of 1024 blocks, and each block has a default size of 1024 bytes. A packet smaller than 1024 bytes occupies one block.
  • Each line card reserves a queue according to the slot number in the rack diagram.
  • the number of OAM queues reserved for each slot line card is equal to the slot number.
  • the poor implementation is shown in Figure 9.
  • the inter-board OAM passes through the switching network and reaches the NP, and the NP is directly transferred to the FPGA.
  • the cache needs to be set on line card 1. Then the line size of the line card 1 needs to be set to:
  • the process can be changed as shown in Figure 8.
  • the inter-board OAM passes through the switching network, it reaches the NP.
  • the NP is sent back to the switching network by the OAM of the home board on the local board, and the switching network is sent to the NP, and the NP is sent to the FPGA.
  • the processing flow is the same as that of the OAM homeboard on the board.
  • the NP label entry of the NP increases whether the OAM packet attribution line card is the line card label.
  • No_local_card_end 0, the home line card is the line card; 1, the home line card is not the line card.
  • the unicast NPH adds the LSP/PW fast OAM packet to the non-line card termination identifier.
  • No_local_card_end (abbreviated as N_C_E): 0, the home line card is the line card; 1, the home line card is not the line card.
  • Flow_id Query the queue_map table to get.
  • FIG. 21 is a schematic diagram of an Inges LSP/PW fast OAM processing process according to an embodiment of the present invention. As shown in FIG. 21, the ingress LSP/PW fast OAM processing process includes the following steps:
  • NFH.U_CPU.F_S is the uplink logical fast OAM channel identifier
  • step S208 is performed.
  • Step S208 The original processing flow is sent to the unicast outflow point module.
  • FIG. 22 is a schematic flowchart of a unicast outflow point module processing process according to an embodiment of the present invention. As shown in FIG. 22, the unicast outflow point module processing flow includes the following steps:
  • Step S302 Query out_fp table.
  • the above out_fp table is used to represent the flow point table.
  • step S304 it is determined whether the flow point is sent to the CPU.
  • Step S306 Query the fwd_ctrl table.
  • the above fwd_ctrl table is used to represent the forwarding control table.
  • Step S308 Query the queue_map table to obtain the flow_id.
  • step S308 is to check the queue mapping table to obtain the flow queue number, wherein the queue_map table represents the queue mapping table, and the flow_id represents the flow queue number.
  • Step S310 Other unicast outflow point type processing flow.
  • step S314 is performed, otherwise step S316 is performed.
  • step S314 indicates that the queue number of the uplink logic is equal to the queue number obtained by the queue mapping table query.
  • Step S316 The CPU unicasts the other processing flow of the flow point.
  • FIG. 23 is a schematic diagram of a process of sending an MPLS-TP LSP/PW OAM packet according to an embodiment of the present invention. As shown in FIG. 23, the process of sending an MPLS-TP LSP/PW OAM packet is as follows: step:
  • step S402 is to determine whether the NPH header type is a CPU. When the NPH header type is the CPU, step S406 is performed, otherwise step S404 is performed.
  • Step S404 Other process processing.
  • step S410 is performed, otherwise step S408 is performed.
  • Step S408 Normally uploading the process.
  • Step S410 means that the home line card is not the board.
  • Step S412 Obtain a flow_id from the NPH.U_CPU, encapsulate the ITMH, and send the LSP/PW fast OAM message again. Send to SA for processing.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the method steps of the above embodiment:
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the foregoing technical solution provided by the embodiment of the present invention can be applied to the OAM packet processing process, and the OAM packet is obtained from the network side; the OAM packet is determined to be a non-destination line card OAM; and the OAM packet is determined to be non- When the OAM packet is sent to the switching network, the OAM packet buffering overhead is solved in the related art, and the OAM queue buffering overhead of the line card is reduced.

Landscapes

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

Abstract

Provided in the present invention are a method and apparatus for processing operation, administration and maintenance OAM messages. The method comprises: acquiring an OAM message from a network side; determining whether the OAM message is a non-home line card OAM; and sending the OAM message to a switching network when determining that the OAM message is the non-home line card OAM. With the present invention, the problem of large cache overhead in line card OAM queues in related techniques is solved, and further the effect of lowering the cache overhead in line card OAM queues is achieved.

Description

运行、管理和维护OAM报文处理方法及装置Operation, management and maintenance OAM message processing method and device 技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种运行、管理和维护OAM报文处理方法及装置。The present invention relates to the field of communications, and in particular, to a method and an apparatus for processing, managing, and maintaining an OAM message.
背景技术Background technique
先阐述几个概念:Explain a few concepts first:
集中式架构:当管理面,控制面和转发面集中在主控板一块单板完成的架构称之为集中式架构。如图1所示。Centralized architecture: When the management plane, control plane, and forwarding plane are concentrated on one board of the main control board, the architecture is called a centralized architecture. As shown in Figure 1.
分布式架构:管理面和控制面在主控单板完成,转发面由单独的线卡经过交换线卡完成包交换,并到下行线卡完成报文封装转发的架构称为分布式架构,如图2所示。Distributed architecture: The management plane and the control plane are completed on the main control board. The forwarding plane is exchanged by a separate line card through the switch line card, and the architecture of the downlink card to complete packet encapsulation and forwarding is called a distributed architecture. Figure 2 shows.
分布式网络侧队列调度管理架构:在分布式系统架构中,转发面报文在下行线卡完成封装后再进行队列调度管理的系统称之为分布式网络侧调度管理架构,如图3所示。Distributed network side queue scheduling management architecture: In the distributed system architecture, the system in which the forwarding plane packets are encapsulated and managed after the downlink card is encapsulated is called the distributed network side scheduling management architecture, as shown in Figure 3. .
分布式交换侧队列调度管理架构:在分布式架构中,转发面报文在上行线卡进入交换前入队,并由下行线卡队列调度管理器进行调度转发的架构称之为分布式交换侧队列调度管理架构,如图4所示。Distributed switching side queue scheduling management architecture: In the distributed architecture, the forwarding plane packet is enqueued before the uplink card enters the exchange, and the architecture of the downlink card queue scheduling manager for scheduling and forwarding is called the distributed switching side. The queue scheduling management architecture is shown in Figure 4.
分布式交换侧队列调度架构下传输协议运行、管理和维护(Transfer Procotol Operation Administration and Maintenance,简称为TP OAM)报文归宿线卡:在分布式交换侧队列调度管理架构中,TP OAM报文可以由工作路径所在线卡产生和终结,也可以由保护路径所在线卡产生和终结。当指定其中一块线卡负责OAM产生和终结时,该线卡被称为OAM的归宿线卡,如图5所示。In the distributed switching side queue scheduling management architecture, the TP OAM packet can be used in the distributed switching side queue scheduling management architecture. The online card is generated and terminated by the working path, and can also be generated and terminated by the online card of the protection path. When one of the line cards is designated to be responsible for OAM generation and termination, the line card is referred to as the OAM home line card, as shown in FIG.
分布式交换侧队列调度架构下TP OAM报文归宿线卡上存在OAM报文突发问题,如图6所示:当T(t)时刻从多个端口收到OAM报文在归宿线卡终结时,则线卡上送TP OAM生成器的OAM速率瞬间达到N*端口速率。若要求线卡负责报文上送的器件的上送速率以及TP OAM生成器端口速率与之匹配,则它们的端口速率将达到上T甚至几十个T(其中,1T=1000Gbps),目前芯片肯定无法满足。这就要求OAM在上送前必须有足够的缓存M来存储这些报文,其中,缓存M的计算公式如下:The OAM packet burst problem exists on the TP OAM packet homepage line card in the distributed switching side queue scheduling architecture, as shown in Figure 6: When the T(t) time receives OAM packets from multiple ports at the end of the home line card When the line card sends the OAM rate of the TP OAM generator to the N* port rate instantaneously. If the line card is required to match the upload rate of the device sent by the message and the TP OAM generator port rate match, then their port rate will reach up to T or even dozens of T (of which 1T=1000Gbps), the current chip Certainly not satisfied. This requires that the OAM must have enough cache M to store these messages before being sent. The calculation formula of the cache M is as follows:
M=N×Speed×△t–S×△t       (1)M=N×Speed×△t–S×△t (1)
其中,△t为接收OAM持续时间,N为线卡接收OAM报文的端口数,S为线卡上送速率。Where Δt is the duration of receiving OAM, N is the number of ports on which the line card receives OAM messages, and S is the rate at which the line card is sent.
上述△t的计算公式如下:The above formula for calculating Δt is as follows:
△t=(OAM报文长度L+交换头H)×3×快速OAM实例数M/线卡数O×8bit/byte/S    (2) △t=(OAM message length L+exchange head H)×3×fast OAM instance number M/line card number O×8bit/byte/S (2)
其中,O为发送侧OAM平均分配在O块线卡上。Wherein, O is the average of the transmitting side OAM allocated on the O block line card.
由于在10ms内信息交换模式(Message Exchange Pattern,简称为MEP)间未检测到快速OAM报文就会触发保护倒换,因此,仅需要计算10ms内OAM占用缓存大小。按照3.3ms快速OAM报文,则10ms将产生3个OAM报文。The protection switching is triggered because no fast OAM packet is detected between the Message Exchange Pattern (MEP) in 10ms. Therefore, only the OAM occupation buffer size within 10ms needs to be calculated. According to the 3.3ms fast OAM packet, 3 OAM packets will be generated in 10ms.
将△t代入上述公式(1)得到:Substituting Δt into the above formula (1) yields:
M=(N×Speed–S)×3×(OAM报文长度L+交换头H)×(快速OAM实例数M/线卡数O)×8bit/byte/S       (3)M=(N×Speed–S)×3×(OAM message length L+exchange head H)×(fast OAM instance number M/line card number O)×8bit/byte/S (3)
展开公式(3)式得到:Expand formula (3) to get:
M={(N×Speed–S)×3×(OAM报文长度L+交换头H)×8bit/byte/(S×线卡数O)}×(快速OAM实例数M)       (4)M={(N×Speed–S)×3×(OAM message length L+exchange header H)×8bit/byte/(S×line card number O)}×(fast OAM instance number M) (4)
对于指定机架和线卡,{(N×Speed–S)×3×(OAM报文长度L+交换头H)×8bit/byte/(S×线卡数O)}是个常数K。因此,对于指定机架和线卡上的M简化为:For a given rack and line card, {(N×Speed–S)×3×(OAM message length L+swapping head H)×8bit/byte/(S×line card number O)} is a constant K. Therefore, the M on the specified rack and line card is simplified to:
M=K×快速OAM实例数M        (5)M=K× fast OAM instance number M (5)
通过上述公式(5)可知,缓存M与本线卡OAM实例数成正相关,OAM实例数越多,缓存M越大。缓存M将达到10Mbytes甚至几十Mbytes。It can be seen from the above formula (5) that the cache M is positively correlated with the number of OAM instances of the line card, and the more the number of OAM instances, the larger the cache M. The cache M will reach 10Mbytes or even tens of Mbytes.
由于归宿线卡场景存在,因此,极端情况下,线卡∑M=线卡数N*M。若按照32线卡计算,则需要开销缓存将达到几百MBytes甚至几个GBytes空间。Due to the existence of the home line card scene, in the extreme case, the line card ∑ M = the number of line cards N * M. If calculated according to the 32-line card, the overhead cache will need to reach several hundred MBytes or even several GBytes.
由上可以看出,OAM队列开销计算复杂并且每线卡OAM队列缓存开销较大。As can be seen from the above, the OAM queue cost calculation is complicated and the OAM queue cache overhead per line card is large.
针对相关技术中线卡OAM队列缓存开销较大的问题,目前尚未提出有效的解决方案。Aiming at the problem that the line card OAM queue cache overhead is large in the related art, an effective solution has not been proposed yet.
发明内容Summary of the invention
本发明实施例提供了一种运行、管理和维护OAM报文处理方法及装置,以至少解决相关技术中线卡OAM队列缓存开销较大的问题。The embodiment of the invention provides a method and a device for processing, managing and maintaining an OAM packet, so as to at least solve the problem that the line card OAM queue cache overhead is large in the related art.
根据本发明的一个实施例,提供了一种运行、管理和维护OAM报文处理方法,包括:从网络侧获取OAM报文;判断OAM报文是否为非归宿线卡OAM;以及在判断出OAM报文为非归宿线卡OAM时,将OAM报文发送给交换网。According to an embodiment of the present invention, a method for processing, managing, and maintaining an OAM packet is provided, including: obtaining an OAM packet from a network side; determining whether the OAM packet is a non-destination line card OAM; and determining the OAM When the packet is OAM, the OAM packet is sent to the switching network.
在本发明实施例中,判断OAM报文是否为非归宿线卡OAM包括:获取OAM报文的标识符;以及根据标识符判断OAM报文是否为非归宿线卡OAM。In the embodiment of the present invention, determining whether the OAM message is a non-destination line card OAM includes: obtaining an identifier of the OAM message; and determining, according to the identifier, whether the OAM message is a non-home line card OAM.
在本发明实施例中,从网络侧获取OAM报文之前,方法还包括:给网元中每个线卡分配队列编号,其中,同一个线卡的队列编号相同,不同线卡的队列编号不同,在判断出OAM报文为非归宿线卡OAM时,将OAM报文发送给交换网包括:根据队列编号将OAM报文送入 OAM报文的归宿线卡对应的队列中;将队列编号写入交换头;以及将OAM报文发送给交换网。In the embodiment of the present invention, before obtaining the OAM packet from the network side, the method further includes: assigning a queue number to each line card in the network element, wherein the queue number of the same line card is the same, and the queue numbers of different line cards are different. When the OAM packet is determined to be a non-destination line card OAM, sending the OAM packet to the switching network includes: sending the OAM packet according to the queue number. The OAM packet belongs to the queue corresponding to the line card; the queue number is written to the switching header; and the OAM packet is sent to the switching network.
在本发明实施例中,将OAM报文发送给交换网之后,方法还包括:从交换侧获取OAM报文;以及根据交换头携带的队列编号将OAM报文重新送入OAM报文的归宿线卡对应的队列中。In the embodiment of the present invention, after the OAM packet is sent to the switching network, the method further includes: acquiring the OAM packet from the switching side; and resending the OAM packet into the destination line of the OAM packet according to the queue number carried in the switching header. The card corresponds to the queue.
在本发明实施例中,在判断出OAM报文为归宿线卡OAM时,方法还包括:设置OAM报文的归宿线卡对应的队列的缓存大小为预设值,其中,预设值为根据OAM报文的归宿线卡的最大OAM报文数计算得到的缓存值。In the embodiment of the present invention, when the OAM packet is determined to be the home line card OAM, the method further includes: setting a buffer size of the queue corresponding to the home line card of the OAM packet to a preset value, wherein the preset value is The cached value calculated by the maximum number of OAM packets of the home line card of the OAM packet.
根据本发明的另一实施例,提供了一种运行、管理和维护OAM报文处理装置,包括:第一获取模块,设置为从网络侧获取OAM报文;判断模块,设置为判断OAM报文是否为非归宿线卡OAM;以及第一发送模块,设置为在判断出OAM报文为非归宿线卡OAM时,将OAM报文发送给交换网。According to another embodiment of the present invention, an apparatus for processing, managing, and maintaining an OAM packet is provided, including: a first acquiring module, configured to acquire an OAM packet from a network side; and a determining module configured to determine an OAM packet Whether it is a non-destination line card OAM; and the first sending module is configured to send the OAM message to the switching network when it is determined that the OAM message is a non-destination line card OAM.
在本发明实施例中,判断模块包括:获取单元,设置为获取OAM报文的标识符;以及判断单元,设置为根据标识符判断OAM报文是否为非归宿线卡OAM。In the embodiment of the present invention, the determining module includes: an obtaining unit, configured to obtain an identifier of the OAM message; and a determining unit, configured to determine, according to the identifier, whether the OAM message is a non-destination line card OAM.
在本发明实施例中,该装置还包括:分配模块,设置为给网元中每个线卡分配队列编号,其中,同一个线卡的队列编号相同,不同线卡的队列编号不同,第一发送模块包括:第一发送单元,设置为根据队列编号将OAM报文送入OAM报文的归宿线卡对应的队列中;写单元,设置为将队列编号写入交换头;以及第二发送单元,设置为将OAM报文发送给交换网。In the embodiment of the present invention, the device further includes: an allocation module, configured to allocate a queue number to each line card in the network element, wherein the queue numbers of the same line card are the same, and the queue numbers of different line cards are different, first The sending module includes: a first sending unit, configured to send the OAM packet to the queue corresponding to the destination line card of the OAM packet according to the queue number; the writing unit is configured to write the queue number to the switching header; and the second sending unit , set to send OAM packets to the switching network.
在本发明实施例中,该装置还包括:第二获取模块,设置为从交换侧获取OAM报文;以及第二发送模块,设置为根据交换头携带的队列编号将OAM报文重新送入OAM报文的归宿线卡对应的队列中。In the embodiment of the present invention, the device further includes: a second acquiring module, configured to acquire an OAM packet from the switching side; and a second sending module, configured to re-send the OAM packet into the OAM according to the queue number carried by the switching header The destination line of the message is in the queue corresponding to the line card.
在本发明实施例中,在判断出OAM报文为归宿线卡OAM时,该装置还包括:设置模块,设置为设置OAM报文的归宿线卡对应的队列的缓存大小为预设值,其中,预设值为根据OAM报文的归宿线卡的最大OAM报文数计算得到的缓存值。In the embodiment of the present invention, when the OAM packet is determined to be the home line card OAM, the device further includes: a setting module, configured to set a cache size of the queue corresponding to the home line card of the OAM packet to a preset value, where The default value is the cached value calculated based on the maximum number of OAM packets of the home line card of the OAM packet.
在本发明实施例中,还提供了一种计算机存储介质,该计算机存储介质可以存储有执行指令,该执行指令用于执行上述OAM报文处理方法。In the embodiment of the present invention, a computer storage medium is further provided, and the computer storage medium may store an execution instruction, where the execution instruction is used to execute the OAM message processing method.
通过本发明实施例,采用从网络侧获取OAM报文;判断OAM报文是否为非归宿线卡OAM;以及在判断出OAM报文为非归宿线卡OAM时,将OAM报文发送给交换网,解决了相关技术中线卡OAM队列缓存开销较大的问题,进而达到了减低线卡OAM队列缓存开销的效果。In the embodiment of the present invention, the OAM packet is obtained from the network side; the OAM packet is determined to be a non-destination line card OAM; and the OAM packet is sent to the switching network when the OAM packet is determined to be a non-destination line card OAM. The invention solves the problem that the line card OAM queue cache overhead is large in the related technology, thereby achieving the effect of reducing the line card OAM queue buffer overhead.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示 意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are provided to provide a further understanding of the invention, which form a part of this application, The illustrative embodiments and the description thereof are illustrative of the invention and are not to be construed as limiting the invention. In the drawing:
图1是根据相关技术的集中式架构的示意图;1 is a schematic diagram of a centralized architecture according to the related art;
图2是根据相关技术的分布式架构的示意图;2 is a schematic diagram of a distributed architecture according to the related art;
图3是根据相关技术的分布式网络侧调度管理架构的示意图;3 is a schematic diagram of a distributed network side scheduling management architecture according to the related art;
图4是根据相关技术的分布式交换侧调度管理架构的示意图;4 is a schematic diagram of a distributed switching side scheduling management architecture according to the related art;
图5是根据相关技术的分布式交换侧调度管理TP OAM归宿板示意图;5 is a schematic diagram of a distributed switching side scheduling management TP OAM homeboard according to the related art;
图6是根据相关技术的分布式交换侧调度管理TP OAM流量突发示意图;6 is a schematic diagram of a distributed switching side scheduling management TP OAM traffic burst according to the related art;
图7是根据本发明实施例的运行、管理和维护OAM报文处理方法的流程图;7 is a flowchart of a method for processing, managing, and maintaining an OAM packet according to an embodiment of the present invention;
图8是根据本发明实施例的非归宿线卡OAM报文上送给FPGA示意图;FIG. 8 is a schematic diagram of a non-homed line card OAM message sent to an FPGA according to an embodiment of the present invention; FIG.
图9是根据现有技术的非归宿线卡OAM报文上送给FPGA示意图;9 is a schematic diagram of sending a non-homed line card OAM message to an FPGA according to the prior art;
图10是根据本发明实施例的基于线卡槽位静态队列编号示意图;10 is a schematic diagram of a static queue number based on a line card slot according to an embodiment of the present invention;
图11是根据本发明实施例的运行、管理和维护OAM报文处理装置的结构框图;11 is a structural block diagram of an apparatus for processing, managing, and maintaining an OAM message according to an embodiment of the present invention;
图12是根据本发明实施例的普通线性PW保护场景的示意图;FIG. 12 is a schematic diagram of a general linear PW protection scenario according to an embodiment of the present invention; FIG.
图13是根据本发明实施例的12K DNI PW保护场景的示意图;FIG. 13 is a schematic diagram of a 12K DNI PW protection scenario according to an embodiment of the present invention; FIG.
图14是根据本发明实施例的普通线性PW保护OAM汇聚场景的示意图;FIG. 14 is a schematic diagram of a general linear PW protection OAM aggregation scenario according to an embodiment of the present invention; FIG.
图15是根据本发明实施例的12K DNI PW保护OAM汇聚场景的示意图;15 is a schematic diagram of a 12K DNI PW protection OAM aggregation scenario according to an embodiment of the present invention;
图16是根据本发明实施例的OAM传输示意图;16 is a schematic diagram of OAM transmission according to an embodiment of the present invention;
图17是根据本发明实施例的FPGA发出OAM报文格式示意图;17 is a schematic diagram of a format of an OAM message sent by an FPGA according to an embodiment of the present invention;
图18是根据本发明实施例的OAM报文由NP送给交换网报文格式示意图;FIG. 18 is a schematic diagram of a format of an OAM message sent by an NP to a switching network according to an embodiment of the present invention; FIG.
图19是根据本发明实施例的OAM报文由NP送给SA报文格式示意图;19 is a schematic diagram of a format of an OAM packet sent by an NP to an SA message according to an embodiment of the present invention;
图20是根据本发明实施例的OAM报文由NP发给的FPGA报文格式示意图;20 is a schematic diagram of a format of an FPGA message sent by an NP in an OAM message according to an embodiment of the present invention;
图21是根据本发明实施例的进入LSP/PW快速OAM处理流程示意图;21 is a schematic diagram of a process of entering an LSP/PW fast OAM according to an embodiment of the present invention;
图22是根据本发明实施例的单播出流点模块处理流程示意图;以及22 is a schematic diagram of a process flow of a unicast outflow point module according to an embodiment of the present invention;
图23是根据本发明实施例的Egress MPLS-TP LSP/PW OAM报文上送处理流程示意图。FIG. 23 is a schematic diagram of a process of sending an Egress MPLS-TP LSP/PW OAM packet according to an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that, in the absence of conflict, The embodiments in the present application and the features in the embodiments may be combined with each other.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
在本实施例中提供了一种运行、管理和维护OAM报文处理方法,图7是根据本发明实施例的运行、管理和维护OAM报文处理方法的流程图,如图7所示,该流程包括如下步骤:In this embodiment, a method for processing, managing, and maintaining an OAM packet is provided. FIG. 7 is a flowchart of a method for processing, managing, and maintaining an OAM packet according to an embodiment of the present invention. The process includes the following steps:
步骤S102,从网络侧获取OAM报文。Step S102: Obtain an OAM packet from the network side.
步骤S104,判断OAM报文是否为非归宿线卡OAM。Step S104: Determine whether the OAM message is a non-destination line card OAM.
非归宿线卡OAM是指该OAM报文的归宿线卡不是生成该OAM报文的线卡,而是其他线卡。归宿线卡OAM是指该OAM报文的归宿线卡即生成该OAM报文的线卡,即OAM报文的归宿线卡是本线卡。The non-destination line card OAM means that the home line card of the OAM message is not the line card that generates the OAM message, but other line cards. The home line card OAM is the line card of the OAM message, that is, the line card that generates the OAM message, that is, the home line card of the OAM message is the line card.
具体地,可以为OAM报文增加归宿线卡是否为本线卡标记。可选地,判断OAM报文是否为非归宿线卡OAM包括:获取OAM报文的标识符;以及根据标识符判断OAM报文是否为非归宿线卡OAM。Specifically, whether the home line card is added to the OAM packet is the line card label. Optionally, determining whether the OAM message is a non-destination line card OAM includes: obtaining an identifier of the OAM message; and determining, according to the identifier, whether the OAM message is a non-home line card OAM.
标识符用于标记OAM报文的归宿线卡是否为本线卡。例如,当标识符取值为1,则表示OAM报文的归宿线卡为本线卡,即OAM报文为归宿线卡OAM,当标识符取值为0,则表示OAM报文的归宿线卡是其他线卡,即OAM报文为非归宿线卡OAM。The identifier is used to mark whether the home line card of the OAM message is the line card. For example, if the value of the identifier is 1, it indicates that the home line card of the OAM packet is the line card, that is, the OAM message is the home line card OAM. When the identifier value is 0, it indicates the destination line of the OAM message. The card is another line card, that is, the OAM message is a non-home line card OAM.
步骤S106,在判断出OAM报文为非归宿线卡OAM时,将OAM报文发送给交换网。In step S106, when it is determined that the OAM packet is a non-destination line card OAM, the OAM packet is sent to the switching network.
本发明实施例在判断出OAM报文为非归宿线卡OAM时,为了降低线卡队列的缓存开销,将OAM报文发送给交换网,经由交换网交换后重新发送给归宿线卡。In the embodiment of the present invention, when the OAM packet is determined to be a non-destination line card OAM, in order to reduce the buffering overhead of the line card queue, the OAM packet is sent to the switching network, and is exchanged and sent to the home line card through the switching network.
具体地,图8是根据本发明实施例的非归宿线卡OAM报文上送给FPGA示意图。如8所示,跨板OAM报文经过交换网后到达网络处理器(Network Processer,简称为NP),NP对于归宿线卡不是本线卡的OAM报文回送到交换网,交换网再送给NP,NP再将该OAM报文发送给现场可编程门阵列(Field Programmable Gate Array,简称为FPGA)。图9是根据现有技术的非归宿线卡OAM报文上送给FPGA示意图,如图9所示,非归宿线卡OAM报文到归宿线卡后直接上送FPGA。由上可以看出,相比于现有技术中,本发明实施例明显减少了线卡队列的缓存开销。Specifically, FIG. 8 is a schematic diagram of a non-homed line card OAM message sent to an FPGA according to an embodiment of the invention. As shown in Figure 8, the inter-board OAM packet passes through the switching network and then reaches the network processor (Network Processer, NP for short). The NP sends the OAM packet that is not the trunk card to the switching network, and the switching network sends it to the NP. The NP then sends the OAM message to a Field Programmable Gate Array (FPGA). FIG. 9 is a schematic diagram of the non-homed line card OAM message sent to the FPGA according to the prior art. As shown in FIG. 9, the non-home line card OAM message is directly sent to the FPGA after being sent to the home line card. As can be seen from the above, the embodiment of the present invention significantly reduces the buffer overhead of the line card queue compared to the prior art.
本发明实施例通过从网络侧获取OAM报文;判断OAM报文是否为非归宿线卡OAM;以及在判断出OAM报文为非归宿线卡OAM时,将OAM报文发送给交换网。解决了相关技术中线卡OAM队列缓存开销较大的问题,进而达到了减低线卡OAM队列缓存开销的效果。The embodiment of the present invention obtains an OAM packet from the network side, determines whether the OAM packet is a non-destination line card OAM, and sends an OAM packet to the switching network when it is determined that the OAM packet is a non-destination line card OAM. The invention solves the problem that the line card OAM queue cache overhead is large in the related art, thereby achieving the effect of reducing the line card OAM queue buffer overhead.
根据本发明的一个实施例,提供了一种运行、管理和维护OAM报文处理方法,包括:从网络侧获取OAM报文;判断OAM报文是否为非归宿线卡OAM;以及在判断出OAM报文为非归宿线卡OAM时,将OAM报文发送给交换网。 According to an embodiment of the present invention, a method for processing, managing, and maintaining an OAM packet is provided, including: obtaining an OAM packet from a network side; determining whether the OAM packet is a non-destination line card OAM; and determining the OAM When the packet is OAM, the OAM packet is sent to the switching network.
优选地,为了便于快速将OAM报文放入至对其对应的归宿线卡的队列中,从网络侧获取OAM报文之前,该方法还包括:给网元中每个线卡分配队列编号,其中,同一个线卡的队列编号相同,不同线卡的队列编号不同。Preferably, the method further includes: assigning a queue number to each line card in the network element, before the OAM message is obtained from the network side, in order to facilitate the rapid loading of the OAM message into the queue of the corresponding home line card. The queue numbers of the same line card are the same, and the queue numbers of different line cards are different.
本发明实施例通过预先给网元中的每个线卡分配队列编号,具体地,可以根据每个线卡的槽位号为其队列分配编号。图10是根据本发明实施例的基于线卡槽位静态队列编号示意图。如图10所示,线卡A、线卡B和线卡C上为每线卡分配的队列资源号均为x、y和z,即形成队列映射关系为x-->线卡A,y-->线卡B,z-->线卡C。从图10可以看出,同一线卡在不同队列均对应于同一个队列资源号(即编号),不同线卡的队列资源号不同。The embodiment of the present invention allocates a queue number to each line card in the network element in advance. Specifically, the queue number of each line card may be assigned a number according to the slot number of each line card. FIG. 10 is a schematic diagram of a static queue number based on a line card slot according to an embodiment of the invention. As shown in Figure 10, the queue resource numbers assigned to each line card on line card A, line card B, and line card C are x, y, and z, that is, the queue mapping relationship is x--> line card A, y --> Line card B, z--> line card C. As can be seen from FIG. 10, the same line card corresponds to the same queue resource number (ie, number) in different queues, and the queue resource numbers of different line cards are different.
本发明实施例在判断出OAM报文为非归宿线卡OAM时,将OAM报文发送给交换网包括:根据队列编号将OAM报文送入OAM报文的归宿线卡对应的队列中;将队列编号写入交换头;以及将OAM报文发送给交换网。When the OAM packet is sent to the switching network, the OAM packet is sent to the queue corresponding to the destination line card of the OAM packet according to the queue number. The queue number is written to the switching header; and the OAM packet is sent to the switching network.
由于预先给每个线卡队列分配了编号,从而可以根据队列编号将OAM报文送入OAM报文的归宿线卡对应的队列中,并且将队列编号写到交换头中,以便于后续可以根据队列编号将OAM报文送入其归宿线卡对应的队列中。As the number of the line card queues is assigned in advance, the OAM packets can be sent to the queue corresponding to the home line card of the OAM packet according to the queue number, and the queue number is written into the switching header so that the subsequent The queue number sends the OAM packet to the queue corresponding to its destination line card.
可选地,将OAM报文发送给交换网之后,该方法还包括:从交换侧获取OAM报文;以及根据交换头携带的队列编号将OAM报文重新送入OAM报文的归宿线卡对应的队列中。Optionally, after the OAM packet is sent to the switching network, the method further includes: acquiring the OAM packet from the switching side; and correspondingly sending the OAM packet to the destination line card of the OAM packet according to the queue number carried by the switching header. In the queue.
本发明实施例中,由于上下行线卡为本线卡分配的队列编号相同,保证了本线卡不管是从交换侧还是从网络侧接收的OAM报文都进入一个队列。In the embodiment of the present invention, since the uplink and downlink line cards have the same queue number assigned to the line card, it is ensured that the OAM message received by the line card from the switching side or the network side enters a queue.
优选地,在判断出OAM报文为归宿线卡OAM时,方法还包括:设置OAM报文的归宿线卡对应的队列的缓存大小为预设值,其中,预设值为根据OAM报文的归宿线卡的最大OAM报文数计算得到的缓存值。Preferably, when determining that the OAM message is the home line card OAM, the method further includes: setting a buffer size of the queue corresponding to the home line card of the OAM message to a preset value, wherein the preset value is based on the OAM message. The cached value calculated from the maximum number of OAM packets of the home line card.
在判断出OAM报文为归宿线卡OAM,本发明实施例将归宿线卡OAM经交换网调度管理后直接上送,因此,需要为该归宿线卡OAM的队列分配较大的缓存。具体地,可以预先根据当前系统可配置每个线卡最大OAM报文条目数来计算队列缓存最大值M(即预设值),在判断出OAM报文为归宿线卡OAM时,将OAM报文的归宿线卡对应的队列设置为M。After determining that the OAM message is the home line card OAM, the embodiment of the present invention sends the home line card OAM directly to the switching network for scheduling management. Therefore, a larger buffer needs to be allocated for the queue of the home line card OAM. Specifically, the queue cache maximum value M (ie, a preset value) may be calculated according to the maximum number of OAM packet entries per line card in the current system. When the OAM packet is determined to be the home line card OAM, the OAM report is used. The queue corresponding to the destination line card of the text is set to M.
由上可知,本发明实施例通过将非归宿线卡OAM报文到归宿线卡绕回交换网再送上送,而归宿线卡OAM报文经交换网调度管理后直接上送,从而使得非归宿线卡OAM报文仅需占用默认队列缓存,只有归宿线卡OAM报文需要占用一个较大队列缓存,降低了每线卡OAM报文队列缓存开销,从而解决了OAM队列开销计算复杂以及每线卡OAM报文队列缓存开销较大的问题。It can be seen that, in the embodiment of the present invention, the non-destination line card OAM message is sent back to the switching network and sent back to the home network, and the OAM message of the home line card is directly sent and sent through the switching network scheduling management, thereby making the non-destination The line card OAM packet only needs to occupy the default queue cache. Only the OAM packet of the home line card needs to occupy a larger queue cache, which reduces the OAM packet queue buffer overhead per line card, thus solving the OAM queue cost calculation complex and each line. The card OAM packet queue cache has a large overhead.
根据本发明的又一实施例,为保证每线卡仅设置本线卡终结OAM的一个队列占用较大缓存,其他跨线卡OAM占用默认队列缓存,本发明实施例的运行、管理和维护OAM报文处理方法包括如下步骤: According to another embodiment of the present invention, in order to ensure that only one queue of the line card terminates the OAM, each line card occupies a larger cache, and the other line card OAM occupies a default queue cache. The OAM is operated, managed, and maintained in the embodiment of the present invention. The packet processing method includes the following steps:
步骤1:根据线卡槽位编号分配每线卡队列,如图10所示。线卡A、线卡B和线卡C上为每线卡分配的队列资源号都为x、y和z,即形成队列映射关系为x-->线卡A,y-->线卡B,z-->线卡C。Step 1: Assign each line card queue according to the line card slot number, as shown in Figure 10. The queue resource numbers assigned to each line card on line card A, line card B, and line card C are x, y, and z, that is, the queue mapping relationship is x--> line card A, y--> line card B , z--> line card C.
步骤2:根据当前系统可配置每线卡最大OAM报文条目数计算理论队列缓存最大值M。Step 2: Calculate the theoretical queue cache maximum value M according to the current system configurable maximum number of OAM message entries per line card.
步骤3:每线卡初始化队列默认大小,当队列映射关系为本线卡时设置OAM队列大小为M。Step 3: The default size of each line card initialization queue. When the queue mapping relationship is the line card, set the OAM queue size to M.
步骤4:从网络侧收到OAM后,上行线卡按照OAM归宿线卡槽位入队。当归宿线卡不是自身时在交换头上携带上队列编号,以便下行线卡从交换网提取到OAM报文后可以送入为本线卡分配的静态队列,从而保证了每线卡仅设置本线卡终结OAM的一个队列占用较大缓存,其他跨线卡OAM占用默认队列缓存。Step 4: After receiving the OAM from the network side, the uplink line card is enqueued according to the OAM home line card slot. When the home line card is not itself, the queue number is carried on the switch head, so that the downlink card can be sent to the static queue allocated for the line card after the OAM message is extracted from the switch network, thereby ensuring that only the line card is set for each line card. One queue of the line card terminating OAM occupies a larger cache, and other cross-line cards OAM occupy the default queue cache.
具体地,在上行线卡,先分配队列编号,然后配置每个队列缓存。当收到OAM报文后经入队管理模块处理入队,若OAM报文的归宿线卡是自身(即该OAM报文为归宿线卡OAM报文),则OAM报文经交换网调度管理后直接提取上送;若OAM报文的归宿线卡是其他线卡(即该OAM报文为非归宿线卡OAM报文),则按照A分配的队列编号把报文送入对应队列,并把队列编号编写到交换头。OAM报文经过交换后,下行线卡从交换侧提取的OAM报文后以交换头携带的队列编号重新入队,后继过程再次重复入队过程和提取上送过程。本发明实施例中由于上下行线卡为本线卡分配的队列编号相同,保证了本线卡不管是从交换侧还是从网络侧接收的OAM报文都进入一个队列,从而保证了每线卡仅设置本线卡终结OAM的一个队列占用较大缓存,其他跨线卡OAM占用默认队列缓存。Specifically, on the uplink card, the queue number is assigned first, and then each queue cache is configured. After receiving the OAM packet, the enqueue management module processes the enrollment. If the OAM packet is the home line (that is, the OAM packet is the OAM packet), the OAM packet is scheduled and managed by the switching network. After the line card of the OAM packet is another line card (that is, the OAM message is a non-destination line card OAM message), the message is sent to the corresponding queue according to the queue number assigned by A, and Write the queue number to the exchange header. After the OAM packet is exchanged, the downlink card is re-entered by the queue number carried by the switching head after the OAM packet is extracted from the switching side. The subsequent process repeats the enqueue process and the extraction process. In the embodiment of the present invention, since the uplink and downlink line cards have the same queue number assigned to the line card, the OAM message received by the line card from the switching side or the network side is entered into a queue, thereby ensuring each line card. Only one queue of the line card termination OAM occupies a large cache, and other cross-line cards OAM occupy the default queue cache.
本发明实施例的OAM报文处理方法,与现有技术相比,降低了系统复杂度,节省了交换存储空间。Compared with the prior art, the OAM packet processing method in the embodiment of the present invention reduces system complexity and saves exchange storage space.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
在本实施例中还提供了一种运行、管理和维护OAM报文处理装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。An apparatus for processing, managing, and maintaining an OAM packet is provided in this embodiment. The apparatus is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图11是根据本发明实施例的运行、管理和维护OAM报文处理装置的结构框图,如图11所示,该装置包括:第一获取模块10,判断模块20和第一发送模块30。FIG. 11 is a structural block diagram of an apparatus for processing, managing, and maintaining an OAM packet according to an embodiment of the present invention. As shown in FIG. 11, the apparatus includes: a first obtaining module 10, a determining module 20, and a first sending module 30.
第一获取模块10,设置为从网络侧获取OAM报文。 The first obtaining module 10 is configured to obtain an OAM packet from the network side.
判断模块20,设置为判断OAM报文是否为非归宿线卡OAM。The determining module 20 is configured to determine whether the OAM message is a non-home line card OAM.
非归宿线卡OAM是指该OAM报文的归宿线卡不是生成该OAM报文的线卡,而是其他线卡。归宿线卡OAM是指该OAM报文的归宿线卡即生成该OAM报文的线卡,即OAM报文的归宿线卡是本线卡。The non-destination line card OAM means that the home line card of the OAM message is not the line card that generates the OAM message, but other line cards. The home line card OAM is the line card of the OAM message, that is, the line card that generates the OAM message, that is, the home line card of the OAM message is the line card.
可选地,判断模块20包括:获取单元,设置为获取OAM报文的标识符;以及判断单元,设置为根据标识符判断OAM报文是否为非归宿线卡OAM。Optionally, the determining module 20 includes: an obtaining unit, configured to acquire an identifier of the OAM message; and a determining unit, configured to determine, according to the identifier, whether the OAM message is a non-home line card OAM.
标识符用于标记OAM报文的归宿线卡是否为本线卡。例如,当标识符取值为1,则表示OAM报文的归宿线卡为本线卡,即OAM报文为归宿线卡OAM,当标识符取值为0,则表示OAM报文的归宿线卡是其他线卡,即OAM报文为非归宿线卡OAM。The identifier is used to mark whether the home line card of the OAM message is the line card. For example, if the value of the identifier is 1, it indicates that the home line card of the OAM packet is the line card, that is, the OAM message is the home line card OAM. When the identifier value is 0, it indicates the destination line of the OAM message. The card is another line card, that is, the OAM message is a non-home line card OAM.
第一发送模块30,设置为在判断出OAM报文为非归宿线卡OAM时,将OAM报文发送给交换网。The first sending module 30 is configured to send the OAM packet to the switching network when it is determined that the OAM packet is the non-home line card OAM.
本发明实施例在判断出OAM报文为非归宿线卡OAM时,为了降低线卡队列的缓存开销,将OAM报文发送给交换网,经由交换网交换后在重新发送给归宿线卡。In the embodiment of the present invention, when the OAM packet is determined to be a non-destination line card OAM, the OAM packet is sent to the switching network, and is re-sent to the destination line card after being exchanged via the switching network, in order to reduce the buffering overhead of the line card queue.
本发明实施例通过第一获取模块10从网络侧获取OAM报文;判断模块20判断OAM报文是否为非归宿线卡OAM;以及第一发送模块30在判断出OAM报文为非归宿线卡OAM时,将OAM报文发送给交换网。解决了相关技术中线卡OAM队列缓存开销较大的问题,进而达到了减低线卡OAM队列缓存开销的效果。In the embodiment of the present invention, the first obtaining module 10 obtains an OAM packet from the network side; the determining module 20 determines whether the OAM packet is a non-destination line card OAM; and the first sending module 30 determines that the OAM packet is a non-destination line card. The OAM packet is sent to the switching network. The invention solves the problem that the line card OAM queue cache overhead is large in the related art, thereby achieving the effect of reducing the line card OAM queue buffer overhead.
可选地,该装置还包括:分配模块,设置为给网元中每个线卡分配队列编号,其中,同一个线卡的队列编号相同,不同线卡的队列编号不同,第一发送模块包括:第一发送单元,设置为根据队列编号将OAM报文送入OAM报文的归宿线卡对应的队列中;写单元,设置为将队列编号写入交换头;以及第二发送单元,设置为将OAM报文发送给交换网。Optionally, the device further includes: an allocating module, configured to allocate a queue number to each line card in the network element, wherein the same line card has the same queue number, and different line cards have different queue numbers, and the first sending module includes The first sending unit is configured to send the OAM packet to the queue corresponding to the destination line card of the OAM packet according to the queue number; the writing unit is configured to write the queue number to the switching header; and the second sending unit is set to Send the OAM packet to the switching network.
可选地,该装置还包括:第二获取模块,设置为从交换侧获取OAM报文;以及第二发送模块,设置为根据交换头携带的队列编号将OAM报文重新送入OAM报文的归宿线卡对应的队列中。Optionally, the device further includes: a second acquiring module, configured to obtain an OAM packet from the switching side; and a second sending module, configured to re-deliver the OAM packet into the OAM packet according to the queue number carried by the switching header The destination line card corresponds to the queue.
可选地,在判断出OAM报文为归宿线卡OAM时,该装置还包括:设置模块,设置为设置OAM报文的归宿线卡对应的队列的缓存大小为预设值,其中,预设值为根据OAM报文的归宿线卡的最大OAM报文数计算得到的缓存值。Optionally, when determining that the OAM message is the home line card OAM, the device further includes: a setting module, configured to set a cache size of the queue corresponding to the home line card of the OAM message to a preset value, where the preset The value is the cached value calculated based on the maximum number of OAM packets of the home line card of the OAM packet.
根据本发明的又一实施例,为保证每线卡仅设置本线卡终结OAM的一个队列占用较大缓存,其他跨线卡OAM占用默认队列缓存,本发明实施例运行、管理和维护OAM报文处理装置包括以下模块:队列编号预分配模块A,队列大小配置模块B,入队管理模块C,OAM报文提取模块D,E模块,F模块和G模块,其中,E模块设置为使得全网元中每线卡上预分配的OAM报文队列编号相同,F模块设置为使得上行线卡按照A分配的队列编号入队,并把队列编号编写到交换头,G模块设置为使得下行线卡从交换侧提取的OAM报文后以交换头携带 的队列编号入队。According to another embodiment of the present invention, in order to ensure that only one queue of the line card terminates the OAM, each line card occupies a larger cache, and the other line card OAM occupies a default queue cache. The OAM report is operated, managed, and maintained in the embodiment of the present invention. The text processing device includes the following modules: a queue number pre-allocation module A, a queue size configuration module B, an enqueue management module C, an OAM message extraction module D, an E module, an F module, and a G module, wherein the E module is set to make the whole The pre-allocated OAM packet queue number is the same on each line card in the NE. The F module is set so that the uplink card is enqueued according to the queue number assigned by A, and the queue number is written to the switch header. The G module is set to make the downlink line. The OAM packet extracted by the card from the switching side is carried by the exchange header. The queue number is entered into the queue.
具体地,在上行线卡,先根据队列编号预分配模块A分配队列编号,然后由队列大小配置模块B来配置每队列缓存。当收到OAM报文后经入队管理模块C处理入队,若OAM报文的归宿线卡是自身(即该OAM报文为归宿线卡OAM报文),则OAM报文经交换网调度管理后由OAM报文提取模块D提取上送;若OAM报文的归宿线卡是其他线卡(即该OAM报文为非归宿线卡OAM报文),则由F模块处理。具体地,F模块按照A分配的队列编号把报文送入对应队列,并把队列编号编写到交换头。OAM报文经过交换后,到下行线卡由G模块负责处理,具体地,下行线卡从交换侧提取的OAM报文后以交换头携带的队列编号重新入队,后继过程再次重复C模块和D模块进行处理。本发明实施例中由于上下行线卡在E模块为本线卡分配的队列编号相同,保证了本线卡不管是从交换侧还是从网络侧接收的OAM报文都进入一个队列,从而保证了每线卡仅设置本线卡终结OAM的一个队列占用较大缓存,其他跨线卡OAM占用默认队列缓存。Specifically, in the uplink card, the queue number is first allocated according to the queue number pre-allocation module A, and then each queue cache is configured by the queue size configuration module B. After receiving the OAM packet, the enqueue management module C processes the enqueue. If the OAM packet is the home line (that is, the OAM packet is the OAM packet of the home line card), the OAM packet is scheduled by the switching network. After the management, the OAM packet extraction module D is sent and sent; if the home line card of the OAM packet is another line card (that is, the OAM message is a non-destination line card OAM message), it is processed by the F module. Specifically, the F module sends the message to the corresponding queue according to the queue number assigned by A, and writes the queue number to the exchange header. After the OAM packet is exchanged, the G-module is processed by the G-module. Specifically, the OAM packet extracted from the switching-side line is re-entered by the queue number carried in the switching header. The subsequent process repeats the C module and The D module performs processing. In the embodiment of the present invention, the queue number assigned by the E-module to the line card is the same, and the OAM packet received by the line card from the switching side or the network side is entered into a queue. Each line card only sets the line card to terminate the OAM. One queue occupies a larger cache, and the other line card OAM occupies the default queue cache.
以下对本发明实施例的几个应用场景进行说明。Several application scenarios of the embodiments of the present invention are described below.
场景1 scene 1
普通线性伪线(Pseudo Wire,简称为PW)保护环境(点对点),如图12所示。12K普通线性PW保护组,工作OAM和保护OAM分别配置在4块单板上面。联通性检测(Continuity Check,简称为CC)的发送报文周期为10ms,自动保护倒换(Auto Protect Switch,简称为APS)报文发送规则是:有变化的时候每个OAM ID立即发送3个APS报文,没变化时5s定时每个OAM ID发送3个APS报文。A normal linear pseudowire (Pseudo Wire, PW for short) protects the environment (point-to-point), as shown in Figure 12. The 12K common linear PW protection group, the working OAM and the protection OAM are respectively configured on four boards. The Continuity Check (CC) packet transmission period is 10 ms. The Auto Protect Switch (APS) packet transmission rule is: When there is a change, each OAM ID immediately sends 3 APSs. Packets, when there is no change, send 3 APS packets for each OAM ID at 5s.
场景2 Scene 2
双节点连接伪线(Dual Node Interconnection Pseudo Wire,简称为DNI PW)环境(点对点),如图13所示。同样配置12K DNI PW保护组。主备节点之间的通讯报文也存在突发情况,比普通的线性保护突发量更大。CC报文发送报文周期为10ms。主节点需要把PW告警和STM(ETH)端口告警送到备节点,备节点需要把PW保护组决策和MSP保护组决策/本点ETH端口告警送到主节点。主备节点互传信息采用APS报文的格式,只是opcode不一样,我们称之为仿APS报文。报文的发送形式也和APS报文一样,有变化时每个OAM ID立即发送3个报文,没变化时5s定时每个OAM ID发送3个APS报文。Dual Node Interconnection Pseudo Wire (DNI PW) environment (point-to-point), as shown in Figure 13. The 12K DNI PW protection group is also configured. There is also a burst of communication messages between the active and standby nodes, which is larger than the normal linear protection burst. The period in which CC packets are sent is 10 ms. The master node needs to send the PW alarm and the STM (ETH) port alarm to the standby node. The standby node needs to send the PW protection group decision and the MSP protection group decision/this point ETH port alarm to the master node. The information transmitted by the active and standby nodes is in the format of APS packets, but the opcode is different. We call it an APS packet. The packet is sent in the same format as the APS packet. When there is a change, each OAM ID immediately sends three packets. When there is no change, each OAM ID sends 3 APS packets.
场景3 Scene 3
普通线性PW环境(OAM汇聚),如图14所示。配置普通线性PW保护组8K,网元1的工作OAM分别配置在2块线卡上,每块线卡配置4K,保护OAM同样配置。CC发送周期为10ms,网元2工作8K OAM配置在1块线卡上,保护8K OAM也同样配置在一块线卡上。APS报文发送规则是:有变化的时候每个OAM ID立即发送3个APS报文,没变化时5s定时每个OAM ID发送3个APS报文。Ordinary linear PW environment (OAM convergence), as shown in Figure 14. Configure the normal linear PW protection group 8K. The working OAM of the network element 1 is configured on two line cards. Each line card is configured with 4K, and the protection OAM is also configured. The CC transmission period is 10ms, the network element 2 works 8K OAM is configured on one line card, and the protection 8K OAM is also configured on one line card. The APS packet sending rule is that each OAM ID immediately sends three APS packets when there is a change. When there is no change, each OAM ID sends three APS packets at the 5s timing.
场景4 Scene 4
DNI PW环境(OAM汇聚),如图15所示。和场景2一样DNI PW发送8K OAM分别配置在两块线卡,接收部分8K OAM配置在一块线卡上。DNI PW environment (OAM aggregation), as shown in Figure 15. As in scenario 2, the DNI PW sends 8K OAMs respectively configured on two line cards, and the receiving part 8K OAM is configured on one line card.
以下对OAM传送流程进行说明:The following describes the OAM delivery process:
OAM报文由FPGA产生和终结,传输过程中经过NP和交换网。如图16取4个点说明OAM报文长度在传输过程中的变化情况。The OAM message is generated and terminated by the FPGA, and the transmission process passes through the NP and the switching network. Figure 4 shows four points to illustrate the change of OAM packet length during transmission.
1号点,OAM报文由FPGA发出OAM报文(取报文长度最长)格式如图17,其中,TC表示转发等级,LSP Label表示隧道标签,PW Label表示伪线标签,Channel Type表示通道类型,ITMH表示入向TM头,NPH表示NP头。On the 1st point, the OAM message is sent by the FPGA. The format of the OAM message is the longest. The TC indicates the forwarding level, the LSP Label indicates the tunnel label, the PW Label indicates the pseudo line label, and the Channel Type indicates the channel. Type, ITMH indicates the incoming TM header, and NPH indicates the NP header.
发送CC的报文长度为:12byte(NPH)+12byte(label)+75byte(PDU)+4byte(FCS)=103byteThe length of the packet sent by the CC is: 12byte(NPH)+12byte(label)+75byte(PDU)+4byte(FCS)=103byte
发送的APS报文长度:12byte(NPH)+12byte(label)+9byte(PDU)+4byte(FCS)=64byte(补填充字节)Length of APS packet sent: 12byte(NPH)+12byte(label)+9byte(PDU)+4byte(FCS)=64byte (fill padding)
对于场景1:For scenario 1:
CC报文的流量=103×100×8000×8=659200000bit/sCC message traffic = 103 × 100 × 8000 × 8 = 659200000bit / s
APS报文的流量=64×3×8000×8=12288000bit/sAPS packet traffic = 64 × 3 × 8000 × 8 = 12288000 bit / s
两者之和=671488000bit/s,大约691Mbps。The sum of the two = 671488000 bit / s, about 691Mbps.
对于场景2:For scenario 2:
CC报文的流量=103×100×8000×8=659200000bit/sCC message traffic = 103 × 100 × 8000 × 8 = 659200000bit / s
APS报文的流量=64×3×2×8000×8=24576000bit/sAPS packet traffic = 64 × 3 × 2 × 8000 × 8 = 24576000bit / s
两者之和=683776000bit/s,大约683Mbps。The sum of the two = 683,776,000 bits / s, about 683 Mbps.
2号点OAM报文由NP发出的报文格式如图18所示,其中,DA表示目的MAC,SA表示源MAC,TC表示转发等级,LSP Label表示隧道标签,PW Label表示伪线标签,Channel Type表示通道类型。The format of the packet sent by the NP on the OAM packet is shown in Figure 18. The DA indicates the destination MAC address, the SA indicates the source MAC address, the TC indicates the forwarding level, the LSP Label indicates the tunnel label, and the PW Label indicates the pseudowire label. Type indicates the channel type.
发送CC的报文长度为:18byte(MAC+VLAN+TYPE)+12byte(label)+75byte(PDU)+4byte(FCS)=109byte;The length of the packet sending CC is: 18byte (MAC+VLAN+TYPE)+12byte(label)+75byte(PDU)+4byte(FCS)=109byte;
发送的APS报文长度:18byte(MAC+VLAN+TYPE)+12byte(label)+9byte(PDU)+4byte(FCS)=64byte(补填充字节)。Length of APS packet sent: 18byte (MAC+VLAN+TYPE)+12byte(label)+9byte(PDU)+4byte(FCS)=64byte (fill padding).
对于场景1:For scenario 1:
CC报文的流量=109×100×8000×8=697600000bit/s CC message traffic = 109 × 100 × 8000 × 8 = 697,600,000 bits / s
APS报文的流量=64×3×8000×8=12288000bit/sAPS packet traffic = 64 × 3 × 8000 × 8 = 12288000 bit / s
两者之和=709888000bit/,大约710Mbps。The sum of the two = 709888000bit /, about 710Mbps.
对于场景2:For scenario 2:
CC报文的流量=109×100×8000×8=697600000bit/sCC message traffic = 109 × 100 × 8000 × 8 = 697,600,000 bits / s
APS报文的流量=64×3×2×8000×8=24576000bit/sAPS packet traffic = 64 × 3 × 2 × 8000 × 8 = 24576000bit / s
两者之和=722176000bit/s,大约722Mbps。The sum of the two = 722176000 bit / s, about 722 Mbps.
3号点NP送给交换芯片SA的报文格式如图19所示,其中,DA表示目的MAC,SA表示源MAC,TC表示转发等级,LSP Label表示隧道标签,PW Label表示伪线标签,Channel Type表示通道类型。The format of the packet sent by the NP to the switch chip SA is shown in Figure 19. The DA indicates the destination MAC, the SA indicates the source MAC address, the TC indicates the forwarding level, the LSP Label indicates the tunnel label, and the PW Label indicates the pseudo line label. Type indicates the channel type.
发送CC的报文长度为:4byte(ITMH)+16byte(NPH)+20byte(NFH)+18byte(MAC+VLAN+TYPE)+12byte(label)+75byte(PDU)+4byte(FCS)=149byteThe length of the message sent by the CC is: 4byte(ITMH)+16byte(NPH)+20byte(NFH)+18byte(MAC+VLAN+TYPE)+12byte(label)+75byte(PDU)+4byte(FCS)=149byte
发送的APS报文长度:4byte(ITMH)+16byte(NPH)+20byte(NFH)+18byte(MAC+VLAN+TYPE)+12byte(label)+9byte(PDU)+4byte(FCS)=106byte(含填充字节)Length of APS message sent: 4byte(ITMH)+16byte(NPH)+20byte(NFH)+18byte(MAC+VLAN+TYPE)+12byte(label)+9byte(PDU)+4byte(FCS)=106byte (with padding) byte)
对于场景1:For scenario 1:
CC报文的流量=149×100×8000×8=953600000bit/sCC message traffic = 149 × 100 × 8000 × 8 = 95,360,000 bit / s
APS报文的流量=106×3×8000×8=16896000bit/sAPS packet traffic = 106 × 3 × 8000 × 8 = 16896000 bit / s
两者之和=973952000bit/s,大约974Mbps。The sum of the two = 973952000 bit / s, about 974Mbps.
对于场景2:For scenario 2:
CC报文的流量=149×100×8000×8=953600000bit/sCC message traffic = 149 × 100 × 8000 × 8 = 95,360,000 bit / s
APS报文的流量=106×3×2×8000×8=33792000bit/sAPS packet traffic = 106 × 3 × 2 × 8000 × 8 = 33792000bit / s
两者之和=994304000bit/s,大约994Mbps。The sum of the two =994304000bit/s, about 994Mbps.
4号点NP发给的FPGA的报文格式如图20所示。The packet format of the FPGA sent by the NP on the 4th point is shown in Figure 20.
通过对比可以看出,FPGA接收跟FPGA发送相比,接收比发送多了8个字节。如果要确保这个端口不丢包,那么FPGA发送侧的带宽不能超过1GE×(103/111)=928Mbps。It can be seen from the comparison that the FPGA reception has 8 bytes more than the transmission compared with the FPGA transmission. If you want to ensure that this port does not lose packets, the bandwidth on the transmitting side of the FPGA cannot exceed 1GE × (103/111) = 928Mbps.
以下对OAM突发情况进行说明:The following describes the OAM emergencies:
如前所述的流量值都是在假设OAM均匀发送的情况下计算的。但实际上FPGA实现的情况是8K的CC报文和APS报文都是在短时间内以满带宽的速率发送的,最糟糕的情况是8K CC报文和8K的APS报文同时需要发送。 The traffic values as described above are calculated assuming OAM is evenly transmitted. In fact, the implementation of the FPGA is that the 8K CC message and the APS message are sent at a full bandwidth rate in a short period of time. In the worst case, the 8K CC message and the 8K APS message need to be sent at the same time.
对于场景1和场景2,由于FPGA的收端口和发端口的带宽基本相等都是1GE,所以不存在突发情况。For scenario 1 and scenario 2, since the bandwidth of the receiving port and the sending port of the FPGA are basically equal to 1GE, there is no sudden situation.
对于场景3,极端情况是线卡3和线卡4的CC报文和APS同时发送,那么线卡6会在同一时间段分别由不同的端口收到2GE的报文,并且汇聚到SA40,再送到NP,由NP送给FPGA。在这段时间内入口报文是2个GE,出口是1GE,那么SA40需要把这段时间报文缓存起来。For scenario 3, the extreme case is that the CC packets of the line card 3 and the line card 4 are simultaneously sent by the APS, and the line card 6 receives 2GE packets from different ports in the same time period, and aggregates them to the SA40, and then sends them. To NP, the NP is sent to the FPGA. During this period, the ingress message is 2 GE and the egress is 1GE. Then the SA40 needs to cache the time packet.
缓存大小M=2×1024000000×T–1×1024000000×T(T为OAM报文持续发包时间)Cache size M=2×1024000000×T–1×1024000000×T (T is the OAM message continuous packet sending time)
对于CC报文:T=((109+8+12)×4000×8)/1024000000=0.00403125sFor CC messages: T = ((109 + 8 + 12) × 4000 × 8) / 1024000000 = 0.00403125s
其中,109为报文长度,8为前导码,12为帧间隙。109 is the length of the packet, 8 is the preamble, and 12 is the frame gap.
缓存大小M=2×1024000000×T–1×1024000000×T=1024000000×0.00403125=4128000bit=0.49Mbytes。The buffer size M = 2 × 1024000000 × T - 1 × 1024000000 × T = 1024000000 × 0.00403125 = 4128000bit = 0.49 Mbytes.
以上是2个端口汇聚的情况,理论上最大会有32个端口汇聚的情况。The above is the case where two ports are aggregated. In theory, there are a maximum of 32 ports aggregated.
那么由上面的计算方式,可以推出一个通用的公式:Then from the above calculation method, a general formula can be introduced:
假设8K OAM平均分配在N块板上,再在接收端由一块单板的N个端口汇聚,Assume that the 8K OAM is evenly distributed on the N boards, and then the receivers are aggregated by the N ports of a single board.
T=((报文长度+8+12)×(8000/N)×8)/1024000000T=((Message length +8+12)×(8000/N)×8)/1024000000
将上述T代入缓存大小得到:M=N×1024000000×T–1×1024000000×TSubstituting the above T into the buffer size gives: M = N × 1024000000 × T - 1 × 1024000000 × T
=(N-1)×1024000000×((报文长度+8+12)×(8000/N)×8)/1024000000=(N-1)×1024000000×((Message length +8+12)×(8000/N)×8)/1024000000
=((N-1)/N)×(报文长度+8+12)×8000/(1024×1024)Mbytes=((N-1)/N)×(message length +8+12)×8000/(1024×1024) Mbytes
其中,CC报文的长度是109字节,APS报文长度是64字节,需要连续发3个包。The length of the CC packet is 109 bytes, and the length of the APS packet is 64 bytes. Three packets need to be sent consecutively.
分别代入上面公式,算出来的总和是:2.9MByte。Substituting the above formulas separately, the calculated sum is: 2.9MByte.
对于场景4:For scenario 4:
CC报文发送量一样,APS报文发送量是场景3的两倍。同样根据公式算出两者总和是:4.8MBytes。The amount of CC packets sent is the same, and the amount of APS packets sent is twice that of Scene 3. Also calculate the sum of the two according to the formula: 4.8MBytes.
以下对存储进行说明:The following describes the storage:
交换芯片SA一共有1024个块(block),每个block默认大小为1024个字节。小于1024字节包占用一个block。NP送给交换芯片SA的OAM包长129字节,实际占用1024个字节大小,使用率=129/1024=12.6%,也就是说,实际开销比理论放大近8倍。The switch chip SA has a total of 1024 blocks, and each block has a default size of 1024 bytes. A packet smaller than 1024 bytes occupies one block. The OAM packet sent by the NP to the switching chip SA is 129 bytes long, and actually occupies 1024 bytes, and the usage rate is 129/1024=1.2.6%, that is, the actual overhead is nearly 8 times larger than the theoretical amplification.
以下对队列分配进行说明:The following describes the queue allocation:
每线卡根据机架图中的槽位号预留队列,为每槽位线卡预留的OAM队列编号等于槽位号。 Each line card reserves a queue according to the slot number in the rack diagram. The number of OAM queues reserved for each slot line card is equal to the slot number.
以下对非归宿线卡OAM绕回进行说明:The following describes the OAM bypass of the non-home line card:
恶劣的实现方式如图9所示。跨板的OAM经过交换网后到达NP,NP直接转给FPGA。The poor implementation is shown in Figure 9. The inter-board OAM passes through the switching network and reaches the NP, and the NP is directly transferred to the FPGA.
这种场景下,要防止突发情况,缓存需要设置线卡1上。那么线卡1需要设置的缓存大小为:In this scenario, to prevent an emergency, the cache needs to be set on line card 1. Then the line size of the line card 1 needs to be set to:
4.8MByte×8×32=1228.8Mbyte(8为SA实际存储时需要花费大约8倍的空间,32为槽位数)。4.8MByte×8×32=1228.8Mbyte (8 is about 8 times the space for SA storage and 32 is the slot number).
为了节省缓存,可以将流程改成如图8所示。跨板OAM经过交换网后到达NP,NP对于归属板在本板的OAM回送到交换网,交换网再送给NP,NP再送给FPGA。这样的话处理流程跟OAM归属板在本板的一样,每块线卡需要的缓存大小为:4.8MByte×8=38.4Mbyte。In order to save the cache, the process can be changed as shown in Figure 8. After the inter-board OAM passes through the switching network, it reaches the NP. The NP is sent back to the switching network by the OAM of the home board on the local board, and the switching network is sent to the NP, and the NP is sent to the FPGA. In this case, the processing flow is the same as that of the OAM homeboard on the board. The buffer size required for each line card is: 4.8 MByte×8=38.4 Mbyte.
为支持绕回方案,NP的MPLS标签表项增加OAM报文归属线卡是否为本线卡标记To support the wraparound solution, the NP label entry of the NP increases whether the OAM packet attribution line card is the line card label.
No_local_card_end:0,归属线卡是本线卡;1,归属线卡不是本线卡。No_local_card_end: 0, the home line card is the line card; 1, the home line card is not the line card.
单播NPH增加LSP/PW快速OAM报文非本线卡终结标识。The unicast NPH adds the LSP/PW fast OAM packet to the non-line card termination identifier.
No_local_card_end(缩写为N_C_E):0,归属线卡是本线卡;1,归属线卡不是本线卡。No_local_card_end (abbreviated as N_C_E): 0, the home line card is the line card; 1, the home line card is not the line card.
flow_id:查询queue_map table获取。Flow_id: Query the queue_map table to get.
图21是根据本发明实施例的Ingess LSP/PW快速OAM处理流程示意图,如图21所示,进入(Ingress)LSP/PW快速OAM处理流程包括如下步骤:FIG. 21 is a schematic diagram of an Inges LSP/PW fast OAM processing process according to an embodiment of the present invention. As shown in FIG. 21, the ingress LSP/PW fast OAM processing process includes the following steps:
步骤S202:No_local_card_end=1?Step S202: No_local_card_end=1?
上述No_local_card_end为单板终结标识,其中,当本单板终结时(即No_local_card_end=1)时执行步骤S206,否则执行步骤S204。The No_local_card_end is a board termination identifier, where step S206 is performed when the board is terminated (ie, No_local_card_end=1), otherwise step S204 is performed.
步骤S204:NFH.U_CPU.F_S=1;NPH.U_CPU.N_C_E=0。Step S204: NFH.U_CPU.F_S=1; NPH.U_CPU.N_C_E=0.
上述NFH.U_CPU.F_S为上送逻辑快速OAM通道标识,NPH.U_CPU.N_C_E为归宿线卡是否为本卡标识,其中,上送逻辑快速OAM通道为真(即NFH.U_CPU.F_S=1)且归宿线卡不是本板(即NPH.U_CPU.N_C_E=0)时,执行步骤S208。The above NFH.U_CPU.F_S is the uplink logical fast OAM channel identifier, and NPH.U_CPU.N_C_E is the home line identifier of the home line card, wherein the uplink logical fast OAM channel is true (ie NFH.U_CPU.F_S=1) When the home line card is not the board (ie, NPH.U_CPU.N_C_E=0), step S208 is performed.
步骤S206:NFH.U_CPU.F_S=1;NPH.U_CPU.N_C_E=1。Step S206: NFH.U_CPU.F_S=1; NPH.U_CPU.N_C_E=1.
步骤S208:接原来处理流程,发送到单播出流点模块。Step S208: The original processing flow is sent to the unicast outflow point module.
图22是根据本发明实施例的单播出流点模块处理流程示意图,如图22所示,单播出流点模块处理流程包括如下步骤:FIG. 22 is a schematic flowchart of a unicast outflow point module processing process according to an embodiment of the present invention. As shown in FIG. 22, the unicast outflow point module processing flow includes the following steps:
步骤S302:查询out_fp table。Step S302: Query out_fp table.
上述out_fp table用于表示出流点表。 The above out_fp table is used to represent the flow point table.
步骤S304:Out_fp.type=CPU流点?Step S304: Out_fp.type=CPU flow point?
上述步骤S304即判断出流点是否为上送CPU。In the above step S304, it is determined whether the flow point is sent to the CPU.
步骤S306:查询fwd_ctrl table。Step S306: Query the fwd_ctrl table.
上述fwd_ctrl table用于表示转发控制表。The above fwd_ctrl table is used to represent the forwarding control table.
步骤S308:查询queue_map table,获取flow_id。Step S308: Query the queue_map table to obtain the flow_id.
上述步骤S308即查队列映射表,获取流队列编号,其中,queue_map table表示队列映射表,flow_id表示流队列编号。The above step S308 is to check the queue mapping table to obtain the flow queue number, wherein the queue_map table represents the queue mapping table, and the flow_id represents the flow queue number.
步骤S310:其他单播出流点类型处理流程。Step S310: Other unicast outflow point type processing flow.
步骤S312:NFH.U_CPU.F_S=1且NPH.U_CPU.N_C_E=1?Step S312: NFH.U_CPU.F_S=1 and NPH.U_CPU.N_C_E=1?
上送逻辑快速OAM通道为真(即NFH.U_CPU.F_S=1)且归宿线卡是本板(即NPH.U_CPU.N_C_E=1)时,执行步骤S314,否则执行步骤S316。When the uplink logical fast OAM channel is true (ie, NFH.U_CPU.F_S=1) and the home line card is the current board (ie, NPH.U_CPU.N_C_E=1), step S314 is performed, otherwise step S316 is performed.
步骤S314:NFH.U_CPU.flow_id=queue_map.flow_id。Step S314: NFH.U_CPU.flow_id=queue_map.flow_id.
上述步骤S314即表示上送逻辑的队列号等于队列映射表查询得到的队列号。The above step S314 indicates that the queue number of the uplink logic is equal to the queue number obtained by the queue mapping table query.
步骤S316:CPU单播出流点其他处理流程。Step S316: The CPU unicasts the other processing flow of the flow point.
图23是根据本发明实施例的进入MPLS-TP LSP/PW OAM报文上送处理流程示意图,如图23所示,进入(Egress)MPLS-TP LSP/PW OAM报文上送处理流程包括如下步骤:FIG. 23 is a schematic diagram of a process of sending an MPLS-TP LSP/PW OAM packet according to an embodiment of the present invention. As shown in FIG. 23, the process of sending an MPLS-TP LSP/PW OAM packet is as follows: step:
Egress入口处理。Egress entry processing.
步骤S402:NPH.main_type=CPU(2)?Step S402: NPH.main_type=CPU(2)?
上述步骤S402即判断NPH头类型是否为CPU,其中,当NPH头类型为CPU时,执行步骤S406,否则执行步骤S404。The above step S402 is to determine whether the NPH header type is a CPU. When the NPH header type is the CPU, step S406 is performed, otherwise step S404 is performed.
步骤S404:其他流程处理。Step S404: Other process processing.
步骤S406:NFH.U_CPU.F_S=1且NPH.U_CPU.N_C_E=1?Step S406: NFH.U_CPU.F_S=1 and NPH.U_CPU.N_C_E=1?
上送逻辑快速OAM通道为真(即NFH.U_CPU.F_S=1)且归宿线卡是本板(即NPH.U_CPU.N_C_E=1)时,执行骤S410,否则执行步骤S408。When the uplink logical fast OAM channel is true (ie, NFH.U_CPU.F_S=1) and the home line card is the local board (ie, NPH.U_CPU.N_C_E=1), step S410 is performed, otherwise step S408 is performed.
步骤S408:正常上送流程处理。Step S408: Normally uploading the process.
步骤S410:NPH.U_CPU.N_C_E=0。Step S410: NPH.U_CPU.N_C_E=0.
步骤S410即表示归宿线卡不是本板。Step S410 means that the home line card is not the board.
步骤S412:从NPH.U_CPU获取flow_id,封装ITMH,把LSP/PW快速OAM报文再次 发往SA处理。Step S412: Obtain a flow_id from the NPH.U_CPU, encapsulate the ITMH, and send the LSP/PW fast OAM message again. Send to SA for processing.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行上述实施例方法步骤的程序代码:Embodiments of the present invention also provide a storage medium. Optionally, in this embodiment, the foregoing storage medium may be configured to store program code for performing the method steps of the above embodiment:
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory. A variety of media that can store program code, such as a disc or a disc.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
本发明实施例提供的上述技术方案,可以应用于OAM报文处理过程中,采用从网络侧获取OAM报文;判断OAM报文是否为非归宿线卡OAM;以及在判断出OAM报文为非归宿线卡OAM时,将OAM报文发送给交换网,解决了相关技术中线卡OAM队列缓存开销较大的问题,进而达到了减低线卡OAM队列缓存开销的效果。 The foregoing technical solution provided by the embodiment of the present invention can be applied to the OAM packet processing process, and the OAM packet is obtained from the network side; the OAM packet is determined to be a non-destination line card OAM; and the OAM packet is determined to be non- When the OAM packet is sent to the switching network, the OAM packet buffering overhead is solved in the related art, and the OAM queue buffering overhead of the line card is reduced.

Claims (10)

  1. 一种运行、管理和维护OAM报文处理方法,包括:A method for processing, managing, and maintaining OAM packets, including:
    从网络侧获取OAM报文;Obtain an OAM packet from the network side.
    判断所述OAM报文是否为非归宿线卡OAM;以及Determining whether the OAM packet is a non-destination line card OAM;
    在判断出所述OAM报文为所述非归宿线卡OAM时,将所述OAM报文发送给交换网。When it is determined that the OAM packet is the non-home line card OAM, the OAM packet is sent to the switching network.
  2. 根据权利要求1所述的方法,其中,判断所述OAM报文是否为非归宿线卡OAM包括:The method of claim 1, wherein determining whether the OAM message is a non-home line card OAM comprises:
    获取所述OAM报文的标识符;以及Obtaining an identifier of the OAM message;
    根据所述标识符判断所述OAM报文是否为所述非归宿线卡OAM。Determining, according to the identifier, whether the OAM message is the non-home line card OAM.
  3. 根据权利要求1所述的方法,其中,The method of claim 1 wherein
    从网络侧获取OAM报文之前,所述方法还包括:给网元中每个线卡分配队列编号,其中,同一个线卡的队列编号相同,不同线卡的队列编号不同,Before the OAM packet is obtained from the network side, the method further includes: assigning a queue number to each line card in the network element, where the queue numbers of the same line card are the same, and the queue numbers of different line cards are different.
    在判断出所述OAM报文为所述非归宿线卡OAM时,将所述OAM报文发送给交换网包括:When it is determined that the OAM packet is the non-home line card OAM, sending the OAM packet to the switching network includes:
    根据所述队列编号将所述OAM报文送入所述OAM报文的归宿线卡对应的队列中;Sending the OAM packet to the queue corresponding to the destination line card of the OAM packet according to the queue number;
    将所述队列编号写入交换头;以及Writing the queue number to the swap header;
    将所述OAM报文发送给交换网。Send the OAM packet to the switching network.
  4. 根据权利要求3所述的方法,其中,将所述OAM报文发送给交换网之后,所述方法还包括:The method of claim 3, wherein after the sending the OAM message to the switching network, the method further comprises:
    从交换侧获取所述OAM报文;以及Obtaining the OAM message from the switching side;
    根据所述交换头携带的队列编号将所述OAM报文重新送入所述OAM报文的归宿线卡对应的队列中。And sending the OAM packet to the queue corresponding to the destination line card of the OAM packet according to the queue number carried by the switching header.
  5. 根据权利要求1所述的方法,其中,在判断出所述OAM报文为归宿线卡OAM时,所述方法还包括:The method of claim 1, wherein when the OAM message is determined to be a home line card OAM, the method further includes:
    设置所述OAM报文的归宿线卡对应的队列的缓存大小为预设值,其中,所述预设值为根据所述OAM报文的归宿线卡的最大OAM报文数计算得到的缓存值。The buffer size of the queue corresponding to the home line card of the OAM packet is set to a preset value, where the preset value is a cache value calculated according to the maximum number of OAM packets of the home line card of the OAM packet. .
  6. 一种运行、管理和维护OAM报文处理装置,包括:An OAM packet processing device that operates, manages, and maintains, including:
    第一获取模块,设置为从网络侧获取OAM报文;The first obtaining module is configured to obtain an OAM packet from the network side;
    判断模块,设置为判断所述OAM报文是否为非归宿线卡OAM;以及 a judging module, configured to determine whether the OAM packet is a non-destination line card OAM;
    第一发送模块,设置为在判断出所述OAM报文为所述非归宿线卡OAM时,将所述OAM报文发送给交换网。The first sending module is configured to send the OAM packet to the switching network when it is determined that the OAM packet is the non-home line card OAM.
  7. 根据权利要求6所述的装置,其中,所述判断模块包括:The apparatus of claim 6, wherein the determining module comprises:
    获取单元,设置为获取所述OAM报文的标识符;以及An obtaining unit, configured to obtain an identifier of the OAM message;
    判断单元,设置为根据所述标识符判断所述OAM报文是否为所述非归宿线卡OAM。The determining unit is configured to determine, according to the identifier, whether the OAM message is the non-home line card OAM.
  8. 根据权利要求6所述的装置,其中,The apparatus according to claim 6, wherein
    所述装置还包括:分配模块,设置为给网元中每个线卡分配队列编号,其中,同一个线卡的队列编号相同,不同线卡的队列编号不同,The device further includes: an allocation module, configured to allocate a queue number to each line card in the network element, wherein the same line card has the same queue number, and different line cards have different queue numbers.
    所述第一发送模块包括:The first sending module includes:
    第一发送单元,设置为根据所述队列编号将所述OAM报文送入所述OAM报文的归宿线卡对应的队列中;The first sending unit is configured to send the OAM packet to the queue corresponding to the destination line card of the OAM packet according to the queue number;
    写单元,设置为将所述队列编号写入交换头;以及a write unit configured to write the queue number to the swap header;
    第二发送单元,设置为将所述OAM报文发送给交换网。The second sending unit is configured to send the OAM packet to the switching network.
  9. 根据权利要求8所述的装置,其中,所述装置还包括:The apparatus of claim 8 wherein said apparatus further comprises:
    第二获取模块,设置为从交换侧获取所述OAM报文;以及a second acquiring module, configured to acquire the OAM packet from the switching side;
    第二发送模块,设置为根据所述交换头携带的队列编号将所述OAM报文重新送入所述OAM报文的归宿线卡对应的队列中。The second sending module is configured to re-send the OAM packet into the queue corresponding to the destination line card of the OAM packet according to the queue number carried by the switching header.
  10. 根据权利要求6所述的装置,其中,在判断出所述OAM报文为归宿线卡OAM时,所述装置还包括:The device according to claim 6, wherein, when it is determined that the OAM message is a home line card OAM, the device further includes:
    设置模块,设置为设置所述OAM报文的归宿线卡对应的队列的缓存大小为预设值,其中,所述预设值为根据所述OAM报文的归宿线卡的最大OAM报文数计算得到的缓存值。 The setting module is configured to set a buffer size of a queue corresponding to the home line card of the OAM packet to a preset value, where the preset value is a maximum number of OAM packets according to a destination line card of the OAM packet. Calculated cached value.
PCT/CN2016/078168 2015-07-27 2016-03-31 Method and apparatus for processing operation, administration and maintenance oam messages WO2016177229A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510448126.X 2015-07-27
CN201510448126.XA CN106712983B (en) 2015-07-27 2015-07-27 OAM message processing method and device for operation, management and maintenance

Publications (1)

Publication Number Publication Date
WO2016177229A1 true WO2016177229A1 (en) 2016-11-10

Family

ID=57217553

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/078168 WO2016177229A1 (en) 2015-07-27 2016-03-31 Method and apparatus for processing operation, administration and maintenance oam messages

Country Status (2)

Country Link
CN (1) CN106712983B (en)
WO (1) WO2016177229A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112218179A (en) * 2019-07-09 2021-01-12 中兴通讯股份有限公司 Service protection method, device and system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111294228B (en) * 2018-12-07 2022-10-18 迈普通信技术股份有限公司 Line card number detection method, device and storage medium thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6724728B1 (en) * 1999-10-15 2004-04-20 Cisco Technology, Inc. Method and system for distributed processing of traffic in a telecommunications node
CN102598601A (en) * 2009-11-05 2012-07-18 日本电气株式会社 Node, monitoring and administration method used thereupon, and transfer system, input circuit, and output circuit using same
CN102739536A (en) * 2012-06-26 2012-10-17 华为技术有限公司 Method for caching messages and router
CN103607360A (en) * 2013-11-14 2014-02-26 福建星网锐捷网络有限公司 Message processing method, line card and switching equipment
CN103825819A (en) * 2014-03-25 2014-05-28 北京众合德信技术有限公司 Methods and devices for sending and receiving messages

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185764B (en) * 2011-04-25 2015-04-01 中兴通讯股份有限公司 Method and device for receiving and processing OAM (operation, administration and maintenance) messages in link layer and switch
EP2566118B1 (en) * 2011-09-01 2013-08-28 Alcatel Lucent Network element for switching time division multiplex signals

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6724728B1 (en) * 1999-10-15 2004-04-20 Cisco Technology, Inc. Method and system for distributed processing of traffic in a telecommunications node
CN102598601A (en) * 2009-11-05 2012-07-18 日本电气株式会社 Node, monitoring and administration method used thereupon, and transfer system, input circuit, and output circuit using same
CN102739536A (en) * 2012-06-26 2012-10-17 华为技术有限公司 Method for caching messages and router
CN103607360A (en) * 2013-11-14 2014-02-26 福建星网锐捷网络有限公司 Message processing method, line card and switching equipment
CN103825819A (en) * 2014-03-25 2014-05-28 北京众合德信技术有限公司 Methods and devices for sending and receiving messages

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112218179A (en) * 2019-07-09 2021-01-12 中兴通讯股份有限公司 Service protection method, device and system
CN112218179B (en) * 2019-07-09 2023-05-09 中兴通讯股份有限公司 Service protection method, device and system

Also Published As

Publication number Publication date
CN106712983A (en) 2017-05-24
CN106712983B (en) 2020-01-31

Similar Documents

Publication Publication Date Title
US11646967B2 (en) Packet control method and network apparatus
US20190097758A1 (en) Data transmission method, device, and system
US20160337236A1 (en) Data center network system based on software-defined network and packet forwarding method, address resolution method, routing controller thereof
US11411892B2 (en) Packet fragment processing method and apparatus and system
TWI680663B (en) Method and apparatus for client service transmission
EP3675439B1 (en) Data transmission
US20150138986A1 (en) Load balancing in a link aggregation
US11736407B2 (en) Method and apparatus for load balancing and packet re-sequencing on network
CN110312283B (en) Information processing method and device
CN106992918B (en) Message forwarding method and device
WO2016177229A1 (en) Method and apparatus for processing operation, administration and maintenance oam messages
KR20170076064A (en) Method, apparatus and computer program for subnetting of software defined network
WO2016095142A1 (en) Data forwarding method, device and system in software-defined networking (sdn)
CN109286564B (en) Message forwarding method and device
US9985886B2 (en) Technologies for network packet pacing during segmentation operations
US20220166721A1 (en) Traffic balancing method, network device, and electronic device
US20220158919A1 (en) Information Sharing Method and Apparatus in Redundancy Network, and Computer Storage Medium
CN112714072B (en) Method and device for adjusting sending rate
CN114513453A (en) Fault processing method and device
US12015560B2 (en) Data transmission method and network device
CN114070776B (en) Improved time-sensitive network data transmission method, device and equipment
CN111866195B (en) Port negotiation method and device
US20240195731A1 (en) Software defined network controller, network device, method and apparatus of determining resources
WO2021027645A1 (en) Method for sending network message, device and network processor
CN111278059B (en) Message forwarding 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: 16789223

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

Country of ref document: EP

Kind code of ref document: A1