Abstract:
The application provides an operation request generating method. The method includes: a generation device generates a first operation request that requests to perform an operation on a first packet, where the first operation request includes first assignment content and information used to indicate a first assignment location, the first assignment location is a location in the first packet, the first assignment content is data used to assign a value to the first assignment location, and the information used to indicate the first assignment location includes an identifier of a type of a first packet header, a first offset, and a first length, where the first packet header is a packet header in the first packet, and the first offset is an offset relative to a start location of the first packet header; and the generation device sends the first operation request to a description device or a receiving device.
Abstract:
An operation request generating method, including a generation device generates a first operation request that requests to perform an operation on a first packet, where the first operation request includes first assignment content and information used to indicate a first assignment location, the first assignment location is a location in the first packet, the first assignment content is data used to assign a value to the first assignment location, and the information used to indicate the first assignment location includes an identifier of a type of a first packet header, a first offset, and a first length, where the first packet header is a packet header in the first packet, and the first offset is an offset relative to a start location of the first packet header, and the generation device sends the first operation request to a description device or a receiving device.
Abstract:
The present disclosure provides a method, a terminal, and a gateway for transmitting IPv6 packets in an IPv4 network. An IPv6 terminal obtains an IPv6 address of the terminal, where the IPv6 address comprises an IPv4 address, the IPv4 address is an IPv4 address of a gateway or an IPv4 address designated by the gateway, the gateway is a device connecting an IPv6 network to an IPv4 network, or a device connecting a layer 2 network to an IPv4 network, multiple IPv6 terminals are connected to the gateway, and IPv6 addresses of all the IPv6 terminals connected to the gateway comprise the same IPv4 address; and sends an IPv6 packet to the gateway, where the IPv6 packet comprises the IPv6 address as a source address. In embodiments of the present disclosure, traversal of IPv6 packets through an IPv4 network can be implemented, and IPv4 address resources can be saved.
Abstract:
The application provides an operation request generating method. The method includes: a generation device generates a first operation request that requests to perform an operation on a first packet, where the first operation request includes first assignment content and information used to indicate a first assignment location, the first assignment location is a location in the first packet, the first assignment content is data used to assign a value to the first assignment location, and the information used to indicate the first assignment location includes an identifier of a type of a first packet header, a first offset, and a first length, where the first packet header is a packet header in the first packet, and the first offset is an offset relative to a start location of the first packet header; and the generation device sends the first operation request to a description device or a receiving device.
Abstract:
A method for message transmission comprises: receiving a forward message sent from an internal network device to an external network; transmitting the forward message after replacing the source address of the forward message with a public network IP address; receiving a reverse message sent from the external network to the internal network device; and transmitting the reverse message after replacing the destination public network IP address of the reverse message, which is sent from the external network to the internal network device, with a private network IP address of the internal network device. With the method, the NAT device can support more users, and thus the number of NAT devices is reduced and synchronization can be achieved between the internal network device and the NAT device when the NAT device aging occurs.