CN106302157B - Method and device for sending message - Google Patents
Method and device for sending message Download PDFInfo
- Publication number
- CN106302157B CN106302157B CN201510238092.1A CN201510238092A CN106302157B CN 106302157 B CN106302157 B CN 106302157B CN 201510238092 A CN201510238092 A CN 201510238092A CN 106302157 B CN106302157 B CN 106302157B
- Authority
- CN
- China
- Prior art keywords
- sfp
- child
- message
- parent
- specified
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明提供了一种报文发送方法及装置,其中,该方法包括:获取父业务功能路径标识SFP ID以及与该父SFP ID对应的一个或多个子SFP ID;接收来自用户设备的报文;获取与该报文的类型对应的指定父SFP ID和指定子SFP ID;将该报文发送至与指定父SFP ID对应的父SFP上,或者与指定子SFP ID对应的子SFP上。通过本发明解决了相关技术中某些场景下SFC无法根据策略改变业务链路径的问题。
The invention provides a kind of message sending method and device, wherein, the method comprises: obtaining parent service function path identification SFP ID and one or more child SFP ID corresponding to this parent SFP ID; Receive the message from user equipment; Obtain the specified parent SFP ID and the specified child SFP ID corresponding to the type of the message; send the message to the parent SFP corresponding to the specified parent SFP ID, or to the child SFP corresponding to the specified child SFP ID. The invention solves the problem that the SFC cannot change the service chain path according to the strategy in some scenarios in the related art.
Description
技术领域technical field
本发明涉及通信领域,具体而言,涉及一种报文发送方法及装置。The present invention relates to the field of communications, and in particular, to a method and device for sending a message.
背景技术Background technique
业务功能链(Service Function Chaining,简称为SFC)是目前正在研究和标准化的一种网络技术。自从数据中心网络向Overlay网络发展以后,网络边缘成为了虚拟网络与物理网络的分界点,其中网络边缘为Server或者ToR,以及可能为网关(Gateway)。然而Overlay技术并没有解决所有问题,数据中心中还有很多中间件(Middleware),如防火墙/负载均衡器等,这些设备都是基于用户业务来处理的,如果通过隧道而穿越这些设备,显然是不行的。Service Function Chaining (SFC for short) is a network technology that is currently being researched and standardized. Since the data center network has developed to the overlay network, the network edge has become the boundary between the virtual network and the physical network, where the network edge is the Server or ToR, and possibly the gateway (Gateway). However, the Overlay technology does not solve all the problems. There are still many middlewares in the data center, such as firewalls/load balancers, etc. These devices are processed based on user services. If these devices are traversed through tunnels, obviously No way.
数据中心的这种部署模型,要求虚拟防火墙/负载均衡器可以在网络中任意部署,也就是与网络拓扑无关。这样就会出现新的问题,如何将流量能够灵活的通过虚拟防火墙/负载均衡器进行处理?于是产生了虚拟防火墙/负载均衡器等新型中间件,这些虚拟防火墙/负载均衡器,部署在网络的边缘,可以由标准服务器来实现。This deployment model of the data center requires that the virtual firewall/load balancer can be deployed arbitrarily in the network, that is, independent of the network topology. In this way, a new problem will arise, how can the traffic be flexibly processed through the virtual firewall/load balancer? As a result, new types of middleware such as virtual firewalls/load balancers have emerged. These virtual firewalls/load balancers, deployed at the edge of the network, can be implemented by standard servers.
一般把虚拟防火墙/负载均衡器/网关等业务处理功能,称为Service Function,而流量经过一系列的Service Function的处理,形成SFC。图1业务功能链(SFC)示例图,如图1所示,代表两条Service Chain。Generally, business processing functions such as virtual firewalls/load balancers/gateways are called Service Functions, and traffic is processed by a series of Service Functions to form SFC. Figure 1. An example diagram of a business function chain (SFC), as shown in Figure 1, representing two Service Chains.
SFC的框架,目前相关技术中基本可以分为如下组件和模块:The framework of SFC can be basically divided into the following components and modules in the current related technologies:
1.Service Overlay(业务叠加),即各个网络边缘节点需要通信的Overlay(叠加)技术;1. Service Overlay (service overlay), that is, the Overlay (overlay) technology that each network edge node needs to communicate;
2.通用业务控制平面(Generic Service Control Plane,简称为GSCP),就是形成Service Function Chaining的控制器;2. The Generic Service Control Plane (GSCP for short) is the controller that forms the Service Function Chaining;
3.Service Classification(业务分类),即需要进行流识别,然后特定的流,进行特定的Service Function Chaining处理;3. Service Classification (business classification), that is, flow identification is required, and then a specific flow is processed for a specific Service Function Chaining;
4.Dataplane Metadata(控制平面元数据),这是一大特点,Metadata(元数据)允许各个边缘业务处理节点,能够互相交换信息,达到某种业务处理目的;4. Dataplane Metadata (control plane metadata), which is a major feature, Metadata (metadata) allows each edge business processing node to exchange information with each other to achieve a certain business processing purpose;
5.SFP(业务功能路径),SFP是组成一条业务链的具体路径信息,例如一条流进行业务链的处理,它需要经过哪些具体的业务。SFP的路径信息最细粒度可以具体到业务的实例。每个SFP都有一个对应的ID(识别号),对应相应的业务路径。5. SFP (Business Function Path), SFP is the specific path information that constitutes a business chain, such as a flow to process the business chain, and which specific services it needs to go through. The most fine-grained path information of SFP can be specific to the instance of the service. Each SFP has a corresponding ID (identification number), corresponding to the corresponding service path.
综上而述,它是一种将网络设备业务功能和转发分离开来,从而实现了业务功能的独立运算和处理,提升网络设备的转发性能。To sum up, it is a method that separates the service function and forwarding of the network device, thereby realizing the independent operation and processing of the service function and improving the forwarding performance of the network device.
但是,对于现有SFC技术来说,一个SFP ID只对应一条业务功能路径。However, for the existing SFC technology, one SFP ID corresponds to only one service function path.
例1,SFP ID等于1的时候,对应SFP是“NAT(网络地址转换)->DPI(深度报文检测)”,那么对于用户的第一个流量报文进入NAT之后,NAT产生转发表并发送该表到交换机上,对于该用户相同会话的第二个流量的报文,可以直接在交换机上进行地址转换,而业务链仅仅需要进行DPI就可以。因此用户的第一个流量报文和相同会话的第二个流量报文处理的业务链路径是不一样的。Example 1, when the SFP ID is equal to 1, the corresponding SFP is "NAT (Network Address Translation) -> DPI (Deep Packet Inspection)", then after the user's first traffic packet enters the NAT, the NAT generates a forwarding table and After sending the table to the switch, address translation can be performed directly on the switch for the packets of the second traffic of the same session of the user, and the service chain only needs to perform DPI. Therefore, the service chain paths processed by the first traffic packet of the user and the second traffic packet of the same session are different.
例2,SFP ID等于2的时候,对应SFP是“FW(防火墙)->DPI(深度报文检测)-HTTPFILTER(HTTP过滤)”,其中设置DPI生效时间是8:00-18:00,因此在8:00-18:00之间,执行“FW(防火墙)->DPI(深度报文检测)->HTTP FILTER(HTTP过滤)”;而在18:00-8:00之间,执行“FW(防火墙)->HTTP FILTER(HTTP过滤)”。因此在不同的时间段,业务处理的路径是不同的。Example 2, when the SFP ID is equal to 2, the corresponding SFP is "FW (Firewall)->DPI (Deep Packet Inspection)-HTTPFILTER (HTTP Filtering)", where the effective time of setting DPI is 8:00-18:00, so Between 8:00-18:00, execute "FW (firewall)->DPI (deep packet inspection)->HTTP FILTER (HTTP filtering)"; and between 18:00-8:00, execute " FW (firewall) -> HTTP FILTER (HTTP filter)". Therefore, in different time periods, the paths of business processing are different.
针对相关技术中,某些场景下SFC无法根据策略改变业务链路径的问题,还未提出有效的解决方案。In the related art, in some scenarios, the SFC cannot change the service chain path according to the policy, and no effective solution has been proposed yet.
发明内容SUMMARY OF THE INVENTION
本发明提供了一种报文发送方法及装置,以至少解决相关技术中某些场景下SFC无法根据策略改变业务链路径的问题。The present invention provides a message sending method and device, so as to at least solve the problem that the SFC cannot change the service chain path according to the policy in some scenarios in the related art.
根据本发明的一个方面,提供了一种报文发送方法,包括:获取父业务功能路径标识SFP ID以及与该父SFP ID对应的一个或多个子SFP ID;接收来自用户设备的报文;获取与所述报文的类型对应的指定父SFP ID和指定子SFP ID;将所述报文发送至与所述指定父SFP ID对应的父SFP上,或者与所述指定子SFP ID对应的子SFP上。According to one aspect of the present invention, a message sending method is provided, comprising: obtaining a parent service function path identifier SFP ID and one or more child SFP IDs corresponding to the parent SFP ID; receiving a message from the user equipment; obtaining The designated parent SFP ID corresponding to the type of the message and the designated child SFP ID; the message is sent to the parent SFP corresponding to the designated parent SFP ID, or the child corresponding to the designated child SFP ID. on SFP.
进一步地,将所述报文发送至与所述指定父SFP ID对应的父SFP上,或者与所述指定子SFP ID对应的子SFP上包括:将包含第一指定父SFP ID和所述指定子SFP ID为0的第一指定报文封装至SFP,将封装后的SFP和所述报文发送至所述第一指定父SFP ID对应的父SFP上;或者,将包含第二指定父SFP ID和第一指定子SFP ID为非0的第二指定报文封装至SFP,将封装后的SFP和所述报文发送至所述第一指定子SFP ID对应的子SFP上。Further, the message is sent to the parent SFP corresponding to the designated parent SFP ID, or the child SFP corresponding to the designated child SFP ID includes: will include the first designated parent SFP ID and the designated The first designated message with the child SFP ID 0 is encapsulated into the SFP, and the encapsulated SFP and the message are sent to the parent SFP corresponding to the first designated parent SFP ID; perhaps, the second designated parent SFP will be included The second designated message whose ID and the first designated sub-SFP ID are non-0 is encapsulated into the SFP, and the encapsulated SFP and the message are sent to the sub-SFP corresponding to the first designated sub-SFP ID.
进一步地,将所述第一指定报文封装至SFP头部或者将所述第二指定报文封装至SFP头部。Further, the first designated packet is encapsulated into an SFP header or the second designated packet is encapsulated into an SFP header.
进一步地,所述SFP ID和所述一个或者多个子SFP ID由控制器配置或者由网元配置。Further, the SFP ID and the one or more sub-SFP IDs are configured by the controller or by the network element.
进一步地,将包含第一指定父SFP ID和所述指定子SFP ID为0的第一指定报文封装至SFP,将封装后的SFP和所述报文发送至所述第一指定父SFP ID对应的父SFP上之前包括:确定所述报文在本地不存在会话;或者,确定所述报文在采样点;或者,确定所述报文为首包;或者,确定没有配置子SFP。Further, the first designated message that will comprise the first designated parent SFP ID and the designated child SFP ID to be 0 is encapsulated to the SFP, and the encapsulated SFP and the message are sent to the first designated parent SFP ID Before the corresponding parent SFP includes: determining that the message does not have a local session; or, determining that the message is at the sampling point; or, determining that the message is the first packet; or, determining that the child SFP is not configured.
进一步地,将包含第二指定父SFP ID和第一指定子SFP ID为非0的第二指定报文封装至SFP,将封装后的SFP和所述报文发送至所述第一指定子SFP ID对应的子SFP上之前包括:确定存在所述报文的转发表;或者,确定所述报文不在采样点。Further, will include the second specified parent SFP ID and the first specified child SFP ID to be non-0 second specified message encapsulation to SFP, the SFP after the encapsulation and the message are sent to the first specified child SFP Before the sub-SFP corresponding to the ID includes: determining that there is a forwarding table for the message; or, determining that the message is not at the sampling point.
进一步地,获取父业务功能路径标识SFP ID以及与该父SFP ID对应的一个或多个子SFP ID包括:对于一个会话标识唯一的父SFP,对于所述会话中的多个流量分别标识不同的子SFP。Further, obtaining parent business function path identification SFP ID and one or more child SFP IDs corresponding to this parent SFP ID include: for a session identification unique parent SFP, for a plurality of flows in the session, identify different child respectively. SFP.
根据本发明的另一个方面,还提供了一种报文发送方法,包括:配置父业务功能路径标识SFP ID以及与该父SFP ID对应的一个或多个子SFP ID;将所述父SFP ID和所述子SFP ID发送至网元,其中,所述父SFP ID对应的父SFP和所述子SFP ID对应的子SFP用于报文的发送。According to another aspect of the present invention, a message sending method is also provided, comprising: configuring a parent service function path identifier SFP ID and one or more child SFP IDs corresponding to the parent SFP ID; The child SFP ID is sent to the network element, wherein the parent SFP corresponding to the parent SFP ID and the child SFP corresponding to the child SFP ID are used for message sending.
根据本发明的再一个方面,还提供了一种报文发送方法,包括:配置父业务功能路径标识SFP ID以及与该父SFP ID对应的一个或多个子SFP ID,其中,所述父SFP ID 对应的父SFP和所述子SFP ID对应的子SFP用于报文的发送。According to yet another aspect of the present invention, a message sending method is also provided, comprising: configuring a parent service function path identifier SFP ID and one or more child SFP IDs corresponding to the parent SFP ID, wherein the parent SFP ID The corresponding parent SFP and the child SFP corresponding to the child SFP ID are used for message sending.
根据本发明的一个方面,提供了一种报文发送装置,所述装置应用于分类器,所述装置包括:第一获取模块,用于获取父业务功能路径标识SFP ID以及与该父SFP ID对应的一个或多个子SFP ID;接收模块,用于接收来自用户设备的报文;第二获取模块,用于获取与所述报文的类型对应的指定父SFP ID和指定子SFP ID;发送模块,用于将所述报文发送至与所述指定父SFP ID对应的父SFP上,或者与所述指定子SFP ID对应的子SFP上。According to an aspect of the present invention, a message sending device is provided, the device is applied to a classifier, and the device includes: a first obtaining module, configured to obtain a parent service function path identifier SFP ID and a relationship with the parent SFP ID Corresponding one or more child SFP IDs; Receiving module, for receiving the message from user equipment; The second acquisition module, for obtaining the specified parent SFP ID and the specified child SFP ID corresponding to the type of the message; Send A module for sending the message to the parent SFP corresponding to the specified parent SFP ID, or to the child SFP corresponding to the specified child SFP ID.
进一步地,所述发送模块还包括:第一发送单元,用于将包含第一指定父SFP ID和所述指定子SFP ID为0的第一指定报文封装至SFP,将封装后的SFP和所述报文发送至所述第一指定父SFP ID对应的父SFP上;或者,第二发送单元,用于将包含第二指定父SFP ID和第一指定子SFP ID为非0的第二指定报文封装至SFP,将封装后的SFP和所述报文发送至所述第一指定子SFP ID对应的子SFP上。Further, described sending module also includes: the first sending unit, is used to encapsulate the first designated message containing the first designated parent SFP ID and the designated child SFP ID to SFP to SFP, and the SFP after the encapsulation and The message is sent to the parent SFP corresponding to the first specified parent SFP ID; perhaps, the second sending unit is used to include the second specified parent SFP ID and the first specified child SFP ID to be a second non-0 The designated message is encapsulated into the SFP, and the encapsulated SFP and the message are sent to the sub-SFP corresponding to the first designated sub-SFP ID.
进一步地,所述第一发送单元还用于将所述第一指定报文封装至SFP头部;所述第二发送单元,还用于将所述第二指定报文封装至SFP头部。Further, the first sending unit is further configured to encapsulate the first designated message into the SFP header; the second sending unit is further configured to encapsulate the second designated message into the SFP header.
进一步地,所述SFP ID和所述一个或者多个子SFP ID由控制器配置或者由网元配置。Further, the SFP ID and the one or more sub-SFP IDs are configured by the controller or by the network element.
进一步地,所述装置还包括第一确定模块用于,将包含第一指定父SFP ID和所述指定子SFP ID为0的第一指定报文封装至SFP,将封装后的SFP和所述报文发送至所述第一指定父SFP ID对应的父SFP上之前,确定所述报文在本地不存在会话;或者,确定所述报文在采样点;或者,确定所述报文为首包;或者,确定没有配置子SFP。Further, described device also includes the first determination module for, will comprise the first designated parent SFP ID and described designated child SFP ID is the first designated message of 0 to be encapsulated to SFP, the SFP after encapsulation and the described Before the message is sent to the parent SFP corresponding to the first designated parent SFP ID, it is determined that the message does not have a local session; Or, it is determined that the message is at the sampling point; Or, it is determined that the message is the first packet ; or, make sure that no sub-SFPs are configured.
进一步地,所述装置还包括第二确定模块用于,将包含第二指定父SFP ID和第一指定子SFP ID为非0的第二指定报文封装至SFP,将封装后的SFP和所述报文发送至所述第一指定子SFP ID对应的子SFP上之前,确定存在所述报文的转发表;或者,确定所述报文不在采样点。Further, described device also includes the second determination module for, will comprise the second specified parent SFP ID and the first specified child SFP ID to be non-0 The second specified message is encapsulated to the SFP, the SFP after the encapsulation and all Before the message is sent to the sub-SFP corresponding to the first designated sub-SFP ID, it is determined that there is a forwarding table for the message; or, it is determined that the message is not at the sampling point.
进一步地,所述第一获取模块还用于对于一个会话标识唯一的父SFP,对于所述会话中的多个流量分别标识不同的子SFP。Further, the first acquisition module is further configured to identify a unique parent SFP for a session, and identify different child SFPs for multiple flows in the session.
根据本发明的另一个方面,提供了一种报文发送装置,所述装置应用于控制器,所述装置包括:配置模块,用于配置父业务功能路径标识SFP ID以及与该父SFP ID对应的一个或多个子SFP ID;发送模块,用于将所述父SFP ID和所述子SFP ID发送至网元,其中,所述父SFP ID对应的父SFP和所述子SFP ID对应的子SFP用于报文的发送。According to another aspect of the present invention, a message sending device is provided, the device is applied to a controller, and the device includes: a configuration module for configuring a parent service function path identifier SFP ID and corresponding to the parent SFP ID One or more child SFP IDs; sending module, for sending described parent SFP ID and described child SFP ID to network element, wherein, the corresponding parent SFP of described parent SFP ID and the child corresponding to described child SFP ID SFP is used for message sending.
根据本发明的再一个方面,提供了一种报文发送装置,所述装置应用于网元,所述装置包括:配置模块,用于配置父业务功能路径标识SFP ID以及与该父SFP ID对应的一个或多个子SFP ID,其中,所述父SFP ID对应的父SFP和所述子SFP ID对应的子SFP用于报文的发送。According to another aspect of the present invention, a message sending device is provided, the device is applied to a network element, and the device includes: a configuration module for configuring a parent service function path identifier SFP ID and corresponding to the parent SFP ID One or more child SFP IDs, wherein, the parent SFP corresponding to the parent SFP ID and the child SFP corresponding to the child SFP ID are used for message sending.
通过本发明,采用获取父业务功能路径标识SFP ID以及与该父SFP ID对应的一个或多个子SFP ID;接收来自用户设备的报文;获取与该报文的类型对应的指定父SFP ID 和指定子SFP ID;将该报文发送至与指定父SFP ID对应的父SFP上,或者与指定子SFP ID对应的子SFP上。解决了相关技术中某些场景下SFC无法根据策略改变业务链路径的问题。By the present invention, adopt to obtain parent business function path identification SFP ID and one or more child SFP IDs corresponding to this parent SFP ID; Receive the message from user equipment; Obtain the specified parent SFP ID corresponding to the type of this message and Specify the child SFP ID; send the message to the parent SFP corresponding to the specified parent SFP ID, or to the child SFP corresponding to the specified child SFP ID. It solves the problem that the SFC cannot change the service chain path according to the policy in some scenarios in the related art.
附图说明Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the attached image:
图1业务功能链(SFC)示例图;Figure 1. Example diagram of business function chain (SFC);
图2是根据本发明实施例的报文发送方法的流程图;2 is a flowchart of a method for sending a message according to an embodiment of the present invention;
图3是根据本发明实施例的报文发送装置的结构框图;3 is a structural block diagram of a message sending apparatus according to an embodiment of the present invention;
图4是根据本发明实施例的报文发送装置的结构框图(一);4 is a structural block diagram (1) of a message sending apparatus according to an embodiment of the present invention;
图5是根据本发明实施例的报文发送装置的结构框图(二);5 is a structural block diagram (2) of a message sending apparatus according to an embodiment of the present invention;
图6是根据本发明实施例的报文发送装置的结构框图(三);6 is a structural block diagram (3) of a message sending apparatus according to an embodiment of the present invention;
图7是根据本发明实施例的报文发送方法的流程图(一);7 is a flowchart (1) of a method for sending a message according to an embodiment of the present invention;
图8是根据本发明实施例的报文发送装置的结构框图(四);8 is a structural block diagram (four) of a message sending apparatus according to an embodiment of the present invention;
图9是根据本发明实施例的报文发送方法的流程图(二);9 is a flowchart (2) of a method for sending a message according to an embodiment of the present invention;
图10是根据本发明实施例的报文发送装置的结构框图(五);10 is a structural block diagram (5) of a message sending apparatus according to an embodiment of the present invention;
图11是根据本发明实施例的业务功能链应用场景示意图;11 is a schematic diagram of an application scenario of a business function chain according to an embodiment of the present invention;
图12是根据本发明实施例的报文转发流程图;12 is a flow chart of packet forwarding according to an embodiment of the present invention;
图13是根据本发明实施例的报文封装示意图;13 is a schematic diagram of packet encapsulation according to an embodiment of the present invention;
图14是根据本发明实施例1的业务功能链应用场景示意图;14 is a schematic diagram of an application scenario of a business function chain according to Embodiment 1 of the present invention;
图15是根据本发明实施例2的业务功能链应用场景示意图;15 is a schematic diagram of an application scenario of a business function chain according to Embodiment 2 of the present invention;
图16是根据本发明实施例3的业务功能链应用场景示意图。FIG. 16 is a schematic diagram of an application scenario of a business function chain according to Embodiment 3 of the present invention.
具体实施方式Detailed ways
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in conjunction with embodiments. It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict.
在本实施例中提供了一种报文发送方法,图2是根据本发明实施例的报文发送方法的流程图,如图2所示,该流程包括如下步骤:A method for sending a message is provided in this embodiment. FIG. 2 is a flowchart of a method for sending a message according to an embodiment of the present invention. As shown in FIG. 2 , the process includes the following steps:
步骤S202,获取父业务功能路径标识SFP ID以及与该父SFP ID对应的一个或多个子SFP ID;Step S202, obtains parent business function path identification SFP ID and one or more child SFP IDs corresponding to this parent SFP ID;
步骤S204,接收来自用户设备的报文;Step S204, receiving a message from the user equipment;
步骤S206,获取与该报文的类型对应的指定父SFP ID和指定子SFP ID;Step S206, obtains the specified parent SFP ID and the specified child SFP ID corresponding to the type of this message;
步骤S208,将该报文发送至与指定父SFP ID对应的父SFP上,或者与指定子SFP ID对应的子SFP上。Step S208, send the message to the parent SFP corresponding to the specified parent SFP ID, or to the child SFP corresponding to the specified child SFP ID.
通过上述步骤,配置报文的转发策略和父SFP、子SFP,根据报文的类型将报文发送至与指定父SFP ID对应的父SFP上,或者与指定子SFP ID对应的子SFP上,对于现有SFP技术来讲,一个SFP ID只对应一条业务功能路径,上述步骤解决了相关技术中某些场景下SFC无法根据策略改变业务链路径的问题。Through the above steps, configure the forwarding policy of the message and the parent SFP and the child SFP, and send the message to the parent SFP corresponding to the specified parent SFP ID according to the type of the message, or to the child SFP corresponding to the specified child SFP ID, For the existing SFP technology, one SFP ID corresponds to only one service function path. The above steps solve the problem that the SFC cannot change the service chain path according to the policy in some scenarios in the related art.
上述步骤S208涉及到将报文发送至与指定父SFP ID对应的父SFP上,或者与指定子SFP ID对应的子SFP上,在一个可选实施例中,将包含第一指定父SFP ID和指定子SFP ID为0的第一指定报文封装至SFP,将封装后的SFP和该报文发送至第一指定父SFP ID对应的父SFP上。在另一个可选实施例中,将包含第二指定父SFP ID和第一指定子SFP ID为非0的第二指定报文封装至SFP,将封装后的SFP和该报文发送至第一指定子SFP ID对应的子SFP上。Above-mentioned steps S208 relate to that the message is sent to the parent SFP corresponding to the specified parent SFP ID, or on the child SFP corresponding to the specified child SFP ID, in an optional embodiment, will include the first specified parent SFP ID and The first designated message whose ID is 0 of the designated child SFP is encapsulated into the SFP, and the encapsulated SFP and the message are sent to the parent SFP corresponding to the first designated parent SFP ID. In another optional embodiment, encapsulate a second designated message containing a second designated parent SFP ID and a first designated child SFP ID that is not 0 into an SFP, and send the encapsulated SFP and the message to the first designated sub-SFP. Specify the sub-SFP corresponding to the sub-SFP ID.
在将第一指定报文或者第二指定报文封装至SFP的过程中,在一个可选实施例中,将第一指定报文封装至SFP头部或者将第二指定报文封装至SFP头部。In the process of encapsulating the first designated packet or the second designated packet into the SFP, in an optional embodiment, the first designated packet is encapsulated into the SFP header or the second designated packet is encapsulated into the SFP header department.
在一个可选实施例中,上述SFP ID和上述一个或者多个子SFP ID由控制器配置或者由网元配置。In an optional embodiment, the above-mentioned SFP ID and the above-mentioned one or more sub-SFP IDs are configured by the controller or by the network element.
将包含第一指定父SFP ID和该指定子SFP ID为0的第一指定报文封装至SFP,将封装后的SFP和该报文发送至第一指定父SFP ID对应的父SFP上之前,在一个可选实施例中,确定上述报文在本地不存在会话;或者,确定上述报文在采样点;或者,确定上述报文为首包;或者,确定没有配置子SFP。The first designated message containing the first designated parent SFP ID and this designated child SFP ID is 0 is encapsulated to the SFP, before the SFP after the encapsulation and this message are sent to the parent SFP corresponding to the first designated parent SFP ID, In an optional embodiment, it is determined that there is no local session for the above-mentioned packet; or, it is determined that the above-mentioned packet is at the sampling point; or, it is determined that the above-mentioned packet is the first packet; or, it is determined that no sub-SFP is configured.
将包含第二指定父SFP ID和第一指定子SFP ID为非0的第二指定报文封装至SFP,将封装后的SFP和该报文发送至第一指定子SFP ID对应的子SFP上之前,在一个可选实施例中,确定存在上述报文的转发表;或者,确定上述报文不在采样点。Encapsulate the second specified message containing the second specified parent SFP ID and the first specified child SFP ID that is not 0 to the SFP, and send the encapsulated SFP and the message to the child SFP corresponding to the first specified child SFP ID Before, in an optional embodiment, it is determined that there is a forwarding table for the above-mentioned packet; or, it is determined that the above-mentioned packet is not at the sampling point.
上述步骤S202中涉及到获取父业务功能路径标识SFP ID以及与该父SFP ID对应的一个或多个子SFP ID,在一个可选实施例中,对于一个会话标识唯一的父SFP,对于该会话中的多个流量分别标识不同的子SFP。Relate to obtaining parent business function path identification SFP ID and one or more child SFP IDs corresponding to this parent SFP ID in above-mentioned steps S202, in an optional embodiment, for the unique parent SFP of a session identification, for this session The multiple flows of , respectively, identify different sub-SFPs.
在本实施例中还提供了一种报文发送装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a message sending apparatus is also provided, and the apparatus is used to implement the above-mentioned embodiments and preferred implementation manners, which have been described and will not be repeated. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also possible and contemplated.
图3是根据本发明实施例的报文发送装置的结构框图,该装置应用于分类器,如图3所述,该装置包括:第一获取模块32,用于获取父业务功能路径标识SFP ID以及与该父SFPID对应的一个或多个子SFP ID;接收模块34,用于接收来自用户设备的报文;第二获取模块36,用于获取与该报文的类型对应的指定父SFP ID和指定子SFP ID;发送模块38,用于将该报文发送至与指定父SFP ID对应的父SFP上,或者与指定子SFP ID 对应的子SFP上。Fig. 3 is a structural block diagram of a message sending apparatus according to an embodiment of the present invention. The apparatus is applied to a classifier. As shown in Fig. 3, the apparatus includes: a first obtaining module 32 for obtaining the parent service function path identifier SFP ID And one or more child SFP IDs corresponding to this parent SFPID; Receiving module 34, for receiving the message from user equipment; Second acquisition module 36, for obtaining the specified parent SFP ID and the type corresponding to this message Specify the child SFP ID; the sending module 38 is configured to send the message to the parent SFP corresponding to the specified parent SFP ID, or to the child SFP corresponding to the specified child SFP ID.
图4是根据本发明实施例的报文发送装置的结构框图(一),如图4所示,发送模块38还包括:第一发送单元382,用于将包含第一指定父SFP ID和指定子SFP ID为0的第一指定报文封装至SFP,将封装后的SFP和该报文发送至第一指定父SFP ID对应的父SFP上;或者,第二发送单元384,用于将包含第二指定父SFP ID和第一指定子SFP ID为非0的第二指定报文封装至SFP,将封装后的SFP和该报文发送至第一指定子SFP ID对应的子SFP上。Fig. 4 is a structural block diagram (1) of a message sending device according to an embodiment of the present invention. As shown in Fig. 4, the sending module 38 further includes: a first sending unit 382, which is used to send the first designated parent SFP ID and the designated The first designated message with the child SFP ID 0 is encapsulated into the SFP, and the encapsulated SFP and this message are sent to the parent SFP corresponding to the first designated parent SFP ID; or, the second sending unit 384 is used to include The second designated parent SFP ID and the first designated sub-SFP ID are non-zero second designated messages are encapsulated into the SFP, and the encapsulated SFP and the message are sent to the sub-SFP corresponding to the first designated sub-SFP ID.
可选地,第一发送单元382还用于将该第一指定报文封装至SFP头部;第二发送单元384,还用于将第二指定报文封装至SFP头部。Optionally, the first sending unit 382 is further configured to encapsulate the first designated packet into the SFP header; the second sending unit 384 is further configured to encapsulate the second designated packet into the SFP header.
可选地,上述SFP ID和上述一个或者多个子SFP ID由控制器配置或者由网元配置。Optionally, the above-mentioned SFP ID and the above-mentioned one or more sub-SFP IDs are configured by the controller or by the network element.
图5是根据本发明实施例的报文发送装置的结构框图(二),如图5所示,该装置还包括第一确定模块52用于,将包含第一指定父SFP ID和指定子SFP ID为0的第一指定报文封装至SFP,将封装后的SFP和该报文发送至第一指定父SFP ID对应的父SFP上之前,确定该报文在本地不存在会话;或者,确定该报文在采样点;或者,确定该报文为首包;或者,确定没有配置子SFP。FIG. 5 is a structural block diagram (2) of a message sending apparatus according to an embodiment of the present invention. As shown in FIG. 5 , the apparatus further includes a first determining module 52 for setting the ID of the first designated parent SFP and the designated child SFP to include the ID of the first designated parent SFP and the designated child SFP The first designated message whose ID is 0 is encapsulated into the SFP, and before the encapsulated SFP and the message are sent to the parent SFP corresponding to the first designated parent SFP ID, it is determined that there is no local session for the message; or, it is determined The packet is at the sampling point; or, it is determined that the packet is the first packet; or, it is determined that no sub-SFP is configured.
图6是根据本发明实施例的报文发送装置的结构框图(三),如图6所示,该装置还包括第二确定模块62用于,将包含第二指定父SFP ID和第一指定子SFP ID为非0的第二指定报文封装至SFP,将封装后的SFP和该报文发送至第一指定子SFP ID对应的子SFP上之前,确定存在该报文的转发表;或者,确定该报文不在采样点。FIG. 6 is a structural block diagram (3) of a message sending apparatus according to an embodiment of the present invention. As shown in FIG. 6 , the apparatus further includes a second determination module 62, which is used to send the ID of the parent SFP including the second specified and the first specified The second specified message whose sub-SFP ID is non-0 is encapsulated into the SFP, and before the encapsulated SFP and the message are sent to the sub-SFP corresponding to the first specified sub-SFP ID, it is determined that there is a forwarding table for the message; or , make sure that the packet is not at the sampling point.
可选地,第一获取模块32还用于对于一个会话标识唯一的父SFP,对于该会话中的多个流量分别标识不同的子SFP。Optionally, the first obtaining module 32 is further configured to identify a unique parent SFP for a session, and identify different child SFPs for multiple flows in the session.
在另一个实施例中提供了另一种报文发送方法,图7是根据本发明实施例的报文发送方法的流程图(一),如图7所示,该流程包括如下步骤:In another embodiment, another method for sending a message is provided. FIG. 7 is a flowchart (1) of a method for sending a message according to an embodiment of the present invention. As shown in FIG. 7 , the process includes the following steps:
步骤S702,配置父业务功能路径标识SFP ID以及与该父SFP ID对应的一个或多个子SFP ID;Step S702, configure parent business function path identification SFP ID and one or more child SFP IDs corresponding to this parent SFP ID;
步骤S704,将父SFP ID和子SFP ID发送至网元,其中,父SFP ID对应的父SFP和子SFP ID对应的子SFP用于报文的发送。Step S704, sending the parent SFP ID and the child SFP ID to the network element, wherein the parent SFP ID corresponding to the parent SFP ID and the child SFP corresponding to the child SFP ID are used for message sending.
通过上述步骤,配置报文的转发策略和父SFP、子SFP,根据报文的类型将报文发送至与指定父SFP ID对应的父SFP上,或者与指定子SFP ID对应的子SFP上,对于现有SFP技术来讲,一个SFP ID只对应一条业务功能路径,上述步骤解决了相关技术中某些场景下SFC无法根据策略改变业务链路径的问题。Through the above steps, configure the forwarding policy of the message and the parent SFP and the child SFP, and send the message to the parent SFP corresponding to the specified parent SFP ID according to the type of the message, or to the child SFP corresponding to the specified child SFP ID, For the existing SFP technology, one SFP ID corresponds to only one service function path. The above steps solve the problem that the SFC cannot change the service chain path according to the policy in some scenarios in the related art.
图8是根据本发明实施例的报文发送装置的结构框图(四),该装置应用于控制器,如图8所示,该装置包括:配置模块82,用于配置父业务功能路径标识SFP ID以及与该父SFPID对应的一个或多个子SFP ID;发送模块84,用于将该父SFP ID和该子SFP ID发送至网元,其中,该父SFP ID对应的父SFP和该子SFP ID对应的子SFP用于报文的发送。Fig. 8 is a structural block diagram (4) of a message sending device according to an embodiment of the present invention. The device is applied to a controller. As shown in Fig. 8, the device includes: a configuration module 82 for configuring the parent service function path identifier SFP ID and one or more child SFP IDs corresponding to the parent SFPID; the sending module 84 is used to send the parent SFP ID and the child SFP ID to the network element, wherein the parent SFP and the child SFP corresponding to the parent SFP ID The sub-SFP corresponding to the ID is used for packet sending.
在另一个实施例中提供了另一种报文发送方法,图9是根据本发明实施例的报文发送方法的流程图(二),如图9所示,该流程包括如下步骤:In another embodiment, another method for sending a message is provided. FIG. 9 is a flowchart (2) of a method for sending a message according to an embodiment of the present invention. As shown in FIG. 9 , the process includes the following steps:
步骤S902,配置父业务功能路径标识SFP ID以及与该父SFP ID对应的一个或多个子SFP ID,其中,该父SFP ID对应的父SFP和该子SFP ID对应的子SFP用于报文的发送。Step S902, configure parent business function path identification SFP ID and one or more child SFP IDs corresponding to this parent SFP ID, wherein, the parent SFP corresponding to this parent SFP ID and the child SFP corresponding to this child SFP ID are used for message send.
图10是根据本发明实施例的报文发送装置的结构框图(五),该装置应用于网元,如图10所示,该装置包括:配置模块102,用于配置父业务功能路径标识SFP ID以及与该父SFP ID对应的一个或多个子SFP ID,其中,该父SFP ID对应的父SFP和该子SFP ID对应的子SFP用于报文的发送。Fig. 10 is a structural block diagram (5) of a message sending apparatus according to an embodiment of the present invention. The apparatus is applied to a network element. As shown in Fig. 10, the apparatus includes: a configuration module 102 for configuring the parent service function path identifier SFP ID and one or more child SFP IDs corresponding to the parent SFP ID, wherein the parent SFP corresponding to the parent SFP ID and the child SFP corresponding to the child SFP ID are used for message sending.
针对相关技术中存在的上述问题,下面结合具体的可选实施例进行说明,在下述的可选实施例中结合了上述可选实施例及其可选实施方式。In view of the above-mentioned problems existing in the related art, the following description is made with reference to specific optional embodiments, in which the above-mentioned optional embodiments and optional implementations thereof are combined.
SFC域内各个网元配置报文的转发策略和父SFP、子SFP,或者由SFC控制器下发报文的转发策略和父SFP、子SFP到SFC域内的网元。Configure the packet forwarding policy and parent SFP and child SFP for each NE in the SFC domain, or send the packet forwarding policy and parent SFP and child SFP from the SFC controller to the NEs in the SFC domain.
图11是根据本发明实施例的业务功能链应用场景示意图。上述的父SFP、子SFP和转发策略包括,对于一个会话,标识唯一的“父SFP”;一个会话会产生若干流量(第一、第二、第三……流量),对于第一流量,标识“子SFP 1”;对于第二流量,标识“子SFP 2”……以此类推。FIG. 11 is a schematic diagram of an application scenario of a business function chain according to an embodiment of the present invention. The above-mentioned parent SFP, child SFP and forwarding strategy include, for a session, a unique "parent SFP"; a session will generate several flows (first, second, third... flow), for the first flow, the identification "Sub-SFP 1"; for the second traffic, identify "Sub-SFP 2"...and so on.
一个父SFP可以包括一个或多个子SFP,也可以不包括任何子SFP。A parent SFP may include one or more child SFPs, or may not include any child SFPs.
如果父SFP不包含任何子SFP的情况下,上述会话的所有流量,都进行父SFP所示的业务路径进行处理;If the parent SFP does not contain any child SFPs, all traffic of the above session is processed through the service path shown by the parent SFP;
如果父SFP包含一个或多个子SFP,那么上述会话对应的第一流量进行“子SFP 1”所示的业务路径进行处理,第二流量进行“子SFP 2”所示的业务路径进行处理。If the parent SFP contains one or more child SFPs, the first traffic corresponding to the above session is processed by the service path indicated by "child SFP 1", and the second traffic is processed by the service path indicated by "child SFP 2".
图12是根据本发明实施例的报文转发流程图,如图12所示:该流程包括如下步骤:FIG. 12 is a flow chart of packet forwarding according to an embodiment of the present invention, as shown in FIG. 12 : the flow includes the following steps:
步骤S1202,配置分类策略;Step S1202, configure a classification strategy;
步骤S1204,分类器匹配报文;Step S1204, the classifier matches the message;
步骤S1206,查找报文所属流量类型;Step S1206, look up the traffic type to which the packet belongs;
步骤S1208,封装父SFP ID和子SFP ID;Step S1208, package parent SFP ID and child SFP ID;
步骤S1210,根据流量类型转发到相应的父SFP或者子SFP。Step S1210, forwarding to the corresponding parent SFP or child SFP according to the traffic type.
具体地,分类器根据配置的策略或控制器下发的策略进行报文分类,区分同一个会话中的第一流量、第二流量……Specifically, the classifier classifies packets according to the configured policy or the policy issued by the controller, and distinguishes the first traffic, the second traffic in the same session...
(1)第一流量报文进入分类器,分类器在SFC报文头封装相应的SFP ID,并且同时封装子SFP 1的ID,如图13所示。(1) The first traffic packet enters the classifier, and the classifier encapsulates the corresponding SFP ID in the SFC packet header, and at the same time encapsulates the ID of the sub-SFP 1, as shown in FIG. 13 .
分类器将封装好的上述第一流量报文发送到“子SFP 1”对应的业务功能路径进行处理;The classifier sends the encapsulated first traffic packet to the service function path corresponding to the "sub-SFP 1" for processing;
(2)第二流量报文进入分类器,分类器在SFC报文头封装相应的SFP ID,并且同时封装子SFP 2的ID。(2) The second traffic packet enters the classifier, and the classifier encapsulates the corresponding SFP ID in the SFC packet header, and simultaneously encapsulates the ID of the sub-SFP 2.
分类器将封装好的上述第一流量报文发送到“子SFP 2”对应的业务功能路径进行处理;The classifier sends the encapsulated first traffic packet to the service function path corresponding to the "sub-SFP 2" for processing;
(3)以此类推。(3) and so on.
具体实施例1:Specific embodiment 1:
图14是根据本发明实施例1的业务功能链应用场景示意图,如图14所示,包括以下步骤:FIG. 14 is a schematic diagram of an application scenario of a business function chain according to Embodiment 1 of the present invention, as shown in FIG. 14 , including the following steps:
步骤S1401,控制器配置该用户数据执行SFP为NAT->DPI->防火墙的业务功能链的操作;并且配置NAT业务生成转发表下发到交换机,防火墙业务转发表不下发到交换机;Step S1401, the controller configures the user data execution SFP to be the operation of the service function chain of NAT->DPI->firewall; and configure the NAT service to generate a forwarding table and issue it to the switch, and the firewall service forwarding table is not issued to the switch;
步骤S1402,控制器配置父SFP ID为100,“NAT->DPI->防火墙”的业务链;子SFP ID为1,“DPI->防火墙”的业务链到SFC域内的各个网元;Step S1402, the controller configures the parent SFP ID to be 100, the service chain of "NAT->DPI->Firewall"; the child SFP ID is 1, and the service chain of "DPI->Firewall" to each network element in the SFC domain;
步骤S1403,内网上述用户发出第一个访问Internet的报文,通过交换机查表和分类器筛选之后,发现该报文在本地没有会话存在,是会话的首包,因此执行父SFP ID 为100,“NAT->DPI->防火墙”的业务链的流程;Step S1403, the above-mentioned user in the intranet sends out the first message to access the Internet, and after the switch table look-up and the classification filter, it is found that the message does not have a session locally, and it is the first packet of the session, so the execution parent SFP ID is 100. , the process of the business chain of "NAT->DPI->Firewall";
步骤S1404,分类器封装父SFP ID为100,子SFP ID为0的报文到SFC封装头部,并和报文一起发送到业务链;Step S1404, the classifier encapsulates the message whose parent SFP ID is 100, and the child SFP ID is 0 to the SFC package header, and sends it to the service chain together with the message;
步骤S1405,NAT业务收到该用户报文之后,新建会话,并将该会话的转发表下发到交换机;Step S1405, after the NAT service receives the user message, a new session is created, and the forwarding table of the session is delivered to the switch;
步骤S1406,内网上述用户发出第二个访问Internet的报文,且该报文和上述第一个报文同属一个会话。经过交换机查表和分类器筛选之后,发现该会话的转发表已经存在,因此执行子SFP ID为1,“DPI->防火墙”的业务链的流程;Step S1406, the above-mentioned user on the intranet sends a second packet for accessing the Internet, and the packet and the above-mentioned first packet belong to the same session. After the switch table lookup and classifier screening, it is found that the forwarding table of the session already exists, so the process of the service chain with the sub-SFP ID is 1 and "DPI->Firewall" is executed;
步骤S1407,分类器封装父SFP ID为100,子SFP ID为1的报文到SFC封装头部,并和报文一起发送到“DPI->防火墙”业务链,并通过父SFP保持DPI和防火墙实例不变;Step S1407, the classifier encapsulates the packet whose parent SFP ID is 100 and the child SFP ID is 1 into the SFC encapsulation header, and sends the packet to the "DPI->Firewall" service chain together with the packet, and maintains DPI and firewall through the parent SFP. instance unchanged;
图15是根据本发明实施例2的业务功能链应用场景示意图,如图15所示,包括以下步骤Fig. 15 is a schematic diagram of an application scenario of a business function chain according to Embodiment 2 of the present invention, as shown in Fig. 15, including the following steps
步骤S1501,控制器配置该用户数据执行SFP为DPI->Http Filter->防火墙的业务功能链的操作;其中,DPI采用抽样的方式进行检测;Step S1501, the controller configures the user data to perform an operation in which the SFP is the business function chain of DPI->Http Filter->firewall; wherein, DPI is detected by sampling;
步骤S1502,控制器配置父SFP ID为101,“DPI->Http Filter->防火墙”的业务链;子SFP ID为1,“Http Filter->防火墙”的业务链到SFC域内的各个网元;Step S1502, the controller configures the parent SFP ID to be 101, the service chain of "DPI->Http Filter->Firewall"; the child SFP ID is 1, the service chain of "Http Filter->Firewall" to each network element in the SFC domain;
步骤S1503,内网上述用户发出第一个报文,通过分类器筛选和采样之后,发现该报文在DPI采样点,因此执行父SFP ID为101,“DPI->Http Filter->防火墙”的业务链的流程;Step S1503, the above-mentioned user on the intranet sends the first packet, and after filtering and sampling through the classifier, it is found that the packet is at the DPI sampling point, so the execution of the parent SFP ID is 101, "DPI->Http Filter->Firewall". business chain process;
步骤S1504,分类器封装父SFP ID为101,子SFP ID为0的报文到SFC封装头部,并和报文一起发送到“DPI->Http Filter->防火墙”业务链;Step S1504, the classifier encapsulates the message with the parent SFP ID of 101 and the child SFP ID of 0 into the SFC package header, and sends the message to the "DPI->Http Filter->Firewall" service chain together with the message;
步骤S1505,内网上述用户发出第二个访问Internet的报文,该报文和上述第一个报文同属一个用户。经过分类器筛选和筛选之后,发现该报文不在DPI采样点,因此执行子SFP ID为1,“Http Filter->防火墙”的业务链的流程;Step S1505, the above-mentioned user on the intranet sends a second packet for accessing the Internet, and the packet and the above-mentioned first packet belong to the same user. After filtering and screening by the classifier, it is found that the packet is not at the DPI sampling point, so the process of the service chain with the sub-SFP ID of 1 and "Http Filter->Firewall" is executed;
步骤S1506,分类器封装父SFP ID为101,子SFP ID为1的报文到SFC封装头部,并和报文一起发送到“Http Filter->防火墙”的业务链,并通过父SFP保持Http Filter和防火墙实例不变。Step S1506, the classifier encapsulates the packet whose parent SFP ID is 101 and the child SFP ID is 1 into the SFC encapsulation header, and sends the packet together with the packet to the service chain of "Http Filter->Firewall", and maintains Http through the parent SFP. The Filter and Firewall instances remain unchanged.
图16是根据本发明实施例3的业务功能链应用场景示意图,如图16所示,包括以下步骤Fig. 16 is a schematic diagram of an application scenario of a business function chain according to Embodiment 3 of the present invention, as shown in Fig. 16, including the following steps
步骤S1601,控制器配置该用户数据执行SFP为vBRAS->Http Filter->防火墙->DPI的业务功能链的操作;Step S1601, the controller configures the user data to execute the operation of the business function chain whose SFP is vBRAS->Http Filter->Firewall->DPI;
步骤S1602,控制器配置父SFP ID为102,“vBRAS->Http Filter->防火墙->DPI”的业务链;第一子SFP ID为1,“Http Filter->防火墙->DPI”;第二子SFP ID为2,“防火墙->DPI”;控制器配置上述业务链到SFC域内的各个网元;Step S1602, the controller configures the parent SFP ID as 102, the service chain of "vBRAS->Http Filter->Firewall->DPI"; the first child SFP ID is 1, "Http Filter->Firewall->DPI"; the second The sub-SFP ID is 2, "Firewall->DPI"; the controller configures the above services to be linked to each network element in the SFC domain;
步骤S1603,控制器配置vBRAS下发转发表到交换机;控制器配置在北京时间6:00-18:00执行Http Filter;北京时间6:00整,内网上述用户发出第一个报文,通过交换机查表和分类器筛选之后,发现该报文是该用户首包,因此执行父SFP ID为102,“vBRAS->HttpFilter->防火墙->DPI”的业务链的流程;Step S1603, the controller configures vBRAS to deliver the forwarding table to the switch; the controller is configured to execute Http Filter at 6:00-18:00 Beijing time; at 6:00 Beijing time, the above-mentioned user on the intranet sends the first packet, which is passed through After the switch looks up the table and filters the classifier, it is found that the packet is the first packet of the user, so the process of the service chain with the parent SFP ID of 102 and "vBRAS->HttpFilter->Firewall->DPI" is executed;
步骤S1604,分类器封装父SFP ID为103,子SFP ID为0的报文到SFC封装头部,并和报文一起发送到“vBRAS->Http Filter->防火墙->DPI”业务链;Step S1604, the classifier encapsulates the message whose parent SFP ID is 103 and the child SFP ID is 0 into the SFC encapsulation header, and sends the message together with the message to the "vBRAS->Http Filter->Firewall->DPI" service chain;
步骤S1605,北京时间6:01,内网上述用户发出第二个访问Internet的报文,该报文和上述第一个报文同属一个用户。经过交换机查表和分类器筛选之后,发现该报文已经在本地存在用户转发表,因此执行子SFP ID为1,“Http Filter->防火墙->DPI”的业务链的流程;Step S1605, at 6:01 Beijing time, the above-mentioned user on the intranet sends a second packet for accessing the Internet, and the packet and the above-mentioned first packet belong to the same user. After the switch table lookup and classifier screening, it is found that the packet already exists in the local user forwarding table, so the process of the service chain with the sub-SFP ID is 1 and "Http Filter->Firewall->DPI" is executed;
步骤S1606,分类器封装父SFP ID为103,子SFP ID为1的报文到SFC封装头部,并和报文一起发送到“Http Filter->防火墙->DPI”的业务链,并通过父SFP保持Http Filter和防火墙、DPI实例不变;Step S1606, the classifier encapsulates the packet with the parent SFP ID 103 and the child SFP ID 1 into the SFC encapsulation header, and sends the packet together with the packet to the service chain of "Http Filter->Firewall->DPI", and passes the parent SFP keeps Http Filter, firewall, and DPI instances unchanged;
步骤S1607,北京时间18:01,内网上述用户发出第N个访问Internet的报文,该报文和上述第一个、第二个……报文同属一个用户。经过交换机查表和分类器筛选之后,发现该报文已经在本地存在用户转发表,并且已经不在Http filter过滤的时效范围内,因此执行子SFP ID为2,“防火墙->DPI”的业务链的流程;Step S1607, at 18:01 Beijing time, the above-mentioned user on the intranet sends the Nth Internet-accessing packet, which belongs to the same user as the above-mentioned first, second... packets. After the switch table lookup and classifier screening, it is found that the packet already exists in the local user forwarding table and is no longer within the time limit of Http filter filtering. Therefore, the sub-SFP ID is 2 and the service chain of "firewall->DPI" is executed. process;
步骤S1608,分类器封装父SFP ID为103,子SFP ID为2的报文到SFC封装头部,并和报文一起发送到“防火墙->DPI”的业务链,并通过父SFP保持防火墙、DPI实例不变。Step S1608, the classifier encapsulates the message with the parent SFP ID of 103 and the child SFP ID of 2 into the SFC encapsulation header, and sends the message to the service chain of "Firewall->DPI" together with the message, and maintains the firewall, The DPI instance is unchanged.
综上所述,通过本发明提供的一种针对业务功能链生成的方法,尤其是将业务链划分为父链和子链的方法,解决相关技术中无法根据策略改变业务链路径的缺陷。To sum up, the present invention provides a method for generating a business function chain, especially a method for dividing a business chain into a parent chain and a child chain, to solve the defect that the business chain path cannot be changed according to the strategy in the related art.
在另外一个实施例中,还提供了一种软件,该软件用于执行上述实施例及优选实施方式中描述的技术方案。In another embodiment, a software is also provided, and the software is used to execute the technical solutions described in the foregoing embodiment and the preferred implementation manner.
在另外一个实施例中,还提供了一种存储介质,该存储介质中存储有上述软件,该存储介质包括但不限于:光盘、软盘、硬盘、可擦写存储器等。In another embodiment, a storage medium is also provided, in which the above-mentioned software is stored, and the storage medium includes but is not limited to: an optical disk, a floppy disk, a hard disk, a rewritable memory, and the like.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented by a general-purpose computing device, and they can be centralized on a single computing device or distributed in a network composed of multiple computing devices Alternatively, they may be implemented in program code executable by a computing device, such that they may be stored in a storage device and executed by the computing device, and in some cases, in a different order than here The steps shown or described are performed either by fabricating them separately into individual integrated circuit modules, or by fabricating multiple modules or steps of them into a single integrated circuit module. As such, the present invention is not limited to any particular combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims (16)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510238092.1A CN106302157B (en) | 2015-05-11 | 2015-05-11 | Method and device for sending message |
| PCT/CN2016/070069 WO2016180044A1 (en) | 2015-05-11 | 2016-01-04 | Message sending method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510238092.1A CN106302157B (en) | 2015-05-11 | 2015-05-11 | Method and device for sending message |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106302157A CN106302157A (en) | 2017-01-04 |
| CN106302157B true CN106302157B (en) | 2020-09-29 |
Family
ID=57247664
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510238092.1A Active CN106302157B (en) | 2015-05-11 | 2015-05-11 | Method and device for sending message |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106302157B (en) |
| WO (1) | WO2016180044A1 (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007011854A (en) * | 2005-07-01 | 2007-01-18 | Hitachi High-Tech Control Systems Corp | Plant control device |
| CN101119321A (en) * | 2007-09-29 | 2008-02-06 | 杭州华三通信技术有限公司 | Network traffic classification processing method and network traffic classification processing device |
| CN102255973A (en) * | 2011-08-23 | 2011-11-23 | 江苏省邮电规划设计院有限责任公司 | Routing method in vehicle wireless communication network and vehicle wireless communication network |
| CN104468344A (en) * | 2014-12-19 | 2015-03-25 | 中国人民解放军国防科学技术大学 | Line speed flexible multi-tuple message classifying method |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| IL214830A0 (en) * | 2011-08-25 | 2012-02-29 | Elta Systems Ltd | Network environment separation |
| CN108650178B (en) * | 2013-02-22 | 2021-01-15 | 华为技术有限公司 | A service message processing method, device and system |
| US9917745B2 (en) * | 2013-09-27 | 2018-03-13 | Futurewei Technologies, Inc. | Validation of chained network services |
| CN204089874U (en) * | 2014-09-12 | 2015-01-07 | 国家电网公司 | A kind of switch supporting packet storage |
| CN104506464A (en) * | 2014-12-12 | 2015-04-08 | 北京中科江南软件有限公司 | Electronic message parsing component based on node descriptors |
-
2015
- 2015-05-11 CN CN201510238092.1A patent/CN106302157B/en active Active
-
2016
- 2016-01-04 WO PCT/CN2016/070069 patent/WO2016180044A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007011854A (en) * | 2005-07-01 | 2007-01-18 | Hitachi High-Tech Control Systems Corp | Plant control device |
| CN101119321A (en) * | 2007-09-29 | 2008-02-06 | 杭州华三通信技术有限公司 | Network traffic classification processing method and network traffic classification processing device |
| CN102255973A (en) * | 2011-08-23 | 2011-11-23 | 江苏省邮电规划设计院有限责任公司 | Routing method in vehicle wireless communication network and vehicle wireless communication network |
| CN104468344A (en) * | 2014-12-19 | 2015-03-25 | 中国人民解放军国防科学技术大学 | Line speed flexible multi-tuple message classifying method |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2016180044A1 (en) | 2016-11-17 |
| CN106302157A (en) | 2017-01-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP3195535B1 (en) | Chaining of network service functions in a communication network | |
| EP3058687B1 (en) | Configurable service proxy mapping | |
| CN111066301B (en) | Method, system and storage medium for enforcing a unified global policy | |
| CN107409089B (en) | Method implemented in network engine and virtual network function controller | |
| CN106105165B (en) | Dynamic service chaining with network address translation detection | |
| US9258243B2 (en) | Symmetric service chain binding | |
| US20160301603A1 (en) | Integrated routing method based on software-defined network and system thereof | |
| CN105591971B (en) | A kind of implementation method and device of QoS | |
| CN107005472A (en) | Inter-domain service function is linked | |
| WO2017189743A1 (en) | Generating packets in a reverse direction of a service function chain | |
| EP3211832B1 (en) | Fault detection method and device | |
| JP2016528630A (en) | Application-aware network management | |
| CN105577416B (en) | A business function chain operation, management and maintenance method and node device | |
| CN115766560B (en) | Data forwarding method, device, router and storage medium | |
| WO2018188662A1 (en) | Information notification method and device | |
| US11700150B2 (en) | Allocation of tokens for network packets based on application type | |
| CN105515816A (en) | Processing method and apparatus for detection level information | |
| CN116132555B (en) | A message processing method and system | |
| US10778544B2 (en) | Dynamic allocation of processing queues for control packets in software defined networks | |
| US12457524B2 (en) | Apparatus and method for providing N6-LAN using service function chaining in wireless communication system | |
| WO2016058463A1 (en) | Method and system for processing protocol packet in service function chaining, and service function node | |
| CN106302157B (en) | Method and device for sending message | |
| CN107231309B (en) | Obtain method, controller and the purpose switching node of SDN the whole network view |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |
