Search

CN-122001834-A - Multicast port number allocation method and device, equipment, storage medium and program product

CN122001834ACN 122001834 ACN122001834 ACN 122001834ACN-122001834-A

Abstract

The application discloses a multicast port number allocation method, a device, equipment, a storage medium and a program product; the method comprises the steps that a first node receives a multicast message carrying a first SID, wherein the first SID is used for identifying an automatic allocation multicast port number, and the first node allocates a first receiving port number for the multicast message based on the first SID. The method comprises the steps that a second node receives a multicast message carrying a first SID, the first SID is used for identifying an automatic allocation multicast port number, the second node inquires a second mapping table based on the first SID and modifies a destination port number of the multicast message into a receiving port number obtained by looking up a table, and the second node sends the modified multicast message.

Inventors

  • LI ZHIQIANG
  • LU LU
  • SUN TAO
  • ZHOU CHENG

Assignees

  • 中国移动通信有限公司研究院
  • 中国移动通信集团有限公司

Dates

Publication Date
20260508
Application Date
20241107

Claims (18)

  1. 1. A multicast port number allocation method, the method comprising: a first node receives a multicast message carrying a first section of identification SID, wherein the first SID is used for identifying an automatic allocation multicast port number; The first node allocates a first receiving port number to the multicast message based on the first SID.
  2. 2. The method according to claim 1, wherein the method further comprises: The first node maintains a first mapping table, where the first mapping table includes a mapping relationship between a destination port number carried by the multicast packet and the first receiving port number.
  3. 3. The method of claim 1, wherein the step of determining the position of the substrate comprises, The first SID is carried by the multicast source node in the multicast message, or The first SID is carried in the multicast message by an edge ingress network node.
  4. 4. A method according to any of claims 1 to 3, wherein the first node is a multicast receiving node.
  5. 5. A multicast port number allocation method, the method comprising: The second node receives a multicast message carrying a first SID, wherein the first SID is used for identifying an automatic allocation multicast port number; the second node queries a second mapping table based on the first SID, and modifies the destination port number in the multicast message into a receiving port number obtained by looking up a table; And the second node sends the modified multicast message.
  6. 6. The method of claim 5, wherein the method further comprises: The second node obtains the receiving port numbers distributed by N multicast receiving nodes for the multicast message, wherein the receiving port numbers distributed by different multicast receiving nodes are different; the second node builds the second mapping table based on the receiving port numbers distributed by the N multicast receiving nodes, wherein the second mapping table comprises the receiving port numbers corresponding to the N multicast receiving nodes, and N is a positive integer.
  7. 7. The method of claim 6, wherein the second node querying a second mapping table based on the first SID and modifying the destination port number in the multicast message to a table-look-up received port number comprises: The second node copies the multicast message to obtain N copies of multicast messages; The second node queries a second mapping table based on the first SID to obtain receiving port numbers corresponding to the N multicast receiving nodes; and the second node respectively modifies the destination port numbers in the N multicast messages into receiving port numbers corresponding to the N multicast receiving nodes.
  8. 8. The method of claim 5, wherein the step of determining the position of the probe is performed, The first SID is carried by the multicast source node in the multicast message, or The first SID is carried in the multicast message by an edge ingress network node.
  9. 9. The method according to any of claims 5 to 8, wherein the second node is an edge egress network node.
  10. 10. A multicast port number allocation method, the method comprising: the third node carries a first SID in the multicast message, wherein the first SID is used for identifying the automatic allocation of the multicast port number; And the third node sends a multicast message carrying the first SID.
  11. 11. The method of claim 10, wherein the first SID comprises a Location field and a Function field, wherein the Function field is used to identify a first processing behavior of the multicast message, and wherein the first processing behavior is to automatically allocate a multicast port.
  12. 12. The method according to claim 10 or 11, wherein, The third node is a multicast source, or The third node is an edge ingress network node.
  13. 13. A multicast port number allocation apparatus for use with a first node, the apparatus comprising: The first communication unit is used for receiving a multicast message carrying a first SID, and the first SID is used for identifying the automatic allocation of multicast port numbers; and the first processing unit is used for allocating a first receiving port number for the multicast message based on the first SID.
  14. 14. A multicast port number assignment apparatus for use with a second node, the apparatus comprising: The second communication unit is used for receiving the multicast message carrying the first SID, and the first SID is used for identifying the automatic allocation of the multicast port number; The second processing unit is used for inquiring a second mapping table based on the first SID and modifying the destination port number in the multicast message into a receiving port number obtained by looking up a table; The second communication unit is further configured to send the modified multicast message.
  15. 15. A multicast port number allocation apparatus for use with a third node, the apparatus comprising: the third processing unit is used for carrying a first SID in the multicast message, wherein the first SID is used for identifying the automatic allocation of the multicast port number; and the third communication unit is used for sending the multicast message carrying the first SID.
  16. 16. A communication device comprising a processor and a memory for storing a computer program, the processor being adapted to invoke and execute the computer program stored in the memory for performing the method according to any of claims 1 to 12.
  17. 17. A computer readable storage medium storing a computer program for causing a computer to perform the method of any one of claims 1 to 12.
  18. 18. A computer program product comprising computer program instructions for causing a computer to perform the method of any one of claims 1 to 12.

