Abstract:
An OAM packet processing method includes generating, by a first network device, an OAM packet, where the OAM packet is an MPLS-TP packet that includes an identifier of the first network device and indication information indicating a type of the identifier of the first network device. The first network device sends the OAM packet to the second network device. After receiving the OAM packet, the second network device can determine, based on the indication information, the type of the identifier of the first network device that is carried in the OAM packet, and accurately read the identifier of the first network device from the OAM packet. Therefore, MPLS-TP OAM can be implemented in a plurality of scenarios such as an IPv4 network, an IPv6 network, and a network including IPv4 and IPv6, to expand an application scope of MPLS-TP OAM.
Abstract:
Embodiments of the present invention disclose a method for checkpointing and restarting a container status, including: at a checkpoint stage, acquiring and checkpointing configuration information of a first container, a control group status parameter of the first container, and an application program status parameter of the first container; and at a restart stage, reading the configuration information, the control group status parameter, and the application program status parameter, and configure a second container according to the read configuration information, the read control group status parameter, and the read application program status parameter. The embodiments of the present invention further disclose an apparatus for checkpointing and restarting a container status, so that an execution environment of a process in the container can be kept consistent before and after a checkpoint/restart operation.
Abstract:
A container-based processing method includes: when a container state needs to be backed up, determining that content of a first control group file in at least one control group file of the container is modified; acquiring, a file name of the first control group file corresponding to the first flag bit; searching for, according to a correspondence between the file name of the at least one control group file and a storage location of the at least one control group file, a storage location of the first control group file corresponding to the file name of the first control group file, and extracting modified content of the first control group file from the first control group file stored in the storage location of the first control group file; and backing up the file name of the first control group file and the modified content of the first control group file.