CN108600049B - Method and device for measuring performance of TCP connection of data center network and storage medium - Google Patents

Method and device for measuring performance of TCP connection of data center network and storage medium Download PDF

Info

Publication number
CN108600049B
CN108600049B CN201810338041.XA CN201810338041A CN108600049B CN 108600049 B CN108600049 B CN 108600049B CN 201810338041 A CN201810338041 A CN 201810338041A CN 108600049 B CN108600049 B CN 108600049B
Authority
CN
China
Prior art keywords
tcp
connection
tcp connection
performance
header information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810338041.XA
Other languages
Chinese (zh)
Other versions
CN108600049A (en
Inventor
张青
王凯
向阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Yunshan Century Networks Technology Co ltd
Original Assignee
Suzhou Yunshan Century Networks Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Yunshan Century Networks Technology Co ltd filed Critical Suzhou Yunshan Century Networks Technology Co ltd
Priority to CN201810338041.XA priority Critical patent/CN108600049B/en
Publication of CN108600049A publication Critical patent/CN108600049A/en
Application granted granted Critical
Publication of CN108600049B publication Critical patent/CN108600049B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures
    • 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/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • 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
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

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

Abstract

The embodiment of the invention discloses a method and a device for measuring the performance of TCP connection of a data center network, wherein the method comprises the following steps: the method comprises the following steps that a flow collector collects flow of a target node through a probe point preset on the target node in a data center network, and receives a data packet of the collected flow through a network card of the flow collector; analyzing and processing the packet header of the data packet to obtain information related to the tenant and the network topology and acquire packet header information and TCP message header information from the data packet containing the TCP message; and sending the header information and the TCP message header information to a connection tracking module of a TCP protocol for processing so as to establish TCP connection and update and measure the performance of the connection. The embodiment of the invention can realize the performance measurement of the TCP connection of the data center network, can analyze and display the performance of the TCP connection which is relevant to the whole network, tenants, topology and the subsequent data center network users, and is convenient for analyzing and positioning the performance fault.

Description

Method and device for measuring performance of TCP connection of data center network and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computer networks, in particular to a method and a device for measuring the performance of TCP connection of a data center network.
Background
The visualization analysis of the network is always an indispensable link in network deployment and operation and maintenance, and provides basic guarantee for the stability and maintenance of the network.
Currently, a common network analysis and fault detection method in the prior art includes: firstly, packet capturing is carried out on a terminal host of a network by using software, and then the captured data packet is played back and analyzed; secondly, mirroring is carried out on equipment nodes of the network, and stream is mirrored to a certain physical host to carry out packet capture analysis; and thirdly, probing IP (protocol for interconnection between networks) links by using a probing tool such as traceroute or ping.
However, the existing network analysis and fault detection methods cannot perform real-time visualization of the whole network, and capturing a packet on a certain terminal node or capturing a packet on a certain network device for analysis is only local information in the network, and a cloud network of a data center has an underlay network and an overlay network, and also has flow in the east-west direction and flow in the south-north direction. In addition, the existing method does not perform real-time systematic analysis on the performance of TCP (transmission control protocol) connection, although a traditional packet capturing tool such as korea and wireshark can generate a stream of TCP connection from captured data packets, and the stream is used as an index to view basic attributes of the stream, and also includes performance parameters of part of TCP connections, there are problems that the performance parameters are incomplete, the performance data cannot be associated with actual topology and services in a network, and an alarm cannot be analyzed in real time, so that it is very inconvenient for a network manager to perform network performance detection and analysis.
Disclosure of Invention
Because the existing method has the problems, the embodiment of the invention provides a method and a device for measuring the performance of a TCP connection of a data center network.
In a first aspect, an embodiment of the present invention provides a method for measuring performance of a TCP connection in a data center network, including:
the method comprises the following steps that a flow collector collects flow of a target node through a probe point preset on the target node in a data center network, and receives a data packet of the collected flow through a network card of the flow collector;
analyzing the packet header of the data packet to obtain information related to the tenant and the network topology, and acquiring packet header information and TCP message header information from the data packet containing the TCP message;
and sending the acquired packet header information and TCP message header information to a connection tracking module of a TCP protocol for processing so as to establish TCP connection and update and measure the performance of the connection.
Optionally, the sending the obtained header information and the TCP packet header information to a connection tracking module of the TCP protocol for processing to establish a TCP connection and update and measure the performance of the connection includes:
sending the packet header information and the TCP message header information to a connection tracking module of a TCP protocol for processing, if the TCP connection is not established, establishing a new TCP connection, and if the connection exists, updating the TCP connection information and calculating a performance quantization parameter of the TCP connection;
recording the performance quantization parameters of the TCP connection once every preset time period and storing the performance quantization parameters into a database during the survival period of the TCP connection so as to backtrack and display the performance quantization parameters;
when the TCP connection is ended, recording the performance quantization parameters of the TCP connection to the database for the last time, and then deleting the TCP connection so as to be used for inquiring and displaying the performance quantization data of the ended connection from the database subsequently.
Optionally, the updating the TCP connection information includes:
TCP protocol state transition of the connection;
timeout processing of connection;
TCP performance of the connection quantifies data statistics.
Optionally, the performance quantization parameter includes: round Trip Time (RTT) during connection establishment, RTT during connection data transmission stage, message retransmission times on TCP connection, zero window notification times on TCP connection and transmission times of emergency data packets.
Optionally, the sending the obtained header information and the TCP packet header information to a connection tracking module of the TCP protocol for processing to establish a TCP connection and update and measure the performance of the connection, further includes:
when the TCP connection is overtime, the TCP connection is destroyed;
alternatively, the first and second electrodes may be,
and destroying the TCP connection after receiving the TCP protocol packet of the TCP connection termination.
In a second aspect, an embodiment of the present invention further provides a performance measurement apparatus for a TCP connection in a data center network, which is applied to a traffic collector, and includes:
the acquisition module is used for acquiring the flow of a target node through a probe point preset on the target node in a data center network and receiving a data packet of the acquired flow through a network card of the acquisition module;
the analysis module is used for analyzing and processing the packet header of the data packet to obtain information related to the tenant and the network topology, and acquiring packet header information and TCP message header information from the data packet containing the TCP message;
and the processing module is used for sending the acquired packet header information and the acquired TCP message header information to the connection tracking module of the TCP protocol for processing so as to establish TCP connection and update and measure the performance of the connection.
Optionally, the processing module is specifically configured for
Sending the packet header information and the TCP message header information to a connection tracking module of a TCP protocol for processing, if the TCP connection is not established, establishing a new TCP connection, and if the connection exists, updating the TCP connection information and calculating a performance quantization parameter of the TCP connection;
recording the performance quantization parameters of the TCP connection once every preset time period and storing the performance quantization parameters into a database during the survival period of the TCP connection so as to backtrack and display the performance quantization parameters;
when the TCP connection is ended, recording the performance quantization parameters of the TCP connection to the database for the last time, and then deleting the TCP connection so as to be used for inquiring and displaying the performance quantization data of the ended connection from the database subsequently.
Optionally, the performance quantization parameter includes: round Trip Time (RTT) during connection establishment, RTT during connection data transmission stage, message retransmission times on TCP connection, zero window notification times on TCP connection and transmission times of emergency data packets.
In a third aspect, an embodiment of the present invention further provides an electronic device, including: a processor, a memory, a bus, and a computer program stored on the memory and executable on the processor;
the processor and the memory complete mutual communication through the bus;
the processor, when executing the computer program, implements the method described above.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the above method.
It can be known from the above technical solutions that, in the embodiments of the present invention, a flow collector collects a data packet of a flow of a target node through a probe point preset on the target node in a data center network, analyzes and processes a packet header of the data packet to obtain information related to a tenant and a network topology, acquires the packet header information and TCP packet header information from the data packet containing a TCP packet, and sends the packet header information and the TCP packet header information to a connection tracking module of a TCP protocol for processing, so as to establish a TCP connection and update and measure the performance of the connection, thereby being capable of implementing performance measurement of the TCP connection of the data center network, collecting flows of each node in a physical network and a virtual network by using a distributed probe point and a flow collector, recovering information of the TCP connection from the flows, and associating the TCP connection with tenant information of topology information in an actual network, the performance analysis and display of the full-network, tenant-related, topology-related and TCP connection can be carried out, and the performance fault analysis and positioning of subsequent data center network users can be facilitated.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for measuring performance of a TCP connection in a data center network according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a performance measurement apparatus for a TCP connection in a data center network according to an embodiment of the present invention;
fig. 3 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following further describes embodiments of the present invention with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
Fig. 1 is a schematic flowchart illustrating a method for measuring performance of a TCP connection in a data center network according to an embodiment of the present invention, where as shown in fig. 1, the method for measuring performance of a TCP connection in a data center network according to the embodiment includes:
s1, the flow collector collects the flow of the target node through the probe point preset on the target node in the data center network, and collects the data packet of the collected flow through the network card of the flow collector.
In a specific application, the data center network may include a virtual network and a physical network in the north, south, east, west, and the network card includes: a physical network card and/or a virtual network card.
Wherein the probe point (tap) comprises the following components:
(1) the probe point vtap based on the virtual network is mainly used for draining the flow mirror image in the virtual network to a flow collector for processing;
(2) the probe point ptap based on the physical network is mainly used for guiding the flow mirror image of the physical network of the data center to a flow collector for processing;
(3) the main effect of a set of strategies based on vtap is that the value performs mirror drainage on the traffic to be collected.
Wherein, the flow collector (exporter) comprises the following components:
(1) the physical or virtual computing unit can analyze and process the acquired network packet to generate TCP connection information and perform performance quantitative data statistical computation of the TCP connection based on the TCP connection;
(2) a TCP protocol state machine for processing TCP network packet sequence;
(3) a connection tracking module for processing the TCP bidirectional interactive stream;
(4) the performance quantification information of the generated TCP connection is recorded to the database.
And S2, analyzing the packet header of the data packet to obtain information related to the tenant and the network topology, and acquiring packet header information and TCP message header information from the data packet containing the TCP message.
In a specific application, the analyzing and processing of the packet header of the data packet may include IP fragment reassembly, packet message parsing, packet header processing, and the like.
And S3, sending the acquired header information and TCP message header information to a connection tracking module of the TCP protocol for processing so as to establish TCP connection, update the connection and measure the performance.
It can be understood that, in this embodiment, by synchronizing the configuration information in the data center network management platform in real time and associating the collected flow information with it, the network topology of a data center TCP connection and the performance of the TCP connection between each two points in the topology can be completely reproduced.
It can be understood that the embodiment can customize a performance fault monitoring point, perform performance fault tracking alarm, assist problem location, and give an alarm in real time and detailed performance parameters to help a user perform problem location when the TCP connection performance to an important service in a data center network is rapidly reduced.
The method for measuring the performance of the TCP connection in the data center network according to this embodiment collects the traffic of a target node in the data center network through a probe point preset on the target node by using a traffic collector, receives a data packet of the collected traffic through a network card of the traffic collector, analyzes and processes a packet header of the data packet to obtain information related to a tenant and network topology, acquires packet header information and TCP packet header information from the data packet, sends the packet header information and the TCP packet header information to a connection tracking module of a TCP protocol for processing to establish the TCP connection and update and measure the performance of the connection, thereby achieving the performance measurement of the TCP connection in the data center network, collecting the traffic of each node in a physical network and a virtual network by using a distributed probe point and a traffic collector, and recovering the information of the TCP connection from the connection, and the TCP connection is associated with the topology information tenant information in the actual network, so that the performance analysis and display of the whole network, tenant-related, topology-related and TCP connection can be performed, and the performance fault analysis and positioning of subsequent data center network users can be facilitated.
Further, on the basis of the above embodiment, the above step S3 of the present embodiment may include steps S11-S13 not shown in the figure:
and S11, sending the header information and the TCP message header information to a connection tracking module of a TCP protocol for processing, if the TCP connection is not established, newly establishing a TCP connection, and if the connection already exists, updating the TCP connection information and calculating a performance quantization parameter of the TCP connection.
Wherein, the updating the TCP connection information may include:
TCP protocol state transition of the connection;
timeout processing of connection;
TCP performance of the connection quantifies data statistics.
Wherein, the performance quantization parameter may include: parameters such as round trip time RTT during connection establishment, round trip time RTT during connection data transmission phase, retransmission times of a packet on the TCP connection, notification times of a zero window on the TCP connection, and transmission times of an emergency data packet are not limited in this embodiment, and may also include performance quantization parameters of other TCP connections.
It can be understood that the round trip delay RTT at the connection establishment: the meaning of the parameter is that when the TCP connection establishes three-way handshake, a time value of one complete message round trip from the connection initiating end to the connection responding end is used for describing a time delay index when the TCP connection is established;
round trip time RTT of the connection data transmission stage: the meaning of the parameter is that when TCP connection transmits data, the time value required by one round trip of a data message from a connection initiating end to a connection responding end is used for describing a time delay index when the TCP connection transmits the data;
the number of retransmission of the packet on the TCP connection: the total number of retransmissions during the connection establishment phase and during the data transmission phase is included.
It can be understood that the performance quantization parameter of the TCP connection may describe an overall performance condition of one TCP connection, and by using a fine-grained comprehensive performance quantization parameter and each TCP connection as a granularity, the collected performance quantization information of multiple dimensions of all TCP connections may be obtained, so as to comprehensively, accurately and finely describe a performance index of the TCP connection in the data center network.
Further, the step S3 may further include:
when the TCP connection is overtime, the TCP connection is destroyed;
alternatively, the first and second electrodes may be,
and destroying the TCP connection after receiving the TCP protocol packet of the TCP connection termination.
And S12, recording the performance quantization parameters of the TCP connection once every preset time period during the survival period of the TCP connection, and storing the performance quantization parameters into a database so as to trace back and display the performance quantization parameters.
In a specific application, for example, the preset time period may be set to one minute, which is not limited in this embodiment and may be set according to an actual situation.
And S13, when the connection is ended, recording the performance quantization parameter of the TCP connection to the database for the last time, and then deleting the TCP connection so as to be used for inquiring (history backtracking) and displaying the performance quantization parameter of the ended connection from the database in the following process.
It can be understood that systematic and real-time traffic collection, analysis, recording and display can enable a user to observe performance indexes of TCP connection in a network in real time, history backtracking can also be carried out, and problems can be timely checked and processed.
The performance measurement method of the data center network TCP connection of the embodiment quantifies data statistics based on the comprehensive performance of the TCP connection, and real-time reporting, analyzing and processing the statistical data, real-time processing based on the tracking of TCP connection and the migration of protocol state, and the performance quantization data is processed when the collected flow is incomplete, the performance measurement of the data center network TCP connection can be realized, the distributed probe points and traffic collectors can be used to collect the traffic of each node in the physical network and the virtual network, and recovers the information of the TCP connection from the network, and associates the TCP connection with the topology information tenant information in the actual network, the performance analysis and display of the full-network, tenant-related, topology-related and TCP connection can be carried out, and the performance fault analysis and positioning of subsequent data center network users can be facilitated.
The following is described in more detail by taking traffic acquisition and TCP performance quantization data calculation of a virtual network of a data center computing node based on ovs (open vswitch) as an example:
the cloud data center virtual network established by the OpenStack cloud computing management platform can adopt a virtual switch OVS (open vSwitch) as a component of the virtual network, and is connected with a virtual machine to perform network data transmission.
And secondly, establishing a new virtual machine as a flow collector (exporter) for carrying out collected flow processing, and connecting the newly established virtual machine to the OVS needing to collect the flow.
Thirdly, configuring a flow table corresponding to a corresponding acquisition strategy on the OVS through a vtap component, and mirroring the flow to a virtual network card connected with the OVS by an acquirer (exporter).
And fourthly, using a DPDK module in a flow collector (exporter) to carry out high-speed collection of flow, and receiving packets from a virtual network card port of the OVS flow mirror image.
And fifthly, preprocessing the acquired flow, including IP fragmentation recombination, VXLAN (virtual extensible local area network) message analysis and VLAN (virtual local area network) header processing, obtaining information related to tenants and network topology, and acquiring other packet header information and TCP message header related information from the data packet.
Analyzing the TCP message, simulating an initiating end and a responding end of the TCP connection to establish the TCP connection, updating the state of the TCP connection according to the TCP message newly received on the connection, calculating the performance quantitative parameter values of RTT, retransmission, zero window, emergency data transmission and the like in the updating process, and storing the statistical information in the memory of the flow collector by taking the connection as the granularity.
And seventhly, forcibly reporting the performance quantitative parameter value of the TCP connection to the analyzer cluster once every minute in an ZMQ mode, wherein the analyzers collect the data and record the data into the database for subsequent analysis and display, and reporting for the last time when the TCP connection is finished.
Through the steps and the processing, the performance quantization data of the TCP connections between all east-west virtual machines on a certain OpenStack computing node can be acquired.
Fig. 2 is a schematic structural diagram of a performance measurement apparatus for a data center network TCP connection according to an embodiment of the present invention, and as shown in fig. 2, the performance measurement apparatus for a data center network TCP connection according to the embodiment includes: an acquisition module 21, an analysis module 22 and a processing module 23; wherein:
the acquisition module 21 is configured to acquire traffic of a target node in a data center network through a probe point preset on the target node, and receive a data packet of the acquired traffic through a network card of the acquisition module;
the analysis module 22 is configured to analyze the packet header of the data packet, obtain information related to the tenant and the network topology, and obtain packet header information and TCP packet header information from the data packet containing the TCP packet;
the processing module 23 is configured to send the obtained header information and TCP packet header information to a connection tracking module of the TCP protocol for processing, so as to establish a TCP connection, update the connection, and measure performance.
It should be noted that the device described in this embodiment is applied to a flow collector.
Specifically, the acquisition module 21 acquires the traffic of a target node through a probe point preset on the target node in a data center network, and receives a data packet of the acquired traffic through a network card of the acquisition module; the analysis module 22 analyzes the packet header of the data packet to obtain information related to the tenant and the network topology, and obtains packet header information and TCP packet header information from the data packet containing the TCP packet; the processing module 23 sends the acquired header information and TCP packet header information to a connection tracking module of the TCP protocol for processing, so as to establish a TCP connection and update and measure the performance of the connection.
In a specific application, the data center network may include a virtual network and a physical network in the north, south, east, west, and the network card includes: a physical network card and/or a virtual network card.
Wherein the probe point (tap) comprises the following components:
(1) the probe point vtap based on the virtual network is mainly used for draining the flow mirror image in the virtual network to a flow collector for processing;
(2) the probe point ptap based on the physical network is mainly used for guiding the flow mirror image of the physical network of the data center to a flow collector for processing;
(3) based on a set of strategies of vtap, the main role is to mirror the flow to be collected.
Wherein, the flow collector (exporter) comprises the following components:
(1) the physical or virtual computing unit can analyze and process the acquired network packet to generate TCP connection information and perform performance quantitative data statistical computation of the TCP connection based on the TCP connection;
(2) a TCP protocol state machine for processing TCP network packet sequence;
(3) a connection tracking module for processing the TCP bidirectional interactive stream;
(4) and reporting the quantitative information of the generated TCP connection to a database.
It can be understood that, in this embodiment, by synchronizing the configuration information in the data center network management platform in real time and associating the collected flow information with it, the network topology of a data center TCP connection and the performance of the TCP connection between each two points in the topology can be completely reproduced.
It can be understood that the embodiment can customize a performance fault monitoring point, perform performance fault tracking alarm, assist problem location, and give an alarm in real time and detailed performance parameters to help a user perform problem location when the TCP connection performance to an important service in a data center network is rapidly reduced.
The performance measurement device for the data center network TCP connection can realize performance measurement of the data center network TCP connection, can collect the flow of each node in a physical network and a virtual network by utilizing a distributed probe point and a flow collector, recovers TCP connection information from the flow collector, associates the TCP connection with topology information tenant information in an actual network, can analyze and display the performance of the TCP connection in a whole network, and is convenient for subsequent data center network users to analyze and position performance faults.
Further, on the basis of the above embodiments, the processing module 23 of the present embodiment may be specifically used for
Sending the packet header information and the TCP message header information to a connection tracking module of a TCP protocol for processing, if the TCP connection is not established, establishing a new TCP connection, and if the connection exists, updating the TCP connection information and calculating a performance quantization parameter of the TCP connection;
recording the performance quantization parameters of the TCP connection once every preset time period and storing the performance quantization parameters into a database during the survival period of the TCP connection so as to backtrack and display the performance quantization parameters;
when the TCP connection is ended, recording the performance quantization parameters of the TCP connection to the database for the last time, and then deleting the TCP connection so as to be used for inquiring and displaying the performance quantization data of the ended connection from the database subsequently.
The updating of the TCP connection information in the processing module 23 may include:
TCP protocol state transition of the connection;
timeout processing of connection;
TCP performance of the connection quantifies data statistics.
Wherein, the performance quantization parameter may include: parameters such as round trip time RTT during connection establishment, round trip time RTT during connection data transmission phase, retransmission times of a packet on the TCP connection, notification times of a zero window on the TCP connection, and transmission times of an emergency data packet are not limited in this embodiment, and may also include performance quantization parameters of other TCP connections.
It can be understood that the performance quantization parameter of the TCP connection may describe an overall performance condition of one TCP connection, and by using a fine-grained comprehensive performance quantization parameter and each TCP connection as a granularity, the collected performance quantization information of multiple dimensions of all TCP connections may be obtained, so as to comprehensively, accurately and finely describe a performance index of the TCP connection in the data center network.
Further, the processing module 23 can also be used for
When the TCP connection is overtime, the TCP connection is destroyed; alternatively, the first and second electrodes may be,
and destroying the TCP connection after receiving the TCP protocol packet of the TCP connection termination.
In a specific application, for example, the preset time period may be set to one minute, which is not limited in this embodiment and may be set according to an actual situation.
It can be understood that, in this embodiment, the real-time and real-time traffic collection, analysis and reporting can enable the user to observe the performance index of the TCP connection in the network in real time, and also can perform history backtracking, and the problem can be timely eliminated and processed.
The performance measuring device of the data center network TCP connection of the embodiment quantifies data statistics based on the comprehensive performance of the TCP connection, and real-time reporting, analyzing and processing the statistical data, real-time processing based on the tracking of TCP connection and the migration of protocol state, and the performance quantization data is processed when the collected flow is incomplete, the performance measurement of the data center network TCP connection can be realized, the distributed probe points and traffic collectors can be used to collect the traffic of each node in the physical network and the virtual network, and recovers the information of the TCP connection from the network, and associates the TCP connection with the topology information tenant information in the actual network, the performance analysis and display of the full-network, tenant-related, topology-related and TCP connection can be carried out, and the performance fault analysis and positioning of subsequent data center network users can be facilitated.
The performance measurement apparatus for TCP connection in a data center network of this embodiment may be configured to implement the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 3 is a schematic entity structure diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 3, the electronic device may include: a processor 31, a memory 32, a bus 33, and computer programs stored on the memory 32 and executable on the processor 31;
the processor 31 and the memory 32 complete mutual communication through the bus 33;
when the processor 31 executes the computer program, the method provided by the foregoing method embodiments is implemented, for example, including: the method comprises the following steps that a flow collector collects flow of a target node through a probe point preset on the target node in a data center network, and receives a data packet of the collected flow through a network card of the flow collector; analyzing the packet header of the data packet to obtain information related to the tenant and the network topology, and acquiring packet header information and TCP message header information from the data packet containing the TCP message; and sending the acquired packet header information and TCP message header information to a connection tracking module of a TCP protocol for processing so as to establish TCP connection and update and measure the performance of the connection.
An embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method provided by the foregoing method embodiments, and for example, the method includes: the method comprises the following steps that a flow collector collects flow of a target node through a probe point preset on the target node in a data center network, and receives a data packet of the collected flow through a network card of the flow collector; analyzing the packet header of the data packet to obtain information related to the tenant and the network topology, and acquiring packet header information and TCP message header information from the data packet containing the TCP message; and sending the acquired packet header information and TCP message header information to a connection tracking module of a TCP protocol for processing so as to establish TCP connection and update and measure the performance of the connection.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus, and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means/systems for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element. The terms "upper", "lower", and the like, indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience in describing the present invention and simplifying the description, but do not indicate or imply that the referred devices or elements must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention. Unless expressly stated or limited otherwise, the terms "mounted," "connected," and "connected" are intended to be inclusive and mean, for example, that they may be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the description of the present invention, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description. Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present invention is not limited to any single aspect, nor is it limited to any single embodiment, nor is it limited to any combination and/or permutation of these aspects and/or embodiments. Moreover, each aspect and/or embodiment of the present invention may be utilized alone or in combination with one or more other aspects and/or embodiments thereof.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.

Claims (8)

1. A method for measuring the performance of TCP connection of a data center network is characterized by comprising the following steps:
the method comprises the following steps that a flow collector collects flow of a target node through a probe point preset on the target node in a data center network, and receives a data packet of the collected flow through a network card of the flow collector;
analyzing the packet header of the data packet to obtain information related to the tenant and the network topology, and acquiring packet header information and TCP message header information from the data packet containing the TCP message;
sending the acquired packet header information and TCP message header information to a connection tracking module of a TCP protocol for processing so as to establish TCP connection, update the connection and measure the performance, wherein the method comprises the following steps: sending the packet header information and the TCP message header information to a connection tracking module of a TCP protocol for processing, if the TCP connection is not established, establishing a new TCP connection, and if the connection exists, updating the TCP connection information and calculating a performance quantization parameter of the TCP connection; recording the performance quantization parameters of the TCP connection once every preset time period and storing the performance quantization parameters into a database during the survival period of the TCP connection so as to backtrack and display the performance quantization parameters; when the TCP connection is ended, recording the performance quantization parameters of the TCP connection to the database for the last time, and then deleting the TCP connection so as to be used for inquiring and displaying the performance quantization data of the ended connection from the database subsequently.
2. The method according to claim 1, wherein said updating the TCP connection information comprises:
TCP protocol state transition of the connection;
timeout processing of connection;
TCP performance of the connection quantifies data statistics.
3. The method of claim 1, wherein the performance quantization parameter comprises: round Trip Time (RTT) during connection establishment, RTT during connection data transmission stage, message retransmission times on TCP connection, zero window notification times on TCP connection and transmission times of emergency data packets.
4. The method according to claim 1, wherein the obtained header information and TCP packet header information are sent to a connection tracking module of the TCP protocol for processing so as to establish a TCP connection and perform updating and performance measurement on the connection, further comprising:
when the TCP connection is overtime, the TCP connection is destroyed;
alternatively, the first and second electrodes may be,
and destroying the TCP connection after receiving the TCP protocol packet of the TCP connection termination.
5. The utility model provides a performance measurement device that data center network TCP connects, is applied to flow collector, its characterized in that includes:
the acquisition module is used for acquiring the flow of a target node through a probe point preset on the target node in a data center network and receiving a data packet of the acquired flow through a network card of the acquisition module;
the analysis module is used for analyzing and processing the packet header of the data packet to obtain information related to the tenant and the network topology, and acquiring packet header information and TCP message header information from the data packet containing the TCP message;
the processing module is used for sending the acquired packet header information and the acquired TCP message header information to a connection tracking module of a TCP protocol for processing so as to establish TCP connection and update and measure the performance of the connection, and comprises the following steps: sending the packet header information and the TCP message header information to a connection tracking module of a TCP protocol for processing, if the TCP connection is not established, establishing a new TCP connection, and if the connection exists, updating the TCP connection information and calculating a performance quantization parameter of the TCP connection; recording the performance quantization parameters of the TCP connection once every preset time period and storing the performance quantization parameters into a database during the survival period of the TCP connection so as to backtrack and display the performance quantization parameters; when the TCP connection is ended, recording the performance quantization parameters of the TCP connection to the database for the last time, and then deleting the TCP connection so as to be used for inquiring and displaying the performance quantization data of the ended connection from the database subsequently.
6. The apparatus of claim 5, wherein the performance quantization parameter comprises: round Trip Time (RTT) during connection establishment, RTT during connection data transmission stage, message retransmission times on TCP connection, zero window notification times on TCP connection and transmission times of emergency data packets.
7. An electronic device, comprising: a processor, a memory, a bus, and a computer program stored on the memory and executable on the processor;
the processor and the memory complete mutual communication through the bus;
the processor, when executing the computer program, implements the method of any of claims 1-4.
8. A non-transitory computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the method of any one of claims 1-4.
CN201810338041.XA 2018-04-16 2018-04-16 Method and device for measuring performance of TCP connection of data center network and storage medium Active CN108600049B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810338041.XA CN108600049B (en) 2018-04-16 2018-04-16 Method and device for measuring performance of TCP connection of data center network and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810338041.XA CN108600049B (en) 2018-04-16 2018-04-16 Method and device for measuring performance of TCP connection of data center network and storage medium

Publications (2)

Publication Number Publication Date
CN108600049A CN108600049A (en) 2018-09-28
CN108600049B true CN108600049B (en) 2020-07-07

Family

ID=63622588

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810338041.XA Active CN108600049B (en) 2018-04-16 2018-04-16 Method and device for measuring performance of TCP connection of data center network and storage medium

Country Status (1)

Country Link
CN (1) CN108600049B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109688066B (en) * 2018-12-29 2020-11-13 合肥埃科光电科技有限公司 Gateway filtering driving method based on GigE Vision
CN113691410B (en) * 2020-05-19 2023-05-12 花瓣云科技有限公司 Network performance data acquisition method, device and server
CN111565142B (en) * 2020-07-15 2020-11-03 鹏城实验室 Message processing method and device and computer readable storage medium
CN112583936B (en) * 2020-12-29 2022-09-09 上海阅维科技股份有限公司 Method for recombining transmission conversation flow
CN112835934B (en) * 2021-02-01 2024-04-05 京东科技控股股份有限公司 Query information acquisition method and device, electronic equipment and storage medium
CN113098780B (en) * 2021-02-22 2023-04-28 网宿科技股份有限公司 Message processing method of virtual network, electronic equipment and storage medium
CN113132349A (en) * 2021-03-12 2021-07-16 中国科学院信息工程研究所 Agent-free cloud platform virtual flow intrusion detection method and device
CN114285771B (en) * 2021-12-30 2024-02-06 阿里巴巴(中国)有限公司 Connection state tracking method and device for TCP connection
CN114221859B (en) * 2022-01-06 2023-12-01 烽火通信科技股份有限公司 Tenant network physical link connectivity topology generation method and system
CN114422337A (en) * 2022-03-09 2022-04-29 中国建设银行股份有限公司 Method and related device for network packet capturing and fault positioning

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102014030A (en) * 2010-12-31 2011-04-13 湖南神州祥网科技有限公司 Network performance measurement diagnostic method and system based on transmission control protocol (TCP)
CN102281154A (en) * 2011-07-12 2011-12-14 广东宜通世纪科技股份有限公司 Display method and system of network topology graphing
CN103001811A (en) * 2012-12-31 2013-03-27 北京启明星辰信息技术股份有限公司 Method and device for fault locating
CN106330602A (en) * 2016-08-22 2017-01-11 中国科学院信息工程研究所 Method and system for monitoring cloud computing virtual tenant network
CN107645398A (en) * 2016-07-22 2018-01-30 北京金山云网络技术有限公司 A kind of method and apparatus of diagnostic network performance and failure
CN107666486A (en) * 2017-09-27 2018-02-06 清华大学 A kind of network data flow restoration methods and system based on message protocol feature

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101136529B1 (en) * 2010-11-09 2012-04-17 플러스기술주식회사 A system for traffic analysis based on session

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102014030A (en) * 2010-12-31 2011-04-13 湖南神州祥网科技有限公司 Network performance measurement diagnostic method and system based on transmission control protocol (TCP)
CN102281154A (en) * 2011-07-12 2011-12-14 广东宜通世纪科技股份有限公司 Display method and system of network topology graphing
CN103001811A (en) * 2012-12-31 2013-03-27 北京启明星辰信息技术股份有限公司 Method and device for fault locating
CN107645398A (en) * 2016-07-22 2018-01-30 北京金山云网络技术有限公司 A kind of method and apparatus of diagnostic network performance and failure
CN106330602A (en) * 2016-08-22 2017-01-11 中国科学院信息工程研究所 Method and system for monitoring cloud computing virtual tenant network
CN107666486A (en) * 2017-09-27 2018-02-06 清华大学 A kind of network data flow restoration methods and system based on message protocol feature

Also Published As

Publication number Publication date
CN108600049A (en) 2018-09-28

Similar Documents

Publication Publication Date Title
CN108600049B (en) Method and device for measuring performance of TCP connection of data center network and storage medium
CN103595584B (en) The diagnostic method of Web application performance problems and system
CN112564964B (en) Fault link detection and recovery method based on software defined network
CN108683569B (en) Service monitoring method and system for cloud service infrastructure
CN105812210A (en) Distributed network performance measuring system
CN112350854B (en) Flow fault positioning method, device, equipment and storage medium
CN109327076A (en) A kind of system improving automated system O&M efficiency
CN105306267A (en) Optical cable network management system
CN111934936A (en) Network state detection method and device, electronic equipment and storage medium
CN108879956A (en) The method that active judgement is carried out to the system failure based on equipment running status and is repaired
CN115277510B (en) Method for automatically identifying equipment, equipment interface and equipment path in network session
CN107979647B (en) Data recovery method for realizing cable-free storage type seismograph
CN104219100A (en) Information acquiring method and device
CN111970151A (en) Flow fault positioning method and system for virtual and container network
WO2015196636A1 (en) Packet collection method and system, network device and network management centre
Solomon et al. Network traffic monitoring in an industrial environment
CN111817865A (en) Method for monitoring network management equipment and monitoring system
CN112491655B (en) Method and device for determining TCP transmission exception type, electronic equipment and storage medium
CN109462283A (en) Intelligent substation individual equipment flux monitoring method and system
CN113973043A (en) Fault analysis method and device and computer readable storage medium
CN111385162B (en) Network detection method and device, computer equipment and storage medium
WO2012116551A1 (en) Multicast performance analysing method and system
CN111509863B (en) Mobile substation monitoring alarm system and method
CN114765633A (en) Network message analysis method and device based on train real-time Ethernet protocol
CN106656398A (en) Clock synchronization supervision method and clock synchronization supervision device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant