Abstract:
This application discloses a communication method and a related device. The communication method includes: A first in-domain device determines an address length, where the “in-domain” refers to being in a local area network. Then, the first in-domain device receives a data packet, and extracts an address from the data packet based on the address length. Further, the first in-domain device forwards the data packet based on the address.
Abstract:
Embodiments of the present invention provide a method and an apparatus for sending and receiving IPv6 data packets. By adding a new service information extension header to an IPv6 data packet header, or by adding a new service information option in a hop-by-hop options extension header or a destination options extension header of the IPv6 data packet header, embodiments of the present invention are capable of carrying the service information about a service data packet in the IPv6 data packet. In addition, by detecting the service information extension header, or detecting the service information option in the hop-by-hop options extension header or the destination options extension header, embodiments of the present invention are capable of obtaining the service information about the service data packet carried in the IPv6 data packet.
Abstract:
A routing table creation method, an electronic device, and a network are provided. The method includes: generating a first probe packet, where the first probe packet has a source address and a destination address; sending, from a source node corresponding to the source address, the first probe packet on a network including at least two nodes, until the first probe packet reaches a destination node corresponding to the destination address, and recording addresses of nodes through which the first probe packet passes, to form a first path; generating a second path according to the first path, where the second path is a reverse path of the first path; generating a first response packet, sending the first response packet along a second path until the first response packet reaches the source node; and creating a routing table entry according to the second path.
Abstract:
The present disclosure provides a method for communication between a network device and a terminal device, where the network device stores a correspondence between a link-layer address and an IP address that are of the terminal device, and the method includes: obtaining, by the network device, a first link-layer address; determining whether a quantity of IP addresses corresponding to the first link-layer address reaches a threshold; if the quantity reaches the threshold, selecting an IP address from the IP addresses, where a quantity of selected IP addresses is not greater than the maximum quantity; saving a correspondence between the first link-layer address and the selected IP address; and sending, according to the selected IP address, a message to a terminal device having the first link-layer address, where the message is used to notify the terminal device whether an IP address is selected by the network device.
Abstract:
A packet processing method includes: receiving, by a first network device, a packet, where the packet includes match object information and match condition information; determining, by the first network device, a to-be-matched network device among one or more network devices according to the match object information, determining, by the first network device, whether device information of the of the to-be-matched network device matches with the match condition information; and performing, by the first network device, forwarding processing or discarding processing on the packet according to a result of the determination.
Abstract:
A method includes: a first network device generates a data link layer-based autonomic control plane (L2 ACP) packet, wherein the first network device is an autonomic device in the autonomic network; encapsulates, based on a frame at a data link layer, the L2 ACP packet, wherein the frame at the data link layer comprises a source data link layer address and a destination data link layer address, and the source data link layer address is a data link layer address of the first network device; and sends, according to the destination data link layer address, the L2 ACP packet encapsulated based on the frame at the data link layer to a second network device, wherein the second network device is also an autonomic device in the autonomic network, and the second network device is a neighboring device of the first network device.
Abstract:
The application provides a method and a router for sending and processing data. In the method, a first router receives a first Internet Protocol IP data packet sent by a network server, where the first IP data packet carries a first data adding instruction; and the first router searches, according to the first data adding instruction, a first local cache for to-be-added data that is indicated by the first data adding instruction, adds, to the first IP data packet, the to-be-added data that is indicated by the first data adding instruction, to form a second IP data packet, and sends the second IP data packet. Because a router can add data to an IP data packet according to a data adding instruction, flexibility of data combinations is improved, and because the IP data packet can support multiple times of data adding, the flexibility of data combinations is further improved.
Abstract:
Embodiments of the present invention provide a method for selecting a negotiation counterpart. Specifically, the first device sends a discovery message in the network, and the discovery message includes a technical objective. The first device receives a first response message with which a second device replies, and receives a second response message with which a third device replies. The first response message carries information about a characteristic that is of the second device and that supports implementation of the technical objective, and the second response message carries information about a characteristic that is of the third device and that supports implementation of the technical objective. The first device can select a device with a higher technical objective support degree from the second device and the third device as the negotiation counterpart according to the first response message and the second response message.
Abstract:
A method includes: a first network device generates a data link layer-based autonomic control plane (L2 ACP) packet, wherein the first network device is an autonomic device in the autonomic network; encapsulates, based on a frame at a data link layer, the L2 ACP packet, wherein the frame at the data link layer comprises a source data link layer address and a destination data link layer address, and the source data link layer address is a data link layer address of the first network device; and sends, according to the destination data link layer address, the L2 ACP packet encapsulated based on the frame at the data link layer to a second network device, wherein the second network device is also an autonomic device in the autonomic network, and the second network device is a neighboring device of the first network device.
Abstract:
A method includes: setting up, by a first network device, a MACSec channel to a second network device according to the MACSec protocol; and sending, by the first network device, an ACP packet to the second network device by using the MACSec channel, where the ACP packet is carried in a MACSec frame, and a frame header of the MACSec frame carries identification information used to identify the ACP packet. By means of the packet transmission method, a MACSec channel is set up between adjacent nodes in a self-organizing network according to the MACSec protocol, and an ACP packet is transmitted between the adjacent nodes by using the MACSec channel and processed.