Abstract:
A method for compressing flow data, including: generating multiple line segments according to flow data and a predefined maximum error that are acquired; obtaining a target piecewise linear function according to the multiple line segments, where the target piecewise linear function includes multiple linear functions, and an intersection set of value ranges of independent variables of every two linear functions among the multiple linear functions includes a maximum of one value; and outputting a reference data point according to the target piecewise linear function, where the reference data point includes a point of continuity and a point of discontinuity of the target piecewise linear function. In this way, a maximum error, a target piecewise linear function is further determined according to the multiple line segments, and a point of continuity and a point of discontinuity of the target piecewise linear function are used to represent compressed flow data.
Abstract:
A data processing method, includes receiving a data flow; generating a triplet set according to the data flow, where each triplet in the set includes three items, the first item is a first element in the data flow, the second item includes a first time point at which the first element appears in the data flow and a first quantity of times that corresponds to the first time point, and the third item includes a second time point at which the first element appears in the data flow and a second quantity of times that corresponds to the second time point; and performing data processing on the data flow according to the triplet set. In the embodiments of the present application, the triplet set may be generated based on the data flow.
Abstract:
A method for compressing flow data, including: constructing multiple line segments according to flow data and a predefined maximum error that are acquired; obtaining a target piecewise linear function according to the multiple line segments, where the target piecewise linear function includes multiple linear functions, and an intersection set of value ranges of independent variables of every two linear functions among the multiple linear functions includes a maximum of one value; and outputting a reference data point according to the target piecewise linear function, where the reference data point includes a point of continuity and a point of discontinuity of the target piecewise linear function. In this way, a maximum error, a target piecewise linear function is further determined according to the multiple line segments, and a point of continuity and a point of discontinuity of the target piecewise linear function are used to represent compressed flow data.
Abstract:
This application disclose a slot negotiation method for a fine-grain service in a FlexE. A sending apparatus may send the N requests to a receiving apparatus. The N requests initiates full slots negotiation of the fine-grain service. The N requests carry full sub-slot information of a sub-slot occupied by the fine-grain service, and the full sub-slot information indicates all sub-slots occupied by the fine-grain service. The receiving apparatus and the sending apparatus may perform negotiation based on the N requests and full slots of the fine-grain service. Therefore, fine-grain slots of the sending apparatus and the receiving apparatus are consistent, and a problem of inconsistent fine-grain slots of the sending apparatus and the receiving apparatus that may exist due to use of an incremental negotiation manner is avoided.
Abstract:
A port mode adaptation method includes a network device determining a status of a port on the network device. The method includes the network device setting a mode of the port to an Ethernet interface mode if the status of the port satisfies a first condition. In this way, when the network device identifies the mode of the port on the network device as the FlexE interface mode, and there is no link at the FlexE shim of the port, the network device may determine that a mode used by a port interconnected with the port is not a FlexE interface mode. In this case, the network device may adaptively set the mode of the port to the Ethernet interface mode, to ensure that the port on the network device can use a same mode as another port interconnected with the port.
Abstract:
A method for compressing flow data, including: generating multiple line segments according to flow data and a predefined maximum error that are acquired; obtaining a target piecewise linear function according to the multiple line segments, where the target piecewise linear function includes multiple linear functions, and an intersection set of value ranges of independent variables of every two linear functions among the multiple linear functions includes a maximum of one value; and outputting a reference data point according to the target piecewise linear function, where the reference data point includes a point of continuity and a point of discontinuity of the target piecewise linear function. In this way, a maximum error, a target piecewise linear function is further determined according to the multiple line segments, and a point of continuity and a point of discontinuity of the target piecewise linear function are used to represent compressed flow data.
Abstract:
This application relates to a slot negotiation method and a device. The method includes: A transmitter sends a first FlexE overhead frame to a receiver, to request active/standby calendar switching. When the receiver is in a restart state, the receiver does not respond to the received first FlexE overhead frame. In addition, the RX sends a routine update second FlexE overhead frame to the transmitter. Determining that the second FlexE overhead frame is not a response to the first FlexE overhead frame, the transmitter sends a third FlexE overhead frame to request active/standby calendar switching again. According to the method in this application, incorrect calendar switching on the transmitter side caused by a mistaken response of the receiver can be avoided. This reduces the likelihood of a service interruption caused by the existing slot negotiation mechanism.
Abstract:
A port mode adaptation method includes a network device determining a status of a port on the network device. The method includes the network device setting a mode of the port to an Ethernet interface mode if the status of the port satisfies a first condition. In this way, when the network device identifies the mode of the port on the network device as the FlexE interface mode, and there is no link at the FlexE shim of the port, the network device may determine that a mode used by a port interconnected with the port is not a FlexE interface mode. In this case, the network device may adaptively set the mode of the port to the Ethernet interface mode, to ensure that the port on the network device can use a same mode as another port interconnected with the port.
Abstract:
A method for compressing flow data, including: constructing multiple line segments according to flow data and a predefined maximum error that are acquired; obtaining a target piecewise linear function according to the multiple line segments, where the target piecewise linear function includes multiple linear functions, and an intersection set of value ranges of independent variables of every two linear functions among the multiple linear functions includes a maximum of one value; and outputting a reference data point according to the target piecewise linear function, where the reference data point includes a point of continuity and a point of discontinuity of the target piecewise linear function. In this way, a maximum error, a target piecewise linear function is further determined according to the multiple line segments, and a point of continuity and a point of discontinuity of the target piecewise linear function are used to represent compressed flow data.
Abstract:
A method, a node, and a system for sharing network traffic are provided. In the method the node receives a flow label in a message sent by an upper-level node; the node adjusts the flow label, so that flow labels of adjacent intermediate nodes are different; and the node performs equal-cost path routing according to the adjusted flow label.