Abstract:
Provided are a method and apparatus for acquiring a port range resource, and method and apparatus for allocating a port range resource. In the method, a first Router Solicitation (RS) message is sent to a server-end device, wherein information carried in the first RS message includes at least one of an Internet Protocol (IP) address multiplexing request and a port range resource allocation request; and a Router Advertisement (RA) message from the server-end device is received, wherein information carried in the RA message includes: a port range resource allocated according to the IP address multiplexing request and/or according to the port range resource allocation request. By virtue of the technical solution, an Address Plus Port (A+P) technology can be applied to an application scenario where stateless configuration of an Internet Protocol Version 6 (IPv6) address is performed via Neighbour Discovery (ND), thereby expanding the application range of the A+P technology.
Abstract:
Methods for processing a raw Internet Protocol (IP) packet and corresponding devices are provided. A method is applied on a Broadband Network Gateway (BNG) side, and the method includes that after it is acquired that a Customer Premises Equipment (CPE) goes on line, a public network IP address and a public network identifier range are allocated to the CPE; and after a downlink raw IP packet is received, the packet is forwarded to a corresponding CPE according to a destination IP address of the packet and a route of a public network identifier, another method is applied on a CPE side, and the includes that: a public network IP address and a public network identifier range allocated by a BNG are received; after an uplink raw IP packet transmitted by a user is received, a source IP address in the packet is replaced with the public network IP address, a value of an identifier field in the packet is replaced with a value in the public network identifier range allocated by the BNG, and then the uplink raw IP packet is transmitted to the BNG. The present invention remedies the defect that an existing Network Address Translation (NAT) technology does not support forwarding of a raw IP packet.