Description

Multicast port number allocation method and device, equipment, storage medium and program product Technical Field The present application relates to the field of communications technologies, and in particular, to a multicast port number allocation method and apparatus, a device, a storage medium, and a program product. Background The port number resources are limited and thus there is a need to efficiently utilize the port number resources. For unicast type traffic, port numbers are often allocated in a dynamic manner. The difficulty of dynamically allocating port numbers for multicast type traffic is heavy because it cannot be confirmed that the port numbers of all multicast receiving nodes to be added to the multicast group are not occupied by other applications or traffic. How to allocate port numbers in a dynamic manner in a multicast scenario needs to be perfected. Disclosure of Invention In order to solve the technical problems, the application provides a multicast port number allocation method, terminal equipment, network equipment, a chip and a computer readable storage medium. The application provides a multicast port number allocation method, which comprises the following steps: the first node receives a multicast message carrying a first section identifier (SEGMENT ID, SID), wherein the first SID is used for identifying an automatically allocated multicast port number; The first node allocates a first receiving port number to the multicast message based on the first SID. The application provides a multicast port number allocation method, which comprises the following steps: The second node receives a multicast message carrying a first SID, wherein the first SID is used for identifying an automatic allocation multicast port number; the second node queries a second mapping table based on the first SID, and modifies the destination port number in the multicast message into a receiving port number obtained by looking up a table; And the second node sends the modified multicast message. The application provides a multicast port number allocation method, which comprises the following steps: the third node carries a first SID in the multicast message, wherein the first SID is used for identifying the automatic allocation of the multicast port number; And the third node sends a multicast message carrying the first SID. The application provides a multicast port number distribution device, which is applied to a first node, and comprises: The first communication unit is used for receiving a multicast message carrying a first SID, and the first SID is used for identifying the automatic allocation of multicast port numbers; and the first processing unit is used for allocating a first receiving port number for the multicast message based on the first SID. The application provides a multicast port number distribution device, which is applied to a second node, and comprises: The second communication unit is used for receiving the multicast message carrying the first SID, and the first SID is used for identifying the automatic allocation of the multicast port number; The second processing unit is used for inquiring a second mapping table based on the first SID and modifying the destination port number in the multicast message into a receiving port number obtained by looking up a table; The second communication unit is further configured to send the modified multicast message. The application provides a multicast port number distribution device, which is applied to a third node, and comprises: the third processing unit is used for carrying a first SID in the multicast message, wherein the first SID is used for identifying the automatic allocation of the multicast port number; and the third communication unit is used for sending the multicast message carrying the first SID. The communication equipment provided by the application comprises a processor and a memory, wherein the memory is used for storing a computer program, and the processor is used for calling and running the computer program stored in the memory and executing any multicast port number allocation method. The present application provides a computer readable storage medium storing a computer program for causing a computer to execute any one of the multicast port number allocation methods described above. The present application provides a computer program product comprising computer program instructions for causing a computer to perform any one of the multicast port number allocation methods described above. In the technical scheme of the application, the multicast receiving node can flexibly and dynamically allocate the unused port number as the receiving port number of the multicast message by carrying the first SID in the multicast message to identify the automatic allocation of the multicast port number, and each multicast receiving node does not need to forcedly adopt the same receiving port number, and the destination port number carried in the