WO2022000189A1 - In-band network telemetry bearer stream selection method and system - Google Patents

In-band network telemetry bearer stream selection method and system Download PDF

Info

Publication number
WO2022000189A1
WO2022000189A1 PCT/CN2020/098927 CN2020098927W WO2022000189A1 WO 2022000189 A1 WO2022000189 A1 WO 2022000189A1 CN 2020098927 W CN2020098927 W CN 2020098927W WO 2022000189 A1 WO2022000189 A1 WO 2022000189A1
Authority
WO
WIPO (PCT)
Prior art keywords
telemetry
bearer
flow
user service
network
Prior art date
Application number
PCT/CN2020/098927
Other languages
French (fr)
Chinese (zh)
Inventor
苏伟
谭立状
郜帅
张宏科
刘延雯
张臻熠
Original Assignee
北京交通大学
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京交通大学 filed Critical 北京交通大学
Priority to PCT/CN2020/098927 priority Critical patent/WO2022000189A1/en
Publication of WO2022000189A1 publication Critical patent/WO2022000189A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/70Routing based on monitoring results
    • 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/11Identifying congestion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/64Routing or path finding of packets in data switching networks using an overlay routing layer

Definitions

  • the present application relates to the technical field of in-band network telemetry, and in particular to a method and system for selecting a bearer stream for in-band network telemetry.
  • In-band network telemetry is a hybrid measurement method that has emerged in recent years. It completes network status collection by inserting metadata (Measure metadata) into data packets in turn by switching nodes in the middle of the path.
  • In-band network telemetry is a framework for the network data plane to collect and report network status without the intervention of the network control plane.
  • switching devices generate, forward, and process packets that carry telemetry instructions (Telemetry Instructions). As telemetry packets pass through the device, these telemetry commands tell network telemetry-capable network devices what network state information should be collected and written.
  • in-band network telemetry is limited, and the pre-defined path-dependent detection feature of in-band measurement makes in-band network telemetry only detect the telemetry data of some packets on a specific path, and cannot cover and detect according to the user's detection requirements. Therefore, users cannot obtain the required network status in time.
  • the technical problem to be solved by the present application is to overcome the defect in the prior art that the required network state cannot be obtained in time, so as to provide an in-band network telemetry bearer stream selection method.
  • a first aspect of the present application provides an in-band network telemetry bearer flow selection method, including: acquiring network status telemetry requirements; acquiring network topology information of the network to be measured and distribution information of user service flows in the The distribution information includes the average length of data packets of each user service flow and the path through the switch; the target switch and the telemetry metadata to be collected by the target switch are determined according to the network status telemetry requirements; according to the network topology information, the target switch, each target switch needs to be collected
  • the telemetry metadata of each user service flow, the average length of the data packets of each user service flow, and the flow path of each user service flow through the switch select at least one user service flow as the telemetry bearer flow, and the telemetry bearer flow covers all target switches.
  • the in-band network telemetry bearer flow selection method according to network topology information, target switches, telemetry metadata to be collected by each target switch, the average length of data packets of each user service flow, and each user service flow.
  • the steps of selecting at least one user service flow as the telemetry bearer flow in the flow of the flow through the switch path include: calculating the remaining effective telemetry space of each user service flow according to the average length of the data packets of each user service flow; allocating one to each target switch respectively.
  • User service flow calculate the capacity of the telemetry metadata to be collected by each target switch on the assigned user service flow; if the capacity of the telemetry metadata to be collected by each target switch on each assigned user service flow is less than or equal to The remaining effective telemetry space of the allocated user service flow is determined as the telemetry bearer flow.
  • the method for selecting an in-band network telemetry bearer stream further includes: using a preset algorithm to minimize the number of telemetry bearer streams and minimize the capacity occupied by all telemetry metadata on each telemetry bearer stream as an optimization goal.
  • Select the optimized telemetry bearer flow if the selected optimized telemetry bearer flow covers all target switches, and the capacity occupied by all telemetry metadata on each optimized telemetry bearer flow is less than or equal to the remaining effective telemetry space of each optimized telemetry bearer flow, the optimized telemetry bearer flow will be optimized.
  • the telemetry bearer stream is determined to be the new telemetry bearer stream.
  • the method for selecting an in-band network telemetry bearer stream further includes: generating an in-band network telemetry configuration command according to the selection scheme of the telemetry bearer stream, and sending it to the target switch, where the in-band network telemetry configuration command includes a telemetry server parameter. , telemetry flow parameters, and telemetry metadata to be collected by each target switch.
  • the average length of the data packets of the user service flow is obtained through the following steps: the number of bytes matched by the flow table and the number of matched data packets of the flow table of the user service flow are obtained. ; Determine the average length of the data packets of the user service flow according to the number of bytes matched by the flow table of the user service flow and the number of matched data packets of the flow table.
  • a second aspect of the present application provides an in-band network telemetry bearer stream selection system, including: a telemetry requirement acquisition module for acquiring network status telemetry requirements; a network status acquisition module for acquiring network topology information and to-be-measured network topology information.
  • the distribution information of user service flows in the network is measured, and the distribution information of user service flows includes the average length of data packets of each user service flow and the path passing through the switch; the telemetry metadata determination module is used to determine the target switch according to the network state telemetry requirements.
  • the telemetry metadata to be collected by each target switch is used to select the module based on network topology information, target switches, the telemetry metadata to be collected by each target switch, the average length of data packets of each user service flow, and each user service flow.
  • the flow through the switch path is selected, and at least one user service flow is selected as the telemetry bearer flow, and the telemetry bearer flow can cover all target switches.
  • the telemetry bearer flow selection module includes: a remaining effective telemetry space calculation sub-module, used for calculating the service of each user according to the average length of the data packet of each user service flow.
  • the remaining effective telemetry space of the flow is used to allocate a user service flow to each target switch respectively;
  • the telemetry metadata capacity calculation sub-module is used to calculate the demand of each target switch on the allocated user service flow.
  • the flow determination module is used for determining the allocated user traffic flow as a telemetry bearer flow.
  • the telemetry bearer stream selection module further includes: a telemetry bearer stream optimization sub-module for using a preset algorithm to minimize the number of telemetry bearer streams and Minimize the capacity occupied by all telemetry metadata on each telemetry bearer stream and select the optimized telemetry bearer stream as the optimization goal; the new telemetry bearer stream determines the sub-module, if the selected optimized telemetry bearer stream covers all target switches, and each optimized telemetry bearer stream If the capacity occupied by all telemetry metadata on the stream is less than or equal to the remaining effective telemetry space of each optimized telemetry bearer stream, the new telemetry bearer stream determination sub-module is used to determine the optimized telemetry bearer stream as a new telemetry bearer stream.
  • a telemetry bearer stream optimization sub-module for using a preset algorithm to minimize the number of telemetry bearer streams and Minimize the capacity occupied by all telemetry metadata on each telemetry bearer stream and select the optimized
  • a third aspect of the present application provides a computer device, comprising: at least one processor; and a memory connected in communication with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are processed by the at least one processor
  • the in-band network telemetry bearer stream selection method as provided in the first aspect of the present application is executed.
  • a fourth aspect of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores computer instructions, and the computer instructions are used to cause a computer to execute the method for selecting an in-band network telemetry bearer stream as provided in the first aspect of the present application.
  • the network state telemetry requirements are first obtained, and then the network topology structure of the network to be tested and user service flow distribution information are fully utilized, so that the selected Telemetry bearer flows can cover all target switches corresponding to network state telemetry requirements. Therefore, through the telemetry bearer stream selected by the in-band network telemetry bearer stream selection method provided by the present application, the user can obtain the required network status in time.
  • FIG. 1 is a flowchart of a specific example of a method for selecting an in-band network telemetry bearer stream in an embodiment of the present application
  • FIG. 2 is a schematic diagram of a network to be tested in an embodiment of the present application
  • 3-5 are flowcharts of specific examples of a method for selecting an in-band network telemetry bearer stream in an embodiment of the present application
  • FIG. 6 is a flowchart of processing a message during in-band network telemetry in an embodiment of the present application
  • FIG. 7 to 9 are schematic block diagrams of a system for selecting an in-band network telemetry bearer stream according to an embodiment of the present application
  • FIG. 10 is a schematic block diagram of a computer device provided in an embodiment of the application.
  • An embodiment of the present application provides a method for selecting an in-band network telemetry bearer stream, as shown in FIG. 1 , including:
  • Step S10 Obtain network status telemetry requirements.
  • the network status telemetry requirements are obtained from the service layer, and the telemetry requirements include congestion detection, packet loss rate detection, and micro-burst detection of the network to be measured.
  • the network status telemetry items of the service layer are split, integrated and clustered, the telemetry items of different telemetry applications are classified from the service layer, and the same telemetry items are integrated to improve the information entropy of single telemetry.
  • Step S20 Obtain network topology information of the network to be tested and distribution information of user service flows in the network to be tested.
  • the distribution information of user service flows includes the average length of data packets of each user service flow and the paths passing through the switch.
  • the network topology of the network to be tested is constructed through the host discovery protocol and the link state discovery protocol, and the active flow table entry of the switch, the life cycle counter of the flow table, the number of matching data packets and the statistical value of matching bytes are collected. Distribution information of user traffic flow.
  • the information collected by LLDP Link Layer Discovery Protocol, Link Layer Discovery Protocol
  • the controller periodically polls the user traffic flow table and its statistics information on the switch through the OpenFlow protocol.
  • a tuple (d a , d b ) is used to indicate that d a is connected to d b .
  • Set I represents the set of switch interfaces in the network, for each switch interface there may be one or more telemetry requirements.
  • the average length of the data packets of the user service flow can be obtained through the following steps:
  • the path that flows through the switch is represented by the combination of switch IDs, such as F x : H i ⁇ S m ⁇ S n ⁇ S o ⁇ S p ⁇ H j , indicating that the xth telemetry flow is passed by the ith host through m, n, o , p switches send to the jth host.
  • switch IDs such as F x : H i ⁇ S m ⁇ S n ⁇ S o ⁇ S p ⁇ H j
  • the network topology information of the network under test and the distribution information of user service flows are shown in Figure 2, wherein the topology information includes 4 user terminals and 6 switches, and there are 4 telemetry in the network under test. flow, the path through the switch for each telemetry flow is:
  • Step S30 Determine the target switch and the telemetry metadata to be collected by each target switch according to the network state telemetry requirements.
  • the telemetry metadata can be divided into three categories: basic information, queue information, and timestamp information.
  • the switch needs to collect different telemetry metadata, and the space occupied by different telemetry metadata is also different.
  • the network measurement service needs to collect port 4-byte data, congestion detection 4 bytes of port data need to be collected, 2 bytes of port data should be collected for packet loss rate detection, 2 bytes of port data should be collected for micro-burst detection, and 32 bytes of port data should be collected for fault snapshots.
  • Step S40 According to the network topology information, the target switch, the telemetry metadata to be collected by each target switch, the average packet length of each user service flow, and the path of each user service flow passing through the switch, at least one user service flow is selected as the telemetry bearer. flow, the telemetry bearer flow covers all all target switches.
  • the network state telemetry requirements are first obtained, and then the network topology structure of the network to be tested and user service flow distribution information are fully utilized, so that the selected Telemetry bearer flows can cover all target switches corresponding to network state telemetry requirements. Therefore, through the telemetry bearer stream selected by the in-band network telemetry bearer stream selection method provided by the present application, the user can obtain the required network status in time.
  • step S40 specifically includes:
  • Step S41 Calculate the remaining effective telemetry space of each user service flow according to the average length of the data packets of each user service flow.
  • the average data packet length of the four user service flows is 200 words respectively. bytes, 600 bytes, 800 bytes and 1200 bytes. Since the link layer adopts Ethernet technology, the maximum frame length (MTU) is 1500 bytes, so the remaining effective telemetry space of each user service flow is 1300 bytes, 900 bytes, 700 bytes and 300 bytes.
  • MTU maximum frame length
  • Step S42 Allocate a user service flow to each target switch respectively.
  • Step S43 Calculate the capacity occupied by the telemetry metadata to be collected of each target switch on the allocated user service flow.
  • Step S44 If the capacity occupied by the telemetry metadata to be collected by each target switch on each allocated user service flow is less than or equal to the remaining effective telemetry space of each allocated user service flow, then the allocated user service flow is determined as telemetry. bearer stream.
  • step S42 If the capacity occupied by the telemetry metadata to be collected by each target switch on the allocated user service flow is greater than the remaining effective telemetry space of the user service flow, return to step S42 to redo the allocation of the user service flow.
  • each telemetry bearer flow passes through can normally collect telemetry metadata and transmit the telemetry metadata to the server through the telemetry bearer flow, it is necessary to ensure that each telemetry bearer flow on the selected telemetry bearer flow needs to be ensured.
  • the capacity occupied by the telemetry metadata to be collected by the target switch is less than or equal to the remaining effective telemetry space of the telemetry bearer stream.
  • the method further includes:
  • Step S45 Using a preset algorithm, an optimized telemetry bearer stream is selected to minimize the number of telemetry bearer streams and minimize the capacity occupied by all telemetry metadata on each telemetry bearer stream.
  • Step S46 If the selected optimized telemetry bearer flow covers all target switches, and the capacity occupied by all telemetry metadata on each optimized telemetry bearer flow is less than or equal to the remaining effective telemetry space of each optimized telemetry bearer flow, the optimized telemetry bearer flow will be optimized. Determined as a new telemetry bearer stream.
  • the optimization problem of the selection scheme of the telemetry bearer flow is transformed into a multi-objective optimization problem, and the Pareto optimal solution is used as this solution to the problem.
  • an initial population P is generated, and each individual in P is a matrix with matrix elements of 0 and 1; then, the evolution operation is performed on P through the genetic algorithm to obtain a new evolutionary population R; then, the normalization method is used to construct For the non-dominated set of P ⁇ R, judge whether the non-dominated set satisfies the condition, if it satisfies the termination condition, end, and use the user service flow selected in the telemetry bearer flow selection scheme represented by the non-dominated set of P ⁇ R as the new telemetry bearer flow, otherwise the individuals in the non-dominated set are copied into P and proceed to the next round of evolution.
  • the network telemetry bearer flows are user service flow F 1 and user service flow F 3 .
  • the method for selecting an in-band network telemetry bearer stream provided by this embodiment of the present application further includes:
  • Step S50 Generate an in-band network telemetry configuration command according to the selection scheme of the telemetry bearer flow, and send it to the target switch.
  • the selection scheme of the telemetry bearer flow includes the selected telemetry bearer flow and the target switch corresponding to each telemetry bearer flow.
  • the in-band network telemetry configuration commands include telemetry server parameters, telemetry flow parameters, and telemetry metadata to be collected by each target switch.
  • the telemetry server parameter is the IP address of the telemetry server
  • the telemetry flow parameter includes the stream source IP (IP src), destination IP (IP dst), IP protocol field (IP proto), IP service of the telemetry bearer flow Type (IP ToS bits), TCP/UDP source port number (TCP/UDP src port), TCP/UDP destination port number (TCP/UDPdst port), etc.
  • FIG. 6 takes 2 terminals, 3 switches and 1 telemetry server as an example to illustrate the packet processing flow during in-band network telemetry.
  • Terminal 1 sends ordinary user data packets to terminal 2 .
  • Switch 1 (INT Traffic Sources) is responsible for embedding telemetry commands into normal packets or telemetry packets.
  • switch 1 When a service packet enters switch 1 (INT Traffic Sources), switch 1 (INT Traffic Sources) samples and mirrors the service flow packet through the sampling method set on the network device, encapsulates an INT header in the packet, and defines INT command structure, add INT Metadata-1 data after the INT header, and fill in the INT data with the network device information to be collected; then the service packet will be forwarded to the network device on the next path, switch 2 (INT Transit Hop) According to the INT data content of the previous device, continue to add the local INT Metadata-2 information; when the service packet passes through all intermediate switches (INT Transit Hop), it is forwarded to the last network device, switch 3 (INT Traffic Sinks) removes the INT Header, extracts and reports the telemetry results, and sends them to the telemetry server.
  • switch 2 INT Transit Hop
  • a telemetry bearer stream that can cover the switches required for telemetry in the network to be tested is initially selected based on the network topology information and telemetry distribution information of the network to be tested, so that the user can timely After obtaining the network status of the entire network, the selection scheme of the telemetry bearer stream is further optimized, which improves the success rate of network telemetry task completion.
  • the embodiments of the present application provide an in-band network telemetry bearer stream selection system, which may be deployed on a controller as a subsystem, or may exist independently in the form of a telemetry server. As shown in Figure 7, the system includes:
  • the telemetry requirement obtaining module 10 is used to obtain the network state telemetry requirement.
  • the network state telemetry requirement is obtained through the telemetry service layer.
  • the network state acquisition module 20 is used to acquire network topology information of the network to be tested and distribution information of user service flows in the network to be tested.
  • the distribution information of user service flows includes the average length of data packets of each user service flow and the path passing through the switch. , and for a detailed description, see the description of step S20 in any of the above method embodiments.
  • the telemetry metadata determination module 30 is configured to determine the target switch and the telemetry metadata to be collected by each target switch according to the network state telemetry requirement. For a detailed description, see the description of step S30 in any of the above method embodiments.
  • the telemetry bearer flow selection module 40 is configured to select at least one of the network topology information, the target switch, the telemetry metadata to be collected by each target switch, the average packet length of each user service flow, and the flow path of each user service flow through the switch.
  • the user service flow is used as a telemetry bearer flow, and the telemetry bearer flow covers all target switches.
  • the network state telemetry requirements are first obtained, and then the network topology structure of the network to be tested and user service flow distribution information are fully utilized, so that the selected Telemetry bearer flows can cover all target switches corresponding to network state telemetry requirements. Therefore, through the telemetry bearer stream selected by the in-band network telemetry bearer stream selection system provided by the present application, the user can obtain the required network status in time.
  • the telemetry bearer stream selection module 40 specifically includes:
  • the remaining effective telemetry space calculation submodule 41 is used to calculate the remaining effective telemetry space of each user service flow according to the average length of the data packet of each user service flow. For a detailed description, see the description of step S41 in any of the above method embodiments.
  • the telemetry flow allocation sub-module 42 is configured to allocate a user service flow to each target switch respectively. For a detailed description, see the description of step S42 in any of the above method embodiments.
  • the telemetry metadata capacity calculation sub-module 43 is used to calculate the capacity occupied by the telemetry metadata to be collected by each target switch on the allocated user service flow. For a detailed description, see the description of step S43 in any of the above method embodiments.
  • the telemetry bearer flow determination sub-module 44 if the capacity occupied by the telemetry metadata to be collected by each target switch on each allocated user service flow is less than or equal to the remaining effective telemetry space of each allocated user service flow, then the telemetry bearer flow determination module uses: For determining the allocated user service flow as the telemetry bearer flow, see the description of step S44 in any of the above method embodiments for detailed description.
  • the telemetry bearer stream selection module 40 further includes:
  • the telemetry bearer stream optimization sub-module 45 is used to select an optimized telemetry bearer stream by using a preset algorithm to minimize the number of telemetry bearer streams and minimize the capacity occupied by all telemetry metadata on each telemetry bearer stream.
  • Step S45 is described in any of the above method embodiments.
  • the new telemetry bearer flow determination sub-module 46 if the selected optimized telemetry bearer flow covers all target switches, and the capacity occupied by all telemetry metadata on each optimized telemetry bearer flow is less than or equal to the remaining effective telemetry space of each optimized telemetry bearer flow , the new telemetry bearer flow determination sub-module is configured to determine the optimized telemetry bearer flow as a new telemetry bearer flow.
  • the computer device mainly includes one or more processors 61 and a memory 62 .
  • the processors 61 is used as an example.
  • the computer equipment may also include: an input device 63 and an output device 64 .
  • the processor 61 , the memory 62 , the input device 63 and the output device 64 may be connected by a bus or in other ways, and the connection by a bus is taken as an example in FIG. 10 .
  • the processor 61 may be a central processing unit (Central Processing Unit, CPU).
  • the processor 61 may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), application specific integrated circuits (Application Specific Integrated Circuits, ASICs), Field-Programmable Gate Arrays (Field-Programmable Gate Arrays, FPGAs) or Other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components and other chips, or a combination of the above types of chips.
  • a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the memory 62 may include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required by at least one function; data etc.
  • memory 62 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device.
  • memory 62 may optionally include memory located remotely from processor 61 that may be connected via a network to the in-band network telemetry bearer stream selection system.
  • the input device 63 may receive user input computing requests (or other numerical or character information) and generate key signal inputs related to the in-band network telemetry bearer stream selection system.
  • the output device 64 may include a display device such as a display screen, and is used to output the calculation result.
  • the embodiments of the present application provide a computer-readable storage medium, where the computer-readable storage medium stores computer instructions, and the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions can execute the in-band network in any of the foregoing method embodiments. Telemetry bearer stream selection method.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive) , abbreviation: HDD) or solid-state drive (Solid-State Drive, SSD), etc.; the storage medium may also include a combination of the above-mentioned types of memories.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present application provides an in-band network telemetry bearer stream selection method and system. The method comprises: obtaining network state telemetry requirements; obtaining network topology information of a network to be tested and distribution information of user traffic streams, the distribution information of the user traffic streams comprising the average length of data packets of respective user traffic streams and user traffic stream switching paths; determining, according to the network state telemetry requirements, target switches and telemetry metadata that each target switch needs to collect; and selecting at least one user traffic stream as a telemetry bearer stream according to the network topology information, the target switches, the telemetry metadata that each target switch needs to collect, the average length of data packets of respective user traffic streams, and the user traffic stream switching paths, the telemetry bearer stream covering all the target switches. The user traffic stream selected by the in-band network telemetry bearer stream selection method provided in the present application enables a network administrator to obtain required network states in time.

