WO2015074198A1 - Flow table processing method and apparatus - Google Patents

Flow table processing method and apparatus Download PDF

Info

Publication number
WO2015074198A1
WO2015074198A1 PCT/CN2013/087505 CN2013087505W WO2015074198A1 WO 2015074198 A1 WO2015074198 A1 WO 2015074198A1 CN 2013087505 W CN2013087505 W CN 2013087505W WO 2015074198 A1 WO2015074198 A1 WO 2015074198A1
Authority
WO
WIPO (PCT)
Prior art keywords
flow table
upstream
downstream
forwarding plane
packet data
Prior art date
Application number
PCT/CN2013/087505
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 华为技术有限公司
Priority to PCT/CN2013/087505 priority Critical patent/WO2015074198A1/en
Priority to CN201380002331.2A priority patent/CN104871497B/en
Publication of WO2015074198A1 publication Critical patent/WO2015074198A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables

Definitions

  • the at least two control planes include a serving gateway control plane and a packet data network gateway control plane.
  • Figure 1b is a flow chart showing another flow table processing method according to Embodiment 1 of the present invention.
  • FIG. 2 is a flow chart showing a first-class table processing method according to Embodiment 2 of the present invention.
  • Figure 3 is a flow chart showing a first-class table processing method according to Embodiment 3 of the present invention.
  • the PGW upstream flow table corresponds to a GTP decapsulation processing operation
  • the PGW downstream flow table corresponds to a GTP encapsulation processing operation. Therefore, the MF can receive the above two types of flow tables from the SGW-C and the PGW-C. For example: MF from SGW-C and PGW-C Instruction manual
  • the MF may associate a flow table corresponding to the same PDN link, and perform corresponding processing actions according to the associated flow table.
  • the MF can be associated in a variety of forms to associate flow tables corresponding to the same PDN link. For example: MF can merge multiple flow tables corresponding to the same PDN link into one multi-level flow table; or combine multiple flow tables in the form of logical ports; or directly set this fusion to the flow table level.
  • Figure 1b shows a flow chart of another flow table processing method according to Embodiment 1 of the present invention.
  • the MF receives configuration information from the SGW-C and the PGW-C. If the MF does not set the network element type, the MF sets the network element type of the current MF SGW-U or the network element type of the PGW-U according to the configuration information, that is, the MF SGW gateway function or the PGW gateway function is enabled. And return the set configuration response to SGW-C and PGW-C. Only SGW with MF enabled at the same time Instruction manual
  • Fig. 2 is a flow chart showing a first-class table processing method according to Embodiment 2 of the present invention.
  • the same components in Fig. 2 as those in Figs. 1 to 11 have the same functions, and a detailed description of these components will be omitted for the sake of brevity.
  • the MF returns a message "Set SGW-C configuration succeeded" to the SGW-C in response to the setting being successful.
  • the MF is associated with the flow table corresponding to the same PDN link in the form of a multi-level flow table.
  • the packets of the SGW upstream flow table or the PGW downstream flow table corresponding to the same PDN link are sent to the logical port of the forwarding plane itself through the forwarding plane, and the flow table processing method according to the above embodiment of the present invention can make corresponding to The uplink packet or the downlink packet of the same PDN link is forwarded through the internal port of the logical port, and then the processing action of the subsequent upstream table or the downstream flow table is performed, so that multiple control faces the same forwarding plane control to complete the packet transmission. .
  • the SGW-C sends a message "Set SGW-C Configuration" to the MF to set the current SGW-U network element type as the serving gateway.

Abstract

Disclosed are a flow table processing method and apparatus. The flow table processing method and apparatus are applied in an architecture comprising a forwarding plane and at least two control planes. The flow table processing method comprises: a forwarding plane receiving at least two flow tables from the at least two control planes; and the forwarding plane associating the at least two flow tables linked by a same packet data network, so that packets linked by the same packet data network are sequentially processed and then sent according to a preset flow table use sequence and the at least two flow tables. The flow table processing method and apparatus in the present invention can effectively avoid a flow table control conflict of a same forwarding table by multiple control planes, so that the multiple control planes control the same forwarding plane.

Description

