摘要:
This application provides a packet processing method and a network device in a hybrid access network, to implement traffic balancing and real-time monitoring on network bandwidth, thereby relieving primary link congestion caused by a network emergency, and improving network bandwidth. The method is: sending, by a first network device, a first data packet in a first sending window to a second network device by using a first tunnel; in response to receiving a first acknowledgement response sent by the second network device, increasing, by the first network device, a size of the first sending window based on a first proportion; in response to not receiving, within a first predetermined time, the first acknowledgement response, decreasing the size of the first sending window based on a second proportion; and in response to determining that the size of the first sending window is greater than or equal to a first threshold, sending a second data packet to a second receiving window of the second network device by using a second sending window, where a first acknowledgement number carried in the first acknowledgement response is obtained based on a first sub-link number in the first data packet.
摘要:
The present invention provides a method, a device, and a system for determining a GRE tunnel identifier, applied to a scenario in which there are at least two GRE tunnels between a HAG and HCPE and the at least two GRE tunnels are bonded. The method includes: receiving, by the HAG, a service packet that is sent by the HCPE through a first GRE tunnel, where the service packet includes a source IP address of the first GRE tunnel carrying the service packet, and the first GRE tunnel is one of the at least two GRE tunnels; and looking up, by the HAG, a correspondence table according to the source IP address of the first GRE tunnel, to determine a tunnel identifier of the first GRE tunnel carrying the service packet, where the correspondence table includes a correspondence between the source IP address of the first GRE tunnel and the tunnel identifier of the first GRE tunnel. Therefore, in embodiments of the present invention, in a GRE tunnel bonding scenario, a GRE tunnel through which a service packet is received can be flexibly and efficiently distinguished.
摘要:
Embodiments of the present invention provide a method, device, and system for processing an OAM packet, where the method for processing an OAM packet includes: receiving, by a first network device, an operation, administration and maintenance (OAM) instruction sent by an OAM server, where the OAM instruction carries first format information, which is used for indicating an OAM packet format, and a first sending target identifier; and generating, by the first network device, a first OAM packet according to the first format information, and sending the first OAM packet to a network device indicated by the first sending target identifier. The method, device, and system for processing an OAM packet provided in the embodiments of the present invention achieve adaptability to different OAM standards without changing of a hardware structure of a network device, and improve OAM processing flexibility.
摘要:
Embodiments of the present invention relate to the communications field, and provide a network label allocation method, a device, and a system, which enable a local PE to distinguish packets from different remote PEs, thereby laying a foundation for fault management and performance measurement of an L3VPN. The network label allocation method includes: generating, by a local provider edge PE, a VPN label route for each remote PE, where VPN labels in VPN label routes of different remote PEs are different, and the remote PE and the local PE at least belong to a same VPN; and sending, by the local PE, the VPN label route to the remote PE, so that the remote PE separately matches an IP address of the remote PE with a target device IP address in the VPN label route, and matches an import route target RT of each virtual routing forwarding VRF of the remote PE with a route target RT in the VPN label route, so as to make the remote PE carry the VPN label when the remote PE sends, to the local PE, a packet related to a successfully matched VRF. The network label allocation method, the device, and the system provided in the embodiments of the present invention are used for network label allocation.
摘要:
The present invention discloses a method, a network device, and a system for synchronization between network devices, which belong to the communication field. The method includes: establishing, by a first network device, an inband synchronization channel to a second network device in a Multiprotocol Label Switching Transport Profile MPLS-TP network, where the inband synchronization channel is a channel on a data plane, and the first network device and the second network device are included in a same backup group; sending, by the first network device, a first synchronization packet to the second network device through the inband synchronization channel, where the first synchronization packet carries synchronization information of the first network device so that the second network device performs synchronization processing according to the synchronization information of the first network device, and the synchronization information of the first network device includes configuration information and/or status information of the first network device. The present invention can implement synchronization between network devices on an MPLS-TP network that does not have a control plane.
摘要:
Embodiments of this application provide a bit-forwarding ingress router, a bit-forwarding router, and an OAM test method, and pertain to the field of multicast networks. A first BFR receives an OAM request packet from a BFIR; the first BFR determines, according to the OAM request packet, that a destination BFR corresponding to the OAM request packet is the first BFR; and the first BFR obtains a first OAM response packet according to an ID of the BFIR, and sends the first OAM response packet to the BFIR. According to the method and the apparatus that are provided in the embodiments of this application, a problem that a BFIR cannot diagnose or handle a transmission fault when the fault occurs during transmission of a multicast packet can be resolved, which helps implement connectivity testing by using an OAM packet and enables testing of multiple BFERs.
摘要:
Embodiments of this application provide a bit-forwarding ingress router, a bit-forwarding router, and an OAM test method, and pertain to the field of multicast networks. A first BFR receives an OAM request packet from a BFIR; the first BFR determines, according to the OAM request packet, that a destination BFR corresponding to the OAM request packet is the first BFR; and the first BFR obtains a first OAM response packet according to an ID of the BFIR, and sends the first OAM response packet to the BFIR. According to the method and the apparatus that are provided in the embodiments of this application, a problem that a BFIR cannot diagnose or handle a transmission fault when the fault occurs during transmission of a multicast packet can be resolved, which helps implement connectivity testing by using an OAM packet and enables testing of multiple BFERs.
摘要:
Embodiments of the present invention provide a label-based measurement method, apparatus, and system. The method includes: allocating at least two labels to the same forwarding equivalence class FEC; obtaining a label insertion mode for the at least two labels; receiving data packet, where one of the at least two labels is inserted in the data packet; and performing, according to the label insertion mode and the data packet, performance measurement on a network that the FEC passes through. By using the technical solutions provided in the embodiments of the present invention, a problem of network bandwidth occupation caused by inserting a test packet and an OAM packet during performance measurement and a problem of measurement result inaccuracy caused by OAM packet loss may be solved.