Description

一种带内网络遥测承载流选取方法及系统In-band network telemetry bearer stream selection method and system 技术领域technical field
本申请涉及带内网络遥测技术领域,具体涉及一种带内网络遥测承载流选取方法及系统。The present application relates to the technical field of in-band network telemetry, and in particular to a method and system for selecting a bearer stream for in-band network telemetry.
背景技术Background technique
带内网络遥测是近几年兴起的一种混合测量方法,通过路径中间交换节点对数据包依次插入元数据(Measure metadata)的方式完成网络状态采集。带内网络遥测是一种不需要网络控制平面干预,网络数据平面收集和报告网络状态的框架。在带内网络遥测架构模型中,交换设备生成、转发、处理携带遥测指令(Telemetry Instructions)的数据包。当遥测数据包经过该设备时,这些遥测指令告诉具备网络遥测功能的网络设备应该收集并写入何种网络状态信息。但是带内网络遥测测量范围有限,且带内测量预先定义的随路检测特性使得带内网络遥测只能检测特定路径上的某些数据包的遥测数据,无法根据用户的检测需求覆盖与检测需求相对应的全部交换机,因此用户无法及时获得所需的网络状态。In-band network telemetry is a hybrid measurement method that has emerged in recent years. It completes network status collection by inserting metadata (Measure metadata) into data packets in turn by switching nodes in the middle of the path. In-band network telemetry is a framework for the network data plane to collect and report network status without the intervention of the network control plane. In the in-band network telemetry architecture model, switching devices generate, forward, and process packets that carry telemetry instructions (Telemetry Instructions). As telemetry packets pass through the device, these telemetry commands tell network telemetry-capable network devices what network state information should be collected and written. However, the measurement range of in-band network telemetry is limited, and the pre-defined path-dependent detection feature of in-band measurement makes in-band network telemetry only detect the telemetry data of some packets on a specific path, and cannot cover and detect according to the user's detection requirements. Therefore, users cannot obtain the required network status in time.
发明内容SUMMARY OF THE INVENTION
因此,本申请要解决的技术问题在于克服现有技术中的无法及时获取所需网络状态的缺陷,从而提供一种带内网络遥测承载流选取方法。Therefore, the technical problem to be solved by the present application is to overcome the defect in the prior art that the required network state cannot be obtained in time, so as to provide an in-band network telemetry bearer stream selection method.
本申请第一方面提供了一种带内网络遥测承载流选取方法,包括:获取网络状态遥测需求;获取待测网络的网络拓扑信息及待测网络中的用户业务流的分布信息,用户业务流的分布信息包括各用户业务流的数据包平均长度和流经交换机路径;根据网络状态遥测需求确定目标交换机及目标交换机需采集的遥测元数据;根据网络拓扑信息、目标交换机、各目标交换机需采集的遥测元数据、各用户业务流的数据包平均长度、各用户业务流的流经交换机路径,选取至少一条用户业务流作为遥测承载流,遥测承载流覆盖所有目标交换机。A first aspect of the present application provides an in-band network telemetry bearer flow selection method, including: acquiring network status telemetry requirements; acquiring network topology information of the network to be measured and distribution information of user service flows in the The distribution information includes the average length of data packets of each user service flow and the path through the switch; the target switch and the telemetry metadata to be collected by the target switch are determined according to the network status telemetry requirements; according to the network topology information, the target switch, each target switch needs to be collected The telemetry metadata of each user service flow, the average length of the data packets of each user service flow, and the flow path of each user service flow through the switch, select at least one user service flow as the telemetry bearer flow, and the telemetry bearer flow covers all target switches.
可选地,在本申请提供的带内网络遥测承载流选取方法中,根据网络拓扑信息、目标交换机、各目标交换机需采集的遥测元数据、各用户业务流的数据包平均长度、各用户业务流的流经交换机路径,选取至少一条用户业务流作为遥测承载流的步骤,包括: 根据各用户业务流的数据包平均长度计算各用户业务流的剩余有效遥测空间;分别为各目标交换机分配一条用户业务流;分别计算所分配的用户业务流上各目标交换机需采集的遥测元数据所占容量;若各所分配的用户业务流上各目标交换机需采集的遥测元数据所占容量小于或等于各所分配的用户业务流的剩余有效遥测空间,则将所分配的用户业务流确定为遥测承载流。Optionally, in the in-band network telemetry bearer flow selection method provided by the present application, according to network topology information, target switches, telemetry metadata to be collected by each target switch, the average length of data packets of each user service flow, and each user service flow. The steps of selecting at least one user service flow as the telemetry bearer flow in the flow of the flow through the switch path include: calculating the remaining effective telemetry space of each user service flow according to the average length of the data packets of each user service flow; allocating one to each target switch respectively. User service flow; calculate the capacity of the telemetry metadata to be collected by each target switch on the assigned user service flow; if the capacity of the telemetry metadata to be collected by each target switch on each assigned user service flow is less than or equal to The remaining effective telemetry space of the allocated user service flow is determined as the telemetry bearer flow.
可选地,本申请提供的带内网络遥测承载流选取方法还包括:利用预设算法,以最小化遥测承载流的数量和最小化各遥测承载流上所有遥测元数据所占容量为优化目标选取优化遥测承载流;若所选取的优化遥测承载流覆盖所有目标交换机,且各优化遥测承载流上所有遥测元数据所占容量小于或等于各优化遥测承载流的剩余有效遥测空间,则将优化遥测承载流确定为新的遥测承载流。Optionally, the method for selecting an in-band network telemetry bearer stream provided by the present application further includes: using a preset algorithm to minimize the number of telemetry bearer streams and minimize the capacity occupied by all telemetry metadata on each telemetry bearer stream as an optimization goal. Select the optimized telemetry bearer flow; if the selected optimized telemetry bearer flow covers all target switches, and the capacity occupied by all telemetry metadata on each optimized telemetry bearer flow is less than or equal to the remaining effective telemetry space of each optimized telemetry bearer flow, the optimized telemetry bearer flow will be optimized. The telemetry bearer stream is determined to be the new telemetry bearer stream.
可选地,本申请提供的带内网络遥测承载流选取方法还包括:根据遥测承载流的选取方案生成带内网络遥测配置命令,并发送至目标交换机,带内网络遥测配置命令包括遥测服务器参数、遥测流参数、各目标交换机所需收集的遥测元数据。Optionally, the method for selecting an in-band network telemetry bearer stream provided by the present application further includes: generating an in-band network telemetry configuration command according to the selection scheme of the telemetry bearer stream, and sending it to the target switch, where the in-band network telemetry configuration command includes a telemetry server parameter. , telemetry flow parameters, and telemetry metadata to be collected by each target switch.
可选地,在本申请提供的带内网络遥测承载流选取方法中,通过如下步骤获取用户业务流的数据包平均长度:获取用户业务流的流表匹配字节数和流表匹配数据包数;根据用户业务流的流表匹配字节数和流表匹配数据包数确定用户业务流的数据包平均长度。Optionally, in the in-band network telemetry bearer flow selection method provided by the present application, the average length of the data packets of the user service flow is obtained through the following steps: the number of bytes matched by the flow table and the number of matched data packets of the flow table of the user service flow are obtained. ; Determine the average length of the data packets of the user service flow according to the number of bytes matched by the flow table of the user service flow and the number of matched data packets of the flow table.
本申请第二方面提供了一种带内网络遥测承载流选取系统,包括:遥测需求获取模块,用于获取网络状态遥测需求;网络状态采集模块,用于获取待测网络的网络拓扑信息及待测网络中的用户业务流的分布信息,用户业务流的分布信息包括各用户业务流的数据包平均长度和流经交换机路径;遥测元数据确定模块,用于根据网络状态遥测需求确定目标交换机及各目标交换机需采集的遥测元数据;遥测承载流选取模块,用于根据网络拓扑信息、目标交换机、各目标交换机需采集的遥测元数据、各用户业务流的数据包平均长度、各用户业务流的流经交换机路径,选取至少一条用户业务流作为遥测承载流,遥测承载流能够覆盖所有目标交换机。A second aspect of the present application provides an in-band network telemetry bearer stream selection system, including: a telemetry requirement acquisition module for acquiring network status telemetry requirements; a network status acquisition module for acquiring network topology information and to-be-measured network topology information. The distribution information of user service flows in the network is measured, and the distribution information of user service flows includes the average length of data packets of each user service flow and the path passing through the switch; the telemetry metadata determination module is used to determine the target switch according to the network state telemetry requirements. The telemetry metadata to be collected by each target switch; the telemetry bearer stream selection module is used to select the module based on network topology information, target switches, the telemetry metadata to be collected by each target switch, the average length of data packets of each user service flow, and each user service flow. The flow through the switch path is selected, and at least one user service flow is selected as the telemetry bearer flow, and the telemetry bearer flow can cover all target switches.
可选地,在本申请提供的带内网络遥测承载流选取系统中,遥测承载流选取模块包括:剩余有效遥测空间计算子模块,用于根据各用户业务流的数据包平均长度计算各用户业务流的剩余有效遥测空间;遥测流分配子模块,用于分别为各目标交换机分配一条用户业务流;遥测元数据容量计算子模块,用于分别计算所分配的用户业务流上各目标交换机的需采集的遥测元数据所占容量;遥测承载流确定子模块,若各所分配的遥测流 上各交换机的遥测元数据所占容量小于或等于各所分配的用户业务流的剩余有效遥测空间,则遥测承载流确定模块用于将所分配的用户业务流确定为遥测承载流。Optionally, in the in-band network telemetry bearer flow selection system provided by the present application, the telemetry bearer flow selection module includes: a remaining effective telemetry space calculation sub-module, used for calculating the service of each user according to the average length of the data packet of each user service flow. The remaining effective telemetry space of the flow; the telemetry flow allocation sub-module is used to allocate a user service flow to each target switch respectively; the telemetry metadata capacity calculation sub-module is used to calculate the demand of each target switch on the allocated user service flow. The capacity occupied by the collected telemetry metadata; the telemetry bearer flow determination sub-module, if the capacity occupied by the telemetry metadata of each switch on each allocated telemetry flow is less than or equal to the remaining effective telemetry space of each allocated user service flow, the telemetry bearer The flow determination module is used for determining the allocated user traffic flow as a telemetry bearer flow.
可选地,在本申请提供的带内网络遥测承载流选取系统中,遥测承载流选取模块还包括:遥测承载流优化子模块,用于利用预设算法,以最小化遥测承载流的数量和最小化各遥测承载流上所有遥测元数据所占容量为优化目标选取优化遥测承载流;新的遥测承载流确定子模块,若所选取的优化遥测承载流覆盖所有目标交换机,且各优化遥测承载流上所有遥测元数据所占容量小于或等于各优化遥测承载流的剩余有效遥测空间,则新的遥测承载流确定子模块用于将优化遥测承载流确定为新的遥测承载流。Optionally, in the in-band network telemetry bearer stream selection system provided by the present application, the telemetry bearer stream selection module further includes: a telemetry bearer stream optimization sub-module for using a preset algorithm to minimize the number of telemetry bearer streams and Minimize the capacity occupied by all telemetry metadata on each telemetry bearer stream and select the optimized telemetry bearer stream as the optimization goal; the new telemetry bearer stream determines the sub-module, if the selected optimized telemetry bearer stream covers all target switches, and each optimized telemetry bearer stream If the capacity occupied by all telemetry metadata on the stream is less than or equal to the remaining effective telemetry space of each optimized telemetry bearer stream, the new telemetry bearer stream determination sub-module is used to determine the optimized telemetry bearer stream as a new telemetry bearer stream.
本申请第三方面提供了一种计算机设备,包括:至少一个处理器;以及与至少一个处理器通信连接的存储器;其中,存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,从而执行如本申请第一方面提供的带内网络遥测承载流选取方法。A third aspect of the present application provides a computer device, comprising: at least one processor; and a memory connected in communication with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are processed by the at least one processor The in-band network telemetry bearer stream selection method as provided in the first aspect of the present application is executed.
本申请第四方面提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机指令,计算机指令用于使计算机执行如本申请第一方面提供的带内网络遥测承载流选取方法。A fourth aspect of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores computer instructions, and the computer instructions are used to cause a computer to execute the method for selecting an in-band network telemetry bearer stream as provided in the first aspect of the present application.
本申请技术方案,具有如下优点:The technical solution of the present application has the following advantages:
本申请提供的带内网络遥测承载流选取方法及系统,在选取遥测承载流时,先获取网络状态遥测需求,然后充分利用了待测网络的网络拓扑结构和用户业务流分布信息,使得选取的遥测承载流可以覆盖与网络状态遥测需求相对应的全部目标交换机。因此通过本申请提供的带内网络遥测承载流选取方法选取的遥测承载流,用户可以及时获取所需的网络状态。In the method and system for selecting an in-band network telemetry bearer stream provided by the present application, when selecting a telemetry bearer stream, the network state telemetry requirements are first obtained, and then the network topology structure of the network to be tested and user service flow distribution information are fully utilized, so that the selected Telemetry bearer flows can cover all target switches corresponding to network state telemetry requirements. Therefore, through the telemetry bearer stream selected by the in-band network telemetry bearer stream selection method provided by the present application, the user can obtain the required network status in time.
附图说明Description of drawings
为了更清楚地说明本申请具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the accompanying drawings that need to be used in the description of the specific embodiments or the prior art will be briefly introduced below. The drawings are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1为本申请实施例中带内网络遥测承载流选取方法的一个具体示例的流程图;1 is a flowchart of a specific example of a method for selecting an in-band network telemetry bearer stream in an embodiment of the present application;
图2为本申请实施例中待测网络示意图;2 is a schematic diagram of a network to be tested in an embodiment of the present application;
图3-图5为本申请实施例中带内网络遥测承载流选取方法的具体示例的流程图;3-5 are flowcharts of specific examples of a method for selecting an in-band network telemetry bearer stream in an embodiment of the present application;
图6为本申请实施例中带内网络遥测时对报文的处理流程图;6 is a flowchart of processing a message during in-band network telemetry in an embodiment of the present application;
图7-图9为本申请实施例中带内网络遥测承载流选取系统的原理框图;7 to 9 are schematic block diagrams of a system for selecting an in-band network telemetry bearer stream according to an embodiment of the present application;
图10为本申请实施例中提供的计算机设备原理框图。FIG. 10 is a schematic block diagram of a computer device provided in an embodiment of the application.
具体实施方式detailed description
下面将结合附图对本申请的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
在本申请的描述中,需要说明的是,下面所描述的本申请不同实施方式中所涉及的技术特征只要彼此之间未构成冲突就可以相互结合。In the description of the present application, it should be noted that the technical features involved in the different embodiments of the present application described below can be combined with each other as long as there is no conflict with each other.
实施例1Example 1
本申请实施例提供了一种带内网络遥测承载流选取方法,如图1所示,包括:An embodiment of the present application provides a method for selecting an in-band network telemetry bearer stream, as shown in FIG. 1 , including:
步骤S10:获取网络状态遥测需求,在本申请实施例中,网络状态遥测需求是从服务层获取的,遥测需求包括对待测网络的拥塞检测、丢包率检测、微突发检测等。在获取网络状态遥测需求时,对服务层的网络状态遥测项目进行拆分、整合和聚类,从服务层中分类不同遥测应用的遥测项目,融合相同遥测项目,提高单次遥测信息熵。Step S10: Obtain network status telemetry requirements. In the embodiment of the present application, the network status telemetry requirements are obtained from the service layer, and the telemetry requirements include congestion detection, packet loss rate detection, and micro-burst detection of the network to be measured. When obtaining the network status telemetry requirements, the network status telemetry items of the service layer are split, integrated and clustered, the telemetry items of different telemetry applications are classified from the service layer, and the same telemetry items are integrated to improve the information entropy of single telemetry.
步骤S20:获取待测网络的网络拓扑信息及待测网络中的用户业务流的分布信息,用户业务流的分布信息包括各用户业务流的数据包平均长度和流经交换机路径。Step S20: Obtain network topology information of the network to be tested and distribution information of user service flows in the network to be tested. The distribution information of user service flows includes the average length of data packets of each user service flow and the paths passing through the switch.
在本申请实施例中,通过主机发现协议和链路状态发现协议构建待测网络的网络拓扑,通过交换机活跃流表项、流表生命周期计数器、匹配数据包个数和匹配字节统计值采集用户业务流的分布信息。在一具体实施例中,若本方法在SDN控制器中实施,可采用LLDP(Link Layer Discovery Protocol,链路层发现协议)搜集的信息来识别和管理网络拓扑结构。对于遥测流的分布信息,控制器通过OpenFlow协议周期轮询交换机上的用户业务流表及其统计信息。In the embodiment of the present application, the network topology of the network to be tested is constructed through the host discovery protocol and the link state discovery protocol, and the active flow table entry of the switch, the life cycle counter of the flow table, the number of matching data packets and the statistical value of matching bytes are collected. Distribution information of user traffic flow. In a specific embodiment, if the method is implemented in an SDN controller, the information collected by LLDP (Link Layer Discovery Protocol, Link Layer Discovery Protocol) can be used to identify and manage the network topology. For the distribution information of telemetry flow, the controller periodically polls the user traffic flow table and its statistics information on the switch through the OpenFlow protocol.
待测网络的网络拓扑信息包括待测网络中的交换机和交换机接口,可表示为G=(D,I),集合D代表待测网络中的交换机D={1,2,…,|D|},每个设备d∈D都有一组网络接口连接其他网络设备。用元组(d a,d b)表示d a与d b相连。集合I表示网络中交换机接口集合,对于每个交换机接口都可能有一个或多个遥测需求。 The network topology information of the network under test includes the switches and switch interfaces in the network under test, which can be expressed as G=(D,I), and the set D represents the switches in the network under test D={1,2,...,|D| }, each device d∈D has a set of network interfaces to connect other network devices. A tuple (d a , d b ) is used to indicate that d a is connected to d b . Set I represents the set of switch interfaces in the network, for each switch interface there may be one or more telemetry requirements.
本申请实施例中,可通过如下步骤获取用户业务流的数据包平均长度:In the embodiment of the present application, the average length of the data packets of the user service flow can be obtained through the following steps:
首先,获取用户业务流的流表匹配字节数和流表匹配数据包数;First, obtain the number of bytes matched by the flow table and the number of packets matched by the flow table of the user service flow;
然后,根据用户业务流的流表匹配字节数和流表匹配数据包数确定用户业务流的数 据包平均长度:用户业务流的数据包平均长度=对应流表匹配字节数/对应流表匹配数据包数。Then, the average length of the data packets of the user service flow is determined according to the number of bytes matched by the flow table of the user service flow and the number of data packets matched by the flow table: the average length of the data packets of the user service flow = the number of matching bytes of the corresponding flow table/the corresponding flow table Number of matched packets.
流经交换机路径由交换机ID组合表示,如F x:H i→S m→S n→S o→S p→H j,表示第x条遥测流由第i个主机经过第m、n、o、p个交换机发送给第j个主机。 The path that flows through the switch is represented by the combination of switch IDs, such as F x : H i →S m →S n →S o →S p →H j , indicating that the xth telemetry flow is passed by the ith host through m, n, o , p switches send to the jth host.
在一具体实施例中,待测网络的网络拓扑信息和用户业务流的分布信息如图2所示,其中,拓扑信息中包括4台用户终端和6台交换机,待测网络中存在4条遥测流,各遥测流的流经交换机路径为:In a specific embodiment, the network topology information of the network under test and the distribution information of user service flows are shown in Figure 2, wherein the topology information includes 4 user terminals and 6 switches, and there are 4 telemetry in the network under test. flow, the path through the switch for each telemetry flow is:
F 1:H 4→S 6→S 3→H 2F 1 : H 4 →S 6 →S 3 →H 2 ;
F 2:H 3→S 4→S 5→S 6→S 3→H 2F 2 : H 3 →S 4 →S 5 →S 6 →S 3 →H 2 ;
F 3:H 1→S 1→S 2→S 5→S 6→H 4F 3 : H 1 →S 1 →S 2 →S 5 →S 6 →H 4 ;
F 4:H 1→S 1→S 4→H 3F 4 : H 1 →S 1 →S 4 →H 3 .
步骤S30:根据网络状态遥测需求确定目标交换机及各目标交换机需采集的遥测元数据,遥测元数据可以分为三类:基本信息、队列信息、时间戳信息。在一具体实施例中,对于不同的遥测需求,交换机需要采集不同的遥测元数据,不同的遥测元数据所占用的空间也有所不同,例如,网络测量服务需采集端口4字节数据,拥塞检测需采集端口4字节数据,丢包率检测需采集端口2字节数据,微突发检测需采集端口2字节数据,故障快照需采集端口32字节数据。Step S30: Determine the target switch and the telemetry metadata to be collected by each target switch according to the network state telemetry requirements. The telemetry metadata can be divided into three categories: basic information, queue information, and timestamp information. In a specific embodiment, for different telemetry requirements, the switch needs to collect different telemetry metadata, and the space occupied by different telemetry metadata is also different. For example, the network measurement service needs to collect port 4-byte data, congestion detection 4 bytes of port data need to be collected, 2 bytes of port data should be collected for packet loss rate detection, 2 bytes of port data should be collected for micro-burst detection, and 32 bytes of port data should be collected for fault snapshots.
步骤S40:根据网络拓扑信息、目标交换机、各目标交换机需采集的遥测元数据、各用户业务流的数据包平均长度、各用户业务流的流经交换机路径,选取至少一条用户业务流作为遥测承载流,遥测承载流覆盖所有所有目标交换机。Step S40: According to the network topology information, the target switch, the telemetry metadata to be collected by each target switch, the average packet length of each user service flow, and the path of each user service flow passing through the switch, at least one user service flow is selected as the telemetry bearer. flow, the telemetry bearer flow covers all all target switches.
本申请实施例提供的带内网络遥测承载流选取方法,在选取遥测承载流时,先获取网络状态遥测需求,然后充分利用了待测网络的网络拓扑结构和用户业务流分布信息,使得选取的遥测承载流可以覆盖与网络状态遥测需求相对应的全部目标交换机。因此通过本申请提供的带内网络遥测承载流选取方法选取的遥测承载流,用户可以及时获取所需的网络状态。In the method for selecting an in-band network telemetry bearer stream provided by the embodiment of the present application, when selecting a telemetry bearer stream, the network state telemetry requirements are first obtained, and then the network topology structure of the network to be tested and user service flow distribution information are fully utilized, so that the selected Telemetry bearer flows can cover all target switches corresponding to network state telemetry requirements. Therefore, through the telemetry bearer stream selected by the in-band network telemetry bearer stream selection method provided by the present application, the user can obtain the required network status in time.
在一可选实施中,如图3所示,在本申请实施中提供的带内网络遥测承载流选取方法中,上述步骤S40具体包括:In an optional implementation, as shown in FIG. 3 , in the method for selecting an in-band network telemetry bearer stream provided in the implementation of this application, the above step S40 specifically includes:
步骤S41:根据各用户业务流的数据包平均长度计算各用户业务流的剩余有效遥测 空间,以图2所示的用户业务流为例,4条用户业务流的平均数据包长度分别为200字节、600字节、800字节和1200字节,由于链路层采用以太网技术,最大帧长度(MTU)为1500字节,因此各用户业务流的剩余有效遥测空间分别为1300字节、900字节、700字节和300字节。Step S41: Calculate the remaining effective telemetry space of each user service flow according to the average length of the data packets of each user service flow. Taking the user service flow shown in FIG. 2 as an example, the average data packet length of the four user service flows is 200 words respectively. bytes, 600 bytes, 800 bytes and 1200 bytes. Since the link layer adopts Ethernet technology, the maximum frame length (MTU) is 1500 bytes, so the remaining effective telemetry space of each user service flow is 1300 bytes, 900 bytes, 700 bytes and 300 bytes.
步骤S42:分别为各目标交换机分配一条用户业务流。Step S42: Allocate a user service flow to each target switch respectively.
步骤S43:分别计算所分配的用户业务流上各目标交换机的需采集的遥测元数据所占容量。Step S43: Calculate the capacity occupied by the telemetry metadata to be collected of each target switch on the allocated user service flow.
步骤S44:若各所分配的用户业务流上各目标交换机的需采集的遥测元数据所占容量小于或等于各所分配的用户业务流的剩余有效遥测空间,则将所分配的用户业务流确定为遥测承载流。Step S44: If the capacity occupied by the telemetry metadata to be collected by each target switch on each allocated user service flow is less than or equal to the remaining effective telemetry space of each allocated user service flow, then the allocated user service flow is determined as telemetry. bearer stream.
若存在所分配的用户业务流上各目标交换机需采集的遥测元数据所占容量大于该用户业务流的剩余有效遥测空间,则返回步骤S42,重新进行用户业务流的分配。If the capacity occupied by the telemetry metadata to be collected by each target switch on the allocated user service flow is greater than the remaining effective telemetry space of the user service flow, return to step S42 to redo the allocation of the user service flow.
在本申请实施例中,为了保证每条遥测承载流所经过的目标交换机可以对遥测元数据进行正常的采集并通过遥测承载流将遥测元数据传递给服务器,需要保证选取的遥测承载流上各目标交换机需采集的遥测元数据所占容量小于或等于该遥测承载流的剩余有效遥测空间。In the embodiment of the present application, in order to ensure that the target switch that each telemetry bearer flow passes through can normally collect telemetry metadata and transmit the telemetry metadata to the server through the telemetry bearer flow, it is necessary to ensure that each telemetry bearer flow on the selected telemetry bearer flow needs to be ensured. The capacity occupied by the telemetry metadata to be collected by the target switch is less than or equal to the remaining effective telemetry space of the telemetry bearer stream.
在一可选实施例中,如图4所示,在本申请实施例提供的带内网络遥测承载流选取方法中,在执行上述步骤S44之后,还包括:In an optional embodiment, as shown in FIG. 4 , in the method for selecting an in-band network telemetry bearer stream provided by the embodiment of the present application, after performing the foregoing step S44, the method further includes:
步骤S45:利用预设算法,以最小化遥测承载流的数量和最小化各遥测承载流上所有遥测元数据所占容量为优化目标选取优化遥测承载流。Step S45: Using a preset algorithm, an optimized telemetry bearer stream is selected to minimize the number of telemetry bearer streams and minimize the capacity occupied by all telemetry metadata on each telemetry bearer stream.
步骤S46:若所选取的优化遥测承载流覆盖所有目标交换机,且各优化遥测承载流上所有遥测元数据所占容量小于或等于各优化遥测承载流的剩余有效遥测空间,则将优化遥测承载流确定为新的遥测承载流。Step S46: If the selected optimized telemetry bearer flow covers all target switches, and the capacity occupied by all telemetry metadata on each optimized telemetry bearer flow is less than or equal to the remaining effective telemetry space of each optimized telemetry bearer flow, the optimized telemetry bearer flow will be optimized. Determined as a new telemetry bearer stream.
若所选取的优化遥测承载流不能覆盖所有目标交换机,或各优化遥测承载流上所有遥测元数据所占容量大于各优化遥测承载流的剩余有效遥测空间,则返回上述步骤S45,重新对遥测承载流进行优化。If the selected optimized telemetry bearer flow cannot cover all target switches, or the capacity occupied by all telemetry metadata on each optimized telemetry bearer flow is greater than the remaining effective telemetry space of each optimized telemetry bearer flow, then return to the above step S45, and re-enable the telemetry bearer stream is optimized.
在本申请实施例中,在执行上述步骤S45-步骤S46对遥测承载流的选取方案进行优化时,将对遥测承载流选取方案的优化问题转化为多目标优化问题,用Pareto最优解作为本问题的解。首先,产生一个初始种群P,P中每个个体均为矩阵元素为0和1的矩阵;接着,通过遗传算法对P执行进化操作,得到新的进化群体R;然后,采用归一化 法构造P∪R的非支配集,判断非支配集是否满足条件,若满足终止条件则结束,将P∪R的非支配集所表示的遥测承载流选取方案中选取的用户业务流作为新的遥测承载流,否则将非支配集中个体复制到P中并继续下一轮进化。In the embodiment of the present application, when the above steps S45-S46 are performed to optimize the selection scheme of the telemetry bearer flow, the optimization problem of the selection scheme of the telemetry bearer flow is transformed into a multi-objective optimization problem, and the Pareto optimal solution is used as this solution to the problem. First, an initial population P is generated, and each individual in P is a matrix with matrix elements of 0 and 1; then, the evolution operation is performed on P through the genetic algorithm to obtain a new evolutionary population R; then, the normalization method is used to construct For the non-dominated set of P∪R, judge whether the non-dominated set satisfies the condition, if it satisfies the termination condition, end, and use the user service flow selected in the telemetry bearer flow selection scheme represented by the non-dominated set of P∪R as the new telemetry bearer flow, otherwise the individuals in the non-dominated set are copied into P and proceed to the next round of evolution.
以上述图2所示的网络拓扑信息和遥测流分布信息为例,当需要同时进行网络测量服务检测、拥塞检测、丢包率检测、微突发检测和故障快照时,求得最优带内网络遥测承载流为用户业务流F 1和用户业务流F 3Taking the network topology information and telemetry flow distribution information shown in Figure 2 above as an example, when network measurement service detection, congestion detection, packet loss rate detection, micro-burst detection, and fault snapshots need to be performed at the same time, the optimal in-band is obtained. The network telemetry bearer flows are user service flow F 1 and user service flow F 3 .
在一可选实施中,如图5所示,在执行上述步骤S40之后,本申请实施例提供的带内网络遥测承载流选取方法还包括:In an optional implementation, as shown in FIG. 5 , after performing the foregoing step S40, the method for selecting an in-band network telemetry bearer stream provided by this embodiment of the present application further includes:
步骤S50:根据遥测承载流的选取方案生成带内网络遥测配置命令,并发送至目标交换机,遥测承载流的选取方案包括选取的遥测承载流以及与各遥测承载流对应的目标交换机。带内网络遥测配置命令包括遥测服务器参数、遥测流参数、各目标交换机所需收集的遥测元数据。在本申请实施例中,遥测服务器参数为遥测服务器的IP地址,遥测流参数包括遥测承载流的流源IP(IP src)、目的IP(IP dst)、IP协议字段(IP proto)、IP服务类型(IP ToS bits)、TCP/UDP源端口号(TCP/UDP src port)、TCP/UDP目的端口号(TCP/UDPdst port)等。Step S50: Generate an in-band network telemetry configuration command according to the selection scheme of the telemetry bearer flow, and send it to the target switch. The selection scheme of the telemetry bearer flow includes the selected telemetry bearer flow and the target switch corresponding to each telemetry bearer flow. The in-band network telemetry configuration commands include telemetry server parameters, telemetry flow parameters, and telemetry metadata to be collected by each target switch. In the embodiment of this application, the telemetry server parameter is the IP address of the telemetry server, and the telemetry flow parameter includes the stream source IP (IP src), destination IP (IP dst), IP protocol field (IP proto), IP service of the telemetry bearer flow Type (IP ToS bits), TCP/UDP source port number (TCP/UDP src port), TCP/UDP destination port number (TCP/UDPdst port), etc.
在一具体实施例中,图6中以2个终端、3台交换机和1台遥测服务器为例说明带内网络遥测时的报文处理流程,终端1向终端2发送普通用户数据包。交换机1(INT Traffic Sources)负责将遥测指令嵌入到正常数据包或遥测数据包中。当业务报文进入交换机1(INT Traffic Sources)时,交换机1(INT Traffic Sources)通过网络设备上设置的采样方式采样并镜像出该业务流报文,在报文中封装一个INT header,同时定义INT指令结构,在INT header后添加INT Metadata-1数据,将需要收集的网络设备信息填入INT数据中;接着业务报文将被转发至下一台路径上的网络设备,交换机2(INT Transit Hop)根据上一台设备的INT数据内容,继续添加本机的INT Metadata-2信息;当业务报文经过所有中间交换机(INT Transit Hop),被转发至最后一台网络设备,交换机3(INT Traffic Sinks)将INT Header拆除,对遥测结果进行提取和上报,发送给遥测服务器。In a specific embodiment, FIG. 6 takes 2 terminals, 3 switches and 1 telemetry server as an example to illustrate the packet processing flow during in-band network telemetry. Terminal 1 sends ordinary user data packets to terminal 2 . Switch 1 (INT Traffic Sources) is responsible for embedding telemetry commands into normal packets or telemetry packets. When a service packet enters switch 1 (INT Traffic Sources), switch 1 (INT Traffic Sources) samples and mirrors the service flow packet through the sampling method set on the network device, encapsulates an INT header in the packet, and defines INT command structure, add INT Metadata-1 data after the INT header, and fill in the INT data with the network device information to be collected; then the service packet will be forwarded to the network device on the next path, switch 2 (INT Transit Hop) According to the INT data content of the previous device, continue to add the local INT Metadata-2 information; when the service packet passes through all intermediate switches (INT Transit Hop), it is forwarded to the last network device, switch 3 (INT Traffic Sinks) removes the INT Header, extracts and reports the telemetry results, and sends them to the telemetry server.
本申请实施例提供的带内网络遥测承载流选取方法,在通过待测网络的网络拓扑信息和遥测分布信息初步选取可以覆盖待测网络中所需遥测的交换机的遥测承载流,使得用户可以及时获取全网网络状态后,进一步对遥测承载流的选取方案进行了优化,提高了网络遥测任务完成成功率。In the method for selecting an in-band network telemetry bearer stream provided by the embodiment of the present application, a telemetry bearer stream that can cover the switches required for telemetry in the network to be tested is initially selected based on the network topology information and telemetry distribution information of the network to be tested, so that the user can timely After obtaining the network status of the entire network, the selection scheme of the telemetry bearer stream is further optimized, which improves the success rate of network telemetry task completion.
实施例2Example 2
本申请实施例提供了一种带内网络遥测承载流选取系统,该系统可作为子系统部署在控制器上,也可以以遥测服务器的形式单独存在。如图7所示,该系统包括:The embodiments of the present application provide an in-band network telemetry bearer stream selection system, which may be deployed on a controller as a subsystem, or may exist independently in the form of a telemetry server. As shown in Figure 7, the system includes:
遥测需求获取模块10,用于获取网络状态遥测需求,在本申请实施例中,通过遥测服务层中获取网络状态遥测需求,详细描述见上述任意方法实施例中对步骤S10的描述。The telemetry requirement obtaining module 10 is used to obtain the network state telemetry requirement. In this embodiment of the present application, the network state telemetry requirement is obtained through the telemetry service layer. For a detailed description, see the description of step S10 in any of the above method embodiments.
网络状态采集模块20,用于获取待测网络的网络拓扑信息及待测网络中的用户业务流的分布信息,用户业务流的分布信息包括各用户业务流的数据包平均长度和流经交换机路径,详细描述见上述任意方法实施例中对步骤S20的描述。The network state acquisition module 20 is used to acquire network topology information of the network to be tested and distribution information of user service flows in the network to be tested. The distribution information of user service flows includes the average length of data packets of each user service flow and the path passing through the switch. , and for a detailed description, see the description of step S20 in any of the above method embodiments.
遥测元数据确定模块30,用于根据网络状态遥测需求确定目标交换机及各目标交换机需采集的遥测元数据,详细描述见上述任意方法实施例中对步骤S30的描述。The telemetry metadata determination module 30 is configured to determine the target switch and the telemetry metadata to be collected by each target switch according to the network state telemetry requirement. For a detailed description, see the description of step S30 in any of the above method embodiments.
遥测承载流选取模块40,用于根据网络拓扑信息、目标交换机、各目标交换机需采集的遥测元数据、各用户业务流的数据包平均长度、各用户业务流的流经交换机路径,选取至少一条用户业务流作为遥测承载流,遥测承载流覆盖所有目标交换机,详细描述见上述任意方法实施例中对步骤S40的描述。The telemetry bearer flow selection module 40 is configured to select at least one of the network topology information, the target switch, the telemetry metadata to be collected by each target switch, the average packet length of each user service flow, and the flow path of each user service flow through the switch. The user service flow is used as a telemetry bearer flow, and the telemetry bearer flow covers all target switches. For a detailed description, see the description of step S40 in any of the above method embodiments.
本申请实施例提供的带内网络遥测承载流选取系统,在选取遥测承载流时,先获取网络状态遥测需求,然后充分利用了待测网络的网络拓扑结构和用户业务流分布信息,使得选取的遥测承载流可以覆盖与网络状态遥测需求相对应的全部目标交换机。因此通过本申请提供的带内网络遥测承载流选取系统选取的遥测承载流,用户可以及时获取所需的网络状态。In the system for selecting an in-band network telemetry bearer stream provided by the embodiment of the present application, when selecting a telemetry bearer stream, the network state telemetry requirements are first obtained, and then the network topology structure of the network to be tested and user service flow distribution information are fully utilized, so that the selected Telemetry bearer flows can cover all target switches corresponding to network state telemetry requirements. Therefore, through the telemetry bearer stream selected by the in-band network telemetry bearer stream selection system provided by the present application, the user can obtain the required network status in time.
在一可选实施例中,如图8所示,遥测承载流选取模块40具体包括:In an optional embodiment, as shown in FIG. 8 , the telemetry bearer stream selection module 40 specifically includes:
剩余有效遥测空间计算子模块41,用于根据各用户业务流的数据包平均长度计算各用户业务流的剩余有效遥测空间,详细描述见上述任意方法实施例中对步骤S41的描述。The remaining effective telemetry space calculation submodule 41 is used to calculate the remaining effective telemetry space of each user service flow according to the average length of the data packet of each user service flow. For a detailed description, see the description of step S41 in any of the above method embodiments.
遥测流分配子模块42,用于分别为各目标交换机分配一条用户业务流,详细描述见上述任意方法实施例中对步骤S42的描述。The telemetry flow allocation sub-module 42 is configured to allocate a user service flow to each target switch respectively. For a detailed description, see the description of step S42 in any of the above method embodiments.
遥测元数据容量计算子模块43,用于分别计算所分配的用户业务流上各目标交换机需采集的遥测元数据所占容量,详细描述见上述任意方法实施例中对步骤S43的描述。The telemetry metadata capacity calculation sub-module 43 is used to calculate the capacity occupied by the telemetry metadata to be collected by each target switch on the allocated user service flow. For a detailed description, see the description of step S43 in any of the above method embodiments.
遥测承载流确定子模块44,若各所分配的用户业务流上各目标交换机需采集的遥测元数据所占容量小于或等于各所分配的用户业务流的剩余有效遥测空间,则遥测承载流确定模块用于将所分配的用户业务流确定为遥测承载流,详细描述见上述任意方法实施例中对步骤S44的描述。The telemetry bearer flow determination sub-module 44, if the capacity occupied by the telemetry metadata to be collected by each target switch on each allocated user service flow is less than or equal to the remaining effective telemetry space of each allocated user service flow, then the telemetry bearer flow determination module uses: For determining the allocated user service flow as the telemetry bearer flow, see the description of step S44 in any of the above method embodiments for detailed description.
在一可选实施例中,如图9所示,遥测承载流选取模块40还包括:In an optional embodiment, as shown in FIG. 9 , the telemetry bearer stream selection module 40 further includes:
遥测承载流优化子模块45,用于利用预设算法,以最小化遥测承载流的数量和最小化各遥测承载流上所有遥测元数据所占容量为优化目标选取优化遥测承载流,详细描述见上述任意方法实施例中对步骤S45的描述。The telemetry bearer stream optimization sub-module 45 is used to select an optimized telemetry bearer stream by using a preset algorithm to minimize the number of telemetry bearer streams and minimize the capacity occupied by all telemetry metadata on each telemetry bearer stream. For a detailed description, see Step S45 is described in any of the above method embodiments.
新的遥测承载流确定子模块46,若所选取的优化遥测承载流覆盖所有目标交换机,且各优化遥测承载流上所有遥测元数据所占容量小于或等于各优化遥测承载流的剩余有效遥测空间,则新的遥测承载流确定子模块用于将优化遥测承载流确定为新的遥测承载流,详细描述见上述任意方法实施例中对步骤S46的描述。The new telemetry bearer flow determination sub-module 46, if the selected optimized telemetry bearer flow covers all target switches, and the capacity occupied by all telemetry metadata on each optimized telemetry bearer flow is less than or equal to the remaining effective telemetry space of each optimized telemetry bearer flow , the new telemetry bearer flow determination sub-module is configured to determine the optimized telemetry bearer flow as a new telemetry bearer flow. For a detailed description, see the description of step S46 in any of the above method embodiments.
实施例3Example 3
本申请实施例提供一种计算机设备,如图10所示,该计算机设备主要包括一个或多个处理器61以及存储器62,图10中以一个处理器61为例。An embodiment of the present application provides a computer device. As shown in FIG. 10 , the computer device mainly includes one or more processors 61 and a memory 62 . In FIG. 10 , one processor 61 is used as an example.
该计算机设备还可以包括:输入装置63和输出装置64。The computer equipment may also include: an input device 63 and an output device 64 .
处理器61、存储器62、输入装置63和输出装置64可以通过总线或者其他方式连接,图10中以通过总线连接为例。The processor 61 , the memory 62 , the input device 63 and the output device 64 may be connected by a bus or in other ways, and the connection by a bus is taken as an example in FIG. 10 .
处理器61可以为中央处理器(Central Processing Unit,CPU)。处理器61还可以为其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等芯片,或者上述各类芯片的组合。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。存储器62可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据带内网络遥测承载流选取系统的使用所创建的数据等。此外,存储器62可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施例中,存储器62可选包括相对于处理器61远程设置的存储器,这些远程存储器可以通过网络连接至带内网络遥测承载流选取系统。输入装置63可接收用户输入的计算请求(或其他数字或字符信息),以及产生与带内网络遥测承载流选取系统有关的键信号输入。输出装置64可包括显示屏等显示设备,用以输出计算结果。The processor 61 may be a central processing unit (Central Processing Unit, CPU). The processor 61 may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), application specific integrated circuits (Application Specific Integrated Circuits, ASICs), Field-Programmable Gate Arrays (Field-Programmable Gate Arrays, FPGAs) or Other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components and other chips, or a combination of the above types of chips. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The memory 62 may include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required by at least one function; data etc. Additionally, memory 62 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 62 may optionally include memory located remotely from processor 61 that may be connected via a network to the in-band network telemetry bearer stream selection system. The input device 63 may receive user input computing requests (or other numerical or character information) and generate key signal inputs related to the in-band network telemetry bearer stream selection system. The output device 64 may include a display device such as a display screen, and is used to output the calculation result.
实施例4Example 4
本申请实施例提供一种计算机可读存储介质,该计算机可读存储介质存储计算机指令,计算机存储介质存储有计算机可执行指令,该计算机可执行指令可执行上述任意方法实施例中的带内网络遥测承载流选取方法。其中,存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)、随机存储记忆体(Random Access Memory,RAM)、快闪存储器(Flash Memory)、硬盘(Hard Disk Drive,缩写:HDD)或固态硬盘(Solid-State Drive,SSD)等;存储介质还可以包括上述种类的存储器的组合。The embodiments of the present application provide a computer-readable storage medium, where the computer-readable storage medium stores computer instructions, and the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions can execute the in-band network in any of the foregoing method embodiments. Telemetry bearer stream selection method. The storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive) , abbreviation: HDD) or solid-state drive (Solid-State Drive, SSD), etc.; the storage medium may also include a combination of the above-mentioned types of memories.
显然,上述实施例仅仅是为清楚地说明所作的举例,而并非对实施方式的限定。对于所属领域的普通技术人员来说,在上述说明的基础上还可以做出其它不同形式的变化或变动。这里无需也无法对所有的实施方式予以穷举。而由此所引伸出的显而易见的变化或变动仍处于本申请创造的保护范围之中。Obviously, the above-mentioned embodiments are only examples for clear description, and are not intended to limit the implementation manner. For those of ordinary skill in the art, changes or modifications in other different forms can also be made on the basis of the above description. There is no need and cannot be exhaustive of all implementations here. And the obvious changes or changes derived from this are still within the scope of protection created by the present application.