说 明 书  Description
流表处理方法和装置  Flow table processing method and device
技术领域 Technical field
本发明涉及通信技术领域, 尤其涉及一种流表处理方法和装置。 背景技术  The present invention relates to the field of communications technologies, and in particular, to a flow table processing method and apparatus. Background technique
演进分组系统(Evolved Packet System, EPS ) , 如系统架构演进 (System Architecture Evolution, SAE)网络, 分为接入网和核心网两部分。 接入网是 演进的通用陆地无线接入网 (Evolved Universal Terrestrial Radio Access Network, E-UTRAN) , 用于实现所有与演进网络无线有关的功能。 核心网 的关键逻辑网元包括移动性管理实体(Mobility Management Entity, MME)、 服务网关(Serving Gateway, SGW)和分组数据网络网关(Packet Data Network Gateway, PGW)。  An Evolved Packet System (EPS), such as a System Architecture Evolution (SAE) network, is divided into an access network and a core network. The access network is an evolved Evolved Universal Terrestrial Radio Access Network (E-UTRAN) for implementing all functions related to evolved network radio. The key logical network elements of the core network include a Mobility Management Entity (MME), a Serving Gateway (SGW), and a Packet Data Network Gateway (PGW).
在现有技术中, 若将软件可定义网络(Software Defined Network, SDN) 架构引入到 SAE网络, 则可以将网关的控制逻辑和转发功能解耦, 从而得到 控制转发解耦架构的网络系统。 解耦后, 网关的控制面可以决策用户设备 (User Equipment, UE) 相关的数据报文的处理规则, 并通过控制面与转发 面之间的接口, 如 OpenFlow接口, 将该规则发送给转发面, 转发面可以依据 该规则, 实现对 UE的数据报文的处理。  In the prior art, if a Software Defined Network (SDN) architecture is introduced into the SAE network, the control logic and the forwarding function of the gateway can be decoupled to obtain a network system that controls the forwarding decoupling architecture. After decoupling, the control plane of the gateway can determine the processing rule of the data packet related to the user equipment (User Equipment, UE), and send the rule to the forwarding plane through an interface between the control plane and the forwarding plane, such as an OpenFlow interface. The forwarding plane can process the data packet of the UE according to the rule.
但是, 由于在 SAE网络中, 实现网关功能的节点包括 SGW和 PGW两种, 导致网关解耦后, 控制面或转发面上都可能存在两种角色。在实际的网络部 署中,可以对控制面和 /或转发面进行分离部署或合一部署。当转发面为合一 部署而控制面为分离部署时, 可能会导致多个控制面对同一个转发面的控 制, 从而转发面无法确定应根据来自哪个控制面的流表进行处理, 也即导致 控制策略发生错误, 影响网关的正常转发功能。 说 明 书 发明内容 However, in the SAE network, the nodes that implement the gateway function include the SGW and the PGW. After the gateway is decoupled, there may be two roles on the control plane or the forwarding plane. In an actual network deployment, the control plane and/or the forwarding plane can be deployed separately or in combination. When the forwarding plane is a unified deployment and the control plane is a separate deployment, multiple controls may face the same forwarding plane control, so that the forwarding plane cannot determine which flow table should be processed according to which control plane, that is, An error occurred in the control policy, which affects the normal forwarding function of the gateway. Description of the specification
技术问题  technical problem
有鉴于此, 本发明要解决的技术问题是, 在转发面为合一部署而控制面 为分离部署的情况下, 如何使多个控制面实现对同一个转发面的正确控制。  In view of this, the technical problem to be solved by the present invention is how to enable multiple control planes to achieve correct control of the same forwarding plane in the case where the forwarding plane is a unified deployment and the control plane is a separate deployment.
解决方案  solution
为了解决上述问题, 在第一方面, 本发明提供了一种流表处理方法, 应 用于包括一个转发面和至少两个控制面的架构, 包括:所述转发面从所述至 少两个控制面接收至少两种流表;所述转发面将对应于同一分组数据网络链 接的所述至少两种流表相关联,以使得对应于同一分组数据网络链接的报文 按照预定的流表使用顺序依次根据所述至少两种流表进行处理后发送出去。  In order to solve the above problems, in a first aspect, the present invention provides a flow table processing method, which is applied to an architecture including a forwarding plane and at least two control planes, including: the forwarding plane from the at least two control planes Receiving at least two flow tables; the forwarding plane associates the at least two flow tables corresponding to the same packet data network link, so that the messages corresponding to the same packet data network link are sequentially used according to a predetermined flow table order Processing is performed according to the at least two flow tables and then sent out.
结合第一方面,在第一种可能的实现方式中,在所述转发面从所述至少 两个控制面接收至少两种流表之前,还包括:所述转发面获取各所述控制面 的网元类型; 所述转发面基于所获取到的网元类型以及报文转发方向,确定 所述流表使用顺序, 其中所述报文转发方向包括上行和下行。  With reference to the first aspect, in a first possible implementation, before the forwarding plane receives the at least two flow tables from the at least two control planes, the method further includes: the forwarding plane acquiring the control planes The network element type is determined by the forwarding plane based on the obtained network element type and the packet forwarding direction, where the packet forwarding direction includes uplink and downlink.
结合第一方面或第一种可能的实现方式, 在第二种可能的实现方式中, 所述转发面将对应于同一分组数据网络链接的所述至少两种流表相关联,包 括:对于从各所述控制面接收到的上行流表,所述转发面根据所接收到的上 行流表的隧道端点标识符隧道端点标识符,将对应于同一分组数据网络链接 的上行流表构建为一个多级上行流表,以使得对应于同一分组数据网络链接 的上行报文按第一顺序依次根据所述至少两种流表进行处理后发送出去;或 者,对于从各所述控制面接收到的下行流表,所述转发面根据所接收到的下 行流表的隧道端点标识符,将对应于同一分组数据网络链接的下行流表构建 为一个多级下行流表,以使得对应于同一分组数据网络链接的下行报文按第 二顺序依次根据所述至少两种流表后发送出去,其中,所述第一顺序和所述 说 明 书 With reference to the first aspect or the first possible implementation manner, in a second possible implementation manner, the forwarding plane associates the at least two flow tables corresponding to the same packet data network link, including: Each upstream control table received by the control plane, the forwarding plane constructs an upstream table corresponding to the same packet data network link according to the tunnel endpoint identifier tunnel endpoint identifier of the received upstream table Level upstream table, such that uplink messages corresponding to the same packet data network link are processed according to the at least two flow tables in the first order, and then sent out; or, for the downlink received from each control plane a flow table, the forwarding plane constructs a downstream table corresponding to the same packet data network link as a multi-level downstream table according to the tunnel end identifier of the received downstream table, so that the corresponding packet data network is corresponding to the same The linked downlink message is sent in the second order according to the at least two flow tables, wherein the first sequence and the Description
第二顺序互为逆序。 The second order is reversed to each other.
结合第一方面或第一种可能的实现方式, 在第三种可能的实现方式中, 所述转发面将对应于同一分组数据网络链接的所述至少两种流表相关联,包 括:对于从各所述控制面接收到的上行流表,所述转发面根据所接收到的上 行流表的隧道端点标识符,将对应于同一分组数据网络链接的上行流表按第 三顺序排序,将除最后一个上行流表之外的其它上行流表的输出端口设置为 所述转发面的逻辑端口,并将除第一个上行流表之外的其它上行流表的输入 端口设置为所述逻辑端口,以使得对应于同一分组数据网络链接的上行报文 按所述第三顺序依次根据所述至少两种流表进行处理后发送出去; 或者,对 于从各所述控制面接收到的下行流表,所述转发面根据所接收到的下行流表 的隧道端点标识符,将对应于同一分组数据网络链接的下行流表按第四顺序 排序,将除最后一个下行流表之外的其它下行流表的输出端口设置为所述逻 辑端口,并将除第一个下行流表之外的其它下行流表的输入端口设置为所述 逻辑端口,以使得对应于同一分组数据网络链接的下行报文按所述第四顺序 依次根据所述至少两种流表进行处理后发送出去,其中,所述第三顺序和所 述第四顺序互为逆序。  With reference to the first aspect or the first possible implementation manner, in a third possible implementation, the forwarding plane associates the at least two flow tables corresponding to the same packet data network link, including: An upstream table received by each control plane, the forwarding plane sorting the upstream table corresponding to the same packet data network link in a third order according to the tunnel endpoint identifier of the received upstream table, and dividing The output port of the other upstream table except the last upstream table is set as the logical port of the forwarding plane, and the input port of the other upstream table except the first upstream table is set as the logical port. So that the uplink packets corresponding to the same packet data network link are processed according to the at least two flow tables in the third order, and then sent out; or, for the downlink table received from each of the control planes The forwarding plane sorts the downstream table corresponding to the same packet data network link in the fourth order according to the tunnel endpoint identifier of the received downstream table. Setting an output port of the other downstream table except the last downstream table as the logical port, and setting an input port of the other downstream table except the first downstream table as the logical port So that the downlink packets corresponding to the same packet data network link are processed according to the at least two flow tables in the fourth sequence, and then the third sequence and the fourth sequence are mutually Reverse order.
结合第一方面或第一种可能的实现方式, 在第四种可能的实现方式中, 所述转发面将对应于同一分组数据网络链接的所述至少两种流表相关联,包 括:对于从各所述控制面接收到的上行流表,所述转发面根据所接收到的上 行流表的隧道端点标识符,将对应于同一分组数据网络链接的上行流表融合 为一个上行流表,以使得对应于同一分组数据网络链接的上行报文根据所述 融合的上行流表进行处理后发送出去; 或者,对于从各所述控制面接收到的 下行流表,所述转发面根据所接收到的下行流表的隧道端点标识符,将对应 于同一分组数据网络链接的下行流表融合为一个下行流表,以使得对应于同 一分组数据网络链接的下行报文根据所述融合的下行流表进行处理后发送 说 明 书 With reference to the first aspect or the first possible implementation manner, in a fourth possible implementation, the forwarding plane associates the at least two flow tables corresponding to the same packet data network link, including: An upstream table received by each control plane, the forwarding plane merging the upstream table corresponding to the same packet data network link into an upstream table according to the tunnel endpoint identifier of the received upstream table, And causing the uplink packet corresponding to the same packet data network link to be processed according to the fused upstream flow table; or, for the downstream flow table received from each control plane, the forwarding plane is received according to the received The tunnel endpoint identifier of the downstream flow table, the downstream table corresponding to the same packet data network link is merged into one downstream flow table, so that the downlink packet corresponding to the same packet data network link is according to the merged downstream table. Send after processing Description
出去。 Go out.
结合第一方面的第四种可能的实现方式, 在第五种可能的实现方式中, 在所述将对应于同一分组数据网络链接的上行流表融合为一个上行流表之 后, 还包括: 所述转发面保留从各所述控制面接收到的上行流表; 所述转发 面根据对所接收到的上行流表的操作, 对所述融合的上行流表进行更新。  With the fourth possible implementation of the first aspect, in a fifth possible implementation, after the merging the upstream table corresponding to the same packet data network link into an upstream table, the method further includes: The forwarding plane retains an upstream table received from each of the control planes; and the forwarding plane updates the fused upstream table according to an operation on the received upstream table.
结合第一方面的第四种或第五种可能的实现方式,在第六种可能的实现 方式中,在所述将对应于同一分组数据网络链接的下行流表融合为一个下行 流表之后, 还包括: 所述转发面保留从各所述控制面接收到的下行流表; 所 述转发面根据对所接收到的下行流表的操作,对所述融合的下行流表进行更 新。  With the fourth or fifth possible implementation of the first aspect, in the sixth possible implementation, after the downstream table corresponding to the same packet data network link is merged into one downstream table, The method further includes: the forwarding plane retains a downstream flow table received from each of the control planes; and the forwarding plane updates the merged downstream flow table according to an operation on the received downstream flow table.
结合第一方面或其上述可能的实现方式, 在第七种可能的实现方式中, 所述至少两个控制面包括服务网关控制面和分组数据网络网关控制面。  With reference to the first aspect or the foregoing possible implementation manner, in a seventh possible implementation manner, the at least two control planes include a serving gateway control plane and a packet data network gateway control plane.
为了解决上述问题, 在第二方面, 本发明提供了一种流表处理装置, 应 用于包括一个转发面和至少两个控制面的控制转发解耦架构, 包括:接收单 元,用于使所述转发面从所述至少两个控制面接收至少两种流表;关联单元, 与所述接收单元连接,用于使所述转发面将对应于同一分组数据网络链接的 所述至少两种流表相关联,以使得对应于同一分组数据网络链接的报文按照 预定的流表使用顺序依次根据所述至少两种流表进行处理后发送出去。  In order to solve the above problems, in a second aspect, the present invention provides a flow table processing apparatus, which is applied to a control forwarding decoupling architecture including a forwarding plane and at least two control planes, including: a receiving unit, configured to: The forwarding plane receives at least two flow tables from the at least two control planes; an association unit, coupled to the receiving unit, configured to cause the forwarding plane to correspond to the at least two flow tables of the same packet data network link Correspondingly, the packets corresponding to the same packet data network link are processed and then sent according to the at least two flow tables according to a predetermined flow table usage order.
结合第二方面, 在第一种可能的实现方式中, 获取单元, 用于使所述转 发面获取各所述控制面的网元类型; 确定单元, 与所述获取单元和所述关联 单元连接, 用于使所述转发面基于所获取到的网元类型以及报文转发方向, 确定所述流表使用顺序, 其中所述报文转发方向包括上行和下行。  With reference to the second aspect, in a first possible implementation, the acquiring unit is configured to enable the forwarding plane to obtain a network element type of each of the control planes, and determine a unit that is connected to the acquiring unit and the associated unit And determining, by using the obtained network element type and the packet forwarding direction, the flow table usage order, where the packet forwarding direction includes uplink and downlink.
结合第二方面或第一种可能的实现方式, 在第二种可能的实现方式中, 所述关联单元被配置为:对于从各所述控制面接收到的上行流表, 使所述转 发面根据所接收到的上行流表的隧道端点标识符隧道端点标识符,将对应于 说 明 书 With reference to the second aspect or the first possible implementation manner, in a second possible implementation manner, the association unit is configured to: enable the forwarding plane for an upstream table received from each of the control planes According to the tunnel endpoint identifier tunnel endpoint identifier of the received upstream table, it will correspond to Description
同一分组数据网络链接的上行流表构建为一个多级上行流表,以使得对应于 同一分组数据网络链接的上行报文按第一顺序依次根据所述至少两种流表 进行处理后发送出去; 或者, 对于从各所述控制面接收到的下行流表, 使所 述转发面根据所接收到的下行流表的隧道端点标识符,将对应于同一分组数 据网络链接的下行流表构建为一个多级下行流表,以使得对应于同一分组数 据网络链接的下行报文按第二顺序依次根据所述至少两种流表后发送出去, 其中, 所述第一顺序和所述第二顺序互为逆序。 The upstream table of the same packet data network link is configured as a multi-level upstream table, so that the uplink packets corresponding to the same packet data network link are processed according to the at least two flow tables in the first order and then sent out; Or, for the downstream flow table received from each of the control planes, causing the forwarding plane to construct a downstream flow table corresponding to the same packet data network link according to the tunnel endpoint identifier of the received downstream flow table. a multi-stage downstream flow table, so that the downlink packets corresponding to the same packet data network link are sequentially sent according to the at least two flow tables in a second order, where the first sequence and the second sequence are mutually In reverse order.
结合第二方面或第一种可能的实现方式, 在第三种可能的实现方式中, 所述关联单元被配置为:对于从各所述控制面接收到的上行流表, 使所述转 发面根据所接收到的上行流表的隧道端点标识符,将对应于同一分组数据网 络链接的上行流表按第三顺序排序,将除最后一个上行流表之外的其它上行 流表的输出端口设置为所述转发面的逻辑端口,并将除第一个上行流表之外 的其它上行流表的输入端口设置为所述逻辑端口,以使得对应于同一分组数 据网络链接的上行报文按所述第三顺序依次根据所述至少两种流表进行处 理后发送出去; 或者, 对于从各所述控制面接收到的下行流表, 使所述转发 面根据所接收到的下行流表的隧道端点标识符,将对应于同一分组数据网络 链接的下行流表按第四顺序排序,将除最后一个下行流表之外的其它下行流 表的输出端口设置为所述逻辑端口,并将除第一个下行流表之外的其它下行 流表的输入端口设置为所述逻辑端口,以使得对应于同一分组数据网络链接 的下行报文按所述第四顺序依次根据所述至少两种流表进行处理后发送出 去, 其中, 所述第三顺序和所述第四顺序互为逆序。  With reference to the second aspect or the first possible implementation manner, in a third possible implementation manner, the association unit is configured to: enable the forwarding plane for an upstream table received from each of the control planes And according to the tunnel end identifier of the received upstream table, the upstream table corresponding to the same packet data network link is sorted in the third order, and the output ports of the other upstream tables except the last upstream table are set. a logical port of the forwarding plane, and setting an input port of the other upstream table except the first upstream table as the logical port, so that the uplink packet corresponding to the same packet data network link is The third sequence is processed according to the at least two flow tables and then sent out; or, for the downstream flow table received from each of the control planes, the forwarding plane is configured according to the tunnel of the received downstream table. Endpoint identifier, sorting the downstream table corresponding to the same packet data network link in the fourth order, and other downstream tables except the last downstream table Setting an output port as the logical port, and setting an input port of the other downstream table except the first downstream table as the logical port, so that the downlink message corresponding to the same packet data network link is The fourth sequence is sequentially processed according to the at least two flow tables, and the third sequence and the fourth sequence are reversed to each other.
结合第二方面或第一种可能的实现方式, 在第四种可能的实现方式中, 所述关联单元被配置为:对于从各所述控制面接收到的上行流表, 使所述转 发面根据所接收到的上行流表的隧道端点标识符,将对应于同一分组数据网 络链接的上行流表融合为一个上行流表,以使得对应于同一分组数据网络链 说 明 书 With reference to the second aspect or the first possible implementation manner, in a fourth possible implementation manner, the association unit is configured to: enable the forwarding plane for an upstream table received from each of the control planes And merging the upstream table corresponding to the same packet data network link into an upstream table according to the tunnel end identifier of the received upstream table, so that the same packet data network chain is corresponding Description
接的上行报文根据所述融合的上行流表进行处理后发送出去; 或者,对于从 各所述控制面接收到的下行流表,使所述转发面根据所接收到的下行流表的 隧道端点标识符,将对应于同一分组数据网络链接的下行流表融合为一个下 行流表,以使得对应于同一分组数据网络链接的下行报文根据所述融合的下 行流表进行处理后发送出去。 The uplink packet is processed and sent according to the fused upstream table; or, for the downstream table received from each control plane, the forwarding plane is configured according to the tunnel of the received downstream table. The endpoint identifier is configured to merge the downstream table corresponding to the same packet data network link into a downstream flow table, so that the downlink packet corresponding to the same packet data network link is processed according to the merged downstream table and then sent out.
结合第二方面的第四种可能的实现方式, 在第五种可能的实现方式中, 所述关联单元还被配置为:使所述转发面保留从各所述控制面接收到的上行 流表; 使所述转发面根据对所接收到的上行流表的操作,对所述融合的上行 流表进行更新。  With reference to the fourth possible implementation of the second aspect, in a fifth possible implementation, the association unit is further configured to: enable the forwarding plane to retain an upstream table received from each of the control planes And causing the forwarding plane to update the fused upstream table according to the operation on the received upstream table.
结合第二方面的第四种或第五种可能的实现方式,在第六种可能的实现 方式中,所述关联单元还被配置为:使所述转发面保留从各所述控制面接收 到的下行流表; 使所述转发面根据对所接收到的下行流表的操作,对所述融 合的下行流表进行更新。  With reference to the fourth or fifth possible implementation of the second aspect, in a sixth possible implementation, the associating unit is further configured to: receive the forwarding plane reservation from each of the control planes a downstream flow table; causing the forwarding plane to update the fused downstream table according to an operation on the received downstream table.
结合第二方面或其上述可能的实现方式, 在第七种可能的实现方式中, 所述至少两个控制面包括服务网关控制面和分组数据网络网关控制面。  With reference to the second aspect or the foregoing possible implementation manner, in a seventh possible implementation manner, the at least two control planes include a serving gateway control plane and a packet data network gateway control plane.
有益效果  Beneficial effect
通过转发面将从多个控制面接收的对应于同一分组数据网络链接的多 种流表相关联, 以在转发面上实现不同控制网元所下发流表的融合, 根据本 发明的流表处理方法和装置, 能够有效地避免转发面的控制策略发生错误, 从而实现多个控制面对同一转发面的控制。  Correlating a plurality of flow tables corresponding to the same packet data network link received from the plurality of control planes through the forwarding plane to implement fusion of the flow table sent by the different control network elements on the forwarding plane, the flow table according to the present invention The processing method and device can effectively avoid the error of the control strategy of the forwarding plane, thereby realizing the control of multiple controls facing the same forwarding plane.
根据下面参考附图对示例性实施例的详细说明, 本发明的其它特征及方 面将变得清楚。 附图说明  Further features and aspects of the present invention will become apparent from the following detailed description of exemplary embodiments. DRAWINGS
包含在说明书中并且构成说明书的一部分的附图与说明书一起示出了 说 明 书 The drawings contained in the specification and which form part of the specification are shown together with the description. Description
本发明的示例性实施例、 特征和方面, 并且用于解释本发明的原理。 The exemplary embodiments, features, and aspects of the invention are intended to explain the principles of the invention.
图 1 a示出根据本发明实施例 1的一流表处理方法的流程图;  1a is a flow chart showing a first-class table processing method according to Embodiment 1 of the present invention;
图 lb示出根据本发明实施例 1的另一流表处理方法的流程图;  Figure 1b is a flow chart showing another flow table processing method according to Embodiment 1 of the present invention;
图 2示出根据本发明实施例 2的一流表处理方法的流程图;  2 is a flow chart showing a first-class table processing method according to Embodiment 2 of the present invention;
图 3示出根据本发明实施例 3的一流表处理方法的流程图;  Figure 3 is a flow chart showing a first-class table processing method according to Embodiment 3 of the present invention;
图 4示出根据本发明实施例 4的一流表处理方法的流程图;  4 is a flow chart showing a first-class table processing method according to Embodiment 4 of the present invention;
图 5a示出了本发明的实施例 5的一流表处理装置的框图;  Figure 5a is a block diagram showing a state-of-the-art table processing apparatus of Embodiment 5 of the present invention;
图 5b示出了本发明的实施例 5的另一流表处理装置的框图;  Figure 5b is a block diagram showing another flow table processing apparatus of Embodiment 5 of the present invention;
图 6示出了本发明的实施例 6的一流表处理装置的框图。 具体实舫式  Fig. 6 is a block diagram showing a state-of-the-art table processing apparatus of Embodiment 6 of the present invention. Concrete implementation
以下将参考附图详细说明本发明的各种示例性实施例、 特征和方面。 附 图中相同的附图标记表示功能相同或相似的元件。尽管在附图中示出了实施 例的各种方面, 但是除非特别指出, 不必按比例绘制附图。  Various exemplary embodiments, features, and aspects of the invention are described in detail below with reference to the drawings. The same reference numerals in the drawings denote the same or similar elements. The various aspects of the embodiments are shown in the drawings, and the drawings are not necessarily drawn to scale unless otherwise indicated.
在这里专用的词"示例性 "意为 "用作例子、 实施例或说明性"。 这里作为 "示例性"所说明的任何实施例不必解释为优于或好于其它实施例。  The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustrative." Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous.
另外, 为了更好的说明本发明, 在下文的具体实施方式中给出了众多的 具体细节。 本领域技术人员应当理解, 没有某些具体细节, 本发明同样可以 实施。 在另外一些实例中, 对于本领域技术人员熟知的方法、 手段、 元件和 电路未作详细描述, 以便于凸显本发明的主旨。  Further, in order to better illustrate the invention, numerous specific details are set forth in the Detailed Description. Those skilled in the art will appreciate that the invention may be practiced without some specific details. In other instances, well-known methods, means, components, and circuits are not described in detail to facilitate the invention.
下面以 OpenFlow (开放流, 以下简称为 OF) 协议为例, 对于使用 SDN 实现控制转发解耦架构的情况, 详细解释如下。  The following takes OpenFlow (Open Flow, hereinafter referred to as OF) as an example. For the case of using SDN to implement the control forwarding decoupling architecture, the following is explained in detail.
OF协议 (OF Protocol ) 是软件可定义网络 (SDN , Software Defined Network) 中的最典型和应用最多的协议, 实现了控制面与转发面的分离。 其中, OF交换机 (Switch) 经由安全通道连接到外部控制器 (Controller) , 说 明 书 The OF Protocol is the most typical and most widely used protocol in the Software Defined Network (SDN), which realizes the separation of the control plane and the forwarding plane. The OF switch (Switch) is connected to an external controller (Controller) via a secure channel. Instruction manual
并通过 OF协议(OF Protocol)与控制器通信。控制器对流表进行查询和管理。 And communicate with the controller through the OF protocol (OF Protocol). The controller queries and manages the flow table.
OF交换机包括一个或多个流表和一组表。 流表中存储了最核心的信息, 来实现查找、转发、统计和过滤等功能。流表包含匹配域、计数器和指令集。 其中,匹配域包括输入接口、数据包头以及由前一个流表确定的元数据(meta data), 用来匹配数据包, 如根据输入的数据包的输入端口、 IPv4目的地址、 以太网源地址等进行匹配。  An OF switch includes one or more flow tables and a set of tables. The flow table stores the most core information to implement functions such as lookup, forwarding, statistics, and filtering. The flow table contains matching fields, counters, and instruction sets. The matching field includes an input interface, a data packet header, and metadata (meta data) determined by the previous flow table, and is used to match the data packet, such as an input port according to the input data packet, an IPv4 destination address, an Ethernet source address, and the like. Make a match.
OF交换机接收到输入的数据包后,从第一个流表开始匹配。如果数据包 在流表中没有匹配到表项, 则数据包会被丢弃或者转发到控制器进行处理。 如果匹配到表项, 则执行表项中的指令, 例如指示数据包跳转到下一个流表 或修改与数据包相关的动作集等, 动作集可以在流表间被累加。 如果匹配的 表项中的指令不再跳转到下一个流表,则匹配结束,并执行动作集中的动作。 动作分为必备动作(如转发报文到指定端口、 封装报文、 解封装报文或丢弃 报文等)和可选动作 (如设置数据包的队列标识符、 指定数据包输出到端口 的哪个队列、 设置或修改不同头域的值等)。  After receiving the input data packet, the OF switch starts matching from the first flow table. If the packet does not match the entry in the flow table, the packet is either discarded or forwarded to the controller for processing. If the entry is matched, the instruction in the entry is executed, for example, indicating that the packet jumps to the next flow table or modify the action set related to the data packet, and the action set can be accumulated between the flow tables. If the instruction in the matching entry no longer jumps to the next flow table, the match ends and the action in the action set is executed. The action is divided into required actions (such as forwarding packets to the specified port, encapsulating packets, decapsulating packets, or dropping packets) and optional actions (such as setting the queue identifier of the packet, specifying the packet output to the port). Which queue, set or modify the value of different header fields, etc.).
下面以系统架构演进 ( System Architecture Evolution , SAE) 网络为例, 对于网络系统中网关具有多个控制面的情况, 详细解释如下。  The following is an example of a System Architecture Evolution (SAE) network. For a case where a gateway has multiple control planes in a network system, the following is explained in detail.
在演进分组系统(Evolved Packet System, EPS演进分组系统)如系统架 构演进 (System Architecture Evolution, SAE) 网络中, SGW既是一个用户 面功能实体, 完成分组数据的路由和转发, 并作为 3GPP系统内的一个数据 锚点, 终止 E-TURAN的接口, 同时在一定地理区域下也是 E-TURAN切换场 景下本地移动性管理的锚点。 PGW是连接外部数据网的网关, 是 3GPP接入 网络和 ^ GPP接入网络之间的用户面锚点。 UE可以通过连接到 PGW并创建 外部分组数据网络 (Packet Data Network, PDN) 链接, 来访问外部 PDN, 其中, 外部 PDN可以是 Intemet、 虚拟私有网络、 IP多媒体业务网络, 或者由 运营商提供的无线应用协议网络。 在实际的网络部署中, 可以对控制面和 / 说 明 书 In an Evolved Packet System (EPS), such as a System Architecture Evolution (SAE) network, the SGW is a user plane functional entity that performs packet data routing and forwarding and acts as a 3GPP system. A data anchor terminates the E-TURAN interface and is also the anchor of local mobility management in the E-TURAN handover scenario under certain geographic areas. The PGW is a gateway that connects to the external data network and is a user plane anchor between the 3GPP access network and the GPP access network. The UE can access the external PDN by connecting to the PGW and creating an external Packet Data Network (PDN) link, where the external PDN can be an Internet, a virtual private network, an IP multimedia service network, or a wireless provided by the operator. Application protocol network. In the actual network deployment, you can control the control plane and / Instruction manual
或转发面进行分离部署或合一部署。 Or the forwarding plane is deployed separately or in combination.
如背景技术部分所述, 对于控制转发解耦架构的网络系统, 在现有技术 中, 当转发面为合一部署而控制面为分离部署时, 可能会导致多个控制面对 同一转发面的控制,从而导致控制策略发生错误,影响网关的正常转发功能。 为了解决上述技术问题, 本发明的发明人创新地提出了一种流表处理方法, 通过转发面将从多个控制面接收的对应于同一 PDN链接的多种流表相关联, 从而实现多个控制面对同一转发面的控制。  As described in the background section, in the network system for controlling the forwarding decoupling architecture, in the prior art, when the forwarding plane is a unified deployment and the control plane is a separate deployment, multiple controls may face the same forwarding plane. Control, which causes an error in the control policy and affects the normal forwarding function of the gateway. In order to solve the above technical problem, the inventors of the present invention have innovatively proposed a flow table processing method for associating a plurality of flow tables corresponding to the same PDN link received from a plurality of control planes through a forwarding plane, thereby realizing a plurality of Controls the control of the same forwarding plane.
下面的实施例中, 在一种可能的实现方式中, 将网关的至少两个控制面 分离部署为 SGW控制面 (SGW-Control Plane , SGW-C ) 和 PGW控制面 (PGW-Control Plane, PGW-C); 将网关的至少两个转发面合一部署, 称为 移动转发面 (Mobile Forwarding Plane, MF) , 其中, MF包括 SGW转发面 (SGW-User Plane, SGW-U) 和 PGW转发面 (PGW-User Plane, PGW-U)。  In the following embodiments, in a possible implementation manner, at least two control planes of the gateway are separately deployed as an SGW control plane (SGW-Control Plane, SGW-C) and a PGW control plane (PGW-Control Plane, PGW). -C); deploying at least two forwarding planes of the gateway together, called Mobile Forwarding Plane (MF), where MF includes SGW-User Plane (SGW-U) and PGW forwarding plane (PGW-User Plane, PGW-U).
实施例 1  Example 1
图 1 a示出根据本发明实施例 1的一流表处理方法的流程图。  Fig. 1a is a flow chart showing a first-class table processing method according to Embodiment 1 of the present invention.
如图 la所示, 该流表处理方法应用于包括一个转发面和多个控制面的控 制转发解耦架构, 主要包括以下步骤:  As shown in FIG. la, the flow table processing method is applied to a control forwarding decoupling architecture including a forwarding plane and multiple control planes, and the following steps are mainly included:
30-40. MF从 SGW-C和 PGW-C接收至少两种流表。  30-40. The MF receives at least two flow tables from the SGW-C and the PGW-C.
举例而言, 对于同一 PDN链接对应的 SGW和 PGW, MF会分别接收到 SGW-C和 PGW-C下发的其各自所管理的该 PDN链接的流表。 其中, SGW-C 下发的流表包括 SGW上行流表和 SGW下行流表, SGW上行流表对应于通用 隧道协议(General Tunnel Protocol, GTP)解封装与封装的处理动作, SGW 下行流表则对应于 GTP封装与 GTP解封装的处理动作。并且, PGW-C下发的 流表也包括 PGW上行流表和 PGW下行流表, PGW上行流表对应于 GTP解封 装的处理动作, PGW下行流表对应于 GTP封装的处理动作。 因此, MF可以 从 SGW-C和 PGW-C接收到上述至少两种流表。例如: MF从 SGW-C和 PGW-C 说 明 书 For example, for the SGW and the PGW corresponding to the same PDN link, the MF receives the flow tables of the PDN links managed by the SGW-C and the PGW-C respectively. The flow table sent by the SGW-C includes an SGW upstream flow table and an SGW downstream flow table, and the SGW upstream flow table corresponds to a general tunnel protocol (GTP) decapsulation and encapsulation processing action, and the SGW downstream flow table is Corresponds to the processing actions of GTP encapsulation and GTP decapsulation. The flow table delivered by the PGW-C also includes a PGW upstream flow table and a PGW downstream flow table. The PGW upstream flow table corresponds to a GTP decapsulation processing operation, and the PGW downstream flow table corresponds to a GTP encapsulation processing operation. Therefore, the MF can receive the above two types of flow tables from the SGW-C and the PGW-C. For example: MF from SGW-C and PGW-C Instruction manual
分别接收到 SGW上行流表和 PGW上行流表, 或 MF从 SGW-C和 PGW-C分别 接收到 SGW下行流表和 PGW下行流表。 The SGW upstream flow table and the PGW upstream flow table are respectively received, or the MF receives the SGW downstream flow table and the PGW downstream flow table from the SGW-C and the PGW-C, respectively.
50、 MF将对应于同一 PDN链接的所述至少两种流表相关联。  50. The MF associates the at least two flow tables corresponding to the same PDN link.
举例而言, MF根据流表的隧道端点标识符 (Tunnel Endpoint Identity, For example, the MF is based on the tunnel endpoint identifier of the flow table (Tunnel Endpoint Identity,
TEID)值来判断流表是否属于同一 PDN链接。如果多个流表的 TEID值相同, 则其属于同一 PDN链接。 MF可以将对应于同一 PDN链接的流表相关联, 并 且按照关联后的流表执行相应的处理动作。 MF可以采用多种形式, 将对应 于同一 PDN链接的流表相关联。 例如: MF可以将对应于同一 PDN链接的多 个流表融合成一个多级流表;或者将多个流表采用逻辑端口的形式来实现融 合; 或者直接将这种融合设置到流表级别。关联后, 对应于该 PDN链接的上 行报文依次根据 SGW上行流表和 PGW上行流表进行处理, 从而依次执行 GTP解封装、 GTP封装、 GTP解封装的处理动作后发送出去; 对应于该 PDN 链接的下行报文依次根据 SGW下行流表和 PGW下行流表进行处理, 从而依 次执行 GTP封装、 GTP解封装、 GTP封装的处理动作后发送出去。 TEID) value to determine whether the flow table belongs to the same PDN link. If multiple flow tables have the same TEID value, they belong to the same PDN link. The MF may associate a flow table corresponding to the same PDN link, and perform corresponding processing actions according to the associated flow table. The MF can be associated in a variety of forms to associate flow tables corresponding to the same PDN link. For example: MF can merge multiple flow tables corresponding to the same PDN link into one multi-level flow table; or combine multiple flow tables in the form of logical ports; or directly set this fusion to the flow table level. After the association, the uplink packet corresponding to the PDN link is processed according to the SGW upstream flow table and the PGW upstream flow table, and then the GTP decapsulation, GTP encapsulation, and GTP decapsulation processing operations are sequentially performed, and then sent out; corresponding to the PDN. The linked downlink packet is processed according to the SGW downstream flow table and the PGW downstream flow table in sequence, and then the GTP encapsulation, GTP decapsulation, and GTP encapsulation processing operations are sequentially performed and then sent out.
这样,通过转发面将从多个控制面接收的对应于同一 PDN链接的多种流 表相关联, 以在转发面上实现不同控制网元所下发流表的融合, 根据本发明 上述实施例的流表处理方法, 能够有效地避免转发面的控制策略发生错误, 从而实现多个控制面对同一转发面的控制。  In this way, a plurality of flow tables corresponding to the same PDN link received from the multiple control planes are associated by the forwarding plane to implement fusion of the flow table under different control network elements on the forwarding plane, according to the above embodiment of the present invention. The flow table processing method can effectively avoid the error of the control strategy of the forwarding plane, thereby realizing the control of multiple controls facing the same forwarding plane.
图 lb示出根据本发明实施例 1的另一流表处理方法的流程图。  Figure 1b shows a flow chart of another flow table processing method according to Embodiment 1 of the present invention.
在一种可能的实现方式中, 如图 lb所示, 在步骤 30之前, 还包括: In a possible implementation manner, as shown in FIG. 1b, before step 30, the method further includes:
10、 MF获取 SGW-C和 PGW-C的网元类型。 10. The MF obtains the network element types of the SGW-C and the PGW-C.
举例而言, MF从 SGW-C和 PGW-C接收配置信息。在 MF未设置网元类型 的情况下, 则 MF根据该配置信息, 设置当前 MF的 SGW-U的网元类型或 PGW-U的网元类型, 即启用 MF的 SGW网关功能或 PGW网关功能, 并向 SGW-C和 PGW-C返回设置已成功的配置响应。只有在同时启用了 MF的 SGW 说 明 书 For example, the MF receives configuration information from the SGW-C and the PGW-C. If the MF does not set the network element type, the MF sets the network element type of the current MF SGW-U or the network element type of the PGW-U according to the configuration information, that is, the MF SGW gateway function or the PGW gateway function is enabled. And return the set configuration response to SGW-C and PGW-C. Only SGW with MF enabled at the same time Instruction manual
网关功能和 PGW网关功能之后, 才能使用该 MF进行报文转发, 从而该 MF 可以将对应于同一 PDN链接的流表相关联。 After the gateway function and the PGW gateway function, the MF can be used for message forwarding, so that the MF can associate flow tables corresponding to the same PDN link.
20、 MF基于所获取到的网元类型和报文转发方向, 确定流表使用顺序, 其中所述报文转发方向包括上行和下行。  The MF determines the flow table usage order based on the obtained network element type and the packet forwarding direction, where the packet forwarding direction includes uplink and downlink.
举例而言, 在启用 MF的 SGW网关功能或 PGW网关功能之后, 对于 MF 从 SGW-C和 PGW-C分别接收的 SGW上行流表和 PGW上行流表, MF根据流表 的 TEID值,将对应于同一 PDN链接的 SGW上行流表和 PGW上行流表相关联, 并确定上行流表的使用顺序为先 SGW、 再 PGW, 以使得对应于该 PDN链接 的上行报文依次根据 SGW上行流表和 PGW上行流表进行处理, 从而依次执 行 GTP解封装、 GTP封装、 GTP解封装的处理动作后发送出去。 对于 MF从 SGW-C和 PGW-C分别接收的 SGW下行流表和 PGW下行流表, MF根据流表的 TEID值, 将对应于同一 PDN链接的 SGW下行流表和 PGW下行流表相关联, 并确定下行流表的使用顺序为先 PGW、 再 SGW, 以使得对应于该 PDN链接 的下行报文依次根据 SGW下行流表和 PGW下行流表进行处理, 从而依次执 行 GTP封装、 GTP解封装、 GTP封装的处理动作后发送出去。  For example, after the MF-enabled SGW gateway function or the PGW gateway function is enabled, for the SGW upstream flow table and the PGW upstream flow table respectively received by the MF from the SGW-C and the PGW-C, the MF corresponds to the TEID value of the flow table. The SGW upstream flow table of the same PDN link is associated with the PGW upstream flow table, and determines that the usage order of the upstream flow table is the first SGW and the PGW, so that the uplink packet corresponding to the PDN link is sequentially according to the SGW upstream flow table and The PGW upstream flow table performs processing to sequentially perform GTP decapsulation, GTP encapsulation, and GTP decapsulation processing operations, and then sends them out. For the SGW downstream flow table and the PGW downstream flow table respectively received by the MF from the SGW-C and the PGW-C, the MF associates the SGW downstream flow table and the PGW downstream flow table corresponding to the same PDN link according to the TEID value of the flow table. And determining that the downlink flow table is used in the first PGW and the SGW, so that the downlink packet corresponding to the PDN link is processed according to the SGW downstream table and the PGW downstream flow table in sequence, thereby sequentially performing GTP encapsulation, GTP decapsulation, and The processing of the GTP encapsulation is sent out.
这样,通过所述转发面获取各所述控制面的网元类型, 并据此确定所述 流表的关联顺序,根据本发明上述实施例的流表处理方法, 能够在转发面从 多个控制面接收多种流表后, 基于所确定的流表使用顺序, 将对应于同一 PDN链接的多种流表相关联,有效地避免转发面的控制策略发生错误,从而 实现多个控制面对同一转发面的控制。  In this way, the network element type of each control plane is obtained by the forwarding plane, and the association order of the flow table is determined according to the foregoing, and the flow table processing method according to the foregoing embodiment of the present invention can control multiple times on the forwarding plane. After receiving a plurality of flow tables, the plurality of flow tables corresponding to the same PDN link are associated according to the determined use order of the flow table, thereby effectively avoiding an error in the control strategy of the forwarding surface, thereby implementing multiple controls facing the same Control of the forwarding surface.
实施例 2  Example 2
图 2示出根据本发明实施例 2的一流表处理方法的流程图。 图 2中标号与 图 1 ~图11)相同的组件具有相同的功能, 为简明起见, 省略对这些组件的详 细说明。  Fig. 2 is a flow chart showing a first-class table processing method according to Embodiment 2 of the present invention. The same components in Fig. 2 as those in Figs. 1 to 11 have the same functions, and a detailed description of these components will be omitted for the sake of brevity.
如图 2所示, 图 2所示的方法与图 1 ~图11)所示的方法的主要区别在于: 说 明 书 As shown in FIG. 2, the main difference between the method shown in FIG. 2 and the method shown in FIG. 1 to FIG. 11 is: Instruction manual
转发面将对应于同一 PDN链接的多种流表构建为多级流表。 The forwarding plane constructs a plurality of flow tables corresponding to the same PDN link as a multi-level flow table.
具言之, 本实施例的流表处理方法的具体流程如下:  In other words, the specific process of the flow table processing method in this embodiment is as follows:
21、 SGW-C向 MF发送"设置 SGW-C配置"的消息, 以设置当前的 SGW-U 的网元类型为服务网关。  21. The SGW-C sends a message "Set SGW-C Configuration" to the MF to set the current SGW-U network element type as the serving gateway.
22、 如果当前的 SGW-U未进行类型设置, 则 MF向 SGW-C返回 "设置 SGW-C配置已成功" 的消息, 以响应设置成功。  22. If the current SGW-U is not type set, the MF returns a message "Set SGW-C configuration succeeded" to the SGW-C in response to the setting being successful.
23、 PGW-C在向 MF发送 "设置 PGW-C配置" 的消息, 以设置当前的 PGW-U的网元类型为数据网关。  23. The PGW-C sends a message "Set PGW-C Configuration" to the MF to set the current PGW-U network element type to the data gateway.
24、 如果当前的 PGW-U未进行类型设置, 则 MF向 PGW-C返回 "设置 PGW-C配置已成功" 的消息, 以响应设置成功。  24. If the current PGW-U is not type set, the MF returns a message "Set PGW-C configuration succeeded" to the PGW-C in response to the setting being successful.
举例而言, 若 MF从 SGW-C接收 "设置 SGW-C配置" 的配置消息, 并且 MF未设置当前 SGW-U的网元类型, 即未启用 MF的 SGW网关功能, 则 MF设 置当前 SGW-U的网元类型为 SGW-U, 从而启用了 MF的 SGW网关功能, 并向 SGW-C返回 "设置 SGW-C配置已成功"的配置响应。若 MF从 PGW-C接收"设 置 PGW-C配置" 的配置消息, 并且 MF未设置当前 PGW-U的网元类型, 即未 启用 MF的 PGW网关功能, 则 MF设置当前 PGW-U的网元类型为 PGW-U, 从 而启用了 MF的 PGW网关功能, 并向 PGW-C返回 "设置 PGW-C配置已成功" 的配置响应。  For example, if the MF receives the configuration message of "Set SGW-C Configuration" from the SGW-C, and the MF does not set the network element type of the current SGW-U, that is, the SGW gateway function of the MF is not enabled, the MF sets the current SGW- The network element type of U is SGW-U, so that the SGW gateway function of MF is enabled, and the configuration response of "Setting SGW-C configuration succeeded" is returned to SGW-C. If the MF receives the configuration message of "Set PGW-C Configuration" from the PGW-C, and the MF does not set the network element type of the current PGW-U, that is, the PGW gateway function of the MF is not enabled, the MF sets the network element of the current PGW-U. The type is PGW-U, which enables the PGW gateway function of MF and returns the configuration response of "Set PGW-C configuration succeeded" to PGW-C.
30-40. MF从 SGW-C和 PGW-C接收至少两种流表。  30-40. The MF receives at least two flow tables from the SGW-C and the PGW-C.
25、 若 MF的 SGW-U和 PGW-U分别接收到 SGW-C和 PGW-C下发的流表, 对于对应于同一 PDN链接的流表, MF采用多级流表的形式相关联。  25. If the SGW-U and the PGW-U of the MF receive the flow table delivered by the SGW-C and the PGW-C respectively, the MF is associated with the flow table corresponding to the same PDN link in the form of a multi-level flow table.
举例而言, 对于 MF从 S GW- C和 PG W- C分别接收的 S G W上行流表和 PGW上行流表, MF根据流表的 TEID值, 将对应于同一 PDN链接的 SGW上 行流表和 PGW上行流表相关联, 并且确定第一顺序为先 SGW、 再 PGW, 从 而将对应于该 PDN链接的多个上行流表构建为一个多级上行流表。 对于从 说 明 书 For example, for the SGW upstream flow table and the PGW upstream flow table respectively received by the MF from the S GW-C and the PG W-C, the MF will correspond to the SGW upstream flow table and the PGW of the same PDN link according to the TEID value of the flow table. The upstream table is associated, and the first sequence is determined to be the first SGW and then the PGW, so that the plurality of upstream tables corresponding to the PDN link are constructed as one multi-level upstream table. For from Description
SGW-C和 PGW-C分别接收的 SGW下行流表和 PGW下行流表, MF根据流表 的 TEID值, 将对应于同一 PDN链接的 SGW下行流表和 PGW下行流表相关 联, 并且确定第二顺序为先 PGW、 再 SGW, 从而将对应于该 PDN链接的多 个下行流表构建为一个多级下行流表。  The SGW downstream flow table and the PGW downstream flow table respectively received by the SGW-C and the PGW-C, and the MF associates the SGW downstream flow table and the PGW downstream flow table corresponding to the same PDN link according to the TEID value of the flow table, and determines the first The second sequence is the first PGW and then the SGW, so that the plurality of downstream tables corresponding to the PDN link are constructed as one multi-level downstream table.
26、 在 MF将对应于同一 PDN链接的流表关联后, 进行后续的数据传输。 举例而言, 对于对应于该 PDN链接的上行报文, MF根据关联后的多级 上行流表, 将该上行报文按照第一顺序依次经过 SGW上行流表和 PGW上行 流表, 从而依次执行 GTP解封装、 GTP封装、 GTP解封装的处理动作后发送 出去。 对于对应于该 PDN链接的下行报文, MF根据关联后的多级下行流表, 将该下行报文按照第二顺序依次经过 SGW下行流表和 PGW下行流表, 从而 依次执行 GTP封装、 GTP解封装、 GTP封装的处理动作后发送出去。  26. After the MF associates the flow tables corresponding to the same PDN link, subsequent data transmission is performed. For example, for the uplink packet corresponding to the PDN link, the MF sequentially passes the SGW upstream flow table and the PGW upstream flow table in the first order according to the associated multi-level upstream flow table, so as to execute sequentially. GTP decapsulation, GTP encapsulation, and GTP decapsulation processing are sent out. For the downlink packet corresponding to the PDN link, the MF sequentially passes the SGW downstream flow table and the PGW downstream flow table according to the associated multi-level downstream flow table, thereby sequentially performing GTP encapsulation and GTP. Decapsulation, GTP encapsulation processing is sent out.
这样, 通过转发面将对应于同一 PDN链接的多种流表构建为多级流表, 根据本发明上述实施例的流表处理方法, 能够使对应于同一 PDN链接的报文 执行该多级流表的处理动作, 从而实现多个控制面对同一转发面的控制, 以 完成报文的传输。  In this way, a plurality of flow tables corresponding to the same PDN link are constructed as a multi-stage flow table by the forwarding plane, and the flow table processing method according to the above embodiment of the present invention can enable the multi-level flow to be performed on the message corresponding to the same PDN link. The processing action of the table, so that multiple controls face the same forwarding plane control to complete the transmission of the message.
实施例 3  Example 3
图 3示出根据本发明实施例 3的一流表处理方法的流程图。 图 3中标号与 图 1 ~图2相同的组件具有相同的功能, 为简明起见, 省略对这些组件的详细 说明。  Fig. 3 is a flow chart showing a method of processing a top-level table according to Embodiment 3 of the present invention. The components in Fig. 3 having the same reference numerals as those in Figs. 1 to 2 have the same functions, and a detailed description of these components will be omitted for the sake of brevity.
如图 3所示, 图 3所示的方法与图 1 ~图2所示方法的主要区别在于: 转发 面将对应于同一 PDN链接的多种流表采用逻辑端口的形式实现融合,即利用 逻辑端口构建多级流表。  As shown in FIG. 3, the main difference between the method shown in FIG. 3 and the method shown in FIG. 1 to FIG. 2 is that: the forwarding plane implements fusion by using a logical port in a plurality of flow tables corresponding to the same PDN link, that is, using logic. The port builds a multi-level flow table.
具言之, 本实施例的流表处理方法的具体流程如下:  In other words, the specific process of the flow table processing method in this embodiment is as follows:
31、 SGW-C向 MF发送"设置 SGW-C配置"的消息, 以设置当前的 SGW-U 的网元类型为服务网关。 说 明 书 31. The SGW-C sends a message “Set SGW-C Configuration” to the MF to set the current SGW-U network element type as the serving gateway. Instruction manual
32、 如果当前的 SGW-U未进行类型设置, 则 MF向 SGW-C返回 "设置 SGW-C配置已成功" 的消息, 以响应设置成功。  32. If the current SGW-U is not type set, the MF returns a message "Set SGW-C configuration succeeded" to the SGW-C in response to the setting being successful.
33、 PGW-C在向 MF发送 "设置 PGW-C配置" 的消息, 以设置当前的 PGW-U的网元类型为数据网关。  33. The PGW-C sends a message "Set PGW-C Configuration" to the MF to set the current PGW-U network element type as the data gateway.
34、 如果当前的 PGW-U未进行类型设置, 则 MF向 PGW-C返回 "设置 PGW-C配置已成功" 的消息, 以响应设置成功。  34. If the current PGW-U is not type set, the MF returns a message "Set PGW-C configuration succeeded" to the PGW-C in response to the setting being successful.
30-40. MF从 SGW-C和 PGW-C接收至少两种流表。  30-40. The MF receives at least two flow tables from the SGW-C and the PGW-C.
35、 若 MF的 SGW-U和 PGW-U分别接收到 SGW-C和 PGW-C下发的流表, 对于对应于同一 PDN链接的流表, MF采用逻辑端口的形式相关联。  35. If the SGW-U and the PGW-U of the MF receive the flow table delivered by the SGW-C and the PGW-C respectively, the MF is associated with the logical port in the flow table corresponding to the same PDN link.
举例而言,对于 MF从 SGW-C接收的 SGW上行流表, MF根据流表的 TEID 值, 将对应于同一 PDN链接的上行流表按第三顺序为 SGW到 PGW排序, 即 将 SGW上行流表的输出端口设置为 MF中对应于该 PDN链接的逻辑端口, 并 将 PGW上行流表的输入端口设置为该逻辑端口,从而利用逻辑端口构建多级 上行流表。对于 MF从 PGW-C接收的 PGW下行流表, MF根据流表的 TEID值, 将对应于同一 PDN链接的下行流表按第四顺序为 PGW到 SGW排序, 即将 PGW下行流表的输出端口设置为 MF中对应于该 PDN链接的逻辑端口, 并将 SGW下行流表的输入端口设置为该逻辑端口,从而利用逻辑端口构建多级下 行流表。  For example, for the SGW upstream flow table received by the MF from the SGW-C, the MF sorts the upstream flow table corresponding to the same PDN link in the third order from the SGW to the PGW according to the TEID value of the flow table, that is, the SGW upstream flow table. The output port is set to the logical port corresponding to the PDN link in the MF, and the input port of the PGW upstream table is set as the logical port, thereby constructing the multi-level upstream table by using the logical port. For the PGW downstream flow table received by the MF from the PGW-C, the MF sorts the downstream flow table corresponding to the same PDN link in the fourth order from the PGW to the SGW according to the TEID value of the flow table, that is, sets the output port of the PGW downstream flow table. It is a logical port corresponding to the PDN link in the MF, and the input port of the SGW downstream table is set as the logical port, thereby constructing a multi-level downstream table by using the logical port.
36、在 MF将对应于同一 PDN链接的流表关联后, 进行后续的数据传输。 举例而言, 对于对应于该 PDN链接的 SGW上行报文, 经由 MF对应的逻 辑端口实现内部转发, 匹配到后续的 PGW上行流表, 从而依次执行 GTP解 封装、 GTP封装、 GTP解封装的处理动作后发送出去。 对于对应于该 PDN链 接的 PGW下行报文, 经由 MF对应的逻辑端口实现内部转发, 匹配到后续的 SGW下行流表, 从而依次执行 GTP封装、 GTP解封装、 GTP封装的处理动作 后发送出去。 说 明 书 36. After the MF associates the flow tables corresponding to the same PDN link, subsequent data transmission is performed. For example, the SGW uplink packet corresponding to the PDN link is internally forwarded through the logical port corresponding to the MF, and matched to the subsequent PGW upstream flow table, thereby sequentially performing GTP decapsulation, GTP encapsulation, and GTP decapsulation processing. Send it after the action. The PGW downlink packet corresponding to the PDN link is internally forwarded through the logical port corresponding to the MF, and matched to the subsequent SGW downstream flow table, so that the GTP encapsulation, GTP decapsulation, and GTP encapsulation processing operations are sequentially performed and then sent out. Instruction manual
这样, 通过转发面将对应于同一 PDN链接的 SGW上行流表或 PGW下行 流表的报文都发送到转发面自身的逻辑端口, 根据本发明上述实施例的流表 处理方法, 能够使对应于同一 PDN链接的上行报文或下行报文经由逻辑端口 的内部转发, 再执行后续上行流表或下行流表的处理动作, 从而实现多个控 制面对同一转发面的控制, 以完成报文传输。  In this way, the packets of the SGW upstream flow table or the PGW downstream flow table corresponding to the same PDN link are sent to the logical port of the forwarding plane itself through the forwarding plane, and the flow table processing method according to the above embodiment of the present invention can make corresponding to The uplink packet or the downlink packet of the same PDN link is forwarded through the internal port of the logical port, and then the processing action of the subsequent upstream table or the downstream flow table is performed, so that multiple control faces the same forwarding plane control to complete the packet transmission. .
实施例 4  Example 4
图 4示出根据本发明实施例 4的一流表处理方法的流程图。 图 4中标号与 图 1 ~图3相同的组件具有相同的功能, 为简明起见, 省略对这些组件的详细 说明。  Fig. 4 is a flow chart showing a method of processing a top-level table according to Embodiment 4 of the present invention. The components in Fig. 4 having the same reference numerals as those in Figs. 1 to 3 have the same functions, and a detailed description of these components will be omitted for the sake of brevity.
如图 4所示, 图 4所示的方法与图 1 ~图3所示的方法的主要区别在于: 将 对应于同一 PDN链接的多种流表直接融合成一个流表。  As shown in FIG. 4, the main difference between the method shown in FIG. 4 and the methods shown in FIG. 1 to FIG. 3 is that a plurality of flow tables corresponding to the same PDN link are directly merged into one flow table.
具言之, 本实施例的流表处理方法的具体流程如下:  In other words, the specific process of the flow table processing method in this embodiment is as follows:
41、 SGW-C向 MF发送"设置 SGW-C配置"的消息, 以设置当前的 SGW-U 的网元类型为服务网关。  The SGW-C sends a message "Set SGW-C Configuration" to the MF to set the current SGW-U network element type as the serving gateway.
42、 如果当前的 SGW-U未进行类型设置, 则 MF向 SGW-C返回 "设置 SGW-C配置已成功" 的消息, 以响应设置成功。  42. If the current SGW-U is not type set, the MF returns a message "Set SGW-C configuration succeeded" to the SGW-C in response to the setting being successful.
43、 PGW-C在向 MF发送 "设置 PGW-C配置" 的消息, 以设置当前的 PGW-U的网元类型为数据网关。  43. The PGW-C sends a message “Set PGW-C Configuration” to the MF to set the current PGW-U network element type to the data gateway.
44、 如果当前的 PGW-U未进行类型设置, 则 MF向 PGW-C返回 "设置 PGW-C配置已成功" 的消息, 以响应设置成功。  44. If the current PGW-U is not type set, the MF returns a message "Set PGW-C configuration succeeded" to the PGW-C in response to the setting being successful.
30-40. MF从 SGW-C和 PGW-C接收至少两种流表。  30-40. The MF receives at least two flow tables from the SGW-C and the PGW-C.
45、 若 MF的 SGW-U和 PGW-U分别接收到 SGW-C和 PGW-C下发的流表, 对于对应于同一 PDN链接的流表, MF将多个流表直接融合成一个流表。  45. If the SGW-U and the PGW-U of the MF receive the flow table delivered by the SGW-C and the PGW-C respectively, the MF directly merges the multiple flow tables into one flow table for the flow table corresponding to the same PDN link. .
举例而言,对于 MF从 SGW-C和 PGW-C分别接收的 SGW上行流表和 PGW 上行流表, MF根据流表的 TEID值, 将对应于同一 PDN链接的 SGW上行流表 说 明 书 For example, for the SGW upstream flow table and the PGW upstream flow table respectively received by the MF from the SGW-C and the PGW-C, the MF will correspond to the SGW upstream flow table of the same PDN link according to the TEID value of the flow table. Description
和 PGW上行流表直接融合为一个上行流表,该融合后的上行流表可以直接执 行 PGW上行流表的 GTP解封装的处理动作,从而省去了 SGW上行流表的 GTP 解封装和 GTP封装的处理动作。 对于从 SGW-C和 PGW-C分别接收的 SGW下 行流表和 PGW下行流表, MF根据流表的 TEID值, 将对应于同一 PDN链接的 SGW下行流表和 PGW下行流表直接融合为一个下行流表, 该融合后的下行 流表可以直接执行 PGW下行流表的 GTP封装的处理动作, 从而省去了 SGW 下行流表的 GTP封装和 GTP解封装的处理动作。 The PGW upstream table is directly merged into an upstream table, and the fused upstream table can directly perform the GTP decapsulation processing of the PGW upstream table, thereby eliminating the GTP decapsulation and GTP encapsulation of the SGW upstream table. Processing action. For the SGW downstream table and the PGW downstream flow table respectively received from the SGW-C and the PGW-C, the MF directly merges the SGW downstream table and the PGW downstream flow table corresponding to the same PDN link into one according to the TEID value of the flow table. The downstream flow table can directly perform the processing operation of the GTP encapsulation of the PGW downstream flow table, thereby eliminating the GTP encapsulation and GTP decapsulation processing actions of the SGW downstream flow table.
在一种可能的实现方式中,在流表融合之后,对于从各所述控制面接收 到的上行流表,所述转发面保留从各所述控制面接收到的上行流表; 所述转 发面根据对所接收到的上行流表的操作, 对所述融合的上行流表进行更新。  In a possible implementation manner, after the flow table is merged, for the upstream flow table received from each of the control planes, the forwarding plane retains an upstream flow table received from each of the control planes; The fused upstream table is updated according to an operation on the received upstream table.
在一种可能的实现方式中,在流表融合之后,对于从各所述控制面接收 到的下行流表,所述转发面保留从各所述控制面接收到的下行流表; 所述转 发面根据对所接收到的下行流表的操作, 对所述融合的下行流表进行更新。  In a possible implementation manner, after the flow table is merged, for the downstream flow table received from each of the control planes, the forwarding plane retains a downstream flow table received from each of the control planes; The merged downstream table is updated according to the operation of the received downstream table.
这样, 在流表融合后, 原始的流表记录依然保留下来。如果后续需要对 流表进行管理,例如对流表进行修改或者删除,所述转发面可以根据原始的 流表信息,对融合后的流表进行相应的解融合处理, 并且根据对所接收到的 上行流表或下行流表的操作, 对所述融合的上行流表或下行流表进行更新。  Thus, after the flow table is merged, the original flow table record remains. If the flow table needs to be managed, for example, the flow table is modified or deleted, the forwarding plane may perform corresponding de-fusion processing on the merged flow table according to the original flow table information, and according to the received upstream flow. The operation of the table or the downstream table updates the fused upstream table or the downstream table.
46、在 MF将对应于同一 PDN链接的流表融合后, 进行后续的数据传输。 举例而言, 对于对应于该 PDN链接的上行报文, MF根据融合后的上行 流表, 直接执行 PGW上行流表的 GTP解封装的处理动作后, 将上行报文发 送出去。 对于对应于该 PDN链接的下行报文, MF根据融合后的下行流表, 直接执行 PGW下行流表的 GTP封装的处理动作后, 将下行报文发送出去。  46. After the MF merges the flow tables corresponding to the same PDN link, subsequent data transmission is performed. For example, for the uplink packet corresponding to the PDN link, the MF directly performs the GTP decapsulation processing operation of the PGW upstream flow table according to the merged upstream table, and then sends the uplink packet. For the downlink packet corresponding to the PDN link, the MF directly performs the GTP encapsulation processing operation of the PGW downstream flow table according to the merged downstream flow table, and then sends the downlink packet.
这样, 通过将对应于同一 PDN链接的将多个流表直接融合成一个流表, 根据本发明上述实施例的流表处理方法, 能够使对应于同一 PDN链接的报文 执行单一流表的处理动作, 从而实现多个控制面对同一转发面的控制, 以完 说 明 书 In this way, by directly merging the plurality of flow tables into one flow table corresponding to the same PDN link, according to the flow table processing method of the above embodiment of the present invention, the processing of the single flow table corresponding to the message corresponding to the same PDN link can be performed. Action, thereby implementing multiple controls to face the same forwarding surface control, to complete Description
成报文的传输。 The transmission of the message.
实施例 5  Example 5
图 5a示出了本发明的实施例 5的一流表处理装置的框图。 如图 5a所示, 该流表处理装置主要包括接收单元 510和关联单元 520。 其中, 接收单元 510, 用于使所述转发面从所述至少两个控制面接收至少两种流表。关联单元 520, 与所述接收单元 510连接, 用于使所述转发面将对应于同一 PDN链接的所述 至少两种流表相关联, 以使得对应于同一 PDN链接的报文按照预定的流表使 用顺序依次根据所述至少两种流表进行处理后发送出去。  Fig. 5a is a block diagram showing a state-of-the-art table processing apparatus of Embodiment 5 of the present invention. As shown in FIG. 5a, the flow table processing apparatus mainly includes a receiving unit 510 and an associating unit 520. The receiving unit 510 is configured to enable the forwarding plane to receive at least two flow tables from the at least two control planes. The association unit 520 is connected to the receiving unit 510, configured to enable the forwarding plane to associate the at least two flow tables corresponding to the same PDN link, so that the packets corresponding to the same PDN link are in accordance with a predetermined flow. The table usage order is sequentially processed according to the at least two flow tables and then sent out.
图 5b示出了本发明的实施例 5的另一流表处理装置的框图。 图 5b中标号 与图 5a相同组件具有相同的功能,为简明起见,省略对这些组件的详细说明。  Fig. 5b is a block diagram showing another flow table processing apparatus of Embodiment 5 of the present invention. The same components as in Fig. 5a have the same functions, and a detailed description of these components will be omitted for the sake of brevity.
在一种可能的实现方式中, 如图 5b所示, 该流表处理装置还包括获取单 元 530和确定单元 540。 其中, 获取单元 530, 用于使所述转发面获取各所述 控制面的网元类型。 确定单元 540, 与所述获取单元 530和所述关联单元 510 连接, 用于使所述转发面基于所获取到的网元类型以及报文转发方向, 确定 所述流表使用顺序, 其中所述报文转发方向包括上行和下行。  In a possible implementation manner, as shown in FIG. 5b, the flow table processing apparatus further includes an obtaining unit 530 and a determining unit 540. The obtaining unit 530 is configured to enable the forwarding plane to obtain a network element type of each of the control planes. The determining unit 540 is connected to the obtaining unit 530 and the associated unit 510, and configured to determine, by the forwarding plane, the flow table usage order, based on the acquired network element type and a packet forwarding direction, where The packet forwarding direction includes uplink and downlink.
其中, 上述流表处理装置用于实现流表处理的具体机制和有益效果, 可 以参考图 1 ~图11)及其相关描述。  The flow table processing device is used to implement the specific mechanism and beneficial effects of the flow table processing, and may refer to FIG. 1 to FIG. 11 and related descriptions.
在一种可能的实现方式中, 关联单元 520被配置为: 对于从各所述控制 面接收到的上行流表, 使所述转发面根据所接收到的上行流表的 TEID值, 将对应于同一 PDN链接的上行流表构建为一个多级上行流表,以使得对应于 同一 PDN链接的上行报文按第一顺序依次根据所述至少两种流表进行处理 后发送出去; 或者, 对于从各所述控制面接收到的下行流表, 使所述转发面 根据所接收到的下行流表的 TEID值, 将对应于同一 PDN链接的下行流表构 建为一个多级下行流表,以使得对应于同一 PDN链接的下行报文按第二顺序 依次根据所述至少两种流表后发送出去, 其中,所述第一顺序和所述第二顺 说 明 书 In a possible implementation, the associating unit 520 is configured to: for the upstream table received from each of the control planes, the forwarding plane is caused to correspond to the TEID value of the received upstream table according to the The upstream table of the same PDN link is configured as a multi-stage upstream table, so that the uplink packets corresponding to the same PDN link are processed according to the at least two flow tables in the first order, and then sent out; a downstream table received by each control plane, so that the forwarding plane constructs a downstream table corresponding to the same PDN link as a multi-stage downstream table according to the TEID value of the received downstream table, so that The downlink packets corresponding to the same PDN link are sent in the second order according to the at least two flow tables, where the first sequence and the second sequence are sent. Description
序互为逆序。 The order is reversed.
在一种可能的实现方式中, 关联单元 520被配置为: 对于从各所述控制 面接收到的上行流表, 使所述转发面根据所接收到的上行流表的 TEID值, 将对应于同一 PDN链接的上行流表按第三顺序排序,将除最后一个上行流表 之外的其它上行流表的输出端口设置为所述转发面的逻辑端口,并将除第一 个上行流表之外的其它上行流表的输入端口设置为所述逻辑端口,以使得对 应于同一 PDN链接的上行报文按所述第三顺序依次根据所述至少两种流表 进行处理后发送出去; 或者, 对于从各所述控制面接收到的下行流表, 使所 述转发面根据所接收到的下行流表的 TEID值, 将对应于同一 PDN链接的下 行流表按第四顺序排序,将除最后一个下行流表之外的其它下行流表的输出 端口设置为所述逻辑端口,并将除第一个下行流表之外的其它下行流表的输 入端口设置为所述逻辑端口,以使得对应于同一 PDN链接的下行报文按所述 第四顺序依次根据所述至少两种流表进行处理后发送出去,其中,所述第三 顺序和所述第四顺序互为逆序。  In a possible implementation, the associating unit 520 is configured to: for the upstream table received from each of the control planes, the forwarding plane is caused to correspond to the TEID value of the received upstream table according to the The upstream table of the same PDN link is sorted in the third order, and the output port of the other upstream table except the last upstream table is set as the logical port of the forwarding plane, and the first upstream table is The input port of the other upstream table is set to be the logical port, so that the uplink message corresponding to the same PDN link is processed according to the at least two flow tables in the third order, and then sent out; or For the downstream flow table received from each of the control planes, the forwarding plane is arranged according to the TEID value of the received downstream flow table, and the downstream flow table corresponding to the same PDN link is sorted in the fourth order, except for the last An output port of a downstream table other than a downstream table is set as the logical port, and an input port of a downstream table other than the first downstream table is set to The logical port, so that the downlink packets corresponding to the same PDN link are processed according to the at least two flow tables in the fourth order, and then the third sequence and the fourth sequence are sent out. Mutual reverse order.
在一种可能的实现方式中, 关联单元 520被配置为: 对于从各所述控制 面接收到的上行流表, 使所述转发面根据所接收到的上行流表的 TEID值, 将对应于同一 PDN链接的上行流表融合为一个上行流表,以使得对应于同一 PDN链接的上行报文根据所述融合的上行流表进行处理后发送出去; 或者, 对于从各所述控制面接收到的下行流表,使所述转发面根据所接收到的下行 流表的 TEID值, 将对应于同一 PDN链接的下行流表融合为一个下行流表, 以使得对应于同一 PDN链接的下行报文根据所述融合的下行流表进行处理 后发送出去。  In a possible implementation, the associating unit 520 is configured to: for the upstream table received from each of the control planes, the forwarding plane is caused to correspond to the TEID value of the received upstream table according to the The upstream table of the same PDN link is merged into an upstream flow table, so that the uplink packets corresponding to the same PDN link are processed according to the merged upstream flow table, and are sent out; or, for receiving from the control planes The downstream flow table is configured to enable the forwarding plane to merge the downstream flow table corresponding to the same PDN link into one downstream flow table according to the TEID value of the received downstream flow table, so that the downlink packet corresponding to the same PDN link is configured. Processing is performed according to the merged downstream table and sent out.
在一种可能的实现方式中, 关联单元 520还被配置为: 使所述转发面保 留从各所述控制面接收到的上行流表;使所述转发面根据对所接收到的上行 流表的操作, 对所述融合的上行流表进行更新。 说 明 书 In a possible implementation, the associating unit 520 is further configured to: enable the forwarding plane to retain an upstream table received from each of the control planes; and make the forwarding plane according to the received upstream table The operation updates the merged upstream table. Instruction manual
在一种可能的实现方式中, 关联单元 520还被配置为: 使所述转发面保 留从各所述控制面接收到的下行流表;使所述转发面根据对所接收到的下行 流表的操作, 对所述融合的下行流表进行更新。  In a possible implementation manner, the associating unit 520 is further configured to: enable the forwarding plane to retain a downstream flow table received from each of the control planes; and cause the forwarding plane to follow the received downstream flow table The operation updates the merged downstream table.
在一种可能的实现方式中,所述至少两个控制面包括服务网关控制面和 分组数据网络网关控制面。  In a possible implementation manner, the at least two control planes include a serving gateway control plane and a packet data network gateway control plane.
其中, 上述流表处理装置用于实现流表处理的具体机制和有益效果, 可 以参考图 2~图4及其相关描述。  The flow table processing device is used to implement the specific mechanism and beneficial effects of the flow table processing. Reference may be made to FIG. 2 to FIG. 4 and related descriptions.
实施例 6  Example 6
图 6示出了本发明的实施例 6的一流表处理装置的框图。所述流表处理装 置 1100可以是具备计算能力的主机服务器、个人计算机 PC、或者可携带的便 携式计算机或终端等。 本发明具体实施例不对计算节点的具体实现做限定。  Fig. 6 is a block diagram showing a state-of-the-art table processing apparatus of Embodiment 6 of the present invention. The flow table processing device 1100 may be a host server having a computing capability, a personal computer PC, or a portable portable computer or terminal. The specific embodiment of the present invention does not limit the specific implementation of the computing node.
所述流表处理装置 1100包括处理器(processor)lllO、 通信接口 (Communications Interface) 1120、存储器 (memory)l 130和总线 1140。其中, 处 理器 1110、通信接口 1120、以及存储器 1130通过总线 1140完成相互间的通信。  The flow table processing apparatus 1100 includes a processor 110, a communication interface 1120, a memory 130, and a bus 1140. Among them, the processor 1110, the communication interface 1120, and the memory 1130 complete communication with each other through the bus 1140.
通信接口 1120用于与网络设备通信, 其中网络设备包括例如虚拟机管理 中心、 共享存储等。  Communication interface 1120 is for communicating with network devices, such as virtual machine management centers, shared storage, and the like.
处理器 1110用于执行程序。 处理器 1110可能是一个中央处理器 CPU, 或 者是专用集成电路 ASIC (Application Specific Integrated Circuit) , 或者是被 配置成实施本发明实施例的一个或多个集成电路。  The processor 1110 is for executing a program. The processor 1110 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.
存储器 1130用于存放文件。存储器 1130可能包含高速 RAM存储器,也可 能还包括非易失性存储器 (non- volatile memory), 例如至少一个磁盘存储器。 存储器 1130也可以是存储器阵列。 存储器 1130还可能被分块, 并且所述块可 按一定的规则组合成虚拟卷。  The memory 1130 is used to store files. The memory 1130 may include a high speed RAM memory and may also include a non-volatile memory such as at least one disk memory. Memory 1130 can also be a memory array. The memory 1130 may also be partitioned, and the blocks may be combined into a virtual volume according to certain rules.
在一种可能的实施方式中, 上述程序可以为包括计算机操作指令的程序 代码, 应用于包括一个转发面和至少两个控制面的架构。 该程序具体可用于 说 明 书 In a possible implementation manner, the above program may be a program code including a computer operation instruction, and is applied to an architecture including a forwarding plane and at least two control planes. This program can be used specifically Description
使所述转发面: 从所述至少两个控制面接收至少两种流表; 将对应于同一Having the forwarding plane: receiving at least two flow tables from the at least two control planes;
PDN链接的所述至少两种流表相关联, 以使得对应于同一 PDN链接的报文按 照预定的流表使用顺序依次根据所述至少两种流表进行处理后发送出去。 The at least two flow tables of the PDN link are associated, so that the messages corresponding to the same PDN link are processed and then sent according to the at least two flow tables in the order of use of the predetermined flow table.
在一种可能的实施方式中, 该程序具体还可用于使所述转发面:在所述 转发面从所述至少两个控制面接收至少两种流表之前,获取各所述控制面的 网元类型; 基于所获取到的网元类型以及报文转发方向,确定所述流表使用 顺序, 其中所述报文转发方向包括上行和下行。  In a possible implementation, the program may be further configured to: use the forwarding plane to: acquire a network of each control plane before the forwarding plane receives at least two flow tables from the at least two control planes The source type is determined based on the obtained network element type and the packet forwarding direction, where the packet forwarding direction includes uplink and downlink.
在一种可能的实施方式中, 该程序具体还可用于使所述转发面:对于从 各所述控制面接收到的上行流表, 根据所接收到的上行流表的 TEID值, 将 对应于同一 PDN链接的上行流表构建为一个多级上行流表,以使得对应于同 一 PDN链接的上行报文按第一顺序依次根据所述至少两种流表进行处理后 发送出去; 或者, 对于从各所述控制面接收到的下行流表, 根据所接收到的 下行流表的 TEID值, 将对应于同一 PDN链接的下行流表构建为一个多级下 行流表,以使得对应于同一 PDN链接的下行报文按第二顺序依次根据所述至 少两种流表后发送出去, 其中, 所述第一顺序和所述第二顺序互为逆序。  In a possible implementation, the procedure may be further configured to: the forwarding plane: for an upstream table received from each of the control planes, according to a TEID value of the received upstream table, corresponding to The upstream table of the same PDN link is configured as a multi-stage upstream table, so that the uplink packets corresponding to the same PDN link are processed according to the at least two flow tables in the first order, and then sent out; The downstream flow table received by each control plane, according to the TEID value of the received downstream flow table, constructs a downstream flow table corresponding to the same PDN link as a multi-level downstream flow table, so that corresponding to the same PDN link The downlink packets are sent in the second order according to the at least two flow tables, wherein the first sequence and the second sequence are reversed to each other.
在一种可能的实施方式中, 该程序具体还可用于使所述转发面:对于从 各所述控制面接收到的上行流表, 根据所接收到的上行流表的 TEID值, 将 对应于同一 PDN链接的上行流表按第三顺序排序,将除最后一个上行流表之 外的其它上行流表的输出端口设置为所述转发面的逻辑端口,并将除第一个 上行流表之外的其它上行流表的输入端口设置为所述逻辑端口,以使得对应 于同一 PDN链接的上行报文按所述第三顺序依次根据所述至少两种流表进 行处理后发送出去; 或者, 对于从各所述控制面接收到的下行流表, 根据所 接收到的下行流表的 TEID值, 将对应于同一 PDN链接的下行流表按第四顺 序排序,将除最后一个下行流表之外的其它下行流表的输出端口设置为所述 逻辑端口,并将除第一个下行流表之外的其它下行流表的输入端口设置为所 说 明 书 In a possible implementation, the procedure may be further configured to: the forwarding plane: for an upstream table received from each of the control planes, according to a TEID value of the received upstream table, corresponding to The upstream table of the same PDN link is sorted in the third order, and the output port of the other upstream table except the last upstream table is set as the logical port of the forwarding plane, and the first upstream table is The input port of the other upstream table is set to be the logical port, so that the uplink message corresponding to the same PDN link is processed according to the at least two flow tables in the third order, and then sent out; or For the downstream flow table received from each of the control planes, according to the TEID value of the received downstream flow table, the downstream flow table corresponding to the same PDN link is sorted in the fourth order, and the last downstream flow table is excluded. The output port of the other downstream table is set to the logical port, and the input port of the other downstream table except the first downstream table is set as the Description
述逻辑端口,以使得对应于同一 PDN链接的下行报文按所述第四顺序依次根 据所述至少两种流表进行处理后发送出去,其中,所述第三顺序和所述第四 顺序互为逆序。 The logical port is configured to enable the downlink packets corresponding to the same PDN link to be processed according to the at least two flow tables in the fourth order, wherein the third sequence and the fourth sequence are mutually In reverse order.
在一种可能的实施方式中, 该程序具体还可用于使所述转发面:对于从 各所述控制面接收到的上行流表, 根据所接收到的上行流表的 TEID值, 将 对应于同一 PDN链接的上行流表融合为一个上行流表, 以使得对应于同一 PDN链接的上行报文根据所述融合的上行流表进行处理后发送出去; 或者, 对于从各所述控制面接收到的下行流表, 根据所接收到的下行流表的 TEID 值,将对应于同一 PDN链接的下行流表融合为一个下行流表, 以使得对应于 同一 PDN链接的下行报文根据所述融合的下行流表进行处理后发送出去。  In a possible implementation, the procedure may be further configured to: the forwarding plane: for an upstream table received from each of the control planes, according to a TEID value of the received upstream table, corresponding to The upstream table of the same PDN link is merged into an upstream flow table, so that the uplink packets corresponding to the same PDN link are processed according to the merged upstream flow table, and are sent out; or, for receiving from the control planes The downstream flow table, according to the TEID value of the received downstream flow table, merges the downstream flow table corresponding to the same PDN link into one downstream flow table, so that the downlink packets corresponding to the same PDN link are according to the merged The downstream flow table is processed and sent out.
在一种可能的实施方式中, 该程序具体还可用于使所述转发面:在所述 将对应于同一 PDN链接的上行流表融合为一个上行流表之后,保留从各所述 控制面接收到的上行流表; 根据对所接收到的上行流表的操作,对所述融合 的上行流表进行更新。  In a possible implementation, the procedure may be further configured to: the forwarding plane: after the merging the upstream table corresponding to the same PDN link into one upstream table, retaining receiving from each of the control planes Upstream flow table to; update the merged upstream table according to the operation of the received upstream table.
在一种可能的实施方式中, 该程序具体还可用于使所述转发面:在所述 将对应于同一 PDN链接的下行流表融合为一个下行流表之后,保留从各所述 控制面接收到的下行流表; 根据对所接收到的下行流表的操作,对所述融合 的下行流表进行更新。  In a possible implementation, the procedure may be further configured to: the forwarding plane: after the downstream table corresponding to the same PDN link is merged into one downstream table, retaining receiving from each of the control planes The downstream flow table to which the convergence is performed; the merged downstream flow table is updated according to the operation of the received downstream flow table.
在一种可能的实施方式中,所述至少两个控制面包括服务网关控制面和 分组数据网络网关控制面。  In a possible implementation manner, the at least two control planes include a serving gateway control plane and a packet data network gateway control plane.
本领域普通技术人员可以意识到, 本文所描述的实施例中的各示例性单 元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。 这些功能究竟以硬件还是软件形式来实现,取决于技术方案的特定应用和设 计约束条件。专业技术人员可以针对特定的应用选择不同的方法来实现所描 述的功能, 但是这种实现不应认为超出本发明的范围。 说 明 书 Those of ordinary skill in the art will appreciate that the various exemplary units and algorithm steps in the embodiments described herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can select different methods for implementing the described functions for a particular application, but such implementation should not be considered to be beyond the scope of the present invention. Instruction manual
如果以计算机软件的形式来实现所述功能并作为独立的产品销售或使 用时, 则在一定程度上可认为本发明的技术方案的全部或部分(例如对现有 技术做出贡献的部分)是以计算机软件产品的形式体现的。 该计算机软件产 品通常存储在计算机可读取的非易失性存储介质中, 包括若干指令用以使得 计算机设备(可以是个人计算机、 服务器、 或者网络设备等)执行本发明各 实施例方法的全部或部分步骤。 而前述的存储介质包括 U盘、 移动硬盘、 只 读存储器 (ROM, Read-Only Memory )、 随机存取存储器 (RAM, Random Access Memory) , 磁碟或者光盘等各种可以存储程序代码的介质。  If the function is implemented in the form of computer software and sold or used as a stand-alone product, it may be considered to some extent that all or part of the technical solution of the present invention (for example, a part contributing to the prior art) is It is embodied in the form of computer software products. The computer software product is typically stored in a computer readable non-volatile storage medium, including instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform all of the methods of various embodiments of the present invention. Or part of the steps. The foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应所述以权利要求的保护范围为准。  The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权 利 要 求 书 claims
1、 一种流表处理方法, 应用于包括一个转发面和至少两个控制面的架 构, 其特征在于, 包括: 1. A flow table processing method, applied to an architecture including one forwarding plane and at least two control planes, characterized in that it includes:
所述转发面从所述至少两个控制面接收至少两种流表; The forwarding plane receives at least two flow tables from the at least two control planes;
所述转发面将对应于同一分组数据网络链接的所述至少两种流表相关 联,以使得对应于同一分组数据网络链接的报文按照预定的流表使用顺序依 次根据所述至少两种流表进行处理后发送出去。 The forwarding plane associates the at least two flow tables corresponding to the same packet data network link, so that the messages corresponding to the same packet data network link are sequentially processed according to the at least two flows according to a predetermined flow table usage sequence. The table is processed and sent out.
2、 根据权利要求 1所述的流表处理方法, 其特征在于, 在所述转发面从 所述至少两个控制面接收至少两种流表之前, 还包括: 2. The flow table processing method according to claim 1, characterized in that, before the forwarding plane receives at least two flow tables from the at least two control planes, it further includes:
所述转发面获取各所述控制面的网元类型; The forwarding plane obtains the network element type of each control plane;
所述转发面基于所获取到的网元类型以及报文转发方向,确定所述流表 使用顺序, 其中所述报文转发方向包括上行和下行。 The forwarding plane determines the order in which the flow table is used based on the obtained network element type and packet forwarding direction, where the packet forwarding direction includes uplink and downlink.
3、 根据权利要求 1或 2所述的流表处理方法, 其特征在于, 所述转发面 将对应于同一分组数据网络链接的所述至少两种流表相关联, 包括: 3. The flow table processing method according to claim 1 or 2, characterized in that the forwarding plane associates the at least two flow tables corresponding to the same packet data network link, including:
对于从各所述控制面接收到的上行流表,所述转发面根据所接收到的上 行流表的隧道端点标识符,将对应于同一分组数据网络链接的上行流表构建 为一个多级上行流表,以使得对应于同一分组数据网络链接的上行报文按第 一顺序依次根据所述至少两种流表进行处理后发送出去; 或者, For the upstream flow table received from each of the control planes, the forwarding plane constructs the upstream flow table corresponding to the same packet data network link as a multi-level upstream flow table according to the tunnel endpoint identifier of the received upstream flow table. Flow tables, so that upstream messages corresponding to the same packet data network link are processed in the first order according to the at least two flow tables and then sent out; or,
对于从各所述控制面接收到的下行流表,所述转发面根据所接收到的下 行流表的隧道端点标识符,将对应于同一分组数据网络链接的下行流表构建 为一个多级下行流表,以使得对应于同一分组数据网络链接的下行报文按第 二顺序依次根据所述至少两种流表后发送出去, For the downstream flow table received from each of the control planes, the forwarding plane constructs the downstream flow table corresponding to the same packet data network link as a multi-level downstream flow table according to the tunnel endpoint identifier of the received downstream flow table. flow tables, so that downlink messages corresponding to the same packet data network link are sent out in a second order according to the at least two flow tables,
其中, 所述第一顺序和所述第二顺序互为逆序。 Wherein, the first order and the second order are reverse orders of each other.
4、 根据权利要求 1或 2所述的流表处理方法, 其特征在于, 所述转发面 将对应于同一分组数据网络链接的所述至少两种流表相关联, 包括: 4. The flow table processing method according to claim 1 or 2, characterized in that the forwarding plane associates the at least two flow tables corresponding to the same packet data network link, including:
对于从各所述控制面接收到的上行流表,所述转发面根据所接收到的上 权 利 要 求 书 For the upstream flow table received from each of the control planes, the forwarding plane Claims
行流表的 TEID值, 将对应于同一分组数据网络链接的上行流表按第三顺序 排序,将除最后一个上行流表之外的其它上行流表的输出端口设置为所述转 发面的逻辑端口,并将除第一个上行流表之外的其它上行流表的输入端口设 置为所述逻辑端口,以使得对应于同一分组数据网络链接的上行报文按所述 第三顺序依次根据所述至少两种流表进行处理后发送出去; 或者, TEID value of the upstream flow table, sort the upstream flow tables corresponding to the same packet data network link in the third order, and set the output ports of other upstream flow tables except the last upstream flow table to the logic of the forwarding plane port, and set the input ports of other upstream flow tables except the first upstream flow table as the logical port, so that the upstream packets corresponding to the same packet data network link are sequentially processed according to the third order. At least two of the above flow tables are processed and sent out; or,
对于从各所述控制面接收到的下行流表,所述转发面根据所接收到的下 行流表的隧道端点标识符,将对应于同一分组数据网络链接的下行流表按第 四顺序排序,将除最后一个下行流表之外的其它下行流表的输出端口设置为 所述逻辑端口,并将除第一个下行流表之外的其它下行流表的输入端口设置 为所述逻辑端口,以使得对应于同一分组数据网络链接的下行报文按所述第 四顺序依次根据所述至少两种流表进行处理后发送出去,其中,所述第三顺 序和所述第四顺序互为逆序。 For the downstream flow table received from each of the control planes, the forwarding plane sorts the downstream flow tables corresponding to the same packet data network link in a fourth order according to the tunnel endpoint identifier of the received downstream flow table, Set the output ports of other downstream flow tables except the last downstream flow table as the logical port, and set the input ports of other downstream flow tables except the first downstream flow table as the logical port, So that the downlink messages corresponding to the same packet data network link are processed according to the at least two flow tables in turn in the fourth order and then sent out, wherein the third order and the fourth order are mutually inverse orders. .
5、 根据权利要求 1或 2所述的流表处理方法, 其特征在于, 所述转发面 将对应于同一分组数据网络链接的所述至少两种流表相关联, 包括: 5. The flow table processing method according to claim 1 or 2, characterized in that the forwarding plane associates the at least two flow tables corresponding to the same packet data network link, including:
对于从各所述控制面接收到的上行流表,所述转发面根据所接收到的上 行流表的隧道端点标识符,将对应于同一分组数据网络链接的上行流表融合 为一个上行流表,以使得对应于同一分组数据网络链接的上行报文根据所述 融合的上行流表进行处理后发送出去; 或者, For the upstream flow tables received from each of the control planes, the forwarding plane merges the upstream flow tables corresponding to the same packet data network link into one upstream flow table according to the tunnel endpoint identifier of the received upstream flow table. , so that the uplink messages corresponding to the same packet data network link are processed according to the integrated upstream flow table and then sent out; or,
对于从各所述控制面接收到的下行流表,所述转发面根据所接收到的下 行流表的隧道端点标识符,将对应于同一分组数据网络链接的下行流表融合 为一个下行流表,以使得对应于同一分组数据网络链接的下行报文根据所述 融合的下行流表进行处理后发送出去。 For the downstream flow tables received from each of the control planes, the forwarding plane merges the downstream flow tables corresponding to the same packet data network link into one downstream flow table according to the tunnel endpoint identifier of the received downstream flow table. , so that the downlink messages corresponding to the same packet data network link are processed according to the merged downlink flow table and then sent out.
6、 根据权利要求 5所述的流表处理方法, 其特征在于, 在所述将对应于 同一分组数据网络链接的上行流表融合为一个上行流表之后, 还包括: 所述转发面保留从各所述控制面接收到的上行流表; 权 利 要 求 书 6. The flow table processing method according to claim 5, characterized in that, after the upstream flow tables corresponding to the same packet data network link are merged into one upstream flow table, it further includes: the forwarding plane retains from The upstream flow table received by each control plane; claims
所述转发面根据对所接收到的上行流表的操作,对所述融合的上行流表 进行更新。 The forwarding plane updates the merged upstream flow table according to the operation on the received upstream flow table.
7、 根据权利要求 5或 6所述的流表处理方法, 其特征在于, 在所述将对 应于同一分组数据网络链接的下行流表融合为一个下行流表之后, 还包括: 所述转发面保留从各所述控制面接收到的下行流表; 7. The flow table processing method according to claim 5 or 6, characterized in that, after fusing the downstream flow tables corresponding to the same packet data network link into one downstream flow table, it further includes: the forwarding plane retain downstream flow tables received from each of said control planes;
所述转发面根据对所接收到的下行流表的操作,对所述融合的下行流表 进行更新。 The forwarding plane updates the merged downstream flow table according to the operation on the received downstream flow table.
8、 根据权利要求 1至 7中任一项所述的流表处理方法, 其特征在于, 所 述至少两个控制面包括服务网关控制面和分组数据网络网关控制面。 8. The flow table processing method according to any one of claims 1 to 7, characterized in that the at least two control planes include a service gateway control plane and a packet data network gateway control plane.
9、 一种流表处理装置, 应用于包括一个转发面和至少两个控制面的控 制转发解耦架构, 其特征在于, 包括: 9. A flow table processing device, applied to a control forwarding decoupling architecture including one forwarding plane and at least two control planes, characterized in that it includes:
接收单元, 用于使所述转发面从所述至少两个控制面接收至少两种流 关联单元, 与所述接收单元连接,用于使所述转发面将对应于同一分组 数据网络链接的所述至少两种流表相关联,以使得对应于同一分组数据网络 链接的报文按照预定的流表使用顺序依次根据所述至少两种流表进行处理 后发送出去。 A receiving unit, configured to cause the forwarding plane to receive at least two types of flow association units from the at least two control planes, connected to the receiving unit, configured to cause the forwarding plane to associate all flows corresponding to the same packet data network link. The at least two flow tables are associated, so that packets corresponding to the same packet data network link are processed according to the at least two flow tables in sequence according to a predetermined flow table usage sequence and then sent out.
10、 根据权利要求 9所述的流表处理装置, 其特征在于, 还包括: 获取单元, 用于使所述转发面获取各所述控制面的网元类型; 确定单元, 与所述获取单元和所述关联单元连接,用于使所述转发面基 于所获取到的网元类型以及报文转发方向,确定所述流表使用顺序,其中所 述报文转发方向包括上行和下行。 10. The flow table processing device according to claim 9, further comprising: an acquisition unit, configured to cause the forwarding plane to acquire the network element type of each control plane; a determination unit, and the acquisition unit Connected to the association unit, the forwarding plane determines the order of use of the flow table based on the obtained network element type and packet forwarding direction, where the packet forwarding direction includes uplink and downlink.
11、 根据权利要求 9或 10所述的流表处理装置, 其特征在于, 所述关联 单元被配置为: 11. The flow table processing device according to claim 9 or 10, characterized in that the association unit is configured to:
对于从各所述控制面接收到的上行流表,使所述转发面根据所接收到的 权 利 要 求 书 For the upstream flow table received from each of the control planes, the forwarding plane is configured to Claims
上行流表的隧道端点标识符隧道端点标识符,将对应于同一分组数据网络链 接的上行流表构建为一个多级上行流表,以使得对应于同一分组数据网络链 接的上行报文按第一顺序依次根据所述至少两种流表进行处理后发送出去; 或者, The tunnel endpoint identifier of the upstream flow table constructs the upstream flow table corresponding to the same packet data network link as a multi-level upstream flow table, so that the upstream packets corresponding to the same packet data network link are processed according to the first The sequence is processed according to the at least two flow tables and then sent out; or,
对于从各所述控制面接收到的下行流表,使所述转发面根据所接收到的 下行流表的隧道端点标识符,将对应于同一分组数据网络链接的下行流表构 建为一个多级下行流表,以使得对应于同一分组数据网络链接的下行报文按 第二顺序依次根据所述至少两种流表后发送出去, For the downstream flow table received from each of the control planes, the forwarding plane constructs a downstream flow table corresponding to the same packet data network link as a multi-level flow table according to the tunnel endpoint identifier of the received downstream flow table. Downstream flow tables, so that downstream messages corresponding to the same packet data network link are sent out in a second order according to the at least two flow tables,
其中, 所述第一顺序和所述第二顺序互为逆序。 Wherein, the first order and the second order are reverse orders of each other.
12、 根据权利要求 9或 10所述的流表处理装置, 其特征在于, 所述关联 单元被配置为: 12. The flow table processing device according to claim 9 or 10, characterized in that the association unit is configured to:
对于从各所述控制面接收到的上行流表,使所述转发面根据所接收到的 上行流表的隧道端点标识符,将对应于同一分组数据网络链接的上行流表按 第三顺序排序,将除最后一个上行流表之外的其它上行流表的输出端口设置 为所述转发面的逻辑端口,并将除第一个上行流表之外的其它上行流表的输 入端口设置为所述逻辑端口,以使得对应于同一分组数据网络链接的上行报 文按所述第三顺序依次根据所述至少两种流表进行处理后发送出去; 或者, 对于从各所述控制面接收到的下行流表,使所述转发面根据所接收到的 下行流表的隧道端点标识符,将对应于同一分组数据网络链接的下行流表按 第四顺序排序,将除最后一个下行流表之外的其它下行流表的输出端口设置 为所述逻辑端口,并将除第一个下行流表之外的其它下行流表的输入端口设 置为所述逻辑端口,以使得对应于同一分组数据网络链接的下行报文按所述 第四顺序依次根据所述至少两种流表进行处理后发送出去,其中,所述第三 顺序和所述第四顺序互为逆序。 For the upstream flow table received from each of the control planes, cause the forwarding plane to sort the upstream flow tables corresponding to the same packet data network link in a third order according to the tunnel endpoint identifier of the received upstream flow table. , set the output ports of other upstream flow tables except the last upstream flow table to the logical port of the forwarding plane, and set the input ports of other upstream flow tables except the first upstream flow table to all The logical port, so that the uplink messages corresponding to the same packet data network link are processed according to the at least two flow tables in the third order and then sent out; or, for the packets received from each of the control planes A downstream flow table such that the forwarding plane sorts the downstream flow tables corresponding to the same packet data network link in fourth order according to the received tunnel endpoint identifier of the downstream flow table, except for the last downstream flow table. The output ports of other downstream tables are set as the logical ports, and the input ports of other downstream tables except the first downstream table are set as the logical ports, so that they correspond to the same packet data network link The downlink packets are processed in sequence according to the at least two flow tables in the fourth order and then sent out, wherein the third order and the fourth order are in reverse order of each other.
13、 根据权利要求 9或 10所述的流表处理装置, 其特征在于, 所述关联 权 利 要 求 书 13. The flow table processing device according to claim 9 or 10, characterized in that: the association Claims
单元被配置为: The unit is configured as:
对于从各所述控制面接收到的上行流表,使所述转发面根据所接收到的 上行流表的隧道端点标识符,将对应于同一分组数据网络链接的上行流表融 合为一个上行流表,以使得对应于同一分组数据网络链接的上行报文根据所 述融合的上行流表进行处理后发送出去; 或者, For the upstream flow tables received from each of the control planes, the forwarding plane merges the upstream flow tables corresponding to the same packet data network link into one upstream flow according to the tunnel endpoint identifier of the received upstream flow table. table, so that upstream messages corresponding to the same packet data network link are processed according to the merged upstream flow table and then sent out; or,
对于从各所述控制面接收到的下行流表,使所述转发面根据所接收到的 下行流表的隧道端点标识符,将对应于同一分组数据网络链接的下行流表融 合为一个下行流表,以使得对应于同一分组数据网络链接的下行报文根据所 述融合的下行流表进行处理后发送出去。 For the downstream flow tables received from each of the control planes, the forwarding plane merges the downstream flow tables corresponding to the same packet data network link into one downstream flow according to the tunnel endpoint identifier of the received downstream flow table. table, so that the downstream packets corresponding to the same packet data network link are processed according to the merged downstream flow table and then sent out.
14、 根据权利要求 9所述的流表处理装置, 其特征在于, 所述关联单元 还被配置为: 14. The flow table processing device according to claim 9, characterized in that the correlation unit is further configured to:
使所述转发面保留从各所述控制面接收到的上行流表; causing the forwarding plane to retain the upstream flow table received from each of the control planes;
使所述转发面根据对所接收到的上行流表的操作,对所述融合的上行流 表进行更新。 The forwarding plane is caused to update the merged upstream flow table according to the operation on the received upstream flow table.
15、根据权利要求 13或 14所述的流表处理装置, 其特征在于, 所述关联 单元还被配置为: 15. The flow table processing device according to claim 13 or 14, characterized in that the association unit is further configured to:
使所述转发面保留从各所述控制面接收到的下行流表; causing the forwarding plane to retain the downstream flow table received from each of the control planes;
使所述转发面根据对所接收到的下行流表的操作,对所述融合的下行流 表进行更新。 The forwarding plane is caused to update the merged downstream flow table according to the operation on the received downstream flow table.
16、 根据权利要求 9至 15中任一项所述的流表处理装置, 其特征在于, 所述至少两个控制面包括服务网关控制面和分组数据网络网关控制面。 16. The flow table processing device according to any one of claims 9 to 15, characterized in that the at least two control planes include a service gateway control plane and a packet data network gateway control plane.
PCT/CN2013/087505 2013-11-20 2013-11-20 Flow table processing method and apparatus WO2015074198A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2013/087505 WO2015074198A1 (en) 2013-11-20 2013-11-20 Flow table processing method and apparatus
CN201380002331.2A CN104871497B (en) 2013-11-20 2013-11-20 Flow table treating method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/087505 WO2015074198A1 (en) 2013-11-20 2013-11-20 Flow table processing method and apparatus

