[go: up one dir, main page]

CN105282050A - Method and device for aggregating data flows - Google Patents

Method and device for aggregating data flows Download PDF

Info

Publication number
CN105282050A
CN105282050A CN201510711884.6A CN201510711884A CN105282050A CN 105282050 A CN105282050 A CN 105282050A CN 201510711884 A CN201510711884 A CN 201510711884A CN 105282050 A CN105282050 A CN 105282050A
Authority
CN
China
Prior art keywords
aggregation
configuration information
nde
field
data flow
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.)
Granted
Application number
CN201510711884.6A
Other languages
Chinese (zh)
Other versions
CN105282050B (en
Inventor
涂少雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
XFusion Digital Technologies Co Ltd
Original Assignee
Beijing Huawei Digital Technologies Co Ltd
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 Beijing Huawei Digital Technologies Co Ltd filed Critical Beijing Huawei Digital Technologies Co Ltd
Priority to CN201510711884.6A priority Critical patent/CN105282050B/en
Publication of CN105282050A publication Critical patent/CN105282050A/en
Application granted granted Critical
Publication of CN105282050B publication Critical patent/CN105282050B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/41Flow control; Congestion control by acting on aggregated flows or links

Landscapes

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

Abstract

本发明实施例提供了一种聚合数据流的方法和装置。该方法中智能网络控制器可以根据用户需求从策略管控系统获得聚合配置信息,并向流量输出器下发该聚合配置信息,聚合配置信息中包括用于对数据流进行聚合所依据的聚合字段。这样,NDE可以根据聚合配置信息对数据流进行采样,并根据聚合字段对采样后的数据流进行聚合。本发明实施例通过上述方案能够实时灵活满足用户的聚合需求。

Embodiments of the present invention provide a method and device for aggregating data streams. In this method, the intelligent network controller can obtain aggregation configuration information from the policy management and control system according to user requirements, and deliver the aggregation configuration information to the flow exporter, where the aggregation configuration information includes aggregation fields used for aggregation of data streams. In this way, the NDE can sample the data stream according to the aggregation configuration information, and aggregate the sampled data stream according to the aggregation field. The embodiments of the present invention can flexibly meet the user's aggregation requirements in real time through the above solution.

Description

聚合数据流的方法和装置Method and apparatus for aggregating data streams

技术领域technical field

本发明涉及通信领域,并且更具体地,涉及聚合数据流的方法和装置。The present invention relates to the field of communications, and more particularly, to methods and apparatus for aggregating data streams.

背景技术Background technique

软件定义网络(SoftwareDefinedNetwork,SDN)是新一代网络架构,其核心思想是将网络设备传输的数据面和控制面解耦,控制面进行集中管理,实现对网络资源灵活的按需调配实施。Software Defined Network (Software Defined Network, SDN) is a new generation of network architecture. Its core idea is to decouple the data plane and control plane transmitted by network equipment, and centralize the management of the control plane to achieve flexible on-demand deployment of network resources.

在网络系统中,人们总希望能够最大限度地利用网络带宽,因此需要基于业务数量和业务特征合理的规划端口和配置路由。但是,网络中的流量是动态的,网络中的某条链路在某个时段可能会出现拥塞,这时可能造成网络带宽的利用率降低。为了提高网络带宽的利用率,可以实时查看网络中不同级别业务的流量统计情况,并根据流量统计情况合理调整网络中业务的传输路径。In a network system, people always hope to maximize the use of network bandwidth, so it is necessary to plan ports and configure routes reasonably based on the number of services and service characteristics. However, the traffic in the network is dynamic, and a certain link in the network may be congested at a certain period of time, which may reduce the utilization rate of the network bandwidth. In order to improve the utilization rate of network bandwidth, you can view the traffic statistics of different levels of services in the network in real time, and adjust the transmission paths of services in the network reasonably according to the traffic statistics.

传统的实施方案中可以通过采样聚合技术实现对不同维度的数据流流量进行统计。例如,智能网络控制器(SmartNetworkController,SNC)可以下发采样比给网络流数据输出器(NetStreamDataExporter,NDE)。NDE可以基于指定的聚合模式对数据流进行采样聚合,并通过网络流数据收集(NetStreamCollector,NSC)对聚合流统计信息进行分析,最终通过策略管控系统实现对网络流量的合理分配。In a traditional implementation, statistics on data stream traffic in different dimensions can be realized through sampling aggregation technology. For example, an intelligent network controller (SmartNetworkController, SNC) may issue a sampling ratio to a network stream data exporter (NetStreamDataExporter, NDE). NDE can sample and aggregate data streams based on the specified aggregation mode, and analyze the aggregated stream statistical information through network stream data collection (NetStreamCollector, NSC), and finally realize the reasonable distribution of network traffic through the policy control system.

上述实施方案中,NDE需要预先开发不同维度的聚合模式,以对数据流实现基于不同粒度的聚合。例如,基于组合的聚合,在SDN虚拟扩展局域网(VirtualeXtensibleLocalAreaNetwork,VXLAN)场景中,可以用户的目的网际协议(InternetProtocol,IP)地址和VXLAN网络标识(VXLANNetworkIdentifier,VNI)两个字段表示一个租户。一组聚合字段可以开发一种聚合模式。这种对数据流进行聚合的方式只能实时统计已经开发的聚合模式。当用户想要统计尚未开发的聚合模式的聚合流信息时,首先要根据用户需求开发新的聚合模式,利用新的聚合模式才能实现数据流的聚合。这种对数据流进行聚合的方式可能导致开发周期长,不能灵活满足用户的聚合需求。In the above implementation, NDE needs to develop aggregation modes of different dimensions in advance, so as to implement aggregation based on different granularities for data streams. For example, based on combined aggregation, in an SDN Virtual Extended Local Area Network (VirtualeXtensibleLocalAreaNetwork, VXLAN) scenario, a tenant may be represented by two fields: the user's destination Internet Protocol (InternetProtocol, IP) address and the VXLAN Network Identifier (VXLANNetworkIdentifier, VNI). A set of aggregate fields can develop an aggregation schema. This way of aggregating data streams can only count aggregated modes that have been developed in real time. When users want to collect aggregated flow information of an undeveloped aggregation mode, they must first develop a new aggregation mode according to user needs, and use the new aggregation mode to realize the aggregation of data streams. This method of aggregating data streams may lead to a long development cycle and cannot flexibly meet user aggregation requirements.

发明内容Contents of the invention

本发明实施例提供一种聚合数据流的方法和装置,能够实时灵活满足用户的聚合需求。Embodiments of the present invention provide a method and device for aggregating data streams, which can flexibly meet users' aggregation requirements in real time.

第一方面,提供了一种聚合数据流的方法,包括:智能网络控制器SNC接收策略管控系统根据用户统计需求发送的聚合配置信息,所述聚合配置信息包括至少一个聚合字段,所述聚合字段为对数据流进行聚合所依据的字段类型;所述SNC向流量输出器NDE发送聚合配置信息,以便所述NDE根据所述聚合配置信息对数据流进行采样,并根据所述至少一个聚合字段对采样后的数据流进行聚合。In a first aspect, a method for aggregating data streams is provided, including: an intelligent network controller SNC receives aggregation configuration information sent by a policy management and control system according to user statistics requirements, the aggregation configuration information includes at least one aggregation field, and the aggregation field The field type on which the data flow is aggregated; the SNC sends aggregation configuration information to the traffic exporter NDE, so that the NDE samples the data flow according to the aggregation configuration information, and according to the at least one aggregation field The sampled data streams are aggregated.

本发明实施例中,SNC可以根据用户需求从策略管控系统获得聚合配置信息,并向NDE下发聚合配置信息,聚合配置信息中包括用于对数据流进行聚合所依据的聚合字段,以便NDE根据聚合配置信息对数据流进行采样,并根据聚合字段对采样后的数据流进行聚合,这样可以解决现有技术中需要根据用户需求开发多种聚合模式的技术问题,能够实时灵活满足用户的聚合需求。In the embodiment of the present invention, the SNC can obtain aggregation configuration information from the policy management and control system according to user requirements, and deliver the aggregation configuration information to the NDE. The aggregation configuration information includes the aggregation fields used to aggregate data streams, so that the NDE can use Aggregate configuration information to sample the data stream, and aggregate the sampled data stream according to the aggregation field, which can solve the technical problem in the existing technology that needs to develop multiple aggregation modes according to user needs, and can flexibly meet the user's aggregation needs in real time .

结合第一方面,在第一方面的一种实现方式中,所述方法还包括:所述SNC为所述至少一个聚合字段分别分配对应的字段类型值;其中,所述SNC向流量输出器NDE发送聚合配置信息,所述聚合配置信息包括所述至少一个聚合字段,以便所述NDE根据所述聚合配置信息对数据流进行采样,并根据所述至少一个聚合字段对采样后的数据流进行聚合包括:所述SNC向所述NDE发送所述聚合配置信息,所述聚合配置信息包括所述至少一个聚合字段和所述字段类型值,以便所述NDE根据所述聚合配置信息对数据流进行采样,并根据所述至少一个聚合字段和所述字段类型值对采样后的数据流进行聚合。With reference to the first aspect, in an implementation manner of the first aspect, the method further includes: the SNC assigns corresponding field type values to the at least one aggregation field; wherein, the SNC sends the traffic exporter NDE sending aggregation configuration information, where the aggregation configuration information includes the at least one aggregation field, so that the NDE samples the data flow according to the aggregation configuration information, and aggregates the sampled data flow according to the at least one aggregation field Including: the SNC sending the aggregation configuration information to the NDE, the aggregation configuration information including the at least one aggregation field and the field type value, so that the NDE samples the data flow according to the aggregation configuration information , and aggregate the sampled data stream according to the at least one aggregation field and the field type value.

结合第一方面及其上述实现方式,在第一方面的另一种实现方式中,所述方法还包括:所述SNC接收所述策略管控系统发送的通过解析所述数据流得到的所述至少一个聚合字段在所述数据流中的偏移量;所述SNC向所述NDE发送所述偏移量。With reference to the first aspect and the foregoing implementation manners thereof, in another implementation manner of the first aspect, the method further includes: the SNC receiving the at least An offset of an aggregation field in the data stream; the SNC sends the offset to the NDE.

结合第一方面及其上述实现方式,在第一方面的另一种实现方式中,所述方法还包括:所述SNC确定访问控制表(AccessControlList,ACL)策略,所述ACL策略用于指示所述NDE对所述数据流进行过滤;所述SNC向所述NDE发送所述ACL策略。With reference to the first aspect and the above-mentioned implementation manners, in another implementation manner of the first aspect, the method further includes: the SNC determines an access control list (AccessControlList, ACL) policy, and the ACL policy is used to indicate the The NDE filters the data flow; the SNC sends the ACL policy to the NDE.

SNC通过制定ACL策略并向NDE发送该ACL策略,可以使得NDE对数据流进行过滤,即满足ACL策略的数据流才做聚合。ACL过滤能够灵活实现针对源目的IP地址、协议类型、端口号等各种形式的过滤。NDE通过ACL过滤可以将部分不能够聚合的数据流过滤掉,使得NDE可以只对符合条件的流进行统计,减少后续根据聚合字段对数据流进行聚合统计的复杂度。例如,用户数据报协议(UserDatagramProtocol,UDP)中携带的VNI字段是其它协议的数据报文中所没有的。NDE可以通过SNC制定的ACL策略将满足UDP报文的过滤出来。这样,在NDE对数据流进行聚合时,可以减少对所有采样后的数据流进行聚合的复杂度,缩短聚合时间。By formulating an ACL policy and sending the ACL policy to the NDE, the SNC can make the NDE filter the data flow, that is, only the data flow meeting the ACL policy is aggregated. ACL filtering can flexibly implement various forms of filtering for source and destination IP addresses, protocol types, port numbers, etc. NDE can filter out some data streams that cannot be aggregated through ACL filtering, so that NDE can only collect statistics on eligible streams, reducing the complexity of subsequent aggregation and statistics of data streams based on aggregation fields. For example, the VNI field carried in the User Datagram Protocol (User Datagram Protocol, UDP) is not included in the data packets of other protocols. The NDE can filter the UDP packets through the ACL policy formulated by the SNC. In this way, when the NDE aggregates the data streams, the complexity of aggregating all the sampled data streams can be reduced, and the aggregation time can be shortened.

结合第一方面及其上述实现方式,在第一方面的另一种实现方式中,所述方法还包括:所述SNC向智能网络控制器NSC发送所述至少一个聚合字段和所述字段类型值的对应关系。With reference to the first aspect and the above implementation manners, in another implementation manner of the first aspect, the method further includes: the SNC sending the at least one aggregation field and the field type value to the intelligent network controller NSC corresponding relationship.

上述聚合数据流的方式可以应用于调节网络流量。例如,SNC还可以向NSC发送至少一个聚合字段和字段类型值的对应关系,以便NSC根据该对应关系对聚合流统计信息进行分析进而使得策略管控系统调节网络流量。The foregoing manner of aggregating data streams can be applied to regulate network traffic. For example, the SNC can also send the correspondence between at least one aggregation field and field type value to the NSC, so that the NSC can analyze the aggregated flow statistics according to the correspondence, and then enable the policy control system to adjust the network traffic.

第二方面,提供了一种聚合数据流的方法,包括:流量输出器NDE接收智能网络控制器SNC发送的聚合配置信息,所述聚合配置信息包括至少一个聚合字段,所述聚合字段为对数据流进行聚合所依据的字段类型;所述NDE接收其它NDE发送的数据流;所述NDE根据所述聚合配置信息对接收的所述数据流进行采样,得到采样后的数据流;所述NDE根据所述至少一个聚合字段对所述采样后的数据流进行聚合。In a second aspect, a method for aggregating data streams is provided, including: a traffic exporter NDE receives aggregation configuration information sent by an intelligent network controller SNC, and the aggregation configuration information includes at least one aggregation field, and the aggregation field is for data The field type on which streams are aggregated; the NDE receives data streams sent by other NDEs; the NDE samples the received data streams according to the aggregation configuration information to obtain the sampled data streams; the NDE according to The at least one aggregation field aggregates the sampled data stream.

本发明实施例中NDE根据聚合配置信息对数据流进行采样,并根据聚合字段对采样后的数据流进行聚合,这样能够实时灵活满足用户的聚合需求。In the embodiment of the present invention, the NDE samples the data stream according to the aggregation configuration information, and aggregates the sampled data stream according to the aggregation field, so that the aggregation requirements of the user can be flexibly met in real time.

结合第二方面,在第二方面的一种实现方式中,所述聚合配置信息还包括所述至少一个聚合字段的字段类型值;其中,所述NDE根据所述至少一个聚合字段对所述采样后的数据流进行聚合包括:所述NDE根据所述至少一个聚合字段和所述字段类型值对所述采样后的数据流进行聚合。With reference to the second aspect, in an implementation manner of the second aspect, the aggregation configuration information further includes a field type value of the at least one aggregation field; wherein, the NDE samples the Aggregating the sampled data streams includes: the NDE aggregates the sampled data streams according to the at least one aggregation field and the field type value.

NDE对数据流进行聚合之后可以得到聚合流,并对聚合流的信息进行统计,得到聚合流统计信息。当系统需要通过聚合流统计信息实现对通信系统的调节,例如对流量进行调节时,NDE可以向NSC发送聚合流统计信息,使得NSC对聚合流统计信息进行分析。NSC可以将分析结果发给策略管控系统,策略管控系统可以根据分析结果实现对网络流量的调节和控制,从而可以合理分配网络传输路径,进而减少网络拥堵等。After the NDE aggregates the data streams, the aggregated streams can be obtained, and the aggregated stream information can be collected to obtain aggregated stream statistical information. When the system needs to adjust the communication system through aggregated flow statistics, for example, to adjust traffic, the NDE can send the aggregated flow statistics to the NSC so that the NSC can analyze the aggregated flow statistics. The NSC can send the analysis results to the policy management and control system, and the policy management and control system can adjust and control the network traffic according to the analysis results, so as to reasonably allocate network transmission paths and reduce network congestion.

结合第二方面及其上述实现方式,在第二方面的另一种实现方式中,在所述NDE根据所述至少一个聚合字段对所述采样后的数据流进行聚合之前,所述方法还包括:所述NDE接收所述SNC发送的访问控制表ACL策略;根据所述ACL策略对所述采样后的数据流进行过滤,得到过滤后的数据流;其中,所述NDE根据所述至少一个聚合字段对所述采样后的数据流进行聚合包括:所述NDE根据所述至少一个聚合字段对所述过滤后的数据流进行聚合。With reference to the second aspect and the above implementation manners, in another implementation manner of the second aspect, before the NDE aggregates the sampled data stream according to the at least one aggregation field, the method further includes : the NDE receives the access control table ACL policy sent by the SNC; filters the sampled data stream according to the ACL policy to obtain the filtered data stream; wherein the NDE aggregates the at least one Aggregating the sampled data stream by field includes: the NDE aggregates the filtered data stream according to the at least one aggregation field.

NDE对数据流进行聚合时,通过ACL策略对数据流进行过滤,这样可以减少对所有采样后的数据流进行聚合的复杂度,缩短聚合时间。When NDE aggregates data streams, it uses ACL policies to filter data streams, which reduces the complexity of aggregating all sampled data streams and shortens the aggregation time.

第三方面,提供了一种聚合数据流的方法,包括:策略管控系统根据用户的统计需求确定聚合配置信息,所述聚合配置信息包括至少一个聚合字段,所述聚合字段为对数据流进行聚合所依据的字段类型;策略管控系统向所述智能网络控制器SNC发送所述聚合配置信息,以便所述SNC向流量输出器NDE发送所述聚合配置信息,使得NDE根据所述聚合配置信息对数据流进行采样,并根据所述至少一个聚合字段对采样后的数据流进行聚合。In a third aspect, a method for aggregating data streams is provided, including: a policy control system determines aggregation configuration information according to user statistical requirements, the aggregation configuration information includes at least one aggregation field, and the aggregation field is for aggregating data flows The field type to be used; the policy control system sends the aggregation configuration information to the intelligent network controller SNC, so that the SNC sends the aggregation configuration information to the traffic exporter NDE, so that the NDE performs data processing according to the aggregation configuration information The flow is sampled, and the sampled data flow is aggregated according to the at least one aggregation field.

结合第三方面,在第三方面的一种实现方式中,所述方法还包括:策略管控系统获取所述数据流;策略管控系统对所述数据流进行解析,得到所述至少一个聚合字段的偏移量;策略管控系统向网络流量数据收集器SNC发送所述偏移量。With reference to the third aspect, in an implementation manner of the third aspect, the method further includes: the policy management and control system acquires the data flow; the policy management and control system parses the data flow to obtain the at least one aggregation field Offset; the policy control system sends the offset to the network flow data collector SNC.

上述策略管控系统获取数据流可以通过抓包(packetcapture)来实现。抓包就是将网络中传输的数据包进行截获、重发、编辑、转存等操作,经常被用来进行数据截取等。The acquisition of the data flow by the above-mentioned policy control system may be realized through packet capture. Packet capture is to intercept, resend, edit, and transfer data packets transmitted in the network, and is often used for data interception.

策略管控系统可以接收NSC发送的对数据流统计信息进行分析得到的流量分析结果,并根据流量分析结果对网络流量进行调节,从而可以减小网络堵塞等。The policy control system can receive the traffic analysis results sent by the NSC to analyze the data flow statistics, and adjust the network traffic according to the traffic analysis results, thereby reducing network congestion.

第四方面,提供了一种聚合数据流的装置,包括:第一接收单元,用于接收策略管控系统根据用户统计需求发送的聚合配置信息,所述聚合配置信息包括至少一个聚合字段,所述聚合字段为对数据流进行聚合所依据的字段类型;第一发送单元,用于向流量输出器NDE发送所述第一接收单元接收的所述聚合配置信息,以便所述NDE根据所述聚合配置信息对数据流进行采样,并根据所述至少一个聚合字段对采样后的数据流进行聚合。In a fourth aspect, an apparatus for aggregating data streams is provided, including: a first receiving unit, configured to receive aggregation configuration information sent by a policy management and control system according to user statistics requirements, where the aggregation configuration information includes at least one aggregation field, and the The aggregation field is the type of field on which the data streams are aggregated; the first sending unit is configured to send the aggregation configuration information received by the first receiving unit to the flow exporter NDE, so that the NDE The information samples the data flow, and aggregates the sampled data flow according to the at least one aggregation field.

结合第四方面,在第四方面的一种实现方式中,所述装置还包括:分配单元,用于为所述至少一个聚合字段分别分配对应的字段类型值;其中,第一发送单元具体用于向所述NDE发送所述聚合配置信息,所述聚合配置信息包括所述至少一个聚合字段和所述字段类型值,以便所述NDE根据所述聚合配置信息对数据流进行采样,并根据所述至少一个聚合字段和所述字段类型值对采样后的数据流进行聚合。With reference to the fourth aspect, in an implementation manner of the fourth aspect, the device further includes: an allocation unit configured to allocate corresponding field type values to the at least one aggregation field; wherein the first sending unit specifically uses to send the aggregation configuration information to the NDE, where the aggregation configuration information includes the at least one aggregation field and the field type value, so that the NDE samples the data flow according to the aggregation configuration information, and according to the The at least one aggregation field and the field type value are used to aggregate the sampled data stream.

结合第四方面及其上述实现方式,在第四方面的另一种实现方式中,所述装置还包括:第二接收单元,用于接收所述策略管控系统发送的通过解析所述数据流得到的所述至少一个聚合字段在所述数据流中的偏移量;第二发送单元,用于向所述NDE发送所述偏移量。With reference to the fourth aspect and the above-mentioned implementation manners, in another implementation manner of the fourth aspect, the device further includes: a second receiving unit, configured to receive the information sent by the policy management and control system and obtained by parsing the data stream. An offset of the at least one aggregation field in the data stream; a second sending unit, configured to send the offset to the NDE.

结合第四方面及其上述实现方式,在第四方面的另一种实现方式中,所述装置还包括:确定单元,用于确定访问控制表ACL策略,所述ACL策略用于指示所述NDE对所述数据流进行过滤;第三发送单元,用于向所述NDE发送所述ACL策略。With reference to the fourth aspect and its above-mentioned implementation manners, in another implementation manner of the fourth aspect, the apparatus further includes: a determination unit configured to determine an access control list ACL policy, and the ACL policy is used to indicate that the NDE Filtering the data flow; a third sending unit, configured to send the ACL policy to the NDE.

结合第四方面及其上述实现方式,在第四方面的另一种实现方式中,所述装置还包括:第四发送单元,用于向智能网络控制器NSC发送所述至少一个聚合字段和所述字段类型值的对应关系。With reference to the fourth aspect and the above implementation manners, in another implementation manner of the fourth aspect, the apparatus further includes: a fourth sending unit, configured to send the at least one aggregation field and the The corresponding relationship between the above field type values.

第四方面提供的聚合数据流的装置,可以用于执行上述第一方面或第一方面的任意可能的实现方式中的方法。具体地,该装置包括用于执行上述第一方面或第一方面的任意可能的实现方式中的方法的单元。The apparatus for aggregating data streams provided in the fourth aspect may be used to execute the method in the foregoing first aspect or any possible implementation manner of the first aspect. Specifically, the apparatus includes a unit configured to execute the method in the foregoing first aspect or any possible implementation manner of the first aspect.

第五方面,提供了一种聚合数据流的装置,所述装置由流量输出器NDE执行,所述装置包括:第一接收单元,用于接收智能网络控制器SNC发送的聚合配置信息,所述聚合配置信息包括至少一个聚合字段,所述聚合字段为对数据流进行聚合所依据的字段类型;第二接收单元,用于接收其它NDE发送的数据流;采样单元,用于根据所述第一接收单元接收的所述聚合配置信息对第二接收单元接收的所述数据流进行采样,得到采样后的数据流;聚合单元,用于根据所述至少一个聚合字段对所述采样单元得到的所述采样后的数据流进行聚合。In a fifth aspect, there is provided a device for aggregating data streams, the device is executed by a traffic exporter NDE, and the device includes: a first receiving unit, configured to receive aggregation configuration information sent by an intelligent network controller SNC, the The aggregation configuration information includes at least one aggregation field, the aggregation field is the field type on which the data flow is aggregated; the second receiving unit is used to receive the data flow sent by other NDE; The aggregated configuration information received by the receiving unit samples the data stream received by the second receiving unit to obtain the sampled data stream; the aggregated unit is configured to perform the aggregated configuration information obtained by the sampling unit according to the at least one aggregated field The above sampled data streams are aggregated.

结合第五方面,在第五方面的一种实现方式中,所述聚合配置信息还包括所述至少一个聚合字段的字段类型值;其中,所述聚合单元具体用于根据所述至少一个聚合字段和所述字段类型值对所述采样后的数据流进行聚合。With reference to the fifth aspect, in an implementation manner of the fifth aspect, the aggregation configuration information further includes a field type value of the at least one aggregation field; wherein the aggregation unit is specifically configured to and the field type value to aggregate the sampled data stream.

结合第五方面及其上述实现方式,在第五方面的另一种实现方式中,所述装置还包括:第三接收单元,用于接收所述SNC发送的访问控制表ACL策略;过滤单元,用于根据所述ACL策略对所述采样后的数据流进行过滤,得到过滤后的数据流;其中,所述聚合单元具体用于根据所述至少一个聚合字段对所述过滤后的数据流进行聚合。With reference to the fifth aspect and the above implementation manners thereof, in another implementation manner of the fifth aspect, the device further includes: a third receiving unit configured to receive the ACL policy sent by the SNC; a filtering unit, It is used to filter the sampled data flow according to the ACL policy to obtain the filtered data flow; wherein, the aggregation unit is specifically configured to perform the filtering on the filtered data flow according to the at least one aggregation field polymerization.

第五方面提供的聚合数据流的装置,可以用于执行上述第二方面或第二方面的任意可能的实现方式中的方法。具体地,该装置包括用于执行上述第二方面或第二方面的任意可能的实现方式中的方法的单元。The apparatus for aggregating data streams provided in the fifth aspect may be used to execute the method in the second aspect or any possible implementation manner of the second aspect. Specifically, the apparatus includes a unit for performing the method in the above second aspect or any possible implementation manner of the second aspect.

第六方面,提供了一种聚合数据流的装置,其特征在于,包括:确定单元,用于根据用户的统计需求确定聚合配置信息,所述聚合配置信息包括至少一个聚合字段,所述聚合字段为对数据流进行聚合所依据的字段类型;第一发送单元,用于向所述智能网络控制器SNC发送所述确定单元确定的所述聚合配置信息,以便所述SNC向流量输出器NDE发送所述聚合配置信息,使得NDE根据所述聚合配置信息对数据流进行采样,并根据所述至少一个聚合字段对采样后的数据流进行聚合。According to the sixth aspect, there is provided an apparatus for aggregating data streams, which is characterized in that it includes: a determining unit configured to determine aggregated configuration information according to statistical requirements of users, the aggregated configuration information includes at least one aggregated field, and the aggregated field The type of field on which the data flow is aggregated; the first sending unit is configured to send the aggregation configuration information determined by the determining unit to the intelligent network controller SNC, so that the SNC sends to the traffic exporter NDE The aggregation configuration information enables the NDE to sample the data stream according to the aggregation configuration information, and aggregate the sampled data stream according to the at least one aggregation field.

结合第六方面,在第六方面的一种实现方式中,所述装置还包括:获取单元,用于获取所述数据流;解析单元,用于对所述数据流进行解析,得到所述至少一个聚合字段的偏移量;第二发送单元,用于向网络流量数据收集器SNC发送所述偏移量。With reference to the sixth aspect, in an implementation manner of the sixth aspect, the device further includes: an acquiring unit, configured to acquire the data stream; an parsing unit, configured to parse the data stream, to obtain the at least An offset of an aggregation field; a second sending unit, configured to send the offset to the network traffic data collector SNC.

第六方面提供的聚合数据流的装置,可以用于执行上述第三方面或第三方面的任意可能的实现方式中的方法。具体地,该装置包括用于执行上述第三方面或第三方面的任意可能的实现方式中的方法的单元。The apparatus for aggregating data streams provided in the sixth aspect may be used to execute the method in the third aspect or any possible implementation manner of the third aspect. Specifically, the apparatus includes a unit for performing the method in the above third aspect or any possible implementation manner of the third aspect.

上述实施例中的聚合字段可以为任意的字段。例如,聚合字段可以为标准中已定义的现有字段,例如请求注解(RequestForComments,RFC)3954标准,RFC7011标准等。聚合字段也可以为用户自定义的字段。聚合字段还可以是现有字段和用户自定义的字段的组合。The aggregation field in the above embodiment may be any field. For example, the aggregation field may be an existing field defined in a standard, such as the Request For Comments (RequestForComments, RFC) 3954 standard, the RFC7011 standard, and the like. Aggregate fields can also be user-defined fields. Aggregate fields can also be a combination of existing fields and user-defined fields.

聚合配置信息中可以包括采样比,但相对现有技术中SNC给NDE仅下发采样比来说,本发明实施例通过在聚合配置信息中增加聚合字段,可以通过聚合字段灵活实现不同维度的聚合需求。The aggregation configuration information may include the sampling ratio, but compared to the prior art where the SNC only sends the sampling ratio to the NDE, the embodiment of the present invention adds an aggregation field to the aggregation configuration information, and can flexibly realize aggregation of different dimensions through the aggregation field need.

上述实施例中的聚合(aggregation)指的是将采样得到的数据流中的海量信息通过一定的规则进行内容挑选、分析、归类、合并,并得到聚合流和聚合流统计信息。聚合经常用于对某些特征数据流进行统计,例如,本发明实施例中可以聚合指定的聚合字段及其字段类型值相同的数据流。Aggregation in the above embodiments refers to selecting, analyzing, categorizing, and merging the mass information in the sampled data stream according to certain rules, and obtaining the aggregated stream and aggregated stream statistical information. Aggregation is often used to collect statistics on certain characteristic data streams. For example, in the embodiment of the present invention, data streams with the specified aggregation field and the same field type value can be aggregated.

策略管控系统可以通过上述实施例中的聚合数据流的方式最终实现对网络流量的调节。本发明实施例中对数据流进行聚合的方式不仅仅可以用于调节网络流量,还可以用于网络规划的其它场景中,例如网络计费、网络安全等。The policy management and control system can ultimately adjust the network traffic by means of aggregating data streams in the above embodiments. The method of aggregating data streams in the embodiment of the present invention can not only be used to regulate network traffic, but also can be used in other scenarios of network planning, such as network charging, network security, and the like.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单地介绍,显而易见地,下面所描述的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings required in the embodiments of the present invention. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.

图1是可应用本发明实施例的通信系统的一个应用场景的示意图。Fig. 1 is a schematic diagram of an application scenario of a communication system to which an embodiment of the present invention can be applied.

图2是本发明一个实施例的聚合数据流的方法的示意性流程图。Fig. 2 is a schematic flowchart of a method for aggregating data streams according to an embodiment of the present invention.

图3是本发明一个实施例的在SDN场景中对数据流进行聚合进而调节网络流量的示意性交互图。Fig. 3 is a schematic interaction diagram of aggregating data flows in an SDN scenario to regulate network traffic according to an embodiment of the present invention.

图4是本发明一个实施例的聚合数据流的装置的框图。Fig. 4 is a block diagram of an apparatus for aggregating data streams according to an embodiment of the present invention.

图5是本发明另一实施例的聚合数据流的装置的框图。Fig. 5 is a block diagram of an apparatus for aggregating data streams according to another embodiment of the present invention.

图6是本发明再一实施例的聚合数据流的装置的框图。Fig. 6 is a block diagram of an apparatus for aggregating data streams according to yet another embodiment of the present invention.

图7是本发明一个实施例的聚合数据流的装置的框图。Fig. 7 is a block diagram of an apparatus for aggregating data streams according to an embodiment of the present invention.

图8是本发明另一实施例的聚合数据流的装置的框图。Fig. 8 is a block diagram of an apparatus for aggregating data streams according to another embodiment of the present invention.

图9是本发明再一实施例的聚合数据流的装置的框图。Fig. 9 is a block diagram of an apparatus for aggregating data streams according to yet another embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明的一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都应属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

图1是可应用本发明实施例的通信系统的一个应用场景的示意图。Fig. 1 is a schematic diagram of an application scenario of a communication system to which an embodiment of the present invention can be applied.

图1的通信系统包括交换机101、交换机102、交换机103、交换机104、交换机105、交换机106和控制器107。图中用实线表示正常的传输业务路径,用点画线表示拥塞链路。可以看出,交换机102和交换机105之间出现拥塞。数据流由交换机105到达交换机102还可以有其它路径,图1中用带箭头的虚线表示其它传输路径。例如,传输路径交换机105-交换机106-交换机101-交换机102,或者,交换机105-交换机104-交换机103-交换机102。当交换机102和交换机105之间的链路出现拥塞时,控制器可以通过对网络流量进行调整,将部分流量调整到其它传输路径上。例如,将部分流量调整到图1中的虚线表示的绕行传输路径上。The communication system in FIG. 1 includes a switch 101 , a switch 102 , a switch 103 , a switch 104 , a switch 105 , a switch 106 and a controller 107 . In the figure, a solid line represents a normal transmission service path, and a dotted line represents a congested link. It can be seen that congestion occurs between switch 102 and switch 105 . There may also be other paths for the data flow to reach the switch 102 from the switch 105, and dashed lines with arrows in FIG. 1 indicate other transmission paths. For example, the transmission path is switch 105-switch 106-switch 101-switch 102, or switch 105-switch 104-switch 103-switch 102. When the link between the switch 102 and the switch 105 is congested, the controller can adjust part of the traffic to other transmission paths by adjusting the network traffic. For example, part of the traffic is adjusted to the detour transmission path indicated by the dotted line in FIG. 1 .

控制器要实现对流量的调整,需要将网络中不同粒度级别的流量呈现出来。在SDN场景中,SNC可以下发采样比给NDE,并在数据流经过的NDE接口上对转发的数据流进行采样,接着对数据流进行聚合统计,最后将不同维度的聚合流流量数据汇总到NSC。NSC可以对流量数据进行分析,并将分析结果发送给策略管控系统,最后通过策略管控系统实现对基于指定聚合字段的聚合流流量的合理分配。但是,NDE需要依据已开发的聚合模式,才可以在实现对数据流的聚合。当用户想要统计尚未开发的聚合模式的聚合流流量时,首先要根据用户需求开发新的聚合模式。这样不能满足用户对基于任意一组聚合字段的实时灵活的聚合流流量统计需求。本发明实施例给出灵活获取基于不同聚合字段的对数据流进行聚合的方法。将本发明实施例中的聚合方法应用于网络流量调节时,可以快速灵活实现基于不同维度的网络流量的调节。In order for the controller to adjust traffic, it needs to present traffic at different levels of granularity in the network. In an SDN scenario, the SNC can send the sampling ratio to the NDE, and sample the forwarded data flow on the NDE interface through which the data flow passes, then aggregate and collect statistics on the data flow, and finally summarize the aggregated flow data of different dimensions into NSC. The NSC can analyze the traffic data and send the analysis results to the policy management and control system. Finally, through the policy management and control system, the aggregated traffic based on the specified aggregation field can be allocated reasonably. However, NDE needs to rely on the developed aggregation mode to realize the aggregation of data streams. When a user wants to count the aggregation flow traffic of an aggregation mode that has not yet been developed, a new aggregation mode should be developed according to the user's needs first. This cannot meet the user's demand for real-time and flexible aggregation flow statistics based on any set of aggregation fields. Embodiments of the present invention provide a method for flexibly acquiring data stream aggregation based on different aggregation fields. When the aggregation method in the embodiment of the present invention is applied to network traffic regulation, network traffic regulation based on different dimensions can be quickly and flexibly realized.

图2是本发明一个实施例的聚合数据流的方法的示意性流程图。Fig. 2 is a schematic flowchart of a method for aggregating data streams according to an embodiment of the present invention.

本发明一个实施例的系统包括NDE、SNC和策略管控系统。其中,SNC可以为控制器,NDE可以为交换机或路由器。SNC可以给NDE下发配置,使得NDE根据配置执行操作。The system of an embodiment of the present invention includes NDE, SNC and policy management and control system. Wherein, the SNC may be a controller, and the NDE may be a switch or a router. The SNC can deliver configurations to the NDE, so that the NDE performs operations according to the configurations.

201,策略管控系统确定聚合配置信息。201. The policy control system determines aggregated configuration information.

策略管控系统可以根据用户统计需求确定聚合配置信息。聚合配置信息包括至少一个聚合字段。聚合字段可以为对数据流进行聚合所依据的字段类型。The policy management and control system can determine aggregated configuration information according to user statistical requirements. The aggregated configuration information includes at least one aggregated field. The aggregation field may be a field type based on which data streams are aggregated.

202,策略管控系统向SNC发送聚合配置信息。202. The policy control system sends aggregation configuration information to the SNC.

策略管控系统在确定聚合配置信息后,可以向SNC发送聚合配置信息。After determining the aggregated configuration information, the policy control system may send the aggregated configuration information to the SNC.

203,SNC向NDE发送聚合配置信息。203. The SNC sends aggregation configuration information to the NDE.

SNC接收聚合配置信息之后可以向NDE下发聚合配置信息。After receiving the aggregation configuration information, the SNC can deliver the aggregation configuration information to the NDE.

204,NDE对接收的数据流进行采样,并对采样后的数据流进行聚合。204. The NDE samples the received data stream, and aggregates the sampled data stream.

NDE接收聚合配置信息后,可以根据聚合配置信息中的采样比对数据流进行采样,该数据流可以为由其它NDE转发给该NDE的数据流。NDE还可以对采样后的数据流进行聚合,将具有相同特征的数据流聚合在一起。After receiving the aggregation configuration information, the NDE may sample the data flow according to the sampling ratio in the aggregation configuration information, and the data flow may be a data flow forwarded to the NDE by other NDEs. NDE can also aggregate the sampled data streams, and aggregate data streams with the same characteristics together.

上述实施例中通过SNC向NDE下发用于对数据流进行聚合所依据的聚合配置信息,使得NDE可以根据聚合配置信息对数据流进行采样和聚合,这样系统不再需要针对用户的不同统计需求开发多种聚合模式,能够实时灵活满足用户的聚合需求,可以降低开发成本,能够缩短数据流的聚合时间。In the above embodiment, the SNC sends the aggregation configuration information used to aggregate the data streams to the NDE, so that the NDE can sample and aggregate the data streams according to the aggregation configuration information, so that the system no longer needs to meet different statistical requirements of users Develop a variety of aggregation modes, which can flexibly meet users' aggregation needs in real time, reduce development costs, and shorten the aggregation time of data streams.

图3是本发明一个实施例的在SDN场景中对数据流进行聚合进而调节网络流量的示意性交互图。Fig. 3 is a schematic interaction diagram of aggregating data flows in an SDN scenario to regulate network traffic according to an embodiment of the present invention.

本发明一个实施例的基本的网络流(NetStream)数据收集和分析系统包括NDE、NSC、SNC和策略管控系统。其中,NDE可以为交换机或路由器,用于收集数据流信息,并将采集到的数据流的信息发送给NSC。NSC可以对数据流信息进行初步分析处理,并将分析处理结果发送给策略管控系统,策略管控系统可以根据分析处理结果对网络进行规划,例如用于计费和调节网络流量等。The basic network flow (NetStream) data collection and analysis system of an embodiment of the present invention includes NDE, NSC, SNC and policy management and control system. Wherein, the NDE may be a switch or a router, and is used to collect data flow information, and send the collected data flow information to the NSC. The NSC can perform preliminary analysis and processing on the data flow information, and send the analysis and processing results to the policy control system. The policy control system can plan the network based on the analysis and processing results, for example, for billing and network traffic adjustment.

本发明实施例中的聚合字段可以为标准中已定义的字段,也可以为用户自定义的字段。The aggregation field in this embodiment of the present invention may be a field defined in a standard, or a user-defined field.

301,NDE接收转发的数据流。301. The NDE receives the forwarded data flow.

当数据流通过NDE时,NDE可以接收其它NDE转发的数据流。When the data flow passes through the NDE, the NDE can receive the data flow forwarded by other NDEs.

302,策略管控系统可以对NDE中转发的数据流进行抓包。302. The policy control system may capture packets of data streams forwarded in the NDE.

策略管控系统可以根据用户的统计需求对NDE转发的数据流进行抓包。The policy control system can capture packets of the data flow forwarded by the NDE according to the user's statistical requirements.

步骤302为可选步骤。策略管控系统抓包后,可以对抓取的数据流进行解析,以获得聚合字段在数据流中的偏移量。当用户仅统计现有标准中已有的字段时,可以不执行步骤302。当用户需要统计用户自定义的字段时,策略管控系统可以通过抓包获得用户自定义字段在数据流中的偏移量。Step 302 is an optional step. After the policy control system captures the packet, it can analyze the captured data flow to obtain the offset of the aggregation field in the data flow. When the user only counts existing fields in the existing standard, step 302 may not be performed. When the user needs to count user-defined fields, the policy control system can obtain the offset of the user-defined fields in the data stream through packet capture.

303,策略管控系统确定聚合配置信息。303. The policy control system determines aggregated configuration information.

策略管控系统可以包括网管,网管可以获知用户需求,并根据用户的需求确定聚合配置信息。聚合配置信息包括至少一个聚合字段,聚合字段可以用来描述NDE对数据流进行聚合所依据的字段类型。The policy management and control system may include a network manager, and the network manager may learn user requirements and determine aggregated configuration information according to the user requirements. The aggregation configuration information includes at least one aggregation field, and the aggregation field can be used to describe the type of field on which the NDE aggregates the data stream.

可选地,当步骤302中策略管控系统获得聚合字段在数据流中的偏移量时,聚合配置信息中还可以包括该偏移量。Optionally, when the policy control system obtains the offset of the aggregation field in the data stream in step 302, the offset may also be included in the aggregation configuration information.

304,策略管控系统向SNC发送聚合配置信息。304. The policy control system sends aggregated configuration information to the SNC.

策略管控系统可以向SNC发送灵活的聚合配置信息。即,策略管控系统可以根据用户的统计需求向SNC发送聚合配置信息。可选地,该聚合配置信息也可以包括聚合字段在数据流中的偏移量。The policy control system can send flexible aggregated configuration information to the SNC. That is, the policy control system can send aggregated configuration information to the SNC according to the user's statistical requirements. Optionally, the aggregation configuration information may also include the offset of the aggregation field in the data stream.

305,SNC为聚合字段分配字段类型值。305. The SNC assigns a field type value to the aggregation field.

SNC可以为聚合字段分配字段类型值。字段类型值为与字段对应的值。对于标准中未定义的字段,标准中也未定义其对应的值。SNC可以分配聚合字段的字段类型值。聚合字段和字段类型值一一对应。SNC can assign field type values to aggregated fields. The field type value is the value corresponding to the field. For fields that are not defined in the standard, their corresponding values are not defined in the standard. SNC can assign field type values for aggregated fields. There is a one-to-one correspondence between aggregated fields and field type values.

步骤305为可选步骤。SNC可以在聚合字段中包括用户自定义的字段时为用户自定义的字段分配字段类型值。SNC对标准中已定义的字段是否分配字段类型值,本发明实施例对此不做限制。Step 305 is an optional step. SNC can assign field type values to user-defined fields when they are included in the aggregation field. Whether the SNC assigns field type values to the fields defined in the standard is not limited in this embodiment of the present invention.

306,SNC向NDE发送聚合配置信息。306. The SNC sends the aggregation configuration information to the NDE.

SNC可以向NDE发送聚合配置信息。SNC可以向NDE单独发送聚合字段,也可以向NDE同时发送聚合字段和聚合字段对应的字段类型值,还可以向NDE单独发送每个聚合字段对应的字段类型值。The SNC can send aggregated configuration information to the NDE. The SNC may send the aggregation field to the NDE separately, or send the aggregation field and the field type value corresponding to the aggregation field to the NDE at the same time, or send the field type value corresponding to each aggregation field to the NDE separately.

307,SNC向NSC发送聚合字段和字段类型值的对应关系。307. The SNC sends the correspondence between the aggregation field and the field type value to the NSC.

NSC只能识别字段类型值,SNC可以向NSC发送聚合字段和字段类型值的对应关系,以使得NSC可以在收到携带字段类型值的聚合流统计信息之后根据聚合字段和字段类型值的对应关系对聚合流的流量进行分析。The NSC can only identify the field type value, and the SNC can send the correspondence between the aggregation field and the field type value to the NSC, so that the NSC can use the corresponding relationship between the aggregation field and the field type value after receiving the aggregation flow statistics information carrying the field type value Analyze aggregated flow traffic.

308,NDE对数据流进行采样。308. The NDE samples the data stream.

NDE要实现对数据流的聚合,首先要对数据流进行采样,以获得采样后的数据流。通过设定适当的采样间隔,可以在保证收集到的统计信息基本正确反映整个网络的数据流状况的同时,减少数据流的统计数量。另外,对数据流进行采样还可以减小对设备转发性能造成的影响。In order to realize the aggregation of data streams by NDE, it first needs to sample the data streams to obtain the sampled data streams. By setting an appropriate sampling interval, it is possible to reduce the statistical quantity of data flow while ensuring that the collected statistical information basically correctly reflects the data flow status of the entire network. In addition, sampling the data stream can also reduce the impact on the forwarding performance of the device.

309,SNC确定是否要匹配ACL策略。309. The SNC determines whether to match the ACL policy.

SNC可以设定ACL策略,使得NDE通过ACL策略过滤掉一部分数据流。The SNC can set an ACL policy so that the NDE can filter out some data flows through the ACL policy.

310,SNC向NDE发送ACL策略。310. The SNC sends the ACL policy to the NDE.

当SNC确定要匹配ACL策略时,SNC可以向NDE发送ACL策略。When the SNC determines to match the ACL policy, the SNC can send the ACL policy to the NDE.

311,NDE可以根据ACL策略对接收的数据流进行过滤。311. The NDE may filter the received data flow according to the ACL policy.

NDE通过ACL过滤可以将部分不能够聚合的采样后的数据流过滤掉,这样,在NDE对数据流进行聚合时,可以减少对所有采样后的数据流进行聚合的复杂度,缩短聚合时间。NDE can filter out some sampled data streams that cannot be aggregated through ACL filtering. In this way, when NDE aggregates data streams, it can reduce the complexity of aggregating all sampled data streams and shorten the aggregation time.

步骤309至步骤311均为可选步骤,在本发明一个实施例中,NDE也可以不经过对采样后的数据流的ACL过滤,直接对采样后的数据流进行聚合。Steps 309 to 311 are all optional steps. In one embodiment of the present invention, the NDE may directly aggregate the sampled data streams without ACL filtering on the sampled data streams.

312,NDE对数据流进行聚合、统计。312. The NDE aggregates and collects statistics on the data stream.

NDE可以根据聚合配置信息对采样后的数据流进行聚合统计,或者对采样后经过过滤的数据流进行聚合、统计,得到聚合流和聚合流统计信息。例如,NDE可以对具有相同聚合字段的数据流进行合并,得到聚合流的包长、字节等。NDE can aggregate and count the sampled data streams according to the aggregation configuration information, or aggregate and count the sampled and filtered data streams to obtain aggregated streams and aggregated stream statistics. For example, NDE can combine data flows with the same aggregation field to obtain the packet length, bytes, etc. of the aggregation flow.

313,NDE向NSC发送聚合流的统计信息。313. The NDE sends the aggregated flow statistics to the NSC.

NDE可以向NSC发送聚合流的统计信息,例如,发送数据流包长和字节。NDE可以只将聚合流的统计信息发送给相应的NSC,这样,通过对数据流的聚合使得无需发送每条数据流的统计信息,可以减少对网络带宽的占用。The NDE can send aggregated flow statistics to the NSC, for example, send data flow packet length and bytes. The NDE can only send the statistical information of the aggregated flow to the corresponding NSC. In this way, the aggregated data flow does not need to send the statistical information of each data flow, which can reduce the occupation of network bandwidth.

314,NSC分析流量。314. The NSC analyzes the traffic.

NSC可以根据接收的聚合流的统计信息,对聚合流的流量进行分析,得到流量分析结果。例如,可以由数据流包长和字节得到数据流的传输速率等,进而获得聚合流的流量。The NSC can analyze the traffic of the aggregated flow based on the received statistical information of the aggregated flow, and obtain the traffic analysis result. For example, the transmission rate of the data stream can be obtained from the packet length and bytes of the data stream, and then the traffic of the aggregated stream can be obtained.

315,NSC向策略管控系统发送流量分析结果。315. The NSC sends the traffic analysis result to the policy control system.

为了对流量进行调节,NSC可以在得到流量分析结果之后,向策略管控系统发送流量分析结果。In order to regulate the traffic, the NSC can send the traffic analysis result to the policy control system after obtaining the traffic analysis result.

316,策略管控系统根据流量分析结果对流量进行调节。316. The policy control system adjusts the traffic according to the traffic analysis result.

策略管控系统可以根据流量分析结果对流量进行调节。The policy control system can adjust traffic according to traffic analysis results.

应理解,本发明实施例不仅可以用于SDN网络,还可以用于其它传统固网。当本发明实施例用于其它网络时,各个执行步骤的执行主体不再是SNC、NDE、NSC、策略管控系统,而是与该网络中对应的具有相应功能的器件。It should be understood that the embodiments of the present invention can be used not only in SDN networks, but also in other traditional fixed networks. When the embodiment of the present invention is applied to other networks, the execution subject of each execution step is no longer the SNC, NDE, NSC, and policy control system, but the corresponding device with corresponding functions in the network.

步骤313至步骤316为可选步骤。在步骤312NDE对数据流进行聚合之后,可以将聚合流或者聚合流统计信息用于流量统计,执行步骤313至步骤316,也可以将聚合流或聚合流统计信息用于其它场景中。例如,可以将聚合流或聚合流统计信息向分析系统发送,以实现对网络计费等的分析,进而进行网络计费调节。Step 313 to step 316 are optional steps. After the NDE aggregates the data streams in step 312, the aggregated streams or aggregated stream statistical information can be used for traffic statistics, and steps 313 to 316 are performed, and the aggregated streams or aggregated stream statistical information can also be used in other scenarios. For example, the aggregated flow or aggregated flow statistical information may be sent to the analysis system, so as to implement analysis on network charging, etc., and then perform network charging adjustment.

上文中结合图2和图3,详细描述了根据本发明实施例的聚合数据流的方法,下面将结合图4至图9,详细描述根据本发明实施例的聚合数据流的装置。The method for aggregating data streams according to an embodiment of the present invention is described in detail above with reference to FIG. 2 and FIG. 3 , and the apparatus for aggregating data streams according to an embodiment of the present invention will be described in detail below in conjunction with FIG. 4 to FIG. 9 .

图4示出了本发明实施例的聚合数据流的装置10,该装置10可以为SNC。图4的装置10可以为第一接收单元11和第一发送单元12。FIG. 4 shows an apparatus 10 for aggregating data streams according to an embodiment of the present invention, and the apparatus 10 may be an SNC. The device 10 in FIG. 4 may be a first receiving unit 11 and a first sending unit 12 .

第一接收单元11用于接收策略管控系统根据用户统计需求发送的聚合配置信息。聚合配置信息包括至少一个聚合字段,聚合字段为对数据流进行聚合所依据的字段类型。The first receiving unit 11 is configured to receive the aggregated configuration information sent by the policy management and control system according to user statistics requirements. The aggregation configuration information includes at least one aggregation field, and the aggregation field is a field type based on which data streams are aggregated.

第一发送单元12用于向流量输出器NDE发送第一接收单元接收的聚合配置信息,以便NDE根据聚合配置信息对数据流进行采样,并根据至少一个聚合字段对采样后的数据流进行聚合。The first sending unit 12 is configured to send the aggregation configuration information received by the first receiving unit to the traffic exporter NDE, so that the NDE samples the data flow according to the aggregation configuration information, and aggregates the sampled data flow according to at least one aggregation field.

本发明实施例中,SNC可以根据用户需求从策略管控系统获得聚合配置信息,并向NDE下发聚合配置信息,聚合配置信息中包括用于对数据流进行聚合所依据的聚合字段,以便NDE根据聚合配置信息对数据流进行采样,并根据聚合字段对采样后的数据流进行聚合,这样可以解决现有技术中需要根据用户需求开发多种聚合模式的技术问题,能够实时灵活满足用户的聚合需求。In the embodiment of the present invention, the SNC can obtain aggregation configuration information from the policy management and control system according to user requirements, and deliver the aggregation configuration information to the NDE. The aggregation configuration information includes the aggregation fields used to aggregate data streams, so that the NDE can use Aggregate configuration information to sample the data stream, and aggregate the sampled data stream according to the aggregation field, which can solve the technical problem in the existing technology that needs to develop multiple aggregation modes according to user needs, and can flexibly meet the user's aggregation needs in real time .

根据本发明实施例的聚合数据流的装置10可对应于本发明实施例的聚合数据流的方法中的SNC。装置10中各个单元/模块和其它操作或功能分别为了实现方法流程图2和图3中SNC的相应流程,为了简洁,在此不再赘述。The apparatus 10 for aggregating data streams according to the embodiment of the present invention may correspond to the SNC in the method for aggregating data streams in the embodiment of the present invention. Each unit/module and other operations or functions in the device 10 are for realizing the corresponding flow of the SNC in the method flowchart 2 and FIG. 3 respectively, and for the sake of brevity, details are not repeated here.

图5示出了本发明实施例提供的聚合数据流的装置20,该装置20可以为NDE。图5的装置20可以包括第一接收单元21、第二接收单元22、采样单元23和聚合单元24。FIG. 5 shows an apparatus 20 for aggregating data streams provided by an embodiment of the present invention, and the apparatus 20 may be an NDE. The apparatus 20 in FIG. 5 may include a first receiving unit 21 , a second receiving unit 22 , a sampling unit 23 and an aggregation unit 24 .

第一接收单元21用于接收智能网络控制器SNC发送的聚合配置信息。聚合配置信息包括至少一个聚合字段,聚合字段为对数据流进行聚合所依据的字段类型。The first receiving unit 21 is configured to receive the aggregation configuration information sent by the intelligent network controller SNC. The aggregation configuration information includes at least one aggregation field, and the aggregation field is a field type based on which data streams are aggregated.

第二接收单元22用于接收其它NDE发送的数据流。The second receiving unit 22 is configured to receive data streams sent by other NDEs.

采样单元23用于根据第一接收单元接收的聚合配置信息对第二接收单元接收的数据流进行采样,得到采样后的数据流。The sampling unit 23 is configured to sample the data stream received by the second receiving unit according to the aggregation configuration information received by the first receiving unit, to obtain the sampled data stream.

聚合单元24用于根据至少一个聚合字段对采样单元得到的采样后的数据流进行聚合。The aggregation unit 24 is configured to aggregate the sampled data stream obtained by the sampling unit according to at least one aggregation field.

本发明实施例中NDE根据SNC发送的聚合配置信息对数据流进行采样,并根据聚合字段对采样后的数据流进行聚合,这样能够实时灵活满足用户的聚合需求。In the embodiment of the present invention, the NDE samples the data stream according to the aggregation configuration information sent by the SNC, and aggregates the sampled data stream according to the aggregation field, so that the user's aggregation requirements can be flexibly met in real time.

根据本发明实施例的聚合数据流的装置20可对应于本发明实施例的聚合数据流的方法中的NDE。装置20中各个单元/模块和其它操作或功能分别为了实现方法流程图2和图3中NDE的相应流程,为了简洁,在此不再赘述。The apparatus 20 for aggregating data streams according to the embodiment of the present invention may correspond to the NDE in the method for aggregating data streams in the embodiment of the present invention. Each unit/module and other operations or functions in the device 20 are to realize the corresponding flow of the NDE in the method flowchart 2 and FIG. 3 respectively, and for the sake of brevity, details are not repeated here.

图6示出了本发明实施例的聚合数据流的装置30,该装置30可以为策略管控系统。图6的装置30包括确定单元31和第一发送单元32。FIG. 6 shows an apparatus 30 for aggregating data streams according to an embodiment of the present invention, and the apparatus 30 may be a policy control system. The device 30 in FIG. 6 includes a determining unit 31 and a first sending unit 32 .

确定单元31用于根据用户的统计需求确定聚合配置信息。聚合配置信息包括至少一个聚合字段,聚合字段为对数据流进行聚合所依据的字段类型。The determining unit 31 is configured to determine the aggregated configuration information according to the statistical requirements of the user. The aggregation configuration information includes at least one aggregation field, and the aggregation field is a field type based on which data streams are aggregated.

第一发送单元32用于向智能网络控制器SNC发送所述确定单元确定的聚合配置信息,以便SNC向流量输出器NDE发送所述聚合配置信息,使得NDE根据聚合配置信息对数据流进行采样,并根据至少一个聚合字段对采样后的数据流进行聚合。The first sending unit 32 is configured to send the aggregation configuration information determined by the determination unit to the intelligent network controller SNC, so that the SNC sends the aggregation configuration information to the flow exporter NDE, so that the NDE samples the data flow according to the aggregation configuration information, And aggregate the sampled data stream according to at least one aggregation field.

本发明实施例中的策略管控系统可以根据用户统计需求获得聚合配置信息,并通过SNC向NDE下发聚合配置信息,聚合配置信息中包括用于对数据流进行聚合所依据的聚合字段。这样NDE可以根据聚合配置信息对数据流进行采样,并根据聚合字段对采样后的数据流进行聚合,从而可以解决现有技术中需要根据用户需求开发多种聚合模式的技术问题,能够实时灵活满足用户的聚合需求。The policy management and control system in the embodiment of the present invention can obtain aggregation configuration information according to user statistical requirements, and deliver the aggregation configuration information to the NDE through the SNC, where the aggregation configuration information includes aggregation fields used for aggregation of data streams. In this way, NDE can sample the data flow according to the aggregation configuration information, and aggregate the sampled data flow according to the aggregation field, so as to solve the technical problem in the existing technology that needs to develop multiple aggregation modes according to user needs, and can flexibly meet the requirements in real time. Aggregation needs of users.

根据本发明实施例的聚合数据流的装置30可对应于本发明实施例的聚合数据流的方法中的策略管控系统。装置30中各个单元/模块和其它操作或功能分别为了实现方法流程图2和图3中策略管控系统的相应流程,为了简洁,在此不再赘述。The device 30 for aggregating data streams according to the embodiment of the present invention may correspond to the policy control system in the method for aggregating data streams in the embodiment of the present invention. Each unit/module and other operations or functions in the device 30 are to realize the corresponding flow of the method flow chart 2 and the policy management and control system in FIG.

图7示出了本发明实施例的聚合数据流的装置40,该装置40可以为SNC。装置40可以包括发射机41、接收机42、处理器43、存储器44和总线系统45。FIG. 7 shows an apparatus 40 for aggregating data streams according to an embodiment of the present invention, and the apparatus 40 may be an SNC. The device 40 may comprise a transmitter 41 , a receiver 42 , a processor 43 , a memory 44 and a bus system 45 .

接收机42用于接收策略管控系统根据用户统计需求发送的聚合配置信息。聚合配置信息包括至少一个聚合字段,聚合字段为对数据流进行聚合所依据的字段类型。The receiver 42 is configured to receive the aggregated configuration information sent by the policy management and control system according to user statistical requirements. The aggregation configuration information includes at least one aggregation field, and the aggregation field is a field type based on which data streams are aggregated.

发射机41用于向流量输出器NDE发送第一接收单元接收的聚合配置信息,以便NDE根据聚合配置信息对数据流进行采样,并根据至少一个聚合字段对采样后的数据流进行聚合。The transmitter 41 is configured to send the aggregation configuration information received by the first receiving unit to the traffic exporter NDE, so that the NDE samples the data flow according to the aggregation configuration information, and aggregates the sampled data flow according to at least one aggregation field.

本发明实施例中,SNC可以根据用户需求从策略管控系统获得聚合配置信息,并向NDE下发聚合配置信息,聚合配置信息中包括用于对数据流进行聚合所依据的聚合字段,以便NDE根据聚合配置信息对数据流进行采样,并根据聚合字段对采样后的数据流进行聚合,这样可以解决现有技术中需要根据用户需求开发多种聚合模式的技术问题,能够实时灵活满足用户的聚合需求。In the embodiment of the present invention, the SNC can obtain aggregation configuration information from the policy management and control system according to user requirements, and deliver the aggregation configuration information to the NDE. The aggregation configuration information includes the aggregation fields used to aggregate data streams, so that the NDE can use Aggregate configuration information to sample the data stream, and aggregate the sampled data stream according to the aggregation field, which can solve the technical problem in the existing technology that needs to develop multiple aggregation modes according to user needs, and can flexibly meet the user's aggregation needs in real time .

根据本发明实施例的聚合数据流的装置40可对应于本发明实施例的聚合数据流的方法中的SNC。装置40中各个器件和其它操作或功能分别为了实现方法流程图2和图3中SNC的相应流程,为了简洁,在此不再赘述。The device 40 for aggregating data streams according to the embodiment of the present invention may correspond to the SNC in the method for aggregating data streams in the embodiment of the present invention. Each device and other operations or functions in the device 40 are to realize the corresponding flow of the SNC in the method flowchart 2 and FIG. 3 respectively, and for the sake of brevity, details are not repeated here.

图8示出了本发明实施例提供的聚合数据流的装置50,该装置50可以为NDE。装置50可以包括接收机51、处理器52、存储器53和总线系统54。FIG. 8 shows an apparatus 50 for aggregating data streams provided by an embodiment of the present invention, and the apparatus 50 may be an NDE. The device 50 may comprise a receiver 51 , a processor 52 , a memory 53 and a bus system 54 .

接收机51用于接收智能网络控制器SNC发送的聚合配置信息.聚合配置信息包括至少一个聚合字段,聚合字段为对数据流进行聚合所依据的字段类型。The receiver 51 is configured to receive aggregation configuration information sent by the intelligent network controller SNC. The aggregation configuration information includes at least one aggregation field, and the aggregation field is a field type based on which data streams are aggregated.

接收机51还用于接收其它NDE发送的数据流。The receiver 51 is also used to receive data streams sent by other NDEs.

处理器52用于根据第一接收单元接收的聚合配置信息对第二接收单元接收的数据流进行采样,得到采样后的数据流。The processor 52 is configured to sample the data stream received by the second receiving unit according to the aggregation configuration information received by the first receiving unit, to obtain a sampled data stream.

处理器52还用于根据至少一个聚合字段对采样单元得到的采样后的数据流进行聚合。The processor 52 is further configured to aggregate the sampled data stream obtained by the sampling unit according to at least one aggregation field.

本发明实施例中NDE根据SNC发送的聚合配置信息对数据流进行采样,并根据聚合字段对采样后的数据流进行聚合,这样能够实时灵活满足用户的聚合需求。In the embodiment of the present invention, the NDE samples the data stream according to the aggregation configuration information sent by the SNC, and aggregates the sampled data stream according to the aggregation field, so that the user's aggregation requirements can be flexibly met in real time.

根据本发明实施例的聚合数据流的装置50可对应于本发明实施例的聚合数据流的方法中的NDE。装置50中各个器件和其它操作或功能分别为了实现方法流程图2和图3中NDE的相应流程,为了简洁,在此不再赘述。The apparatus 50 for aggregating data streams according to the embodiment of the present invention may correspond to the NDE in the method for aggregating data streams in the embodiment of the present invention. Each device and other operations or functions in the apparatus 50 are to realize the corresponding flow of the NDE in the method flowchart 2 and FIG. 3 respectively, and for the sake of brevity, details are not repeated here.

图9示出了本发明实施例的聚合数据流的装置60,该装置60可以为策略管控系统。装置60可以包括发射机61、接收机62、处理器63、存储器64和总线系统65。FIG. 9 shows an apparatus 60 for aggregating data streams according to an embodiment of the present invention, and the apparatus 60 may be a policy control system. The device 60 may comprise a transmitter 61 , a receiver 62 , a processor 63 , a memory 64 and a bus system 65 .

处理器63用于根据用户的统计需求确定聚合配置信息。聚合配置信息包括至少一个聚合字段。聚合字段为对数据流进行聚合所依据的字段类型。The processor 63 is configured to determine the aggregated configuration information according to the statistical requirements of the user. The aggregated configuration information includes at least one aggregated field. Aggregated fields are the type of fields by which data streams are aggregated.

发射机61用于向智能网络控制器SNC发送所述确定单元确定的聚合配置信息,以便SNC向流量输出器NDE发送聚合配置信息,使得NDE根据聚合配置信息对数据流进行采样,并根据至少一个聚合字段对采样后的数据流进行聚合。The transmitter 61 is used to send the aggregation configuration information determined by the determination unit to the intelligent network controller SNC, so that the SNC sends the aggregation configuration information to the traffic exporter NDE, so that the NDE samples the data flow according to the aggregation configuration information, and according to at least one The aggregation field aggregates the sampled data stream.

本发明实施例中的策略管控系统可以根据用户统计需求获得聚合配置信息,并通过SNC向NDE下发聚合配置信息,聚合配置信息中包括用于对数据流进行聚合所依据的聚合字段。这样NDE可以根据聚合配置信息对数据流进行采样,并根据聚合字段对采样后的数据流进行聚合,从而可以解决现有技术中需要根据用户需求开发多种聚合模式的技术问题,能够实时灵活满足用户的聚合需求。The policy management and control system in the embodiment of the present invention can obtain aggregation configuration information according to user statistical requirements, and deliver the aggregation configuration information to the NDE through the SNC, where the aggregation configuration information includes aggregation fields used for aggregation of data streams. In this way, NDE can sample the data flow according to the aggregation configuration information, and aggregate the sampled data flow according to the aggregation field, so as to solve the technical problem in the existing technology that needs to develop multiple aggregation modes according to user needs, and can flexibly meet the requirements in real time. Aggregation needs of users.

根据本发明实施例的聚合数据流的装置60可对应于本发明实施例的聚合数据流的方法中的策略管控系统。装置60中各个器件和其它操作或功能分别为了实现方法流程图2和图3中NDE的相应流程,为了简洁,在此不再赘述。The device 60 for aggregating data streams according to the embodiment of the present invention may correspond to the policy control system in the method for aggregating data streams in the embodiment of the present invention. Each device and other operations or functions in the device 60 are for implementing the corresponding flow of the method flowchart 2 and the NDE in FIG. 3 , and for the sake of brevity, details are not described here.

上述装置40、装置50和装置60中的各个组件,比如接收机、发射机、处理器和存储器可以通过总线系统耦合在一起。其中,总线系统除包括数据总线外,还可以包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图中将各种总线都标为总线系统。上述装置40、装置50和装置60还可以包括存储器和处理器。存储器可以包括只读存储器和随机存取存储器,并向处理器提供指令和数据。存储器的一部分还可以包括非易失性随机存取存储器。例如,存储器可以存储聚合配置信息。处理器可以用于执行存储器中存储的指令,并且该处理器执行该指令时,处理器可以执行上述方法实施例图2和图3中相应装置的相应流程,为了简洁,在此不再赘述。Various components in the above-mentioned apparatus 40, apparatus 50, and apparatus 60, such as a receiver, a transmitter, a processor, and a memory, may be coupled together through a bus system. Wherein, besides the data bus, the bus system may also include a power bus, a control bus and a status signal bus. However, for the sake of clarity, the various buses are labeled as bus systems in the figures. The above-mentioned device 40, device 50 and device 60 may also include a memory and a processor. The memory, which can include read only memory and random access memory, provides instructions and data to the processor. A portion of the memory may also include non-volatile random access memory. For example, memory may store aggregated configuration information. The processor can be used to execute the instructions stored in the memory, and when the processor executes the instructions, the processor can execute the corresponding processes of the corresponding devices in FIG. 2 and FIG. 3 of the above method embodiment, and for the sake of brevity, details are not repeated here.

处理器可以是通用处理器、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。The processor can be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and can implement or execute the Disclosed methods, steps and logic block diagrams. A general purpose processor may be a microprocessor or any conventional processor or the like.

应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本发明的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。It should be understood that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic related to the embodiment is included in at least one embodiment of the present invention. Thus, appearances of "in one embodiment" or "in an embodiment" in various places throughout the specification are not necessarily referring to the same embodiment. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments.

应理解,在本发明的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the order of execution, and the execution order of each process should be determined by its functions and internal logic, rather than by the embodiment of the present invention. The implementation process constitutes any limitation.

应理解,在本发明实施例中,“与A相应的B”表示B与A相关联,根据A可以确定B。但还应理解,根据A确定B并不意味着仅仅根据A确定B,还可以根据A和/或其它信息确定B。It should be understood that in the embodiment of the present invention, "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B according to A does not mean determining B only according to A, and B may also be determined according to A and/or other information.

本领域普通技术人员可以意识到,结合本文中所公开的实施例中描述的各方法步骤和单元,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各实施例的步骤及组成。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。本领域普通技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can realize that the method steps and units described in the embodiments disclosed herein can be realized by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the possibility of hardware and software For interchangeability, in the above description, the steps and components of each embodiment have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those of ordinary skill in the art may use different methods to implement the described functions for each particular application, but such implementation should not be regarded as exceeding the scope of the present invention.

结合本文中所公开的实施例描述的方法或步骤可以用硬件、处理器执行的软件程序,或者二者的结合来实施。软件程序可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The methods or steps described in connection with the embodiments disclosed herein may be implemented by hardware, software programs executed by a processor, or a combination of both. The software program can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.

尽管通过参考附图并结合优选实施例的方式对本发明进行了详细描述,但本发明并不限于此。在不脱离本发明的精神和实质的前提下,本领域普通技术人员可以对本发明的实施例进行各种等效的修改或替换,而这些修改或替换都应在本发明的涵盖范围内。Although the present invention has been described in detail in connection with preferred embodiments with reference to the accompanying drawings, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, those skilled in the art can make various equivalent modifications or replacements to the embodiments of the present invention, and these modifications or replacements should all fall within the scope of the present invention.

Claims (20)

1. a method for aggregate data flow, is characterized in that, comprising:
Intelligent network controller SNC receives the aggregation configuration information that tactful managing and control system sends according to user's statistical demand, and described aggregation configuration information comprises at least one Aggregation field, and described Aggregation field is for carrying out the field type being polymerized institute's foundation to data stream;
Described SNC sends described aggregation configuration information to NetStream Data Exporter NDE, so that described NDE samples to data stream according to described aggregation configuration information, and is polymerized the data flow after sampling according at least one Aggregation field described.
2. the method as described in right 1, is characterized in that, described method also comprises:
Described SNC is that at least one Aggregation field described distributes corresponding field type value respectively;
Wherein, described SNC sends aggregation configuration information to NetStream Data Exporter NDE, described aggregation configuration information comprises at least one Aggregation field described, so that described NDE samples to data stream according to described aggregation configuration information, and according at least one Aggregation field described, data flow after sampling is carried out polymerization and is comprised:
Described SNC sends described aggregation configuration information to described NDE, described aggregation configuration information comprises at least one Aggregation field described and described field type value, so that described NDE samples to data stream according to described aggregation configuration information, and according at least one Aggregation field described and described field type value, the data flow after sampling is polymerized.
3. method as claimed in claim 1 or 2, it is characterized in that, described method also comprises:
Described SNC receives the side-play amount of at least one Aggregation field described in described data flow obtained by the described data flow of parsing that described tactful managing and control system sends;
Described SNC sends described side-play amount to described NDE.
4. the method according to any one of claim 1-3, is characterized in that, described method also comprises:
Described SNC determines access control list ACL strategy, and described ACL strategy is used to indicate described NDE and filters described data flow;
Described SNC sends described ACL strategy to described NDE.
5. the method according to any one of claim 1-4, is characterized in that, described method also comprises:
Described SNC sends the corresponding relation of at least one Aggregation field described and described field type value to intelligent network controller NSC.
6. a method for aggregate data flow, is characterized in that, comprising:
NetStream Data Exporter NDE receives the aggregation configuration information that intelligent network controller SNC sends, and described aggregation configuration information comprises at least one Aggregation field, and described Aggregation field is for carrying out the field type being polymerized institute's foundation to data stream;
Described NDE receives the data flow that other NDE sends;
The described data flow that described NDE receives according to described aggregation configuration information butt joint is sampled, and obtains the data flow after sampling;
Described NDE is polymerized the data flow after described sampling according at least one Aggregation field described.
7. method as claimed in claim 6, is characterized in that, described aggregation configuration information also comprises the field type value of at least one Aggregation field described;
Wherein, described NDE carries out polymerization according at least one Aggregation field described to the data flow after described sampling and comprises:
Described NDE is polymerized the data flow after described sampling according at least one Aggregation field described and described field type value.
8. method as claimed in claims 6 or 7, is characterized in that, before described NDE to be polymerized the data flow after described sampling according at least one Aggregation field described, described method also comprises:
Described NDE receives the access control list ACL strategy that described SNC sends;
According to described ACL strategy, the data flow after described sampling is filtered, obtain the data flow after filtering;
Wherein, described NDE carries out polymerization according at least one Aggregation field described to the data flow after described sampling and comprises:
Described NDE is polymerized the data flow after described filtration according at least one Aggregation field described.
9. a method for aggregate data flow, is characterized in that, comprising:
Strategy managing and control system is according to the statistical demand determination aggregation configuration information of user, and described aggregation configuration information comprises at least one Aggregation field, and described Aggregation field is for carrying out the field type being polymerized institute's foundation to data stream;
Strategy managing and control system sends described aggregation configuration information to described intelligent network controller SNC, so that described SNC sends described aggregation configuration information to NetStream Data Exporter NDE, NDE is sampled to data stream according to described aggregation configuration information, and according at least one Aggregation field described, data flow after sampling is polymerized.
10. method as claimed in claim 9, it is characterized in that, described method also comprises:
Strategy managing and control system obtains described data flow;
Strategy managing and control system is resolved described data flow, obtains the side-play amount of at least one Aggregation field described;
Strategy managing and control system sends described side-play amount to network flow data gatherer SNC.
The device of 11. 1 kinds of aggregate data flow, is characterized in that, comprising:
First receiving element, for receiving the aggregation configuration information that tactful managing and control system sends according to user's statistical demand, described aggregation configuration information comprises at least one Aggregation field, and described Aggregation field is for carrying out the field type being polymerized institute's foundation to data stream;
First transmitting element, for sending the described aggregation configuration information that described first receiving element receives to NetStream Data Exporter NDE, so that described NDE samples to data stream according to described aggregation configuration information, and according at least one Aggregation field described, data flow after sampling is polymerized.
12. devices as described in right 11, it is characterized in that, described device also comprises:
Allocation units, for distributing corresponding field type value respectively at least one Aggregation field described;
Wherein, first transmitting element is specifically for sending described aggregation configuration information to described NDE, described aggregation configuration information comprises at least one Aggregation field described and described field type value, so that described NDE samples to data stream according to described aggregation configuration information, and according at least one Aggregation field described and described field type value, the data flow after sampling is polymerized.
13. devices as described in claim 11 or 12, it is characterized in that, described device also comprises:
Second receiving element, for receive that described tactful managing and control system sends obtained by the described data flow of parsing described in the side-play amount of at least one Aggregation field in described data flow;
Second transmitting element, for sending described side-play amount to described NDE.
14. devices according to any one of claim 11-13, it is characterized in that, described device also comprises:
Determining unit, for determining access control list ACL strategy, described ACL strategy is used to indicate described NDE and filters described data flow;
3rd transmitting element, for sending described ACL strategy to described NDE.
15. devices according to any one of claim 11-14, it is characterized in that, described device also comprises:
4th transmitting element, for sending the corresponding relation of at least one Aggregation field described and described field type value to intelligent network controller NSC.
The device of 16. 1 kinds of aggregate data flow, is characterized in that, described device is performed by NetStream Data Exporter NDE, and described device comprises:
First receiving element, for receiving the aggregation configuration information that intelligent network controller SNC sends, described aggregation configuration information comprises at least one Aggregation field, and described Aggregation field is for carrying out the field type being polymerized institute's foundation to data stream;
Second receiving element, for receiving the data flow that other NDE sends;
Sampling unit, samples to the described data flow that the second receiving element receives for the described aggregation configuration information received according to described first receiving element, obtains the data flow after sampling;
Polymerized unit, is polymerized for the data flow after the described sampling that obtains described sampling unit according at least one Aggregation field described.
17. devices as claimed in claim 16, is characterized in that, described aggregation configuration information also comprises the field type value of at least one Aggregation field described;
Wherein, described polymerized unit is specifically for being polymerized the data flow after described sampling according at least one Aggregation field described and described field type value.
18. devices as described in claim 16 or 17, it is characterized in that, described device also comprises:
3rd receiving element, for receiving the access control list ACL strategy that described SNC sends;
Filter element, for filtering the data flow after described sampling according to described ACL strategy, obtains the data flow after filtering;
Wherein, described polymerized unit is specifically for being polymerized the data flow after described filtration according at least one Aggregation field described.
The device of 19. 1 kinds of aggregate data flow, is characterized in that, comprising:
Determining unit, for the statistical demand determination aggregation configuration information according to user, described aggregation configuration information comprises at least one Aggregation field, and described Aggregation field is for carrying out the field type being polymerized institute's foundation to data stream;
First transmitting element, for sending the described aggregation configuration information that described determining unit is determined to described intelligent network controller SNC, so that described SNC sends described aggregation configuration information to NetStream Data Exporter NDE, NDE is sampled to data stream according to described aggregation configuration information, and according at least one Aggregation field described, data flow after sampling is polymerized.
20. devices as claimed in claim 19, it is characterized in that, described device also comprises:
Acquiring unit, for obtaining described data flow;
Resolution unit, for resolving described data flow, obtains the side-play amount of at least one Aggregation field described;
Second transmitting element, for sending described side-play amount to network flow data gatherer SNC.
CN201510711884.6A 2015-10-28 2015-10-28 The method and apparatus of aggregate data flow Active CN105282050B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510711884.6A CN105282050B (en) 2015-10-28 2015-10-28 The method and apparatus of aggregate data flow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510711884.6A CN105282050B (en) 2015-10-28 2015-10-28 The method and apparatus of aggregate data flow

Publications (2)

Publication Number Publication Date
CN105282050A true CN105282050A (en) 2016-01-27
CN105282050B CN105282050B (en) 2018-11-16

Family

ID=55150401

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510711884.6A Active CN105282050B (en) 2015-10-28 2015-10-28 The method and apparatus of aggregate data flow

Country Status (1)

Country Link
CN (1) CN105282050B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109787879A (en) * 2017-11-13 2019-05-21 北京华为数字技术有限公司 A kind of expansible Virtual Local Area Network VXLAN Address Aggregation method, apparatus and equipment
CN115887999A (en) * 2022-12-26 2023-04-04 青鸟消防股份有限公司 Fire control system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1494268A (en) * 2002-10-31 2004-05-05 ��Ϊ�������޹�˾ Method for collecting user network usage data
CN101026492A (en) * 2007-01-26 2007-08-29 华为技术有限公司 Method and device for ageing original flow, and network flow output and network flow system
CN101547112A (en) * 2008-03-28 2009-09-30 华为技术有限公司 Network flow sampling method and system
US8095635B2 (en) * 2008-07-21 2012-01-10 At&T Intellectual Property I, Lp Managing network traffic for improved availability of network services
CN104796348A (en) * 2015-04-03 2015-07-22 华为技术有限公司 IDC (internet data center) network export flow balancing and adjusting method, equipment and system based on SDN (software-defined networking)

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1494268A (en) * 2002-10-31 2004-05-05 ��Ϊ�������޹�˾ Method for collecting user network usage data
CN101026492A (en) * 2007-01-26 2007-08-29 华为技术有限公司 Method and device for ageing original flow, and network flow output and network flow system
CN101547112A (en) * 2008-03-28 2009-09-30 华为技术有限公司 Network flow sampling method and system
US8095635B2 (en) * 2008-07-21 2012-01-10 At&T Intellectual Property I, Lp Managing network traffic for improved availability of network services
CN104796348A (en) * 2015-04-03 2015-07-22 华为技术有限公司 IDC (internet data center) network export flow balancing and adjusting method, equipment and system based on SDN (software-defined networking)

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李科峰: "《NetstrcamCollector系统的开发与测试》", 《中国优秀硕士学位论文全文数据库信息科技辑》 *
苏珍: "《IPv6 NetStream软件系统的设计与实现》", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109787879A (en) * 2017-11-13 2019-05-21 北京华为数字技术有限公司 A kind of expansible Virtual Local Area Network VXLAN Address Aggregation method, apparatus and equipment
CN109787879B (en) * 2017-11-13 2021-08-03 北京华为数字技术有限公司 A scalable virtual local area network VXLAN address aggregation method, device and device
CN115887999A (en) * 2022-12-26 2023-04-04 青鸟消防股份有限公司 Fire control system
CN115887999B (en) * 2022-12-26 2024-02-27 青鸟消防股份有限公司 Fire control system

Also Published As

Publication number Publication date
CN105282050B (en) 2018-11-16

Similar Documents

Publication Publication Date Title
US6957255B1 (en) Method and apparatus for session reconstruction and accounting involving VoIP calls
US8295198B2 (en) Method for configuring ACLs on network device based on flow information
EP3151470B1 (en) Analytics for a distributed network
JP5958570B2 (en) Network system, controller, switch, and traffic monitoring method
US12231295B2 (en) Method, device, and system for determining required bandwidth for data stream transmission
US7167860B1 (en) Fault tolerance for network accounting architecture
US20040049576A1 (en) Method and apparatus for session reconstruction
Jang et al. Rflow+: An sdn-based wlan monitoring and management framework
US20060155866A1 (en) Method of data gathering of user network
US20060149841A1 (en) Application session management for flow-based statistics
CN103906136A (en) Data service traffic managing and controlling method and device
CN103414594A (en) IP stream information statistical method for charging and monitoring
US11146468B1 (en) Intelligent export of network information
CN110691007A (en) A method to accurately measure the packet loss rate of QUIC connections
CN105282050B (en) The method and apparatus of aggregate data flow
US10977252B2 (en) Monitoring network traffic to determine similar content
US20030099199A1 (en) Bandwidth allocation credit updating on a variable time basis
CN100512142C (en) Method for realizing network sampling
US20030099200A1 (en) Parallel limit checking in a hierarchical network for bandwidth management traffic-shaping cell
US7739159B1 (en) Aggregation of user usage data for accounting systems in dynamically configured networks
Beverly et al. Wide-area IP multicast traffic characterization
WO2009052727A1 (en) Sending method, processing method, communication system and device for data flow information
WO2024239853A1 (en) Network telemetry method and apparatus, switch, network, electronic device and medium
WO2022262574A1 (en) Method and apparatus for determining slice information, and storage medium and electronic apparatus
CN118694677B (en) Method for generating quality analysis report

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211231

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: 100085, No. 3, information road, Haidian District, Beijing

Patentee before: Beijing Huawei Digital Technology Co.,Ltd.

Effective date of registration: 20211231

Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province

Patentee after: xFusion Digital Technologies Co., Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.