Claims (10)

  1. 一种带内网络遥测承载流选取方法,其特征在于,包括:A method for selecting an in-band network telemetry bearer stream, comprising:
    获取网络状态遥测需求;Obtain network status telemetry requirements;
    获取待测网络的网络拓扑信息及用户业务流的分布信息,所述用户业务流的分布信息包括各用户业务流的数据包平均长度和流经交换机路径;Obtain network topology information of the network to be tested and distribution information of user service flows, where the distribution information of user service flows includes the average length of data packets of each user service flow and the paths passing through the switch;
    根据所述网络状态遥测需求确定目标交换机及目标交换机需采集的遥测元数据;Determine the target switch and the telemetry metadata to be collected by the target switch according to the network state telemetry requirement;
    根据所述网络拓扑信息、目标交换机、各目标交换机需采集的遥测元数据、各所述用户业务流的数据包平均长度、各所述用户业务流的流经交换机路径,选取至少一条所述用户业务流作为遥测承载流,所述遥测承载流覆盖所有目标交换机。According to the network topology information, the target switch, the telemetry metadata to be collected by each target switch, the average data packet length of each user service flow, and the switch path of each user service flow, select at least one user The service flow is used as a telemetry bearer flow, and the telemetry bearer flow covers all target switches.
  2. 根据权利要求1所述的带内网络遥测承载流选取方法,其特征在于,所述根据所述网络拓扑信息、目标交换机、各目标交换机需采集的遥测元数据、各所述用户业务流的数据包平均长度、各所述用户业务流的流经交换机路径,选取所述至少一条用户业务流作为所述遥测承载流的步骤,包括:The method for selecting an in-band network telemetry bearer stream according to claim 1, wherein the method is based on the network topology information, the target switch, the telemetry metadata to be collected by each target switch, and the data of each user service stream. The steps of selecting the at least one user service flow as the telemetry bearer flow include:
    根据各所述用户业务流的数据包平均长度计算各所述用户业务流的剩余有效遥测空间;Calculate the remaining effective telemetry space of each of the user service flows according to the average length of the data packets of each of the user service flows;
    分别为各所述目标交换机分配一条用户业务流;Allocate a user service flow to each of the target switches respectively;
    分别计算所分配的用户业务流上各目标交换机需采集的遥测元数据所占容量;Calculate the capacity occupied by the telemetry metadata to be collected by each target switch on the assigned user service flow;
    若各所分配的用户业务流上各目标交换机的需采集的遥测元数据所占容量小于或等于各所分配的用户业务流的剩余有效遥测空间,则将所分配的用户业务流确定为遥测承载流。If the capacity occupied by the telemetry metadata to be collected on each target switch on each allocated user service flow is less than or equal to the remaining effective telemetry space of each allocated user service flow, the allocated user service flow is determined as a telemetry bearer flow.
  3. 根据权利要求2所述的带内网络遥测承载流选取方法,其特征在于,还包括:The method for selecting an in-band network telemetry bearer stream according to claim 2, further comprising:
    利用预设算法,以最小化遥测承载流的数量和最小化各遥测承载流上所有遥测元数据所占容量为优化目标选取优化遥测承载流;Using a preset algorithm, the optimized telemetry bearer stream is selected with the optimization goals of minimizing the number of telemetry bearer streams and minimizing the capacity occupied by all telemetry metadata on each telemetry bearer stream;
    若所选取的优化遥测承载流覆盖所有目标交换机,且各优化遥测承载流上所有遥测元数据所占容量小于或等于各优化遥测承载流的剩余有效遥测空间,则将优化遥测承载流确定为新的遥测承载流。If the selected optimized telemetry bearer flow covers all target switches, and the capacity occupied by all telemetry metadata on each optimized telemetry bearer flow is less than or equal to the remaining effective telemetry space of each optimized telemetry bearer flow, the optimized telemetry bearer flow is determined as the new The telemetry bearer stream.
  4. 根据权利要求1-3任一项所述的带内网络遥测承载流选取方法,其特征在于,还包括:The method for selecting an in-band network telemetry bearer stream according to any one of claims 1-3, further comprising:
    根据所述遥测承载流的选取方案生成带内网络遥测配置命令,并发送至所述目标交 换机,所述带内网络遥测配置命令包括遥测服务器参数、遥测流参数、各目标交换机所需收集的遥测元数据。An in-band network telemetry configuration command is generated according to the selection scheme of the telemetry bearer stream, and sent to the target switch, where the in-band network telemetry configuration command includes telemetry server parameters, telemetry flow parameters, and telemetry required to be collected by each target switch. metadata.
  5. 根据权利要求1所述的带内网络遥测承载流选取方法,其特征在于,通过如下步骤获取所述用户业务流的数据包平均长度:The method for selecting an in-band network telemetry bearer stream according to claim 1, wherein the average packet length of the user service stream is obtained through the following steps:
    获取所述用户业务流的流表匹配字节数和流表匹配数据包数;Obtain the number of bytes matched by the flow table and the number of data packets matched by the flow table of the user service flow;
    根据所述用户业务流的流表匹配字节数和流表匹配数据包数计算所述用户业务流的数据包平均长度。Calculate the average length of the data packets of the user service flow according to the number of bytes matched by the flow table of the user service flow and the number of data packets matched by the flow table.
  6. 一种带内网络遥测承载流选取系统,其特征在于,包括:An in-band network telemetry bearer stream selection system, characterized in that it includes:
    遥测需求获取模块,用于获取网络状态遥测需求;The telemetry requirement acquisition module is used to acquire the network status telemetry requirement;
    网络状态采集模块,用于获取待测网络的网络拓扑信息及所述待测网络中的用户业务流的分布信息,所述用户业务流的分布信息包括各所述用户业务流的数据包平均长度和流经交换机路径;A network state acquisition module, configured to acquire network topology information of the network to be tested and distribution information of user service flows in the network to be tested, where the distribution information of user service flows includes the average length of data packets of each of the user service flows and flow through the switch path;
    遥测元数据确定模块,用于根据所述网络状态遥测需求确定目标交换机及目标交换机需采集的遥测元数据;a telemetry metadata determination module, configured to determine the target switch and the telemetry metadata to be collected by the target switch according to the network state telemetry requirements;
    遥测承载流选取模块,用于根据所述网络拓扑信息、目标交换机、各目标交换机需采集的遥测元数据、各所述用户业务流的数据包平均长度、各所述用户业务流的流经交换机路径,选取至少一条用户业务流作为遥测承载流,所述遥测承载流覆盖所有目标交换机。The telemetry bearer flow selection module is used for selecting the module according to the network topology information, the target switch, the telemetry metadata to be collected by each target switch, the average length of the data packets of each user service flow, and the flow through the switch of each user service flow. path, at least one user service flow is selected as the telemetry bearer flow, and the telemetry bearer flow covers all target switches.
  7. 根据权利要求6所述的带内网络遥测承载流选取系统,其特征在于,所述遥测承载流选取模块包括:The in-band network telemetry bearer stream selection system according to claim 6, wherein the telemetry bearer stream selection module comprises:
    剩余有效遥测空间计算子模块,用于根据各所述用户业务流的数据包平均长度计算各所述用户业务流的剩余有效遥测空间;The remaining effective telemetry space calculation submodule is used to calculate the remaining effective telemetry space of each of the user service flows according to the average length of the data packets of each of the user service flows;
    遥测流分配子模块,用于分别为各所述目标交换机分配一条用户业务流;a telemetry flow distribution sub-module, configured to allocate a user service flow to each of the target switches;
    遥测元数据容量计算子模块,用于分别计算所分配的用户业务流上各目标交换机需采集的遥测元数据所占容量;The telemetry metadata capacity calculation sub-module is used to separately calculate the capacity occupied by the telemetry metadata to be collected by each target switch on the assigned user service flow;
    遥测承载流确定子模块,若各所分配的用户业务流上各目标交换机需采集的遥测元数据所占容量小于或等于各所分配的用户业务流的剩余有效遥测空间,则遥测承载流确定模块用于将所分配的用户业务流确定为遥测承载流。The telemetry bearer flow determination sub-module, if the capacity occupied by the telemetry metadata to be collected by each target switch on each allocated user service flow is less than or equal to the remaining effective telemetry space of each allocated user service flow, the telemetry bearer flow determination module is used for The allocated user traffic flow is determined as a telemetry bearer flow.
  8. 根据权利要求7所述的带内网络遥测承载流选取系统,其特征在于,所述遥测承载流选取模块还包括:The in-band network telemetry bearer stream selection system according to claim 7, wherein the telemetry bearer stream selection module further comprises:
    遥测承载流优化子模块,用于利用预设算法,以最小化遥测承载流的数量和最小化各遥测承载流上所有遥测元数据所占容量为优化目标选取优化遥测承载流;The telemetry bearer stream optimization sub-module is used to select an optimized telemetry bearer stream by using a preset algorithm to minimize the number of telemetry bearer streams and minimize the capacity occupied by all telemetry metadata on each telemetry bearer stream;
    新的遥测承载流确定子模块,若所选取的优化遥测承载流覆盖所有目标交换机,且各优化遥测承载流上所有遥测元数据所占容量小于或等于各优化遥测承载流的剩余有效遥测空间,则优化遥测承载流确定子模块用于将优化遥测承载流确定为新的遥测承载流。In the new telemetry bearer flow determination sub-module, if the selected optimized telemetry bearer flow covers all target switches, and the capacity occupied by all telemetry metadata on each optimized telemetry bearer flow is less than or equal to the remaining effective telemetry space of each optimized telemetry bearer flow, Then the optimized telemetry bearer flow determination sub-module is used to determine the optimized telemetry bearer flow as a new telemetry bearer flow.
  9. 一种计算机设备,其特征在于,包括:A computer equipment, characterized in that, comprising:
    至少一个处理器;以及与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,从而执行如权利要求1-5中任一项所述的带内网络遥测承载流选取方法。at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor, thereby The method for selecting an in-band network telemetry bearer stream according to any one of claims 1-5 is performed.
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使所述计算机执行如权利要求1-5中任一项所述的带内网络遥测承载流选取方法。A computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to cause the computer to execute the in-band method according to any one of claims 1-5. Network telemetry bearer stream selection method.
PCT/CN2020/098927 2020-06-29 2020-06-29 In-band network telemetry bearer stream selection method and system WO2022000189A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/098927 WO2022000189A1 (en) 2020-06-29 2020-06-29 In-band network telemetry bearer stream selection method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/098927 WO2022000189A1 (en) 2020-06-29 2020-06-29 In-band network telemetry bearer stream selection method and system

