Provided in an embodiment of the present application are a Locator
allocation method, apparatus, device and storage medium, the method comprising: receiving a first message sent by an ICMPv6
server, the
message type of the first message being a
router advertisement (RA) message, and the first message comprising a first option field, the first option field is used for indicating a segment routing (Srv6) network node identifier (Locator) based on the IPv6 (
Internet Protocol Version 6) of the ICMPv6
client side. By adopting the method, the
client device can automatically obtain the Srv6 Locator from the
upstream server device by expanding the NDP and utilizing the RA message of the ICMPv6 message.