CN116915671B - Method and device for realizing remote measurement of multi-port in-band network - Google Patents

Method and device for realizing remote measurement of multi-port in-band network Download PDF

Info

Publication number
CN116915671B
CN116915671B CN202311173024.2A CN202311173024A CN116915671B CN 116915671 B CN116915671 B CN 116915671B CN 202311173024 A CN202311173024 A CN 202311173024A CN 116915671 B CN116915671 B CN 116915671B
Authority
CN
China
Prior art keywords
message
int
port
descriptor
type
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
CN202311173024.2A
Other languages
Chinese (zh)
Other versions
CN116915671A (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.)
Changzhou Nanfei Microelectronics Co ltd
Original Assignee
Changzhou Nanfei Microelectronics 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 Changzhou Nanfei Microelectronics Co ltd filed Critical Changzhou Nanfei Microelectronics Co ltd
Priority to CN202311173024.2A priority Critical patent/CN116915671B/en
Publication of CN116915671A publication Critical patent/CN116915671A/en
Application granted granted Critical
Publication of CN116915671B publication Critical patent/CN116915671B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • 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/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction
    • H04L49/111Switch interfaces, e.g. port details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • 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)
  • Environmental & Geological Engineering (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and a device for realizing remote measurement of a multiport in-band network, which belong to the technical field of communication, and comprise the steps of searching a tcam table to screen out a target message after a message enters from a plurality of ports, wherein the message requiring to execute an int protocol is the target message; modifying a message descriptor of a target message according to the node position of the equipment, and modifying the message descriptor into an int type message; counting the port rate of the destination port, and putting the counting result into a message descriptor and a message; and processing the message according to the type of the int message, sending the message to a monitoring system, and forwarding the message according to the destination port. The method and the device for realizing remote measurement of the multi-port in-band network can efficiently monitor the communication quality between the terminals, collect various information affecting the communication quality and accurately locate related problems.

Description

Method and device for realizing remote measurement of multi-port in-band network
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for implementing multi-port in-band network telemetry.
Background
In the use process of the switch chip, multi-port message forwarding often exists, and the traffic of each port is different. When a certain port bursts too much to cause network congestion, the two communication parties often discard some messages according to a certain processing principle. Message loss is a common network failure that can cause degradation of communication quality and even irreparable errors in both parties. Therefore, traffic monitoring for multiple ports is highly desirable.
Compared with the traditional network measurement method, the in-band network telemetry (Inband Network Telemetry, INT) can realize real-time monitoring of the intermediate node between two or more terminals, is equivalent to adding an internal probe, is beneficial to better analyzing network problems, and can forward various information affecting communication quality, such as packet loss, traffic and the like, to a monitoring system through an upper protocol. In-band network telemetry is therefore increasingly used in network measurements.
In-band network telemetry mainly comprises three important nodes, namely int source, int sink and int transit hop. The Int source matches the stream (flow watch list) of the set of Int related instructions on the Int device, creates an Int information header (Int header), and inserts the Int information header into the Int network source node device in the message. The Int transmission hop is an Int message transmission node, and after the Int message header is identified, the network state (Int metadata) required to be collected is added after the Int message header according to an embedded data packet telemetry command (Int instrumentation) in the Int message header. The Int sink is equivalent to an end node of the Int information header, collects metadata information acquired by a path through which the Int message recorded in the Int information header passes, sends the collected information to a monitoring system, and deletes the Int information header from the message.
Disclosure of Invention
The invention aims to provide a multi-port in-band network telemetry implementation method.
In order to achieve the above purpose, the technical scheme of the invention is as follows:
a multi-port in-band network telemetry implementation method includes,
step S1, after a message enters from a plurality of ports, searching a tcam table to screen out a target message, wherein the message requiring the execution of an int protocol is the target message;
step S2, modifying a message descriptor of a target message according to the node position of the equipment, and modifying the message descriptor into an int type message;
step S3, counting the port rate of the destination port, and putting the counted result into a message descriptor and a message;
and S4, processing the message according to the type of the int message, sending the message to a monitoring system, and forwarding the message according to the destination port.
In a specific embodiment, the step S2 includes adding an int source flag, an int transit hop flag, or an int sink flag to a message descriptor of the destination message according to a node position where the device is located, where the int source flag corresponds to a device start node, the int transit hop flag corresponds to a device intermediate node, and the int sink flag corresponds to a device end node.
In one embodiment, the step S3 includes,
step S31, counting the port rate of the target port, and then putting the counted result into the corresponding message descriptor;
step S32, setting the parameter is_cycle_last in the message descriptor to 1, representing that the message carries port rate information;
step S33, look-up table obtains the position of the inserted message, and puts the statistical result in the message descriptor into the message.
In a specific embodiment, the step S4 includes, if the type of the int message is the int source type or the int transit hop type, adding content into the message according to a protocol requirement, and then sending the message to the monitoring system according to a destination port; if the type of the int message is the type of the int sink, the int information is deleted and then sent to a monitoring system according to the destination port.
In one embodiment, the port rate of the destination port is counted according to the rate = total traffic/total time.
In a specific embodiment, the position of the inserted message is configured in advance through a linear table, when the message goes to the node, the position of the inserted message is obtained by looking up a table, and the statistical result in the message descriptor is put into the message.
In a specific embodiment, in the step S2, the destination port number may be put into the message descriptor by editing the destination message outlet and preparing for forwarding the message.
The invention also provides a multi-port in-band network telemetry realization device, which executes the multi-port in-band network telemetry realization method, and comprises a plurality of switches, wherein the switches form an in-band network telemetry domain, and the switches are equipment starting nodes, equipment intermediate nodes or equipment ending nodes.
The method and the device for realizing remote measurement of the multi-port in-band network have the beneficial effects that the communication quality between the terminals can be efficiently monitored, various information affecting the communication quality is collected, and related problems are accurately positioned.
In order to make the above features and advantages of the present invention more comprehensible, embodiments accompanied with figures are described in detail below.
Drawings
Fig. 1 is a flow chart of a method for implementing multi-port in-band network telemetry according to the present invention.
FIG. 2 is a flow chart of an embodiment of the method of FIG. 1.
Detailed Description
In order to make the purpose and technical solutions of the embodiments of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. It will be apparent that the described embodiments are some, but not all, embodiments of the invention. All other embodiments, which can be made by a person skilled in the art without creative efforts, based on the described embodiments of the present invention fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a method for implementing multi-port in-band network telemetry according to the present invention, as shown in fig. 1, including the following steps.
Step S11, after the message enters from a plurality of ports, looking up a tcam table to screen out a target message, wherein the message requiring the execution of the int protocol is the target message, for example, the message of the same port can be found by screening according to the ports.
Step S12, modifying the message descriptor of the destination message according to the node position of the device, and modifying the message descriptor into an int type message, namely, executing related actions by the message according to the int protocol.
More specifically, an int source flag, an int transit hop flag or an int sink flag is added to a message descriptor of a destination message according to a node position where the device is located, where the int source flag corresponds to a device start node, the int transit hop flag corresponds to a device intermediate node, and the int sink flag corresponds to a device end node.
Furthermore, the export of the destination message can be edited, preparation is made for forwarding the message, the destination port number is put into the message descriptor, and the destination port is the real export of the message.
And S13, counting the port rate of the destination port, and putting the counted result into the message descriptor and the message.
Step S14, the message is processed according to the type of the int message and then sent to a monitoring system, and the message is forwarded according to the destination port.
More specifically, if the type of the int message is the int source type or the int transit type, adding content into the message according to the protocol requirement, and then sending the message to a monitoring system according to a destination port; if the type of the int message is the type of the int sink, the int information is deleted and then sent to a monitoring system according to the destination port. The insertion or deletion position of the int message can be controlled by the configuration list item.
FIG. 2 is a flow chart of an embodiment of the method of FIG. 1.
In step S21, a tcam table is searched for screening out a destination message, as shown in fig. 2, the message enters from 4 ports, the rate of each port is 1G, 2.5G, 5G, 10G, and the port number is 1 to 4, in the communication process, it is found that the port with the rate of 2.5G cannot reach the expected flow, and the port is required to be subjected to rate statistics, then only the message with the port number of 2 can be screened out by searching the tcam table, so that the message requiring to execute the int protocol can be screened out, and the destination port is the port with the port number of 2.
Further, the process of screening messages by looking up the tcam table is as follows: the tcam table is a content index, the data used for the table lookup is called a key value, and if the key value is the same as the content in the tcam table, it represents a hit in the table. Assuming that the key value of the current tcam table is only composed of a parameter dst_port, the content of the tcam table can be configured to be 2 in advance, in the streaming process, each message can search the tcam table, and if the parameter dst_port of the message is 2, namely, the message with the port number of 2 is screened out according to the configured content.
Step S22, adding an int source mark, an int transit hop mark or an int sink mark in the message descriptor according to the position of the node where the device is located, wherein the int source mark corresponds to a device starting node, the int transit hop mark corresponds to a device intermediate node, and the int sink mark corresponds to a device ending node.
Step S23, further comprising,
step S231, counting the port rate of the destination port, and then putting the counted result into the corresponding message descriptor;
step S232, setting the parameter is_cycle_last in the message descriptor to 1, representing that the message carries port rate information;
step S233, the position of the inserted message is configured in advance through a linear table, when the message goes to the node, the position of the inserted message is obtained by looking up a table, and the statistical result in the message descriptor is put into the message.
In a specific embodiment, taking 1s as a period, counting the total flow in 1s, namely the total byte number, obtaining the corresponding rate according to the rate=total flow/total time after 1s is finished, and simultaneously clearing the total flow and the total time.
Step S24, further comprising, if the type of the int message is the int source type or the int transit type, adding content into the message according to the protocol requirement and then sending the message to the monitoring system according to the destination port; if the type of the int message is the type of the int sink, the int information is deleted and then sent to a monitoring system according to the destination port. The insertion or deletion position of the int message can be controlled by the configuration list item.
The invention also provides a multi-port in-band network telemetry implementation device, which is used for executing the multi-port in-band network telemetry implementation method, and comprises a plurality of switches, wherein the switches form an in-band network telemetry domain, and the switches can be equipment starting nodes, equipment intermediate nodes or equipment ending nodes.
Although the present invention has been described with reference to the above embodiments, it should be understood that the invention is not limited thereto, but rather is capable of modification and variation without departing from the spirit and scope of the present invention.

Claims (7)

1. A method for realizing multi-port in-band network telemetry is characterized by comprising the following steps of,
step S1, after a message enters from a plurality of ports, searching a tcam table to screen out a target message, wherein the message requiring the execution of an int protocol is the target message;
step S2, modifying a message descriptor of a target message according to the node position of the equipment, and modifying the message descriptor into an int type message;
step S3, counting the port rate of the destination port, and putting the counted result into a message descriptor and a message;
step S4, the message is processed according to the type of the int message and then sent to a monitoring system, and the message is forwarded according to a destination port;
the step S3 of this method comprises the steps of,
step S31, counting the port rate of the target port, and then putting the counted result into the corresponding message descriptor;
step S32, setting the parameter is_cycle_last in the message descriptor to 1, representing that the message carries port rate information;
step S33, look-up table obtains the position of the inserted message, and puts the statistical result in the message descriptor into the message.
2. The method of claim 1, wherein the step S2 includes adding an int source flag, an int transit hop flag, or an int sink flag to a message descriptor of the destination message according to a node position where the device is located, where the int source flag corresponds to a device start node, the int transit hop flag corresponds to a device intermediate node, and the int sink flag corresponds to a device end node.
3. The method for implementing multi-port in-band network telemetry according to claim 2, wherein the step S4 includes, if the type of the int message is the int source type or the int transit type, adding content into the message according to a protocol requirement and then sending the content to the monitoring system according to a destination port; if the type of the int message is the type of the int sink, the int information is deleted and then sent to a monitoring system according to the destination port.
4. The method of claim 2, wherein the port rate of the destination port is counted according to a rate = total flow/total time.
5. The method of claim 2, wherein the location of the inserted message is configured in advance by a linear table, and when the message arrives at the node, the location of the inserted message is obtained by looking up the table, and the statistical result in the message descriptor is put into the message.
6. The method of claim 2, wherein in step S2, the destination port number is put into the message descriptor in preparation for forwarding the message by editing the destination message.
7. A multi-port in-band network telemetry implementation apparatus, wherein a multi-port in-band network telemetry implementation method according to any of claims 1-6 is performed, comprising a plurality of switches, the plurality of switches forming an in-band network telemetry domain, the switches being device start nodes, device intermediate nodes, or device end nodes.
CN202311173024.2A 2023-09-12 2023-09-12 Method and device for realizing remote measurement of multi-port in-band network Active CN116915671B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311173024.2A CN116915671B (en) 2023-09-12 2023-09-12 Method and device for realizing remote measurement of multi-port in-band network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311173024.2A CN116915671B (en) 2023-09-12 2023-09-12 Method and device for realizing remote measurement of multi-port in-band network

Publications (2)

Publication Number Publication Date
CN116915671A CN116915671A (en) 2023-10-20
CN116915671B true CN116915671B (en) 2023-11-21

Family

ID=88360652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311173024.2A Active CN116915671B (en) 2023-09-12 2023-09-12 Method and device for realizing remote measurement of multi-port in-band network

Country Status (1)

Country Link
CN (1) CN116915671B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637705A (en) * 2020-11-26 2021-04-09 新华三技术有限公司合肥分公司 Method and device for forwarding in-band remote measurement message

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637705A (en) * 2020-11-26 2021-04-09 新华三技术有限公司合肥分公司 Method and device for forwarding in-band remote measurement message

Also Published As

Publication number Publication date
CN116915671A (en) 2023-10-20

Similar Documents

Publication Publication Date Title
US10063440B2 (en) Method and system for measuring packet loss
US9306819B2 (en) Controller driven OAM for split architecture network
US11784915B2 (en) Multicast packet processing method and device
JP4341413B2 (en) PACKET TRANSFER APPARATUS HAVING STATISTICS COLLECTION APPARATUS AND STATISTICS COLLECTION METHOD
US8654790B2 (en) Method of remote active testing of a device or network
US10740027B2 (en) High speed logging system
US7420929B1 (en) Adaptive network flow analysis
CN109547288B (en) Programmable flow measuring method for protocol independent forwarding network
US20210075738A1 (en) Packet Programmable Flow Telemetry Profiling And Analytics
CN112866002B (en) Multicast traffic oriented in-band telemetry method, switching device node and computer readable storage medium
CN116915671B (en) Method and device for realizing remote measurement of multi-port in-band network
CN112469067B (en) Method and system for monitoring network batch service flow
CN111371575B (en) Method and device for delimiting call problem
CN116319468B (en) Network telemetry method, device, switch, network, electronic equipment and medium
CN114039888B (en) Time delay measurement method and device
WO2023093227A1 (en) Information collection method and apparatus, and storage medium and electronic apparatus
US20230113518A1 (en) Distributed Network Flow Record
CN117240941A (en) In-band network remote measurement message processing method and device
CN116633883A (en) Data center network telemetering information acquisition method based on backtracking mechanism
CN115604150A (en) Data packet forwarding consistency detection system and detection method based on marker bit
CN117176839A (en) Remote measurement message transmission method, device, communication equipment and storage medium
CN117896295A (en) Fault visualization method and system for process layer switch fault diagnosis service
POTOCKÝ et al. ANALYSIS AND CONFORMITY ADAPTATION PROPOSAL OF MEASURING DEVICE BASICMETER WITH IPFIX AND PSAMP STANDARDS1

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