摘要:
Embodiments of the present invention disclose a data packet processing method, a network traffic management method, an apparatus, and a system. If only one TCP connection is established, multiple networks can be used, and used traffic of each network can be controlled. A method thereof includes: acquiring, by a terminal, an aggregation flow table, where the aggregation flow table includes a management policy for managing network traffic of a first network and network traffic of a second network; determining, by the terminal, from the first network and the second network and according to the aggregation flow table, a transmission network used for transmitting a first uplink data packet; and if the terminal determines to transmit the first uplink data packet by using the first network, sending, by the terminal, the first uplink data packet to the first network by using a first network interface card corresponding to the first network, and forwarding the first uplink data packet to a gateway by using the first network; or if the terminal determines to transmit the first uplink data packet by using the second network, sending, by the terminal, the first uplink data packet to the second network by using a second network interface card corresponding to the second network, and forwarding the first uplink data packet to a gateway by using the second network.
摘要:
The present invention provides a method for constructing a multipath forwarding rule, an apparatus, and a system. A controller invokes a multipath algorithm to generate multiple paths for a data stream; the controller generates a multiport rule of each forwarding device according to the multiple paths; the controller generates metadata according to the multiport rule of each forwarding device, where the metadata includes information for indicating at least one forwarding port of the forwarding device; the controller generates a flow entry establishment indication; the controller sends the flow entry establishment indication to each forwarding device, so that each forwarding device selects the at least one forwarding port of the forwarding device according to the metadata and according to the flow entry establishment indication, to forward the data stream. Because a forwarding device may reuse a port combination according to metadata, after generating a flow entry, a controller does not need to query an already used group, and directly sends the flow entry to each forwarding device, thereby shortening a decision time of the controller.
摘要:
The present invention provides a method for constructing a multipath forwarding rule, an apparatus, and a system. A controller invokes a multipath algorithm to generate multiple paths for a data stream; the controller generates a multiport rule of each forwarding device according to the multiple paths; the controller generates metadata according to the multiport rule of each forwarding device, where the metadata includes information for indicating at least one forwarding port of the forwarding device; the controller generates a flow entry establishment indication; the controller sends the flow entry establishment indication to each forwarding device, so that each forwarding device selects the at least one forwarding port of the forwarding device according to the metadata and according to the flow entry establishment indication, to forward the data stream. Because a forwarding device may reuse a port combination according to metadata, after generating a flow entry, a controller does not need to query an already used group, and directly sends the flow entry to each forwarding device, thereby shortening a decision time of the controller.
摘要:
A response method in a human-computer dialogue, a dialogue system, and a storage medium are provided and belong to the field of artificial intelligence. In a process of a dialogue between a user and a machine, a user intent of a current dialogue is determined based on an expected user intent associated with a sentence replied by the machine to the user in a previous dialogue, so that a response is made. Because processing logic for an expected user intent is introduced, accuracy of a generated response sentence is improved.
摘要:
Embodiments of the present invention disclose a data packet processing method, a network traffic management method, an apparatus, and a system. If only one TCP connection is established, multiple networks can be used, and used traffic of each network can be controlled. A method thereof includes: acquiring, by a terminal, an aggregation flow table, where the aggregation flow table includes a management policy for managing network traffic of a first network and network traffic of a second network; determining, by the terminal, from the first network and the second network and according to the aggregation flow table, a transmission network used for transmitting a first uplink data packet; and if the terminal determines to transmit the first uplink data packet by using the first network, sending, by the terminal, the first uplink data packet to the first network by using a first network interface card corresponding to the first network, and forwarding the first uplink data packet to a gateway by using the first network; or if the terminal determines to transmit the first uplink data packet by using the second network, sending, by the terminal, the first uplink data packet to the second network by using a second network interface card corresponding to the second network, and forwarding the first uplink data packet to a gateway by using the second network.