Publications (1)

Publication Number Publication Date
WO2015074198A1 true WO2015074198A1 (en) 2015-05-28

Family

ID=53178798

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/087505 WO2015074198A1 (en) 2013-11-20 2013-11-20 Flow table processing method and apparatus

Country Status (2)

Country Link
CN (1) CN104871497B (en)
WO (1) WO2015074198A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114301737B (en) * 2021-12-29 2023-10-24 迈普通信技术股份有限公司 Network configuration method, device, network equipment and computer readable storage medium
CN116074250B (en) * 2023-02-23 2023-08-22 阿里巴巴(中国)有限公司 Stream table processing method, system, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594664A (en) * 2012-02-02 2012-07-18 杭州华三通信技术有限公司 Flow forwarding method and device
US20120303835A1 (en) * 2011-05-23 2012-11-29 Telefonaktiebolaget Lm Ericsson (Publ) Implementing EPC in a Cloud Computer with Openflow Data Plane
CN102984058A (en) * 2012-12-05 2013-03-20 华为技术有限公司 Network communication method based on open stream, controller and exchangers

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120303835A1 (en) * 2011-05-23 2012-11-29 Telefonaktiebolaget Lm Ericsson (Publ) Implementing EPC in a Cloud Computer with Openflow Data Plane
CN102594664A (en) * 2012-02-02 2012-07-18 杭州华三通信技术有限公司 Flow forwarding method and device
CN102984058A (en) * 2012-12-05 2013-03-20 华为技术有限公司 Network communication method based on open stream, controller and exchangers