Publications (1)

Publication Number Publication Date
WO2022000189A1 true WO2022000189A1 (en) 2022-01-06

Family

ID=79315069

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/098927 WO2022000189A1 (en) 2020-06-29 2020-06-29 In-band network telemetry bearer stream selection method and system

Country Status (1)

Country Link
WO (1) WO2022000189A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114629540A (en) * 2022-03-01 2022-06-14 西安航天动力技术研究所 Communication networking system of carrier system under field unsupported condition
CN115174393A (en) * 2022-06-27 2022-10-11 福州大学 Dynamic adjustment method of service function chain based on in-band network telemetry
CN115277698A (en) * 2022-07-20 2022-11-01 福州大学 Reliability-based telemetry collection scheme deployment method
CN115314409A (en) * 2022-07-20 2022-11-08 北京邮电大学 Network state information acquisition method and system
CN115442282A (en) * 2022-08-31 2022-12-06 深圳市风云实业有限公司 Data acquisition system and method
CN115442275A (en) * 2022-07-27 2022-12-06 北京邮电大学 Hybrid telemetry method and system based on hierarchical trusted streams
CN116545936A (en) * 2023-07-05 2023-08-04 苏州浪潮智能科技有限公司 Congestion control method, system, device, communication equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109561028A (en) * 2019-01-07 2019-04-02 中国联合网络通信集团有限公司 A kind of method and apparatus based on traffic engineering selection transmission path
US20200067792A1 (en) * 2018-08-21 2020-02-27 Argela Yazilim Ve Bilisim Teknolojileri San Ve Tic A S System and method for in-band telemetry target selection
CN111049698A (en) * 2018-10-15 2020-04-21 华为技术有限公司 Telemetering data acquisition method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200067792A1 (en) * 2018-08-21 2020-02-27 Argela Yazilim Ve Bilisim Teknolojileri San Ve Tic A S System and method for in-band telemetry target selection
CN111049698A (en) * 2018-10-15 2020-04-21 华为技术有限公司 Telemetering data acquisition method and device
CN109561028A (en) * 2019-01-07 2019-04-02 中国联合网络通信集团有限公司 A kind of method and apparatus based on traffic engineering selection transmission path

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LIU ZHENGZHENG, JUN BI, YU ZHOU, YANGYANG WANG, YUNSENXIAO LIN: "Paradigm for proactive telemetry based on P4", JOURNAL ON COMMUNICATIONS, vol. 39, no. Z1, 30 September 2018 (2018-09-30), pages 162 - 169, XP055883641, ISSN: 1000-436x, DOI: 10.11959/j.issn.1000−436x.2018181 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114629540A (en) * 2022-03-01 2022-06-14 西安航天动力技术研究所 Communication networking system of carrier system under field unsupported condition
CN114629540B (en) * 2022-03-01 2024-01-23 西安航天动力技术研究所 Communication networking system of carrier system under field non-support condition
CN115174393A (en) * 2022-06-27 2022-10-11 福州大学 Dynamic adjustment method of service function chain based on in-band network telemetry
CN115174393B (en) * 2022-06-27 2023-09-22 福州大学 Service function chain dynamic adjustment method based on in-band network telemetry
CN115314409B (en) * 2022-07-20 2024-02-06 北京邮电大学 Network state information acquisition method and system
CN115277698A (en) * 2022-07-20 2022-11-01 福州大学 Reliability-based telemetry collection scheme deployment method
CN115314409A (en) * 2022-07-20 2022-11-08 北京邮电大学 Network state information acquisition method and system
CN115277698B (en) * 2022-07-20 2024-01-16 福州大学 Reliability-based telemetry collection scheme deployment method
CN115442275A (en) * 2022-07-27 2022-12-06 北京邮电大学 Hybrid telemetry method and system based on hierarchical trusted streams
CN115442275B (en) * 2022-07-27 2024-02-27 北京邮电大学 Hybrid telemetry method and system based on hierarchical trusted streams
CN115442282A (en) * 2022-08-31 2022-12-06 深圳市风云实业有限公司 Data acquisition system and method
CN115442282B (en) * 2022-08-31 2023-08-29 深圳市风云实业有限公司 Data acquisition system and method
CN116545936A (en) * 2023-07-05 2023-08-04 苏州浪潮智能科技有限公司 Congestion control method, system, device, communication equipment and storage medium
CN116545936B (en) * 2023-07-05 2023-11-03 苏州浪潮智能科技有限公司 Congestion control method, system, device, communication equipment and storage medium

