WO2022105289A1 - 流量转发方法、业务卡和系统 - Google Patents

流量转发方法、业务卡和系统 Download PDF

Info

Publication number
WO2022105289A1
WO2022105289A1 PCT/CN2021/108545 CN2021108545W WO2022105289A1 WO 2022105289 A1 WO2022105289 A1 WO 2022105289A1 CN 2021108545 W CN2021108545 W CN 2021108545W WO 2022105289 A1 WO2022105289 A1 WO 2022105289A1
Authority
WO
WIPO (PCT)
Prior art keywords
traffic
advanced
service
basic
service traffic
Prior art date
Application number
PCT/CN2021/108545
Other languages
English (en)
French (fr)
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 WO2022105289A1 publication Critical patent/WO2022105289A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2425Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
    • H04L47/2433Allocation of priorities to traffic types
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • H04L45/7453Address table lookup; Address filtering using hashing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2483Traffic characterised by specific attributes, e.g. priority or QoS involving identification of individual flows
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/825Involving tunnels, e.g. MPLS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Definitions

  • the embodiments of the present application relate to the field of network communication, for example, to a traffic forwarding, a service card, and a system.
  • the cross-board homologous forwarding of basic services can be implemented using a private forwarding protocol constructed by switching chips. It is a technical problem that needs to be solved urgently.
  • the embodiments of the present application provide a traffic forwarding method, a service card and a system, which realize cross-card forwarding of the same source and the same sink of advanced service traffic and basic service traffic through a service card composed of a logic processor and a switching chip.
  • An embodiment of the present application provides a traffic forwarding method, the method includes: dividing original traffic into basic service traffic and advanced service traffic, and sending the advanced service traffic to a logical processor for advanced service processing; receiving the The tagged target advanced service traffic is sent by the logical processor, and the tagged target advanced service traffic is processed to be forwarded to obtain the advanced service traffic to be forwarded; the basic service traffic is processed to be forwarded to obtain the basic service traffic to be forwarded.
  • Service traffic sending the to-be-forwarded advanced service traffic and the to-be-forwarded basic service traffic to the backplane channel to instruct the backplane channel to forward traffic according to a proprietary protocol with the switching chip.
  • An embodiment of the present application provides a traffic forwarding method, the method includes: receiving advanced service traffic sent by a switching chip, and filtering the advanced service traffic to obtain target advanced service traffic to be processed; The business flow is hashed to obtain the hash value of the target advanced business flow, and according to the output port corresponding to the hash value, the basic aggregation group corresponding to the target advanced business flow is determined; The value and the identifier of the basic aggregation group are added to the target advanced service traffic as tags, and the tagged target advanced service traffic is sent to the switch chip.
  • An embodiment of the present application provides a traffic forwarding service card, the service card includes: a switch chip and a logic processor; the switch chip is configured to execute the traffic forwarding method provided by any embodiment of the present application, and the logic processor It is set to execute the traffic forwarding method provided by any embodiment of this application.
  • An embodiment of the present application provides a traffic forwarding system, and the system includes: two traffic forwarding service cards and a backplane channel provided by any embodiment of the present application, and the two traffic forwarding service cards are used as a sending service card and a receiving service respectively. Card;
  • the backplane channel is configured to receive the to-be-forwarded advanced service traffic and the to-be-forwarded basic service traffic sent by the sending service card, and convert the advanced service traffic to be forwarded according to the private agreement with the sending service card.
  • the service traffic and the basic service traffic among the basic service traffic to be forwarded are forwarded to the receiving service card.
  • FIG. 1 is a flowchart of a traffic forwarding method in Embodiment 1 of the present application.
  • FIG. 2 is a flowchart of a traffic forwarding method in Embodiment 2 of the present application.
  • Embodiment 3 is a flowchart of a traffic forwarding method in Embodiment 3 of the present application.
  • FIG. 4 is a schematic structural diagram of a traffic forwarding service card in Embodiment 4 of the present application.
  • FIG. 5 is a schematic structural diagram of a traffic forwarding system in Embodiment 5 of the present application.
  • FIG. 1 is a flowchart of a traffic forwarding method in Embodiment 1 of the present application.
  • the technical solution of this embodiment is applicable to the case of performing homologous and homologous forwarding on the traffic that has undergone advanced service processing, and the method can be executed by a switching chip,
  • the switch chip can be implemented by software and/or hardware.
  • the switching chip in this embodiment is a switching chip set in the traffic forwarding service card, and the switching chip is set to perform pending forwarding processing on the traffic to be forwarded.
  • the traffic forwarding service card also includes a logical processor.
  • the logical processor is set to process some traffic that needs to be processed by advanced services, and finally the traffic processed by the advanced services is forwarded across the service cards through the above-mentioned switching chip.
  • the traffic forwarding method in this embodiment includes the following steps.
  • Step 110 Divide the original traffic into basic service traffic and advanced service traffic, and send the advanced service traffic to the logical processor for advanced service processing.
  • Advanced service traffic refers to traffic that requires advanced service processing, for example, tunnel packets that require complex analysis and processing by a processor.
  • Basic service traffic refers to traffic that only needs to be processed by basic services, such as ordinary packets.
  • the original traffic refers to the traffic that mixes basic service traffic and advanced service traffic and needs to be forwarded by the same source and the same destination.
  • a logical processor refers to a device that can analyze, process, and forward traffic through software.
  • a logical processor can be a Network Processor (NP), a Field Programmable Gate Array (FPGA) ), millions of instructions per second (Million Instruction Per Second, MIPS) multi-core processor or central processing unit (Central Processing Unit, CPU), etc., or other devices that can realize traffic analysis, processing and forwarding through software, here Not limited.
  • NP Network Processor
  • FPGA Field Programmable Gate Array
  • MIPS Million Instruction Per Second
  • CPU Central Processing Unit
  • the switch chip first divides the received original traffic into basic service traffic and advanced service traffic according to a preset matching rule, and sends the advanced service traffic to the logical processor for advanced service processing.
  • the switching chip will use the traffic of Internet Protocol version 4 (Internet Protocol version 4, IPV4) as the basic service traffic, and will use the traffic of Internet Protocol version 6 (Internet Protocol version 6, IPV6) as the advanced service traffic, And send the high-level business traffic to the logical processor for high-level business processing.
  • Step 120 Receive the tagged target advanced service traffic sent by the logic processor and perform pending forwarding processing on the tagged target advanced service traffic to obtain the to-be-forwarded advanced service traffic.
  • the switching chip After the switching chip sends the advanced service traffic to the logical processor, the logical processor processes the advanced service traffic, and finally feeds back the tagged target advanced service traffic to the switching chip, so as to instruct the switching chip according to the added service traffic.
  • the label is used to forward the advanced service traffic.
  • the switching chip After receiving the tagged target advanced service traffic, the switching chip processes the target advanced service traffic to be forwarded to obtain the to-be-forwarded advanced service traffic.
  • the processing to be forwarded may be to calculate the output port number corresponding to the target advanced service traffic, and then use the output port number and the target advanced service traffic as the advanced service traffic to be forwarded, for example, place the output port number in front of the target advanced service traffic.
  • Obtain the high-level service traffic to be forwarded so as to realize the homology and the same location of the high-level service traffic.
  • the target high-level traffic is high-level service traffic obtained after the logical processor filters the high-level service traffic.
  • the target advanced service traffic is a tunnel packet
  • the label of the target advanced service traffic is an output port number added in the tunnel packet.
  • the switch chip can read and process the above labels in the tunnel packet, and use the output port number and the target advanced service traffic as the service traffic to be forwarded. For example, place the output port number in front of the target advanced service traffic to obtain the advanced service traffic to be forwarded. , in order to achieve the same origin and the same location of advanced business traffic.
  • Step 130 Process the basic service traffic to be forwarded to obtain the basic service traffic to be forwarded.
  • the switching chip after dividing the original traffic into advanced service traffic and basic service traffic, the switching chip forwards the advanced service traffic to the logical processor for advanced service processing, and performs corresponding processing to be forwarded on the basic service traffic. to obtain the basic service traffic to be forwarded.
  • the switching chip first filters the basic service traffic according to the preconfigured filtering rules, then calculates the hash value of the filtered basic service traffic, and finally uses the hash value and the filtered basic service traffic as the basic service traffic to be forwarded.
  • the basic service traffic may be a common Internet Protocol (Internet Protocol, IP) packet
  • the filtering rule may be filtering according to the destination port included in the quintuple corresponding to the packet.
  • Step 140 Send the high-level service traffic to be forwarded and the basic service traffic to be forwarded to the backplane channel to instruct the backplane channel to forward traffic according to a private protocol with the switch chip.
  • the advanced service traffic to be forwarded and the basic service traffic to be forwarded are sent to the backplane channel, so as to instruct the switching chip in the backplane channel according to the preset It is a private protocol between it and the switching chip in the business card to forward traffic.
  • the switching chip in the backplane channel reads the hash value corresponding to the ordinary packet in front of the ordinary packet and sent by the switching chip in the service card, and determines where to forward the ordinary packet according to the hash value.
  • the switching chip divides the original traffic into basic service traffic and advanced service traffic, sends the advanced service traffic to the logical processor for advanced service processing, and responds to the tagged target advanced service fed back by the logical processor.
  • the service traffic is processed to be forwarded, and the advanced service traffic to be forwarded is obtained, and the basic service traffic to be forwarded is processed by the switching chip to obtain the basic service traffic to be forwarded.
  • the switching chip sends the advanced service traffic to be forwarded and the basic service traffic to be forwarded to
  • the backplane channel is used to instruct the backplane channel to forward traffic according to the private protocol with the switch chip, which solves the problem that the high-level business traffic cannot be forwarded across the card with the same source and the same sink with the help of the switch chip.
  • the traffic is processed to be forwarded, and the cross-card forwarding of the same source and the same destination of the advanced service traffic and the basic service traffic is realized.
  • FIG. 2 is a flowchart of a traffic forwarding method in Embodiment 2 of the present application. Based on the above-mentioned embodiments, this embodiment provides the steps of processing basic service traffic to be forwarded, and the steps of adding tags fed back by the logical processor. Steps for the target advanced service traffic to be forwarded for processing.
  • the following describes a traffic forwarding method provided in Embodiment 2 of the present application with reference to FIG. 2 . The method includes the following steps.
  • Step 210 Divide the original traffic into basic service traffic and advanced service traffic, and send the advanced service traffic to the logical processor for advanced service processing.
  • the advanced service traffic is tunnel packets
  • the basic service traffic is ordinary packets.
  • the high-level service traffic is a tunnel message, for example, a graph token (GRaph Token, GRT) message/General packet radio service Tunneling Protocol (GTP) message/IP Encapsulation within IP (IP-in-IP) packets, etc.
  • GRT graph token
  • GTP General packet radio service Tunneling Protocol
  • IP-in-IP IP Encapsulation within IP
  • Step 220 Receive the tagged target advanced service flow sent by the logic processor and identify the tag in the tagged target advanced service flow, where the tag includes the hash value of the target advanced service flow and the identifier of the basic aggregation group.
  • the switching chip after receiving the tagged target advanced service traffic message fed back by the logical processor, the switching chip identifies the label in the tagged target advanced service traffic, so as to process the target advanced service traffic according to the label, from the Homologous and homologous forwarding is implemented according to a private protocol, wherein the tag includes the hash value of the target advanced service traffic and the identification of the basic aggregation group.
  • the target advanced service traffic is a tunnel packet, and the above label is added to the tunnel packet.
  • the switch chip supports tag identification and stripping operations in the form of Virtual Local Area Network Tag (VLAN Tag)
  • VLAN Tag Virtual Local Area Network Tag
  • a tag in the form of VLAN Tag is added.
  • the logical processor adds a label to the tunnel packet, the backplane channel can only forward packets through a private protocol, that is, it can only be determined by reading the corresponding hash value of the tunnel packet sent before the tunnel packet.
  • the output port is used to forward tunnel packets.
  • the logical processor cannot forward the internally labeled tunnel packets. Therefore, the switch chip in the service card needs to identify the labels in the tunnel packets, and then forward the tunnel packets according to the labels. process, and obtain the tunnel packet to be forwarded.
  • the tag of the target advanced service traffic may also include an advanced service processing tag, and the switching chip can read the advanced service processing tag to determine whether the current traffic has undergone advanced service processing, so as to determine whether to identify the hash value in the tag and the corresponding hash value.
  • Advanced aggregation group ID may also include an advanced service processing tag, and the switching chip can read the advanced service processing tag to determine whether the current traffic has undergone advanced service processing, so as to determine whether to identify the hash value in the tag and the corresponding hash value.
  • Step 230 Calculate the hash value corresponding to the advanced aggregation group according to the identification of the basic aggregation group and the hash value of the target advanced service flow, and use the hash value corresponding to the advanced aggregation group and the target advanced service flow as to be forwarded together. Advanced business traffic.
  • the basic aggregation group is the aggregation group corresponding to the basic service traffic
  • the advanced aggregation group is the aggregation group established by the switch chip and corresponding to the advanced service traffic.
  • the basic aggregation group and the advanced aggregation group contain the same output ports.
  • the switch chip reads the label of the target advanced service traffic, obtains the hash value of the target advanced service traffic and the basic aggregation group label corresponding to the target advanced service traffic, in order to enable the backplane channel to be implemented through a private protocol
  • To forward the target advanced service traffic it is necessary to calculate the hash value corresponding to the advanced aggregation group, and finally use the hash value corresponding to the advanced aggregation group and the target advanced service traffic as the advanced service traffic to be forwarded.
  • the logical processor uses VLAN Tag to mark the hash value of the target advanced service traffic and the basic aggregation group tag corresponding to the target advanced service traffic in the tunnel packet, After receiving the labelled target tunnel packet fed back by the logical processor, the switching chip identifies the label in the labelled target tunnel packet (the hash value of the target advanced service traffic and the basic aggregation group corresponding to the target advanced service traffic). ), and in order to enable the target tunnel message to be forwarded by the backplane channel according to the private protocol, a new advanced aggregation group is established.
  • the members of the advanced aggregation group are the same as the members of the basic aggregation group, including the same output port.
  • the switching chip calculates the hash value for the VLAN Tag (the hash value corresponds to the same output port as the hash value marked in the tag, that is, the output port corresponding to the tunnel message is not changed, only to realize the tunnel message through the private protocol.
  • the hash value is the hash value corresponding to the advanced aggregation group, and finally the hash value corresponding to the advanced aggregation group and the target tunnel packet are used as the advanced service traffic to be forwarded.
  • the hash factor of the basic aggregation group is a quintuple
  • the hash factor of the advanced aggregation group is a tag, for example, VLAN Tag
  • the hash algorithm of the basic aggregation group and the advanced aggregation group are consistent, thus ensuring that the same user or The traffic of the session realizes the same origin and the same destination.
  • Step 240 Filter the basic service traffic to obtain the target basic service traffic to be processed.
  • the switching chip also needs to perform filtering, and forwards the filtered basic service traffic that meets the forwarding condition as the target basic service traffic.
  • filtering the basic service traffic to obtain the target basic service traffic to be processed including: identifying the outer layer quintuple information of the basic service traffic, and filtering the basic service traffic according to the outer layer quintuple information, Get the target basic business traffic.
  • the basic service traffic is an ordinary packet
  • the target basic service traffic can be obtained by filtering the packet according to the outer quintuple information of the packet.
  • step 220 and step 240 can be flexibly adjusted according to the actual situation, and is not limited to the execution order in this embodiment.
  • Step 250 Calculate the hash value of the target basic service traffic, and use the hash value of the target basic service traffic and the target basic service traffic as the basic service traffic to be forwarded.
  • the hash value of the target basic service traffic is calculated, and finally the hash value of the target basic service traffic and the target basic service traffic are taken together as the to-be-forwarded traffic.
  • Basic business traffic wherein the hash value of the target basic business traffic is located in front of the target basic business traffic.
  • the target basic service traffic is an ordinary packet
  • the hash value (hash value) of the quintuple of the ordinary packet is calculated
  • the corresponding hash value is placed before the ordinary packet and sent together with the ordinary packet.
  • Step 260 Send the high-level service traffic to be forwarded and the basic service traffic to be forwarded to the backplane channel to instruct the backplane channel to forward traffic according to a private protocol with the switch chip.
  • the switching chip firstly divides the original traffic into basic service traffic and advanced service traffic, sends the advanced service traffic to the logical processor for advanced service processing, and then identifies the tagged target fed back by the logical processor
  • For the label in the advanced business traffic according to the identification of the basic aggregation group in the label and the hash value of the target advanced business traffic, calculate the hash value corresponding to the advanced aggregation group, and compare the hash value corresponding to the advanced aggregation group with the target advanced
  • the business traffic is collectively regarded as the advanced business traffic to be forwarded, and the basic business traffic is filtered to obtain the target basic business traffic to be processed, and the hash value of the target basic business traffic is calculated.
  • the service traffic is collectively regarded as the basic service traffic to be forwarded, and finally the advanced service traffic to be forwarded and the basic service traffic to be forwarded are sent to the backplane channel to instruct the backplane channel to forward traffic according to the private protocol with the switch chip, realizing advanced Cross-card forwarding of service traffic and basic service traffic from the same source and the same destination.
  • FIG. 3 is a flowchart of a traffic forwarding method in Embodiment 3 of the present application.
  • the technical solution of this embodiment is applicable to the case of performing homologous and homologous forwarding on the traffic that has undergone advanced service processing, and the method can be executed by a logical processor. .
  • advanced service processing is performed on the advanced service traffic through a logical processor, where the logical processor is a part of the traffic forwarding service card, and the logical processor can be implemented by software, including the following steps.
  • Step 310 Receive the advanced service traffic sent by the switching chip, and filter the advanced service traffic to obtain the target advanced service traffic to be processed.
  • the logic processor after receiving the advanced service traffic sent by the switching chip and requiring advanced service processing, the logic processor first filters the advanced service traffic, filters out the advanced service traffic that does not need to be processed and forwarded, and filters the filtered of advanced business traffic as the target advanced business traffic.
  • filtering the advanced service traffic to obtain the target advanced service traffic to be processed including: identifying the inner layer quintuple information of the advanced service traffic, and filtering the advanced service traffic according to the inner layer quintuple information, Get targeted premium business traffic.
  • the high-level service traffic is a tunnel packet
  • the tunnel packet is filtered according to a preset filtering rule and inner layer quintuple information of the tunnel packet to obtain the target tunnel packet to be sent.
  • the logic processing module is a network processing chip.
  • Step 320 Perform hash calculation on the target advanced service flow to obtain a hash value of the target advanced service flow, and determine a basic aggregation group corresponding to the target advanced service flow according to the output port corresponding to the hash value.
  • the logic processor in order to determine the forwarding output port corresponding to the target advanced service flow, performs hash calculation on the target advanced service flow to obtain the hash value of the target advanced service flow, and according to the output port corresponding to the hash value, Identify the underlying aggregation group that corresponds to the target advanced business traffic.
  • the target advanced service traffic is a tunnel packet
  • the tunnel packet is hashed according to the inner source IP (Source IP, SIP) and destination IP (Destination IP, DIP).
  • Step 330 Add the hash value and the identifier of the basic aggregation group as a label to the target advanced service traffic, and send the tagged target advanced service traffic to the switch chip.
  • the hash value and the identity of the basic aggregation group are added to the target advanced service traffic, and in order to facilitate traffic forwarding and label stripping, labels in the form of VLAN Tag are used.
  • the advanced service traffic sent by the switching chip is logically received, and the advanced service traffic is filtered to obtain the target advanced service traffic to be processed, and then the target advanced service traffic is hashed to obtain the target advanced service traffic.
  • the hash value of the traffic, and according to the output port corresponding to the hash value, the basic aggregation group corresponding to the target advanced service traffic is determined, and finally the hash value and the identification of the basic aggregation group are used as labels, and added to the target advanced service traffic,
  • the tagged target advanced service traffic is sent to the switching chip to instruct the switching chip to forward the advanced service traffic in the same source and the same destination, which realizes the same source and same destination cross-card forwarding of the advanced service traffic and the basic service traffic.
  • FIG. 4 is a schematic structural diagram of a traffic forwarding service card in Embodiment 4 of the present application.
  • the technical solution of this embodiment is applicable to the case where the traffic processed by advanced service is forwarded to the same source and the same destination.
  • the traffic forwarding service card includes a switch Chip 1 and Logic Processor 2.
  • the switching chip 1 is configured to execute a traffic forwarding method, the method comprising: dividing the original traffic into basic service traffic and advanced service traffic, and sending the advanced service traffic to a logical processor for advanced service processing;
  • the tagged target advanced service traffic sent by the logical processor and the tagged target advanced service traffic to be forwarded are processed to obtain the to-be-forwarded advanced service traffic;
  • the basic service traffic is processed to be forwarded to obtain the to-be-forwarded service traffic Basic service traffic; sending the to-be-forwarded advanced service traffic and the to-be-forwarded basic service traffic to the backplane channel to instruct the backplane channel to forward traffic according to a proprietary protocol with the switching chip.
  • the switching chip 1 can be logically divided into a traffic identification unit, a basic service processing unit, a label identification processing unit, and a traffic sending unit.
  • the traffic identification unit is configured to divide the original traffic into basic service traffic and advanced service traffic, and send the advanced service traffic to the logical processor for advanced service processing.
  • the label identification processing unit is configured to receive the tagged target advanced service traffic sent by the logical processor and perform pending forwarding processing on the tagged target advanced service traffic to obtain the to-be-forwarded advanced service traffic.
  • the basic service processing unit is configured to process the basic service traffic to be forwarded to obtain the basic service traffic to be forwarded.
  • the traffic sending unit is configured to send the to-be-forwarded advanced service traffic and the to-be-forwarded basic service traffic to the backplane channel, so as to instruct the backplane channel to perform traffic forwarding according to a proprietary protocol with the switching chip.
  • the logical processor 2 is configured to execute a traffic forwarding method, and the method includes: receiving the advanced service traffic sent by the switching chip, and filtering the advanced service traffic to obtain the target advanced service traffic to be processed; The business flow is hashed to obtain the hash value of the target advanced business flow, and according to the output port corresponding to the hash value, the basic aggregation group corresponding to the target advanced business flow is determined; The value and the identifier of the basic aggregation group are added to the target advanced service traffic as tags, and the tagged target advanced service traffic is sent to the switch chip.
  • the logical processor 2 can be logically divided into an advanced service processing unit, a hash calculation unit and a label adding unit.
  • the advanced service processing unit is configured to receive the advanced service traffic sent by the switching chip, and filter the advanced service traffic to obtain the target advanced service traffic to be processed.
  • the hash calculation unit is set to perform hash calculation on the target advanced service flow, obtain a hash value of the target advanced service flow, and determine the target advanced service flow according to the output port corresponding to the hash value.
  • the label adding unit is configured to use the hash value and the identifier of the basic aggregation group as labels, add the label to the target advanced service traffic, and send the labeled target advanced service traffic to the switch chip.
  • the switching chip divides the original traffic into basic service traffic and advanced service traffic, sends the advanced service traffic to the logical processor for advanced service processing, and responds to the tagged target advanced service fed back by the logical processor.
  • the service traffic is processed to be forwarded to obtain the advanced service traffic to be forwarded, and the basic service traffic is processed to be forwarded to obtain the basic service traffic to be forwarded.
  • the advanced service traffic to be forwarded and the basic service traffic to be forwarded are sent to the backplane channel.
  • FIG. 5 is a schematic structural diagram of a traffic forwarding system in Embodiment 5 of the present application.
  • the technical solution of this embodiment is applicable to the case of performing homologous and homologous forwarding on traffic that has undergone advanced service processing.
  • the traffic forwarding system includes two traffics. Forwarding service card and backplane channel 53, two traffic forwarding service cards are respectively used as sending service card 51 and receiving service card 52;
  • the sending service card 51 is configured to calculate at least one hash value corresponding to at least one service flow in the original traffic, and send each service flow and the matching hash value to the backplane channel 53, the original Traffic consists of basic business traffic and advanced business traffic.
  • the backplane channel 53 is configured to forward the service traffic matching the hash value according to the hash value and a pre-configured private protocol.
  • the receiving service card 52 is configured to receive the service traffic forwarded by the backplane channel 53 through the port corresponding to the hash value.
  • the receiving service card 52 may act as a sending service card, and forward the received service traffic as original traffic to another backplane channel.
  • the switching chip that sends the service card divides the original traffic into basic service traffic and advanced service traffic, sends the advanced service traffic to the logical processor for advanced service processing, and adds feedback to the logical processor.
  • the target advanced service traffic of the tag is processed to be forwarded, the advanced service traffic to be forwarded is obtained, and then the basic service traffic is processed to be forwarded to obtain the basic service traffic to be forwarded, and finally the advanced service traffic to be forwarded and the basic service traffic to be forwarded are sent to
  • the backplane channel is used to instruct the backplane channel to forward traffic according to the private protocol with the switch chip, which solves the problem that the high-level business traffic cannot be forwarded across the card with the same source and the same sink with the help of the switch chip.
  • the traffic is processed to be forwarded, which realizes the cross-card forwarding of the same source and the same destination of the advanced service traffic and the basic service traffic.

Landscapes

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

Abstract

本申请实施例公开了一种流量转发方法、业务卡和系统。流量转发方法包括:将原始流量划分为基础业务流量和高级业务流量,并将所述高级业务流量发送至逻辑处理器进行高级业务处理;接收逻辑处理器发送的添加标签的目标高级业务流量并对所述添加标签的目标高级业务流量进行待转发处理,得到待转发高级业务流量;对所述基础业务流量进行待转发处理,得到待转发基础业务流量;将所述待转发高级业务流量和待转发基础业务流量发送至背板通道,以指示所述背板通道根据与所述交换芯片之间的私有协议进行流量转发。

Description

流量转发方法、业务卡和系统
本申请要求在2020年11月23日提交中国专利局、申请号为202011324486.6的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及网络通信领域,例如涉及一种流量转发、业务卡和系统。
背景技术
随着网络流量的急剧增长,汇聚分流设备逐步向基于CLOS架构的方向演进。为了准确的获取数据信息,需要汇聚分流设备保证流量的完整性,按照会话或者用户进行同源同宿的处理。随着应用需求的增加,汇聚分流设备也逐渐增加了网络处理芯片,以实现更高级流量的过滤识别。
对同时需要基础业务和高级业务功能的系统而言,基础业务的跨板卡的同源同宿转发可以利用交换芯片构建的私有转发协议实现,但是针对高级业务功能,如何借助交换芯片实现跨板卡的同源同宿功能,是一个亟待解决的技术问题。
发明内容
本申请实施例提供一种流量转发方法、业务卡和系统,通过由逻辑处理器和交换芯片构成的业务卡,实现高级业务流量和基础业务流量的同源同宿的跨卡转发。
本申请实施例提供了一种流量转发方法,所述方法包括:将原始流量划分为基础业务流量和高级业务流量,并将所述高级业务流量发送至逻辑处理器进行高级业务处理;接收所述逻辑处理器发送的添加标签的目标高级业务流量并对所述添加标签的目标高级业务流量进行待转发处理,得到待转发高级业务流量;对所述基础业务流量进行待转发处理,得到待转发基础业务流量;将所述待转发高级业务流量和待转发基础业务流量发送至背板通道,以指示所述背板通道根据与所述交换芯片之间的私有协议进行流量转发。
本申请实施例提供了一种流量转发方法,所述方法包括:接收交换芯片发送的高级业务流量,并对所述高级业务流量进行过滤,得到待处理的目标高级业务流量;对所述目标高级业务流量进行散列计算,得到所述目标高级业务流量的散列值,并根据所述散列值对应的输出端口,确定与所述目标高级业务流 量对应的基础聚合组;将所述散列值和所述基础聚合组的标识作为标签,添加至所述目标高级业务流量中,并将添加标签的目标高级业务流量发送至交换芯片。
本申请实施例提供了一种流量转发业务卡,所述业务卡包括:交换芯片和逻辑处理器;所述交换芯片设置为执行本申请任意实施例所提供的流量转发方法,所述逻辑处理器设置为执行本申请任意实施例所提供的流量转发方法。
本申请实施例提供了一种流量转发系统,所述系统包括:两个本申请任意实施例锁提供的流量转发业务卡和背板通道,两个流量转发业务卡分别作为发送业务卡和接收业务卡;
所述背板通道,设置为接收所述发送业务卡发送的待转发高级业务流量和待转发基础业务流量,并根据与所述发送业务卡之间的私有协议将待转发高级业务流量中的高级业务流量和待转发基础业务流量中的基础业务流量转发至所述接收业务卡。
附图说明
图1是本申请实施例一中的一种流量转发方法的流程图;
图2是本申请实施例二中的一种流量转发方法的流程图;
图3是本申请实施例三中的一种流量转发方法的流程图;
图4是本申请实施例四中的一种流量转发业务卡的结构示意图;
图5是本申请实施例五中的一种流量转发系统的结构示意图。
具体实施方式
下面结合附图和实施例对本申请进行说明。此处所描述的实施例仅仅用于解释本申请,而非对本申请的限定。为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。
实施例一
图1为本申请实施例一中的一种流量转发方法的流程图,本实施例的技术方案适用于对经过高级业务处理的流量进行同源同宿转发的情况,该方法可以由交换芯片执行,该交换芯片可以由软件和/或硬件来实现。
首先对交换芯片进行说明,本实施例中的交换芯片是设置在流量转发业务卡中的交换芯片,交换芯片设置为对待转发流量进行待转发处理。同时流量转发业务卡中还包括逻辑处理器,逻辑处理器设置为处理一些需要进行高级业务 处理的流量,最终经过高级业务处理的流量通过上述交换芯片进行跨业务卡的转发。
本实施例中的流量转发方法,包括如下步骤。
步骤110、将原始流量划分为基础业务流量和高级业务流量,并将高级业务流量发送至逻辑处理器进行高级业务处理。
高级业务流量是指需要进行高级业务处理的流量,例如,需要使用处理器进行复杂分析处理的隧道报文。基础业务流量是指仅需要进行基础业务处理的流量,例如,普通报文。原始流量是指混合了基础业务流量和高级业务流量且需要进行同源同宿转发的流量。
逻辑处理器是指可以通过软件实现流量的分析、处理和转发功能的器件,例如,逻辑处理器可以是网络处理器(Network Processor,NP)、现场可编程逻辑门阵列(Field Programmable Gate Array,FPGA)、每秒百万条指令(Million Instruction Per Second,MIPS)多核处理器或者中央处理器(Central Processing Unit,CPU)等,也可以是其他能够通过软件实现流量分析、处理和转发的器件,这里不做限定。
本实施例中,交换芯片首先根据预先设定的匹配规则,将接收到的原始流量划分为基础业务流量和高级业务流量,并将高级业务流量发送至逻辑处理器进行高级业务处理。示例性的,交换芯片将使用互联网协议第4版(Internet Protocol version 4,IPV4)的流量作为基础业务流量,将使用互联网协议第6版(Internet Protocol version 6,IPV6)的流量作为高级业务流量,并将高级业务流量发送至逻辑处理器进行高级业务处理。
步骤120、接收逻辑处理器发送的添加标签的目标高级业务流量并对添加标签的目标高级业务流量进行待转发处理,得到待转发高级业务流量。
本实施例中,交换芯片将高级业务流量发送至逻辑处理器后,逻辑处理器会对高级业务流量进行处理,最终将添加标签的目标高级业务流量反馈给交换芯片,以指示交换芯片根据添加的标签,对高级业务流量进行转发,交换芯片在接收到添加标签的目标高级业务流量后,对目标高级业务流量进行待转发处理,得到待转发高级业务流量。示例性的,待转发处理可以是计算目标高级业务流量对应的输出端口号,然后将输出端口号与目标高级业务流量作为待转发高级业务流量,例如将输出端口号放置在目标高级业务流量的前面得到待转发高级业务流量,以实现高级业务流量的同源同宿。
示例性的,目标高级流量为逻辑处理器对高级业务流量进行过滤后得到的高级业务流量。
示例性的,目标高级业务流量是隧道报文,目标高级业务流量的标签是添加在隧道报文中的输出端口号。交换芯片可以通过读取并处理隧道报文中的上述标签,将输出端口号与目标高级业务流量作为待转发业务流量,例如将输出端口号放置在目标高级业务流量的前面得到待转发高级业务流量,以实现高级业务流量的同源同宿。
步骤130、对基础业务流量进行待转发处理,得到待转发基础业务流量。
本实施例中,交换芯片在将原始流量划分为高级业务流量和基础业务流量后,在将高级业务流量转发到逻辑处理器进行高级业务处理的同时,会对基础业务流量进行相应的待转发处理,得到待转发基础业务流量。
交换芯片首先根据预先配置的过滤规则,对基础业务流量进行过滤,然后计算过滤后的基础业务流量的散列值,最终将散列值和过滤后的基础业务流量一起作为待转发基础业务流量。示例性的,基础业务流量可以是普通互联网协议(Internet Protocol,IP)报文,过滤规则可以是根据报文对应的五元组中包含的目的端口进行过滤。
步骤140、将待转发高级业务流量和待转发基础业务流量发送至背板通道,以指示背板通道根据与交换芯片之间的私有协议进行流量转发。
本实施例中,得到待转发高级业务流量和待转发基础业务流量后,将待转发高级业务流量和待转发基础业务流量发送至背板通道,以指示背板通道中的交换芯片根据预先设定的与业务卡中的交换芯片之间的私有协议,进行流量转发。示例性的,背板通道中的交换芯片读取业务卡中的交换芯片发送的在普通报文的前面与普通报文对应的散列值,根据散列值确定需要将普通报文转发到哪一个输出端口,从而实现报文转发。
本申请实施例的技术方案中,交换芯片将原始流量划分为基础业务流量和高级业务流量,将高级业务流量发送至逻辑处理器进行高级业务处理,并对逻辑处理器反馈的添加标签的目标高级业务流量进行待转发处理,得到待转发高级业务流量,且交换芯片对基础业务流量进行待转发处理,得到待转发基础业务流量,最终交换芯片将待转发高级业务流量和待转发基础业务流量发送至背板通道,以指示背板通道根据与交换芯片之间的私有协议进行流量转发,解决了高级业务流量无法借助交换芯片实现跨卡同源同宿转发的问题,通过交换芯片对处理后的高级业务流量进行待转发处理,实现了高级业务流量和基础业务流量的同源同宿的跨卡转发。
实施例二
图2为本申请实施例二中的一种流量转发方法的流程图,本实施例基于上述实施例,提供了对基础业务流量进行待转发处理的步骤,以及对逻辑处理器反馈的添加标签的目标高级业务流量进行待转发处理的步骤。下面结合图2对本申请实施例二提供的一种流量转发方法进行说明,该方法包括以下步骤。
步骤210、将原始流量划分为基础业务流量和高级业务流量,并将高级业务流量发送至逻辑处理器进行高级业务处理。
可选的,高级业务流量为隧道报文,基础业务流量为普通报文。
本可选的实施例中,高级业务流量为隧道报文,例如,图令牌(GRaph Token,GRT)报文/通用分组无线服务隧道协议(General packet radio service Tunneling Protocol,GTP)报文/IP encapsulation within IP(IP-in-IP)报文等,基础业务流量为普通IP报文。
步骤220、接收逻辑处理器发送的添加标签的目标高级业务流量并识别添加标签的目标高级业务流量中的标签,标签包括目标高级业务流量的散列值和基础聚合组的标识。
本实施例中,交换芯片在接收到逻辑处理器反馈的添加标签的目标高级业务流量报文后,识别添加标签的目标高级业务流量中的标签,以根据标签对目标高级业务流量进行处理,从实现根据私有协议进行同源同宿转发,其中,标签中包括目标高级业务流量的散列值以及基础聚合组的标识。
示例性的,目标高级业务流量是隧道报文,上述标签是添加到隧道报文中的。由于交换芯片支持虚拟局域网标签(Virtual Local Area Network Tag,VLAN Tag)形式的标签识别和剥离操作,因此,添加的是VLAN Tag形式的标签。虽然逻辑处理器在隧道报文中添加了标签,但是背板通道只能通过私有协议进行报文转发,即只能通过读取在隧道报文之前发送的隧道报文对应的散列值,确定输出端口,进而实现隧道报文转发,无法通过逻辑处理器对内部添加标签的隧道报文进行转发,因此,需要业务卡中的交换芯片识别隧道报文中的标签,并根据标签对隧道报文处理,得到待转发隧道报文。
目标高级业务流量的标签中还可以包括高级业务处理标记,交换芯片可以通过读取该高级业务处理标记,确定当前流量是否进行了高级业务处理,从而确定是否识别标签中的散列值和对应的高级聚合组标识。
步骤230、根据基础聚合组的标识和目标高级业务流量的散列值,计算与高级聚合组对应的散列值,并将与高级聚合组对应的散列值和目标高级业务流量共同作为待转发高级业务流量。
基础聚合组是与基础业务流量对应的聚合组,高级聚合组是交换芯片建立 的与高级业务流量对应的聚合组,基础聚合组和高级聚合组中包含相同的输出端口。
本实施例中,交换芯片读取到目标高级业务流量的标签,获取到目标高级业务流量的散列值和目标高级业务流量对应的基础聚合组标签,为了能使背板通道能够通过私有协议实现目标高级业务流量的转发,需要计算高级聚合组对应的散列值,最终将与高级聚合组对应的散列值和目标高级业务流量共同作为待转发高级业务流量。
示例性的,仍以高级业务流量为隧道报文为例,逻辑处理器在隧道报文使用VLAN Tag对目标高级业务流量的散列值和目标高级业务流量对应的基础聚合组标签进行打标,交换芯片接收到逻辑处理器反馈的加入标签后的目标隧道报文后,识别加入标签后的目标隧道报文中的标签(目标高级业务流量的散列值和目标高级业务流量对应的基础聚合组),并且为了使目标隧道报文也能够被背板通道根据私有协议进行转发,建立一个新的高级聚合组,该高级聚合组中的成员与基础聚合组中的成员相同,包括了相同输出端口,交换芯片对VLAN Tag计算散列值(该散列值与标签中标记的散列值对应相同的输出端口,即不改变隧道报文对应的输出端口,仅是为了实现通过私有协议对隧道报文进行转发),该散列值即为与高级聚合组对应的散列值,最终将与高级聚合组对应的散列值和目标隧道报文作为待转发高级业务流量。
基础聚合组的散列因子为五元组,而高级聚合组的散列因子为打标标签,例如,VLAN Tag,基础聚合组和高级聚合组的散列算法一致,从而保证了同一个用户或者会话的流量实现同源同宿。
步骤240、对基础业务流量进行过滤,得到待处理的目标基础业务流量。
本实施例中,对于基础业务流量,交换芯片也需要进行过滤,将过滤后的满足转发条件的基础业务流量作为目标基础业务流量进行转发。
可选的,对基础业务流量进行过滤,得到待处理的目标基础业务流量,包括:识别基础业务流量的外层五元组信息,并根据外层五元组信息,对基础业务流量进行过滤,得到目标基础业务流量。
本可选的实施例中,基础业务流量为普通报文,可以根据报文的外层五元组信息,进行报文的过滤,得到目标基础业务流量。
本实施例中,步骤220和步骤240的执行顺序可以根据实际情况进行灵活调整,不限于本实施例中的执行顺序。
步骤250、计算目标基础业务流量的散列值,并将目标基础业务流量的散列值与目标基础业务流量共同作为待转发基础业务流量。
本实施例中,为了使背板通道通过私有协议进行目标基础业务流量的转发,计算目标基础业务流量的散列值,最终将目标基础业务流量的散列值与目标基础业务流量共同作为待转发基础业务流量,其中,目标基础业务流量的散列值位于目标基础业务流量的前面。
示例性的,目标基础业务流量是普通报文,计算普通报文的五元组的哈希值(散列值),最终将对应哈希值放置在普通报文之前,与普通报文一起发送,从而使背板通道通读取普通报文之前的哈希值,进行报文转发。
步骤260、将待转发高级业务流量和待转发基础业务流量发送至背板通道,以指示背板通道根据与交换芯片之间的私有协议进行流量转发。
本申请实施例的技术方案,首先交换芯片将原始流量划分为基础业务流量和高级业务流量,并将高级业务流量发送至逻辑处理器进行高级业务处理,然后识别逻辑处理器反馈的添加标签的目标高级业务流量中的标签,根据标签中的基础聚合组的标识和目标高级业务流量的散列值,计算高级聚合组对应的散列值,并将与高级聚合组对应的散列值和目标高级业务流量共同作为待转发高级业务流量,并对基础业务流量进行过滤,得到待处理的目标基础业务流量,并计算目标基础业务流量的散列值,将目标基础业务流量的散列值与目标基础业务流量共同作为待转发基础业务流量,最终将待转发高级业务流量和待转发基础业务流量发送至背板通道,以指示背板通道根据与交换芯片之间的私有协议进行流量转发,实现了高级业务流量和基础业务流量的同源同宿的跨卡转发。
实施例三
图3为本申请实施例三中的一种流量转发方法的流程图,本实施例的技术方案适用于对经过高级业务处理的流量进行同源同宿转发的情况,该方法可以由逻辑处理器执行。
本实施例中,通过逻辑处理器对高级业务流量进行高级业务处理,其中逻辑处理器是流量转发业务卡的一部分,该逻辑处理器可以由软件来实现,包括如下步骤。
步骤310、接收交换芯片发送的高级业务流量,并对高级业务流量进行过滤,得到待处理的目标高级业务流量。
本实施例中,逻辑处理器接收到交换芯片发送的需要进行高级业务处理的高级业务流量后,首先对高级业务流量进行过滤,滤除不需要进行处理和转发的高级业务流量,并将过滤后的高级业务流量作为目标高级业务流量。
可选的,对高级业务流量进行过滤,得到待处理的目标高级业务流量,包 括:识别高级业务流量的内层五元组信息,并根据内层五元组信息,对高级业务流量进行过滤,得到目标高级业务流量。
本可选的实施例中,高级业务流量是隧道报文,根据预先设定的过滤规则和隧道报文的内层五元组信息对隧道报文进行过滤,得到待发送的目标隧道报文。
可选的,逻辑处理模块为网络处理芯片。
步骤320、对目标高级业务流量进行散列计算,得到目标高级业务流量的散列值,并根据散列值对应的输出端口,确定与目标高级业务流量对应的基础聚合组。
本实施例中,为了确定目标高级业务流量对应的转发输出端口,逻辑处理器对目标高级业务流量进行散列计算,得到目标高级业务流量的散列值,并根据散列值对应的输出端口,确定与目标高级业务流量对应的基础聚合组。示例性的,目标高级业务流量为隧道报文,则将隧道报文按照内层源IP(Source IP,SIP)和目的IP(Destination IP,DIP)进行散列计算。
步骤330、将散列值和基础聚合组的标识作为标签,添加至目标高级业务流量中,并将添加标签的目标高级业务流量发送至交换芯片。
本实施例中,将散列值和基础聚合组的标识加入至目标高级业务流量中,为了便于实现流量转发和标签剥离,使用VLAN Tag形式的标签。
本申请实施例的技术方案,逻辑接收交换芯片发送的高级业务流量,并对高级业务流量进行过滤,得到待处理的目标高级业务流量,然后对目标高级业务流量进行散列计算,得到目标高级业务流量的散列值,并根据散列值对应的输出端口,确定与目标高级业务流量对应的基础聚合组,最终将散列值和基础聚合组的标识作为标签,添加至目标高级业务流量中,并将添加标签的目标高级业务流量发送至交换芯片,以指示交换芯片进行高级业务流量的同源同宿转发,实现了高级业务流量和基础业务流量的同源同宿的跨卡转发。
实施例四
图4为本申请实施例四中的一种流量转发业务卡的结构示意图,本实施例的技术方案适用于对经过高级业务处理的流量进行同源同宿转发的情况,该流量转发业务卡包括交换芯片1和逻辑处理器2。
所述交换芯片1设置为执行一种流量转发方法,该方法包括:将原始流量划分为基础业务流量和高级业务流量,并将所述高级业务流量发送至逻辑处理 器进行高级业务处理;接收所述逻辑处理器发送的添加标签的目标高级业务流量并对所述添加标签的目标高级业务流量进行待转发处理,得到待转发高级业务流量;对所述基础业务流量进行待转发处理,得到待转发基础业务流量;将所述待转发高级业务流量和待转发基础业务流量发送至背板通道,以指示所述背板通道根据与所述交换芯片之间的私有协议进行流量转发。
本实施例中,交换芯片1在逻辑上可以划分为流量识别单元、基础业务处理单元、标签识别处理单元和流量发送单元。
流量识别单元设置为将原始流量划分为基础业务流量和高级业务流量,并将所述高级业务流量发送至逻辑处理器进行高级业务处理。标签识别处理单元设置为接收所述逻辑处理器发送的添加标签的目标高级业务流量并对所述添加标签的目标高级业务流量进行待转发处理,得到待转发高级业务流量。基础业务处理单元设置为对所述基础业务流量进行待转发处理,得到待转发基础业务流量。流量发送单元设置为将所述待转发高级业务流量和待转发基础业务流量发送至背板通道,以指示所述背板通道根据与所述交换芯片之间的私有协议进行流量转发。
逻辑处理器2设置为执行一种流量转发方法,该方法包括:接收交换芯片发送的高级业务流量,并对所述高级业务流量进行过滤,得到待处理的目标高级业务流量;对所述目标高级业务流量进行散列计算,得到所述目标高级业务流量的散列值,并根据所述散列值对应的输出端口,确定与所述目标高级业务流量对应的基础聚合组;将所述散列值和所述基础聚合组的标识作为标签,添加至所述目标高级业务流量中,并将添加标签的目标高级业务流量发送至交换芯片。
本实施例中,逻辑处理器2在逻辑上可以划分为高级业务处理单元、散列计算单元和标签添加单元。
高级业务处理单元设置为接收交换芯片发送的高级业务流量,并对所述高级业务流量进行过滤,得到待处理的目标高级业务流量。散列计算单元设置为对所述目标高级业务流量进行散列计算,得到所述目标高级业务流量的散列值,并根据所述散列值对应的输出端口,确定与所述目标高级业务流量对应的基础聚合组。标签添加单元设置为将所述散列值和所述基础聚合组的标识作为标签,将标签添加至所述目标高级业务流量中,并将添加标签的目标高级业务流量发送至交换芯片。
本申请实施例的技术方案中,交换芯片将原始流量划分为基础业务流量和高级业务流量,将高级业务流量发送至逻辑处理器进行高级业务处理,并对逻辑处理器反馈的添加标签的目标高级业务流量进行待转发处理,得到待转发高 级业务流量,并对基础业务流量进行待转发处理,得到待转发基础业务流量,最终将待转发高级业务流量和待转发基础业务流量发送至背板通道,以指示背板通道根据与交换芯片之间的私有协议进行流量转发,解决了高级业务流量无法借助交换芯片实现跨卡同源同宿转发的问题,通过交换芯片对处理后的高级业务流量进行待转发处理,实现了高级业务流量和基础业务流量的同源同宿的跨卡转发。
实施例五
图5为本申请实施例五中的一种流量转发系统的结构示意图,本实施例的技术方案适用于对经过高级业务处理的流量进行同源同宿转发的情况,该流量转发系统包括两个流量转发业务卡和背板通道53,两个流量转发业务卡分别作为发送业务卡51和接收业务卡52;所述背板通道3设置为根据与发送业务卡51之间的私有协议进行流量转发。
本实施例中,发送业务卡51设置为计算原始流量中的至少一个业务流量对应的至少一个散列值,并将每个业务流量与匹配的散列值发送至背板通道53,所述原始流量由基础业务流量和高级业务流量构成。
背板通道53设置为根据散列值和预先配置的私有协议对散列值匹配的业务流量进行转发。
所述接收业务卡52设置为通过与散列值对应的端口接收背板通道53转发的业务流量。
示例性的,所述接收业务卡52在接收到业务流量后,可作为发送业务卡,将接收到的业务流量作为原始流量转发至另一背板通道。
本申请实施例的技术方案中,发送业务卡的交换芯片将原始流量划分为基础业务流量和高级业务流量,将高级业务流量发送至逻辑处理器进行高级业务处理,并对逻辑处理器反馈的添加标签的目标高级业务流量进行待转发处理,得到待转发高级业务流量,然后对基础业务流量进行待转发处理,得到待转发基础业务流量,最终将待转发高级业务流量和待转发基础业务流量发送至背板通道,以指示背板通道根据与交换芯片之间的私有协议进行流量转发,解决了高级业务流量无法借助交换芯片实现跨卡同源同宿转发的问题,通过交换芯片对处理后的高级业务流量进行待转发处理,实现了高级业务流量和基础业务流量的同源同宿的跨卡转发。

Claims (10)

  1. 一种流量转发方法,应用于交换芯片,包括:
    将原始流量划分为基础业务流量和高级业务流量,并将所述高级业务流量发送至逻辑处理器进行高级业务处理;
    接收所述逻辑处理器发送的添加标签的目标高级业务流量并对所述添加标签的目标高级业务流量进行待转发处理,得到待转发高级业务流量;
    对所述基础业务流量进行待转发处理,得到待转发基础业务流量;
    将所述待转发高级业务流量和所述待转发基础业务流量发送至背板通道,以指示所述背板通道根据与所述交换芯片之间的私有协议进行流量转发。
  2. 根据权利要求1所述的方法,其中,所述对所述基础业务流量进行待转发处理,得到待转发基础业务流量,包括:
    对所述基础业务流量进行过滤,得到待处理的目标基础业务流量;
    计算所述目标基础业务流量的散列值,并将所述散列值与所述目标基础业务流量共同作为所述待转发基础业务流量。
  3. 根据权利要求2所述的方法,其中,所述对所述逻辑处理器反馈的添加标签的目标高级业务流量进行待转发处理,得到待转发高级业务流量,包括:
    识别所述添加标签的目标高级业务流量中的标签,所述标签包括所述目标高级业务流量的散列值和基础聚合组的标识;
    根据所述基础聚合组的标识和所述目标高级业务流量的散列值,计算与高级聚合组对应的散列值,并将所述与高级聚合组对应的散列值和所述目标高级业务流量共同作为所述待转发高级业务流量;
    其中,所述基础聚合组是与基础业务流量对应的聚合组,所述高级聚合组是所述交换芯片建立的与高级业务流量对应的聚合组,所述基础聚合组和所述高级聚合组包含相同的输出端口。
  4. 根据权利要求2所述的方法,其中,所述对所述基础业务流量进行过滤,得到待处理的目标基础业务流量,包括:
    识别所述基础业务流量的外层五元组信息,并根据所述外层五元组信息,对所述基础业务流量进行过滤,得到所述目标基础业务流量。
  5. 根据权利要求1是所述的方法,其中,所述高级业务流量为隧道报文,所述基础业务流量为普通报文。
  6. 一种流量转发方法,应用于逻辑处理器,包括:
    接收交换芯片发送的高级业务流量,并对所述高级业务流量进行过滤,得 到待处理的目标高级业务流量;
    对所述目标高级业务流量进行散列计算,得到所述目标高级业务流量的散列值,并根据所述散列值对应的输出端口,确定与所述目标高级业务流量对应的基础聚合组;
    将所述散列值和所述基础聚合组的标识作为标签,添加至所述目标高级业务流量中,并将添加标签的目标高级业务流量发送至所述交换芯片。
  7. 根据权利要求6所述的方法,其中,所述对所述高级业务流量进行过滤,得到待处理的目标高级业务流量,包括:
    识别所述高级业务流量的内层五元组信息,并根据所述内层五元组信息,对所述高级业务流量进行过滤,得到所述目标高级业务流量。
  8. 根据权利要求6所述的方法,其中,所述逻辑处理器为网络处理芯片。
  9. 一种流量转发业务卡,包括:交换芯片和逻辑处理器;
    所述交换芯片设置为执行如权利要求1-5任意一项所述的流量转发方法,所述逻辑处理器设置为执行如权利要求6-8任意一项所述的流量转发方法。
  10. 一种流量转发系统,包括:两个权利要求9所述的流量转发业务卡和背板通道,所述两个流量转发业务卡分别作为发送业务卡和接收业务卡;
    所述背板通道设置为接收所述发送业务卡发送的待转发高级业务流量和待转发基础业务流量,并根据与所述发送业务卡之间的私有协议将待转发高级业务流量中的高级业务流量和待转发基础业务流量中的基础业务流量转发至所述接收业务卡。
PCT/CN2021/108545 2020-11-23 2021-07-27 流量转发方法、业务卡和系统 WO2022105289A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011324486.6 2020-11-23
CN202011324486.6A CN112398755B (zh) 2020-11-23 2020-11-23 一种流量转发方法、业务卡和系统

Publications (1)

Publication Number Publication Date
WO2022105289A1 true WO2022105289A1 (zh) 2022-05-27

Family

ID=74606156

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/108545 WO2022105289A1 (zh) 2020-11-23 2021-07-27 流量转发方法、业务卡和系统

Country Status (2)

Country Link
CN (1) CN112398755B (zh)
WO (1) WO2022105289A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086253A (zh) * 2022-06-16 2022-09-20 苏州盛科通信股份有限公司 以太网交换芯片和高带宽报文转发方法

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112398755B (zh) * 2020-11-23 2023-10-24 北京锐安科技有限公司 一种流量转发方法、业务卡和系统
CN114157533B (zh) * 2021-12-06 2023-05-26 北京锐安科技有限公司 一种基于clos架构的报文跨板组播复制转发方法和系统
CN114363257B (zh) * 2021-12-29 2023-10-17 杭州迪普信息技术有限公司 隧道报文的五元组匹配方法及装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137025A (zh) * 2011-04-20 2011-07-27 福建星网锐捷网络有限公司 报文转发方法、装置及交换芯片
CN102957626A (zh) * 2012-11-14 2013-03-06 中兴通讯股份有限公司 一种报文转发方法和装置
CN103986658A (zh) * 2014-05-14 2014-08-13 北京锐安科技有限公司 一种报文输出方法及装置
CN105763489A (zh) * 2016-04-19 2016-07-13 烽火通信科技股份有限公司 一种扩充交换业务芯片的交换容量的方法及系统
CN110071878A (zh) * 2019-04-15 2019-07-30 杭州迪普信息技术有限公司 报文流量统计方法、装置、电子设备
CN112398755A (zh) * 2020-11-23 2021-02-23 北京锐安科技有限公司 一种流量转发方法、业务卡和系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100555999C (zh) * 2007-08-13 2009-10-28 中兴通讯股份有限公司 一种实现边缘到边缘伪线仿真的方法和装置
CN110855568B (zh) * 2019-11-22 2022-02-22 迈普通信技术股份有限公司 报文转发方法及系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137025A (zh) * 2011-04-20 2011-07-27 福建星网锐捷网络有限公司 报文转发方法、装置及交换芯片
CN102957626A (zh) * 2012-11-14 2013-03-06 中兴通讯股份有限公司 一种报文转发方法和装置
CN103986658A (zh) * 2014-05-14 2014-08-13 北京锐安科技有限公司 一种报文输出方法及装置
CN105763489A (zh) * 2016-04-19 2016-07-13 烽火通信科技股份有限公司 一种扩充交换业务芯片的交换容量的方法及系统
CN110071878A (zh) * 2019-04-15 2019-07-30 杭州迪普信息技术有限公司 报文流量统计方法、装置、电子设备
CN112398755A (zh) * 2020-11-23 2021-02-23 北京锐安科技有限公司 一种流量转发方法、业务卡和系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086253A (zh) * 2022-06-16 2022-09-20 苏州盛科通信股份有限公司 以太网交换芯片和高带宽报文转发方法
CN115086253B (zh) * 2022-06-16 2024-03-29 苏州盛科通信股份有限公司 以太网交换芯片和高带宽报文转发方法

Also Published As

Publication number Publication date
CN112398755B (zh) 2023-10-24
CN112398755A (zh) 2021-02-23

Similar Documents

Publication Publication Date Title
WO2022105289A1 (zh) 流量转发方法、业务卡和系统
US11792046B2 (en) Method for generating forwarding information, controller, and service forwarding entity
US11233778B2 (en) Secure forwarding of tenant workloads in virtual networks
US10534601B1 (en) In-service software upgrade of virtual router with reduced packet loss
US10320749B2 (en) Firewall rule creation in a virtualized computing environment
US9674088B1 (en) Receive packet steering for virtual networks
US10237177B2 (en) Transfer device and transfer system
US10652155B2 (en) Universal cloud classification [UCC]as a service
US10237230B2 (en) Method and system for inspecting network traffic between end points of a zone
EP3142310B1 (en) Method, device, and system for configuring flow entries
US9654395B2 (en) SDN-based service chaining system
US10038627B2 (en) Selective rule management based on traffic visibility in a tunnel
US9094459B2 (en) Flow based overlay network
US8953621B2 (en) Specifying priority on a virtual station interface discovery and configuration protocol response
US11329966B2 (en) System and method for transferring packets between kernel modules in different network stacks
US20160301603A1 (en) Integrated routing method based on software-defined network and system thereof
WO2016055027A1 (en) Table entry in software defined network
WO2018023498A1 (zh) 网络接口卡、计算设备以及数据包处理方法
US11870641B2 (en) Enabling enterprise segmentation with 5G slices in a service provider network
WO2018001242A1 (zh) 一种数据报文处理方法及装置
JP7100061B2 (ja) 多重パケット処理コア上の無線加入者パケット処理の負荷分散
CN108259297B (zh) 一种报文处理方法及装置
CN108737239B (zh) 一种报文转发方法及装置
US11303576B2 (en) Accurate analytics, quality of service and load balancing for internet protocol fragmented packets in data center fabrics
US10177935B2 (en) Data transfer system, data transfer server, data transfer method, and program recording medium

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205N DATED 14/07/2023)