Also Published As

Publication number Publication date
CN104871497A (en) 2015-08-26
CN104871497B (en) 2018-11-30

Similar Documents

Publication Publication Date Title
CN108234235B (en) Method, network device and computer-readable storage medium for data monitoring
JP5716741B2 (en) COMMUNICATION SYSTEM, LOGICAL CHANNEL CONTROL DEVICE, CONTROL DEVICE, COMMUNICATION METHOD, AND PROGRAM
CN110120900B (en) Communication method, integrated controller device of network and network device in network
EP3198822B1 (en) Computer network packet flow controller
JP6144834B2 (en) Method for obtaining accurate flow entry by SDN switch, and SDN switch, controller, and system
US8351352B1 (en) Methods and apparatus for RBridge hop-by-hop compression and frame aggregation
US20160080253A1 (en) Service routing system, device, and method
EP3490201B1 (en) Method, device and system for information synchronization
WO2015043327A1 (en) Routing method, device and system
WO2022062506A1 (en) Data processing method and apparatus, storage medium, and electronic apparatus
US9548930B1 (en) Method for improving link selection at the borders of SDN and traditional networks
US20170155582A1 (en) Method and Apparatus for Processing Modified Packet
KR101855742B1 (en) Method and apparatus for destination based packet forwarding control in software defined networking
JP6752141B2 (en) Methods and forwarders for processing packets
JP7322193B2 (en) Packet transfer method and device, and computer readable storage medium
CN112154627B (en) Service-related routing method and device
JP7430224B2 (en) Packet processing methods and gateway devices
WO2019127134A1 (en) Data transmission method and virtual switch
WO2016029345A1 (en) Network flow information statistics method and apparatus
CN110730143B (en) Fragment data packet processing method and device
JP2022531749A (en) A method for forwarding Ethernet frames over a time-dependent networking Ethernet bridge provided by mobile radio communication systems and mobile radio communication system configurations.
JP6480452B2 (en) Packet processing method and apparatus
JP5534033B2 (en) Communication system, node, packet transfer method and program
EP3753149B1 (en) Sx protocol extension to support node pdr
WO2015074198A1 (en) Flow table processing method and apparatus

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

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

Country of ref document: EP

Kind code of ref document: A1