Similar Documents

Publication Publication Date Title
WO2022000189A1 (en) In-band network telemetry bearer stream selection method and system
CN111835588B (en) In-band network remote measurement bearer flow selection method and system
US11863458B1 (en) Reflected packets
Tammana et al. Distributed network monitoring and debugging with {SwitchPointer}
US8601155B2 (en) Telemetry stream performance analysis and optimization
Su et al. CeMon: A cost-effective flow monitoring system in software defined networks
CN104702522B (en) Computer implemented method, device, the controller of software defined network routing data
US8582466B2 (en) Flow statistics aggregation
Li et al. An effective path load balancing mechanism based on SDN
US7275192B2 (en) Method and system for on demand selective rerouting of logical circuit data in a data network
JP2005508593A (en) System and method for realizing routing control of information in network
CN110275437B (en) SDN network flow dominance monitoring node dynamic selection system and method thereof
US20060047809A1 (en) Method and apparatus for assessing performance and health of an information processing network
JP4823156B2 (en) Remote traffic monitoring method
US11050649B2 (en) Delay measurement method of network node device, apparatus, and network node device
JP2023126364A (en) Congestion avoidance in slice-based network
JP2023514790A (en) NETWORK PERFORMANCE DETECTION METHOD AND DEVICE, AND NETWORK DEVICE
CN114430383B (en) Detection node screening method and device, electronic equipment and storage medium
CN110071843B (en) Fault positioning method and device based on flow path analysis
KR20220029142A (en) Sdn controller server and method for analysing sdn based network traffic usage thereof
TWI641251B (en) Method and system for monitoring network flow
CN115037667A (en) Fine-grained network situation awareness and source routing intelligent optimization method and device
JP5684748B2 (en) Network quality monitoring apparatus and network quality monitoring method
Guo et al. FullSight: A feasible intelligent and collaborative framework for service function chains failure detection
US10805206B1 (en) Method for rerouting traffic in software defined networking network and switch thereof

Legal Events

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

Ref country code: DE

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

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 09/05/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20942604

Country of ref document: EP

Kind code of ref document: A1