WO2023056845A1 - 通信方法和装置 - Google Patents
通信方法和装置 Download PDFInfo
- Publication number
- WO2023056845A1 WO2023056845A1 PCT/CN2022/120765 CN2022120765W WO2023056845A1 WO 2023056845 A1 WO2023056845 A1 WO 2023056845A1 CN 2022120765 W CN2022120765 W CN 2022120765W WO 2023056845 A1 WO2023056845 A1 WO 2023056845A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- address
- network element
- correspondence
- identifier
- network
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 91
- 238000004891 communication Methods 0.000 title claims abstract description 58
- 238000012545 processing Methods 0.000 claims description 36
- 238000004590 computer program Methods 0.000 claims description 16
- 239000013256 coordination polymer Substances 0.000 claims description 10
- 230000011664 signaling Effects 0.000 claims description 10
- 238000007726 management method Methods 0.000 description 156
- 230000015654 memory Effects 0.000 description 29
- 238000012423 maintenance Methods 0.000 description 22
- 230000006870 function Effects 0.000 description 13
- 230000008569 process Effects 0.000 description 12
- 230000005540 biological transmission Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 5
- 238000001514 detection method Methods 0.000 description 4
- 230000003993 interaction Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 230000007774 longterm Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/26—Network addressing or numbering for mobility support
Definitions
- the present application relates to the technical field of communication, and more specifically, to a communication method and device.
- Internet protocol version 6 (internet protocol version 6, IPv6) supports automatic generation of IP addresses using stateless address autoconfiguration (SLAAC) technology.
- SLAAC stateless address autoconfiguration
- the host When the host is online, the host will send a router request (router solicit, RS) message to the router, requesting address configuration; after receiving the RS message, the router sends a router advertisement (router advertisement, RA) message to the host, which carries information for address automatic Configured prefix and other information; after receiving the RA message, the host obtains address prefix information and address-related parameter information, and automatically generates an IPv6 address according to the method specified by SLAAC.
- RS Router solicit
- RA router advertisement
- the host cannot determine the applicable service type of the IP address automatically generated by using the SLAAC technology. For example, as shown in FIG. 2, when the host generates IP address #1, the host cannot determine which service type IP address #1 applies to. Therefore, how to determine the service type applicable to the automatically generated IP address is an urgent problem to be solved.
- the present application provides a communication method and device, so that the host can determine the applicable business type of the automatically generated IP address.
- a communication method including:
- the first network element manages the first corresponding relationship between the network elements from the network, and the first corresponding relationship is the corresponding relationship between the use identifier of the Internet protocol IP address and the service type applicable to the IP address.
- the first network element acquires the first information from the network management network element, where the first information includes the usage identifier of the first IP address.
- the first network element determines the service type applicable to the first IP address according to the first correspondence and the usage identifier of the first IP address.
- the service type applicable to the IP address includes any of the following:
- MP services on the management plane CP services on the signaling plane, UP services on the user plane, Internet key exchange IKE services, and IP clock services.
- the first network element can obtain the first corresponding relationship and the first The usage identifier of the IP address determines the type of service to which the first IP address applies.
- the network management network element can serve multiple first network elements at the same time, and the network management network element configures the same first corresponding relationship to each first network element. Therefore, the network management network element does not need to perform differential configuration on each first network element, which reduces the complexity of network management network element configuration. Subsequently, if the first corresponding relationship is updated, the network management network element only needs to reconfigure the updated first corresponding relationship to each first network element. Therefore, the complexity of maintenance can be reduced by adopting the solution of the present application.
- the method before the first network element obtains the first information from the network management network element, the method further includes:
- the first network element generates the identifier of the first VLAN and the first IP address according to the router advertisement RA message.
- the first network element sends the first IP address and the identifier of the first VLAN to the network management network element.
- the first IP address includes prefix information of the first IP address.
- the operator does not need to plan the transmission configuration of the first network element.
- the first network element After the first network element generates the first IP address, the first network element can determine the service type applicable to the first IP address.
- the first information further includes the first IP address and the identifier of the first VLAN.
- the method before the first network element obtains the first information from the network management network element, the method further includes:
- the first network element sends a first request message to the network management network element, the first request message is used to request the first IP address, the first request message includes the usage identifier of the first IP address, and the first IP address is an inner layer IP address.
- the first information also includes a first IP address.
- the network management network element may allocate an inner layer IP address to the first network element.
- a communication method including:
- the network management network element obtains the first correspondence and the second correspondence, wherein the first correspondence is the correspondence between the usage identifier of the IP address and the service type applicable to the IP address, and the second correspondence is used to determine the IP address Use ID.
- the network management network element acquires the identifier of the first VLAN and the first IP address from the first network element.
- the network management network element determines the usage identifier of the first IP address according to the second correspondence relationship.
- the network management network element sends the first information to the first network element, where the first information includes the usage identifier of the first IP address.
- the network management network element sends the first correspondence to the first network element.
- the network management network element may send the purpose identifier of the first IP address and the first correspondence to the first network element, so that the first network element determines the The service type applicable to the first IP address.
- the network management network element can serve multiple first network elements at the same time, and the network management network element configures the same first corresponding relationship for each first network element. Therefore, the network management network element does not need to perform differential configuration on each first network element, which reduces the complexity of network management network element configuration. Subsequently, if the first corresponding relationship is updated, the network management network element only needs to reconfigure the updated first corresponding relationship to each first network element. Therefore, the complexity of maintenance can be reduced by adopting the solution of the present application.
- the network management network element can obtain the second corresponding relationship, and when the second corresponding relationship needs to be updated, it only needs to be updated on the network management network element, and there is no need to update multiple first network elements. Therefore, the complexity of maintenance can be reduced by adopting the solution of the present application.
- the second correspondence includes any of the following:
- the identifier of the VLAN is an identifier of a blacklisted VLAN or an identifier of a whitelisted VLAN.
- the first information further includes an identifier of the first VLAN and a first IP address.
- a communication method including:
- the network management network element sends the first correspondence to the first network element, and the first correspondence is the correspondence between the usage identifier of the IP address and the service type applicable to the IP address.
- the network management network element receives a first request message from the first network element, the first request message is used to request a first IP address, the first request message includes a purpose identifier of the first IP address, and the first IP address is an inner layer IP address.
- the network management network element determines the first IP address from the target IP address pool, and the target IP address pool corresponds to the purpose identifier of the first IP address.
- the network management network element sends the first information to the first network element, where the first information includes the first IP address and the usage identifier of the first IP address.
- the network management network element can configure the first corresponding relationship with the first network element, and further, the network management network element assigns the inner layer IP address to the first network element and the purpose of the inner layer IP address identification, so that the first network element determines the applicable service type of the inner IP address according to the usage identification of the inner IP address and the first corresponding relationship.
- a communication method including:
- the first network element obtains the third correspondence relationship from the network management network element, and the third correspondence relationship is a correspondence relationship between a network segment of an IP address and a service type applicable to the IP address.
- the first network element generates the first IP address according to the RA message.
- the first network element determines the service type applicable to the first IP address according to the third correspondence and the network segment of the first IP address.
- the first network element may determine the service type applicable to the automatically generated first IP address according to the third correspondence.
- the network management network element can serve multiple first network elements at the same time, and the network management network element configures the same third corresponding relationship to each first network element. Therefore, the network management network element does not need to perform differential configuration on each first network element, which reduces the complexity of network management network element configuration. Subsequently, if the third corresponding relationship is updated, the network management network element only needs to reconfigure the updated third corresponding relationship to each first network element. Therefore, the complexity of maintenance can be reduced by adopting the solution of the present application.
- the service type applicable to the IP address includes any of the following:
- MP services on the management plane CP services on the signaling plane, UP services on the user plane, Internet key exchange IKE services, and IP clock services.
- a communication method including:
- the network management network element obtains the third correspondence relationship, and the third correspondence relationship is the correspondence relationship between the network segment of the IP address and the service type applicable to the IP address.
- the network management network element sends the third correspondence to the first network element.
- the service type applicable to the IP address includes any of the following:
- MP services on the management plane CP services on the signaling plane, UP services on the user plane, Internet key exchange IKE services, and IP clock services.
- a communication method including:
- the network management network element obtains the third correspondence relationship, and the third correspondence relationship is the correspondence relationship between the network segment of the IP address and the service type applicable to the IP address.
- the network management network element acquires the identifier of the first VLAN and the first IP address from the first network element.
- the network management network element determines the service type applicable to the first IP address according to the third correspondence and the network segment of the first IP address.
- the network management network element sends the second information to the first network element, where the second information includes the service type applicable to the first IP address.
- the network management network element obtains the third corresponding relationship, determines the applicable service type of the first IP address according to the third corresponding relationship, and then notifies the first network element of the applicable service type of the first IP address. Subsequently, if the third corresponding relationship needs to be updated, it only needs to be updated on the network management network element. Therefore, the complexity of maintenance can be reduced by adopting the solution of the present application.
- the second information further includes the identifier of the first VLAN and the first IP address.
- the service type applicable to the IP address includes any of the following:
- MP services on the management plane CP services on the signaling plane, UP services on the user plane, Internet key exchange IKE services, and IP clock services.
- a communication device in a seventh aspect, includes a unit for performing the method in any possible implementation manner of the first aspect or the fourth aspect.
- a communication device in an eighth aspect, includes a unit for performing the method in any possible implementation manner of the second aspect, the third aspect, the fifth aspect, and the sixth aspect.
- a communication device including a communication interface and a processor, and optionally a memory, where the processor is used to execute a computer program or instruction stored in the memory, so that the communication device executes the first aspect to the sixth aspect.
- the processor is used to execute a computer program or instruction stored in the memory, so that the communication device executes the first aspect to the sixth aspect.
- the memory may be located in the processor, or implemented by a chip independent from the processor, which is not specifically limited in the present application.
- a computer-readable storage medium including a computer program.
- the computer program runs on a computer, the computer executes the method in any possible implementation manner of the first aspect to the sixth aspect.
- a chip is provided, and a processing circuit is disposed on the chip, and the processing circuit is configured to execute the method in any possible implementation manner of the first aspect to the sixth aspect.
- a computer program product includes: a computer program (also referred to as code, or instruction), which, when the computer program is executed, causes the computer to execute any of the first to sixth aspects.
- a computer program also referred to as code, or instruction
- Fig. 1 shows the architecture of a communication system to which the embodiment of the present application is applicable.
- Fig. 2 shows a possible scenario where this embodiment of the present application is applicable.
- Fig. 3 shows an example of a schematic interaction diagram of the method proposed in this application.
- Fig. 4 shows an example of the first correspondence.
- Fig. 5 shows another example of the first correspondence.
- Fig. 6 shows the packet structure in the IPsec scenario.
- Fig. 7 shows an example of determining the service type applicable to the first IP address according to the first correspondence.
- Fig. 8 shows another example of determining the service type applicable to the first IP address according to the first correspondence.
- Fig. 9 shows another example of a schematic interaction diagram of the method proposed in this application.
- Fig. 10 shows another example of the first correspondence.
- Fig. 11 shows another example of determining the service type applicable to the first IP address according to the first correspondence.
- Fig. 12 shows another example of a schematic interaction diagram of the method proposed in this application.
- Fig. 13 shows an example of the third correspondence.
- Fig. 14 shows an example of determining the service type applicable to the first IP address according to the third correspondence.
- Fig. 15 shows another example of a schematic interaction diagram of the method proposed in this application.
- Fig. 16 shows an example of the second information.
- Fig. 17 shows a schematic block diagram of a communication device provided by this application.
- Fig. 18 shows a schematic block diagram of a communication device provided by this application.
- FIG. 1 shows a schematic diagram of a system architecture applicable to an embodiment of the present application.
- the access network equipment can be an access point (access point, AP) in WLAN, a base station (base transceiver station, BTS) in GSM or CDMA, or a base station (nodeB, NB) in WCDMA, or a new
- the gNB in the wireless system (new radio, NR) system can also be an evolved base station (evolutional node B, eNB or eNodeB) in LTE, and in a 5G network, it can also be a radio access network device (radio access network, RAN), which is not limited in this embodiment.
- the management plane network element may be a network management network element (also called network management).
- the control plane network element may be a mobility management network element.
- the mobility management network element is a network element used to manage the mobility of terminal equipment.
- MME mobility management entity
- AMF Access and mobility management function network element
- the access and mobility management functional network element may still be an AMF network element, or may have other names, which are not limited in this application.
- the user plane network element may be a user plane function (user plane function, UPF) network element.
- UPF user plane function
- the user plane network element may still be a UPF network element, or may have other names, which are not limited in this application.
- the user plane network element may also be a serving gateway (serving gateway, SGW).
- serving gateway serving gateway
- the first network element in this application may be an access network device, a host, or the like.
- FIG. 3 shows a solution provided by the present application. It should be understood that the method shown in FIG. 3 is applicable to the system architecture shown in FIG. 1 .
- a network management network element acquires a first correspondence and a second correspondence.
- the user may configure the first correspondence and the second correspondence to the network management network element.
- the network management network element may acquire the first correspondence and the second correspondence in other ways, for example, the network management network element generates the first correspondence and the second correspondence locally. This application is not limited to this.
- the first correspondence is the correspondence between the use identifier of the Internet protocol (internet protocol, IP) address and the service type applicable to the IP address.
- IP Internet protocol
- the first correspondence relationship may also be called a transmission common configuration template, or have other names, which are not limited in this application.
- the second correspondence is used to determine the usage identifier of the IP address.
- the second correspondence can also be called a transmission parameter usage policy, or has other names, which are not limited in this application.
- the first correspondence is described below.
- the first correspondence may include any of the following situations.
- the IP address is associated with the usage identifier of the IP address through the interface ID, and the service type is associated with the IP address through the IP address ID. That is, there is an indirect correlation between the usage identifier and the type of service to which the IP address applies.
- the upper-layer application determines the IP address of the upper-layer application by referring to the ID of the IP address.
- Management plane (management plane, MP) service, control plane (control plane, CP) service, user plane (user plane, UP) service, IKE service, IP clock (IP clock, IPCLK) service.
- the usage identifier of the IP address is associated with the service type applicable to the IP address through the interface ID.
- usage identifier #1 is associated with service type #A through interface ID
- usage identifier #2 is associated with service type #B through interface ID
- usage identifier #3 is associated with service type # through interface ID C is connected.
- the second corresponding relationship will be described below.
- the second corresponding relationship may include any of the following situations.
- the second correspondence includes the correspondence between the network segment of the IP address and the usage identifier of the IP address.
- Table 1 is only an example. In some cases, there may not be a one-to-one correspondence between IP address network segments and IP address usage identifiers. For example, multiple network segments may correspond to one usage identifier. No restrictions.
- Operators can plan IP addresses applicable to the same service type under one network segment. Therefore, in some scenarios, the service type applicable to the IP address can be determined through the network segment of the IP address.
- the second correspondence includes a correspondence between the VLAN identifier and the usage identifier of the IP address.
- Table 2 is only an exemplary description, and in some cases, there may not be a one-to-one correspondence between the VLAN identifier and the usage identifier of the IP address, for example, multiple VLAN identifiers may correspond to one usage identifier. No restrictions.
- the second correspondence includes the correspondence between the combination of the network segment of the IP address and the VLAN identifier and the usage identifier of the IP address.
- the network segment of the IP address VLAN ID IP address usage identification Segment#A VLAN#A Use ID #1 Segment#B VLAN#B Use ID #2
- Table 3 is only an exemplary description, and in some cases, multiple network segments and multiple VLAN IDs may correspond to one purpose ID. No restrictions.
- the second correspondence can also be the correspondence between the special field in the VLAN identifier and the usage identifier of the IP address, or the correspondence between the special field in the IP address and the usage identifier of the IP address relationship, etc., which are not limited in this application.
- the VLAN identifiers in the foregoing cases 2 and 3 may be identifiers of blacklisted VLANs, or identifiers of whitelisted VLANs.
- VLAN #A and purpose ID #1 in Table 2 indicate that the usage ID corresponding to other VLANs except VLAN #A is usage ID #1.
- the VLAN ID in case 2 is the ID of a whitelist VLAN, hereinafter, if the VLAN ID generated by the first network element is VLAN#A, then the first network element can determine the VLAN# according to the information included in Table 2.
- the usage ID corresponding to A is usage ID #1.
- the network management network element can obtain the second corresponding relationship, and when the second corresponding relationship needs to be updated, it only needs to be updated on the network management network element, and there is no need to update multiple first network elements. Therefore, the complexity of maintenance can be reduced by adopting the solution of the present application.
- the user configures the second corresponding relationship to the network management network element, he can use json, xml, or script, etc., without limitation.
- the second correspondence needs to be updated, there is no need to upgrade the software.
- the first network element generates an identifier of the first VLAN and a first IP address according to a router advertisement (router advertisement, RA) message.
- a router advertisement route advertisement, RA
- the first network element can automatically generate an IP address by using stateless address autoconfiguration (SLAAC) technology according to the RA message, and start Duplicate address detection (DAD).
- SLAAC stateless address autoconfiguration
- DAD start Duplicate address detection
- the first IP address may be an IP address determined by the first network element according to DAD detection.
- using the SLAAC technology to automatically generate the IP address includes using the EUI64 or 7217 protocol to automatically generate the IP address.
- the first network element may also automatically generate an IP address by using the SLAAC technology according to the RA message, and start DAD detection.
- the first IP address may be an IP address determined by the first network element according to DAD detection.
- the first IP address is the local IKE address.
- the first IP address is the outer IP address.
- Fig. 6 shows the packet structure in the IPsec scenario.
- the IP address in the IPsec scenario will be described below with reference to FIG. 6 .
- the IP address includes an outer layer IP address and an inner layer IP address.
- the outer layer IP address it may be generated by the first network element according to the RA message.
- the inner layer IP address it is not generated by the first network element according to the RA message, which will be described in the following, and will not be specifically described here.
- the first network element sends the identifier of the first VLAN and the first IP address to the network management network element.
- the network management network element receives the identifier of the first VLAN and the first IP address.
- the first IP address includes prefix information of the first IP address.
- the network management network element determines the usage identifier of the first IP address according to the second correspondence relationship.
- the network management network element determining the usage identifier of the first IP address according to the second correspondence may include any of the following situations.
- the network management network element may determine the usage identifier of the first IP address according to the network segment of the first IP address and the second corresponding relationship.
- the network management network element may determine the usage identifier of the first IP address according to the identifier of the first VLAN and the second corresponding relationship.
- the network management network element may determine the usage identifier of the first IP address according to the identifier of the first VLAN, the network segment of the first IP address, and the second corresponding relationship.
- the network management network element sends first information to the first network element, where the first information includes the usage identifier of the first IP address, the identifier of the first VLAN, and the first IP address. Correspondingly, the first network element receives the first information.
- the first IP address includes prefix information of the first IP address.
- the above steps S303-S305 may be performed during the process of establishing a maintenance channel between the first network element and the network management network element.
- the maintenance channel is a management plane MP channel.
- the first network element may send the identifier of the first VLAN and the first IP address to the network management network element through a dynamic host configuration protocol (dynamic host configuration protocol, DHCP) request message; in S305, the network The management network element may send the first information to the first network element through a Dynamic Host Configuration Protocol Acknowledgment (DHCP ACK) message.
- DHCP Dynamic Host Configuration Protocol Acknowledgment
- the above steps S303-S305 may be performed after the maintenance channel between the first network element and the network management network element is established. That is, after the MP channel is established, it is sent through the MP channel.
- the first network element may send the IP address of the first network element to the network management network element; or, the network management network element may send the network address to the first network element. IP address of the management NE.
- the network management network element may send the first correspondence to the first network element.
- the first network element acquires the first corresponding relationship from the network management network element.
- the network management network element may send the first correspondence to the first network element after the establishment of the maintenance channel with the first network element is completed.
- the network management network element may configure the interface (VLAN sub-interface) where the purpose identifier in the first correspondence is located to an Ethernet port (ethernet port, ETHPORT).
- the network management network element can serve multiple first network elements at the same time, and the network management network element configures the same first corresponding relationship for each first network element. Therefore, the network management network element does not need to perform differential configuration on each first network element, which reduces the complexity of network management network element configuration. Subsequently, if the first corresponding relationship is updated, the network management network element only needs to reconfigure the updated first corresponding relationship to each first network element. Therefore, the complexity of maintenance can be reduced by adopting the solution of the present application.
- the first network element determines a service type applicable to the first IP address according to the first correspondence and the usage identifier of the first IP address.
- the determination of the service type applicable to the first IP address by the first network element will be described below.
- the usage identifier of the first IP address is usage identifier #1
- the identifier of the first VLAN is VLAN 100
- the usage identifier of the first IP address is usage identifier #1
- the identifier of the first VLAN is VLAN 100
- the first network element can obtain the first corresponding relationship and the first The usage identifier of the IP address determines the type of service to which the first IP address applies.
- the operator does not need to plan the transmission configuration of the first network element.
- the first network element After the first network element generates the first IP address, the first network element can determine the applicable service type of the first IP address.
- FIG. 9 shows a solution provided by the present application. It should be understood that the method shown in FIG. 9 is applicable to the system architecture shown in (b) in FIG. 1 .
- the network management network element acquires a first corresponding relationship.
- the first correspondence is the correspondence between the usage identifier of the IP address and the service type to which the IP address applies.
- the user may configure the first correspondence to the network management network element.
- the usage identifier is associated with the IP address through the interface ID, and the IP address is associated with the service type through the IP address ID.
- the network management network element sends the first correspondence to the first network element.
- the first network element acquires the first correspondence.
- the network management network element may establish a maintenance channel with the first network element. After the maintenance channel is established, the network management network element sends the first corresponding relationship to the first network element.
- the network management network element configures the interface where the usage identifier in the first correspondence relationship is located to a loopback (LOOPBACK) port.
- LOOPBACK loopback
- the first network element sends a first request message to the network management network element.
- the network management network element receives the first request message.
- the first request message is used to request the first IP address.
- the first request message includes the usage identifier of the first IP address.
- the first IP address is an inner layer IP address.
- the first correspondence includes usage identifier #1 and usage identifier #2.
- the first network element sends the first request message to the network management network element according to the usage identifier included in the first correspondence.
- the first request message may include usage identifier #1 and usage identifier #2. That is, the first request message is used to request the inner IP address corresponding to the usage identifier #1 and the inner IP address corresponding to the usage identifier #2.
- the first network element may send the first request message to the network management network element after the maintenance channel with the network management network element is established and the first corresponding relationship is obtained.
- the network management network element determines the first IP address from the target IP address pool.
- the target IP address pool corresponds to the usage identifier of the first IP address.
- At least one target IP address pool and a corresponding usage identifier of each target IP address pool are pre-configured in the network management network element.
- the user may configure the target IP address pool and the purpose identifier corresponding to the target IP address pool to the network management.
- the network management network element may determine the first IP address from the target IP address pool according to the first request message.
- the first request message includes usage identifier #1 and usage identifier #2
- the network management network element determines IP address #1 (an example of the first IP address) from the target address pool corresponding to usage identifier #1.
- IP address #2 (another example of the first IP address) is determined in the target address pool corresponding to the identifier #2.
- the network management network element sends first information to the first network element, where the first information includes the first IP address and a usage identifier of the first IP address. Correspondingly, the first network element receives the first information.
- the first IP address is an inner layer IP address. That is, in the IPsec scenario, the first network element acquires the outer layer IP address and the inner layer IP address in different ways. Specifically, the inner layer IP address is allocated to the first network element by the network management network element.
- the network management network element may send the first information to the first network element after the establishment of the maintenance channel with the first network element is completed.
- the first network element determines the service type applicable to the first IP address according to the first correspondence and the usage identifier of the first IP address.
- the usage identifier of the first IP address is usage identifier #1, and the first IP address is ::2408:8161:2100:0000::1/64, because the usage identifier in the first correspondence #1 corresponds to service type #A, and the first network element may determine that the first IP address is applicable to service type #A.
- the network management network element may assign the inner layer IP address and the usage identification of the inner layer IP address to the first network element, so that the first network element may use the inner IP address according to the usage identification and
- the first correspondence is to determine the service type applicable to the inner layer IP address.
- FIG. 12 shows a solution provided by the present application. It should be understood that the method shown in FIG. 12 is applicable to the system architecture shown in (a) in FIG. 1 .
- the network management network element acquires a third corresponding relationship.
- the third correspondence is a correspondence between a network segment of an IP address and a service type applicable to the IP address.
- the user may configure the third corresponding relationship to the network management network element.
- network segment #A corresponds to service type #A through IP address ID
- network segment #B corresponds to service type #B and service type #C through IP address ID.
- the network management network element sends the third corresponding relationship to the first network element.
- the first network element acquires the third corresponding relationship from the network management network element.
- the network management network element may send the third corresponding relationship to the first network element after the establishment of the maintenance channel with the first network element is completed.
- the network management network element may configure the interface (VLAN sub-interface) corresponding to the network segment in the third correspondence to the ETHPORT of the first network element.
- the network management network element can serve multiple first network elements at the same time, and the network management network element configures the same third corresponding relationship for each first network element. Therefore, the network management network element does not need to perform differential configuration on each first network element, which reduces the complexity of network management network element configuration. Subsequently, if the third corresponding relationship is updated, the network management network element only needs to reconfigure the updated third corresponding relationship to each first network element. Therefore, the complexity of maintenance can be reduced by adopting the solution of the present application.
- the first network element generates a first IP address according to the RA message.
- the first network element may also generate the identifier of the first VLAN according to the received RA message.
- the first network element determines a service type applicable to the first IP address according to the network segment of the first IP address and the third corresponding relationship.
- the network segment of the first IP address is network segment #A
- the identifier of the first VLAN is VLAN100
- the first The network element determines that the first IP address is applicable to service type #A.
- the first network element may determine the service type applicable to the first IP address according to the third correspondence and the prefix of the first IP address included in the RA message.
- FIG. 15 shows a solution provided by the present application. It should be understood that the method shown in FIG. 15 is applicable to the system architecture shown in (a) in FIG. 1 .
- the network management network element acquires a third correspondence, where the third correspondence is a correspondence between a network segment of an IP address and a service type applicable to the IP address.
- the first network element generates the identifier of the first VLAN and the first IP address according to the RA message.
- the first network element sends the identifier of the first VLAN and the first IP address to the network management network element.
- the network management network element acquires the identifier of the first VLAN and the first IP address from the first network element.
- the first IP address includes prefix information of the first IP address.
- the network management network element determines the service type applicable to the first IP address according to the third correspondence and the network segment of the first IP address.
- the network management network element sends second information to the first network element, where the second information includes a service type applicable to the first IP address.
- the first network element receives the second information.
- the second information may also include the identifier of the first VLAN and the first IP address. It should be understood that the first IP address includes prefix information of the first IP address.
- the identifier of the first VLAN included in the second information is VLAN100
- the first IP address is ::2408:8161:2100:0000::1/64
- the service type applicable to the first IP address It is business type #A.
- the network management network element may configure the second information to the ETH interface of the first network element.
- the above step S1503 may be performed during the process of establishing a maintenance channel between the first network element and the network management network element.
- the first network element may send the identifier of the first VLAN and the first IP address to the network management network element through a DHCP request message.
- the above step S1505 may be performed after the maintenance channel between the first network element and the network management network element is established.
- the network management network element obtains the third corresponding relationship, and determines the service type applicable to the first IP address reported by the first network element according to the third corresponding relationship, and then notifies the first network element of the applicable service type of the first IP address business type. Subsequently, if the third corresponding relationship needs to be updated, it only needs to be updated on the network management network element. Therefore, the complexity of maintenance can be reduced by adopting the solution of the present application.
- FIG. 17 shows a communication device (such as a first network element, or a network management network element) provided by an embodiment of the present application.
- the communication device includes a transceiver unit 1701 and a processing unit 1702 .
- the transceiver unit 1701 may be used to implement corresponding communication functions.
- the transceiver unit 1701 may also be called a communication interface or a communication unit.
- the processing unit 1702 may be configured to perform processing operations.
- the device further includes a storage unit, which can be used to store instructions and/or data, and the processing unit 1702 can read the instructions and/or data in the storage unit, so that the device implements the above-mentioned method embodiments.
- Actions of the device (such as the first network element, and such as the network management network element).
- the device may be the first network element in the foregoing embodiments, or may be a component (such as a chip) of the first network element.
- the device can implement the steps or processes corresponding to the execution of the first network element in the above method embodiment, wherein the transceiver unit 1701 can be used to perform operations related to the transmission and reception of the first network element in the above method embodiment, and the processing unit 1702 It may be used to perform operations related to the processing of the first network element in the above method embodiments.
- the transceiver unit 1701 is configured to obtain the first correspondence from the network management network element, the first correspondence is the correspondence between the usage identifier of the Internet protocol IP address and the service type applicable to the IP address; the transceiver unit 1701, further configured to acquire first information from the network management network element, where the first information includes a usage identifier corresponding to the first IP address; a processing unit 1702, configured to determine according to the first correspondence and the usage identifier corresponding to the first IP address Service type applicable to the first IP address.
- the processing unit 1702 is further configured to generate the first IP address according to the router advertisement RA information received from the interface corresponding to the first virtual local area network VLAN; the transceiver unit 1701 is further configured to send the first IP address to the network management network element address and identification of the first VLAN.
- the transceiver unit 1701 is configured to obtain a third correspondence from the network management network element, the third correspondence is the correspondence between the network segment of the IP address and the service type applicable to the IP address; the processing unit 1702 , for generating the first IP address according to the RA information received from the interface corresponding to the first VLAN; the processing unit 1702 is also used for determining the first IP address according to the third corresponding relationship and the network segment of the first IP address - the service type to which the IP address applies.
- the device may be the network management network element in the foregoing embodiments, or a component (such as a chip) of the network management network element.
- the device can implement the steps or processes corresponding to the execution of the network management network element in the above method embodiment, wherein the transceiver unit 1701 can be used to perform operations related to the transmission and reception of the network management network element in the above method embodiment, and the processing unit 1702 It can be used to perform operations related to the processing of the network management network element in the above method embodiments.
- the transceiving unit 1701 is configured to obtain the second correspondence, and the second correspondence is used to determine the usage identifier of the IP address; the transceiver unit 1701 is also configured to obtain the identifier and the ID of the first VLAN from the first network element.
- the first IP address; the processing unit 1702 is configured to determine the usage identifier of the first IP address according to the second correspondence; the transceiver unit 1701 is also configured to send the first information to the first network element, the first information including the first IP The usage ID of the address.
- the transceiver unit 1701 is also used to obtain the first correspondence, the first correspondence is the correspondence between the usage identifier of the IP address and the service type applicable to the IP address; the transceiver unit 1701 is also used to send the first network element Send the first correspondence.
- the transceiver unit 1701 is configured to obtain the first IP address from the target IP address pool, and the IP addresses included in the target IP address pool are applicable to the same service type; the processing unit 1702 is configured to obtain the first IP address according to the target IP address pool.
- the service type applicable to the address pool determines the usage identifier of the first IP address; the transceiver unit 1701 is further configured to send first information to the first network element, and the first information includes the first IP address and the usage identifier of the first IP address.
- the transceiver unit 1701 is configured to acquire the third correspondence, the third correspondence being the correspondence between the network segment of the IP address and the service type applicable to the IP address; the transceiver unit 1701 is also configured to send The first network element sends the third correspondence.
- the transceiver unit 1701 is configured to acquire a third correspondence, and the third correspondence is the correspondence between the network segment of the IP address and the service type applicable to the IP address;
- the first network element obtains the identifier of the first VLAN and the first IP address;
- the processing unit 1702 is configured to determine the service type applicable to the first IP address according to the third corresponding relationship and the network segment of the first IP address;
- the transceiver unit 1701 It is also used to send second information to the first network element, where the second information includes the service type applicable to the first IP address.
- unit here may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor for executing one or more software or firmware programs (such as a shared processor, a dedicated processor, or a group processor, etc.) and memory, incorporated logic, and/or other suitable components to support the described functionality.
- ASIC application specific integrated circuit
- processor for executing one or more software or firmware programs (such as a shared processor, a dedicated processor, or a group processor, etc.) and memory, incorporated logic, and/or other suitable components to support the described functionality.
- the device may specifically be the first network element in the above-mentioned embodiments, and may be used to execute each process corresponding to the first network element in the above-mentioned method embodiments and/or steps, or, the device may specifically be the network management network element in the above embodiments, and may be used to execute the various processes and/or steps corresponding to the network management network elements in the above method embodiments. In order to avoid repetition, it is not repeated here repeat.
- the above-mentioned communication device has the function of implementing the corresponding steps performed by the device (such as the first network element, or the network management network element) in the above-mentioned method.
- the functions described above may be implemented by hardware, or may be implemented by executing corresponding software on the hardware.
- the hardware or software includes one or more modules corresponding to the above functions; for example, the transceiver unit can be replaced by a transceiver (for example, the sending unit in the transceiver unit can be replaced by a transmitter, and the receiving unit in the transceiver unit can be replaced by a receiver computer), and other units, such as a processing unit, may be replaced by a processor to respectively perform the sending and receiving operations and related processing operations in each method embodiment.
- transceiver unit 1701 may also be a transceiver circuit (for example, may include a receiving circuit and a sending circuit), and the processing unit may be a processing circuit.
- the device in FIG. 17 may be the device in the foregoing method embodiment (such as the first network element, or the network management network element), or it may be a chip or a chip system, for example: a system on chip (system on chip, SoC).
- the transceiver unit may be an input-output circuit or a communication interface;
- the processing unit is a processor or a microprocessor or an integrated circuit integrated on the chip. It is not limited here.
- the embodiment of the present application also provides a communication device, as shown in FIG. 18 , including: a processor 1801 and a communication interface 1802 .
- the processor 1801 is configured to execute computer programs or instructions stored in the memory 1803, or read data stored in the memory 1803, so as to execute the methods in the above method embodiments.
- the communication interface 1802 is used for receiving and/or sending signals.
- the processor 1801 is configured to control the communication interface 1802 to receive and/or send signals.
- the communications device further includes a memory 1803, and the memory 1803 is used to store computer programs or instructions and/or data.
- the memory 1803 can be integrated with the processor 1801, or can also be set separately.
- the processor 1801, the communication interface 1802, and the memory 1803 are interconnected via a bus 1804;
- the bus 1804 may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA ) bus, etc.
- PCI peripheral component interconnect
- EISA extended industry standard architecture
- the above-mentioned bus 1804 can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 18 , but it does not mean that there is only one bus or one type of bus.
- the communication device is configured to implement the operations performed by the first network element or the network management network element in the foregoing method embodiments.
- the processor 1801 is configured to execute the computer programs or instructions stored in the memory 1803, so as to implement related operations of the first network element in the foregoing method embodiments. For example, the method performed by the first network element in the embodiment shown in FIG. 3 .
- the processor 1801 is configured to execute computer programs or instructions stored in the memory 1803, so as to implement related operations of the network management network element in the above method embodiments. For example, the method performed by the network management network element in the embodiment shown in FIG. 3 .
- the processor (such as the processor 1801) mentioned in the embodiment of the present application may be a central processing unit (central processing unit, CPU), a network processor (network processor, NP) or a combination of CPU and NP.
- the processor may further include hardware chips.
- the aforementioned hardware chip may be an application-specific integrated circuit (application-specific integrated circuit, ASIC), a programmable logic device (programmable logic device, PLD) or a combination thereof.
- the aforementioned PLD may be a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), a general array logic (generic array logic, GAL) or any combination thereof.
- the memory (such as the memory 1803 ) mentioned in the embodiment of the present application may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memory.
- the non-volatile memory can be read-only memory (read-only memory, ROM), programmable read-only memory (programmable ROM, PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically programmable Erases programmable read-only memory (electrically EPROM, EEPROM) or flash memory.
- Volatile memory can be random access memory (RAM), which acts as external cache memory.
- the technical solution of the embodiment of the present application can be applied to various communication systems, such as: global system of mobile communication (global system of mobile communication, GSM) system, code division multiple access (code division multiple access, CDMA) system, broadband code division multiple access (wideband code division multiple access, WCDMA) system, general packet radio service (general packet radio service, GPRS), long term evolution (long term evolution, LTE) system, LTE frequency division duplex (frequency division duplex, FDD) system, LTE Time division duplex (time division duplex, TDD), universal mobile telecommunications system (universal mobile telecommunications system, UMTS), global interconnection microwave access (worldwide interoperability for microwave access, WiMAX) communication system, the future fifth generation (5th generation, 5G) system or new radio (new radio, NR), etc.
- GSM global system of mobile communication
- CDMA code division multiple access
- WCDMA wideband code division multiple access
- general packet radio service general packet radio service
- GPRS general packet radio service
- long term evolution long term
- the disclosed systems, devices and methods may be implemented in other ways.
- the device embodiments described above are only illustrative.
- the division of the units is only a logical function division. In actual implementation, there may be other division methods.
- multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented.
- the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
- the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
- the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium.
- the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
- the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disc and other media that can store program codes. .
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本申请提供了一种通信方法和装置,该方法包括第一网元从网络管理网元获取第一对应关系,第一对应关系为互联网协议IP地址的用途标识和IP地址适用的业务类型之间的对应关系。第一网元从网络管理网元获取第一信息,第一信息包括第一IP地址对应的用途标识。第一网元根据第一对应关系以及第一IP地址对应的用途标识,确定第一IP地址适用的业务类型。根据本申请的方案,在IP地址适用的业务类型有多种,且多种业务类型使用多个IP地址的情况下,第一网元可以根据从网络管理网元获取的第一对应关系和第一IP地址的用途标识,确定第一IP地址适用的业务类型。
Description
本申请要求于2021年10月09日提交中国专利局、申请号为202111175630.9、申请名称为“通信方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及通信技术领域,并且更具体地,涉及一种通信方法和装置。
在当前无线网络中,由于每个设备(如基站)传输的管理面本端网络协议(internet protocol,IP)地址、信令面本端IP地址、用户面本端IP地址、因特网密钥交换(internet key exchange,IKE)本端IP地址等不同,另外,由于传输承载网的差异,每个设备的虚拟局域网(virtual local area network,VLAN)、接口IP、路由也不同,因此需要对每个设备规划传输相关的配置参数,花费时间比较长。另外,如果对传输承载网进行传输调整,每个设备也必须重新规划调整,无法自适应,浪费人力。
互联网协议版本6(internet protocol version 6,IPv6)支持采用无状态地址配置(stateless address autoconfiguration,SLAAC)技术自动生成IP地址。当主机上线后,主机会发送路由器请求(router solicit,RS)消息给路由器,请求地址配置;路由器收到RS消息后发送路由器通告(router advertisement,RA)消息给主机,其中携带有用来进行地址自动配置的前缀等信息;主机收到RA消息后,获得地址前缀信息,还有地址相关的参数信息,根据SLAAC规定的方法自动生成IPv6地址。
然而,当一个主机支持多种业务类型,且多种业务类型使用多个IP地址时,主机无法确定采用SLAAC技术自动生成的IP地址适用的业务类型。例如,如图2所示,当主机生成IP地址#1时,主机无法确定IP地址#1适用于哪一种业务类型。因此,如何确定自动生成的IP地址适用的业务类型是一个亟待解决的问题。
发明内容
本申请提供一种通信方法和装置,使得主机可以确定自动生成的IP地址适用的业务类型。
第一方面,提供了一种通信方法,包括:
第一网元从网络管理网元第一对应关系,第一对应关系为互联网协议IP地址的用途标识和IP地址适用的业务类型之间的对应关系。第一网元从网络管理网元获取第一信息,第一信息包括第一IP地址的用途标识。第一网元根据第一对应关系以及第一IP地址的用途标识,确定第一IP地址适用的业务类型。
其中,IP地址适用的业务类型包括以下中的任意一种:
管理面MP业务、信令面CP业务、用户面UP业务、因特网密钥交换IKE业务、IP时钟业务。
根据本申请的方案,在IP地址适用的业务类型有多种,且多种业务类型使用不同IP地址的情况下,第一网元可以根据从网络管理网元获取的第一对应关系和第一IP地址的用途标识,确定第一IP地址适用的业务类型。
网络管理网元可以同时服务多个第一网元,网络管理网元向每个第一网元配置同样的第一对应关系。因此,网络管理网元可以不对每个第一网元进行差异性配置,降低了网络管理网元配置的复杂度。后续如果第一对应关系有更新,网络管理网元只需重新向每个第一网元配置更新后的第一对应关系。因此,采用本申请的方案可以降低维护的复杂度。
结合第一方面,在第一方面的某些实现方式中,在第一网元从网络管理网元获取第一信息之前,该方法还包括:
第一网元根据路由器通告RA报文,生成第一VLAN的标识和第一IP地址。第一网元向网络管理网元发送第一IP地址和第一VLAN的标识。
应理解,第一IP地址包括第一IP地址的前缀信息。
根据本申请的方案,运营商无需规划第一网元的传输配置,当第一网元生成第一IP地址后,第一网元可以确定第一IP地址适用的业务类型。
结合第一方面,在第一方面的某些实现方式中,第一信息还包括第一IP地址和第一VLAN的标识。
结合第一方面,在第一方面的某些实现方式中,在第一网元从网络管理网元获取第一信息之前,该方法还包括:
第一网元向网络管理网元发送第一请求消息,第一请求消息用于请求第一IP地址,第一请求消息包括所述第一IP地址的用途标识,第一IP地址为内层IP地址。
第一信息还包括第一IP地址。
根据本申请的方案,在IPsec场景下,可以由网络管理网元向第一网元分配内层IP地址。
第二方面,提供了一种通信方法,包括:
网络管理网元获取第一对应关系和第二对应关系,其中,所述第一对应关系为IP地址的用途标识和IP地址适用的业务类型的对应关系,第二对应关系用于确定IP地址的用途标识。网络管理网元从第一网元获取第一VLAN的标识和第一IP地址。网络管理网元根据第二对应关系,确定第一IP地址的用途标识。网络管理网元向第一网元发送第一信息,第一信息包括第一IP地址的用途标识。网络管理网元向第一网元发送第一对应关系。
根据本申请的方案,网络管理网元可以向第一网元发送第一IP地址的用途标识和第一对应关系,从而使得第一网元根据第一IP地址的用途标识和第一对应关系确定第一IP地址适用的业务类型。
根据本申请的方案,网络管理网元可以同时服务多个第一网元,网络管理网元向每个第一网元配置同样的第一对应关系。因此,网络管理网元可以不对每个第一网元进行差异性配置,降低了网络管理网元配置的复杂度。后续如果第一对应关系有更新,网络管理网元只需重新向每个第一网元配置更新后的第一对应关系。因此,采用本申请的方案可以降低维护的复杂度。
此外,网络管理网元可以获取第二对应关系,当第二对应关系需要更新时,只需要在网络管理网元上进行更新,不需要对多个第一网元进行更新。因此,采用本申请的方案可以降低维护的复杂度。
结合第二方面,在第二方面的某些实现方式中,第二对应关系包括以下中的任一项:
IP地址的网段与IP地址的用途标识的对应关系、VLAN的标识与IP地址的用途标识的对应关系、IP地址的网段和VLAN标识的结合与IP地址的用途标识的对应关系。
其中,VLAN的标识为黑名单VLAN的标识或白名单VLAN的标识。
结合第二方面,在第二方面的某些实现方式中,第一信息还包括第一VLAN的标识和第一IP地址。
第三方面,提供了一种通信方法,包括:
网络管理网元向第一网元发送第一对应关系,第一对应关系为IP地址的用途标识和IP地址适用的业务类型之间的对应关系。网络管理网元从所述第一网元接收第一请求消息,第一请求消息用于请求第一IP地址,第一请求消息包括第一IP地址的用途标识,第一IP地址为内层IP地址。网络管理网元从目标IP地址池中确定第一IP地址,目标IP地址池中与第一IP地址的用途标识对应。网络管理网元向第一网元发送第一信息,第一信息包括第一IP地址以及第一IP地址的用途标识。
根据本申请的方案,在IPsec场景下,网络管理网元可以向第一网元配置第一对应关系,进一步地网络管理网元向第一网元分配内层IP地址以及内层IP地址的用途标识,使得第一网元根据内层IP地址的用途标识和第一对应关系,确定内层IP地址适用的业务类型。
第四方面,提供了一种通信方法,包括:
第一网元从网络管理网元获取第三对应关系,第三对应关系为IP地址的网段和IP地址适用的业务类型之间的对应关系。第一网元根据RA报文,生成第一IP地址。第一网元根据第三对应关系以及第一IP地址的网段,确定第一IP地址适用的业务类型。
根据本申请的方案,第一网元可以根据第三对应关系确定自动生成的第一IP地址适用的业务类型。
网络管理网元可以同时服务多个第一网元,网络管理网元向每个第一网元配置同样的第三对应关系。因此,网络管理网元可以不对每个第一网元进行差异性配置,降低了网络管理网元配置的复杂度。后续如果第三对应关系有更新,网络管理网元只需重新向每个第一网元配置更新后的第三对应关系。因此,采用本申请的方案可以降低维护的复杂度。
结合第四方面,在第四方面的某些实现方式中,IP地址适用的业务类型包括以下中的任意一种:
管理面MP业务、信令面CP业务、用户面UP业务、因特网密钥交换IKE业务、IP时钟业务。
第五方面,提供了一种通信方法,包括:
网络管理网元获取第三对应关系,第三对应关系为IP地址的网段和IP地址适用的业务类型之间的对应关系。网络管理网元向第一网元发送第三对应关系。
结合第五方面,在第五方面的某些实现方式中,IP地址适用的业务类型包括以下中的任意一种:
管理面MP业务、信令面CP业务、用户面UP业务、因特网密钥交换IKE业务、IP时钟业务。
第六方面,提供了一种通信方法,包括:
网络管理网元获取第三对应关系,第三对应关系为IP地址的网段和IP地址适用的业务类型之间的对应关系。网络管理网元从第一网元获取第一VLAN的标识和第一IP地址。网络管理网元根据第三对应关系以及第一IP地址的网段,确定第一IP地址适用的业务类型。网络管理网元向第一网元发送第二信息,第二信息包括第一IP地址适用的业务类型。
根据本申请的方案,网络管理网元获取第三对应关系,并根据第三对应关系确定第一IP地址适用的业务类型,进而通知第一网元第一IP地址适用的业务类型。后续如果第三对应关系需要更新,只需要在网络管理网元上进行更新。因此,采用本申请的方案可以降低维护的复杂度。
结合第六方面,在第六方面的某些实现方式中,第二信息还包括第一VLAN的标识以及第一IP地址。
结合第六方面,在第六方面的某些实现方式中,IP地址适用的业务类型包括以下中的任意一种:
管理面MP业务、信令面CP业务、用户面UP业务、因特网密钥交换IKE业务、IP时钟业务。
第七方面,提供一种通信装置,该通信装置包括用于执行第一方面或第四方面中任一种可能的实现方式中的方法的单元。
第八方面,提供一种通信装置,该通信装置包括用于执行第二方面、第三方面、第五方面、第六方面中任一种可能的实现方式中的方法的单元。
第九方面,提供一种通信设备,包括通信接口和处理器,可选地还可以包括存储器,处理器用于执行存储器存储的计算机程序或指令,使得该通信设备执行第一方面至第六方面中任一种可能实现方式中的方法。
其中,该存储器可以位于处理器中,也可以为与处理器通过相互独立的芯片来实现,本申请对此不具体限定。
第十方面,提供一种计算机可读存储介质,包括计算机程序,当计算机程序在计算机上运行时,使得计算机执行第一方面至第六方面中任一种可能实现方式中的方法。
第十一方面,提供一种芯片,芯片上设置有处理电路,处理电路用于执行该第一方面至第六方面中任一种可能实现方式中的方法。
第十二方面,提供了一种计算机程序产品,计算机程序产品包括:计算机程序(也可以称为代码,或指令),当计算机程序被运行时,使得计算机执行第一方面至第六方面中任一种可能实现方式中的方法。
图1示出了本申请实施例适用的通信系统的架构。
图2示出了本申请实施例适用的一种可能的场景。
图3示出了本申请所提出的方法的一例示意性交互图。
图4示出了第一对应关系的一个示例。
图5示出了第一对应关系的另一个示例。
图6示出了IPsec场景下的报文结构。
图7示出了根据第一对应关系确定第一IP地址适用的业务类型的一个示例。
图8示出了根据第一对应关系确定第一IP地址适用的业务类型的另一个示例。
图9示出了本申请所提出的方法的另一例示意性交互图。
图10示出了第一对应关系的另一个示例。
图11示出了根据第一对应关系确定第一IP地址适用的业务类型的另一个示例。
图12示出了本申请所提出的方法的另一例示意性交互图。
图13示出了第三对应关系的一个示例。
图14示出了根据第三对应关系确定第一IP地址适用的业务类型的一个示例。
图15示出了本申请所提出的方法的另一例示意性交互图。
图16示出了第二信息的一个示例。
图17示出本申请提供的通信装置的一种示意性框图。
图18示出本申请提供的通信设备的一种示意性框图。
下面将结合附图,对本申请中的技术方案进行描述。
图1示出了本申请实施例适用的系统架构的示意图。
下面结合图1对本申请包括的网元进行介绍。
1、接入网设备
该接入网设备可以是WLAN中的接入点(access point,AP),GSM或CDMA中的基站(base transceiver station,BTS),也可以是WCDMA中的基站(nodeB,NB),或者是新型无线系统(new radio,NR)系统中的gNB,还可以是LTE中的演进型基站(evolutional node B,eNB或eNodeB),在5G网络中,还可以是无线接入网设备(radio access network,RAN),本申请实施例并不限定。
2、管理面网元
管理面网元可以为网络管理网元(又可以称为网管)。
3、控制面网元
该控制面网元可以为移动性管理网元。移动性管理网元,是一种用于对终端设备的移动性进行管理的网元,例如,在4G网络中,可以是移动管理实体(mobility management entity,MME),在5G网络中,可以是接入和移动性管理功能网元(access and mobility management function,AMF)。在未来通信系统中,接入和移动性管理功能网元仍可以是AMF网元,或者,还可以有其它的名称,本申请不做限定。
4、用户面网元
在5G通信系统中,该用户面网元可以是用户面功能(user plane function,UPF)网元。在未来通信系统中,用户面网元仍可以是UPF网元,或者,还可以有其它的名称,本申请不做限定。
在4G通信系统中,该用户面网元还可以为服务网关(serving gateway,SGW)。
应理解,本申请中的第一网元可以为接入网设备、主机等。
图3示出了本申请提供的一种方案,应理解,图3所示的方法适用于图1所示的系统架构中。
S301,网络管理网元获取第一对应关系和第二对应关系。
在一种可能的实现方式中,可以由用户向网络管理网元配置第一对应关系和第二对应关系。或者,网络管理网元可以通过其他方式获取第一对应关系和第二对应关系,例如,网络管理网元本地生成第一对应关系和第二对应关系。本申请对此不作限定。
第一对应关系为互联网协议(internet protocol,IP)地址的用途标识与IP地址适用的业务类型之间的对应关系。该第一对应关系还可以称之为传输通用配置模板,或者有其他名称,本申请不予限制。
第二对应关系用于确定IP地址的用途标识,该第二对应关系还可以称之为传输参数用途策略,或者有其他名称,本申请不予限制。
下面对第一对应关系进行说明,可选地,第一对应关系可以包括以下情况中的任一种。
情况A:
IP地址通过接口ID与IP地址的用途标识关联起来,业务类型通过IP地址ID与IP地址关联起来。即,用途标识与IP地址适用的业务类型之间是间接关联起来的。
应理解,上层应用通过引用IP地址的ID的方式确定上层应用的IP地址。
一示例,如图4所示,IP地址通过ID=1的接口与用途标识#1关联,业务类型#A通过ID=1的IP地址与IP地址关联;IP地址通过ID=2的接口与用途标识#2关联,业务类型#B和业务类型#C通过ID=2的IP地址与IP地址关联。图4中:VLAN=0表示VLAN自动生成,:IP=::0表示IP地址自动生成。
关于:VLAN=0和:IP=::0的含义,下文不再赘述。
本申请多次提及IP地址适用的业务类型,IP地址适用的业务类型包括但不限于以下中的任一种:
管理面(management plane,MP)业务、控制面(control plane,CP)业务、用户面(user plane,UP)业务、IKE业务、IP时钟(IP clock,IPCLK)业务。
关于IP地址适用的业务类型,下文不再赘述。
情况B:
IP地址的用途标识与IP地址适用的业务类型之间通过接口ID关联。
一示例,如图5所示,用途标识#1通过接口ID与业务类型#A关联起来;用途标识#2通过接口ID与业务类型#B关联起来;用途标识#3通过接口ID与业务类型#C关联起来。
下面对第二对应关系进行说明,可选地,第二对应关系可以包括以下情况中的任一种。
情况1:
该第二对应关系包括IP地址的网段与IP地址的用途标识的对应关系。
例如,该第二对应关系如表1所示。
表1
IP地址的网段 | IP地址的用途标识 |
网段#A | 用途标识#1 |
网段#B | 用途标识#2 |
应理解,表1仅为示例性说明,在一些情况下,IP地址的网段与IP地址的用途标识之间可以不是一一对应的关系,例如,可以为多个网段对应一个用途标识。不予限制。
运营商可以将适用于相同业务类型的IP地址规划在一个网段下。因此,在一些场景中,可以通过IP地址的网段确定IP地址适用的业务类型。
情况2:
该第二对应关系包括VLAN标识与IP地址的用途标识的对应关系。
例如,该第二对应关系如表2所示。
表2
VLAN标识 | IP地址的用途标识 |
VLAN#A | 用途标识#1 |
VLAN#B | 用途标识#2 |
应理解,表2仅为示例性说明,在一些情况下,VLAN标识与IP地址的用途标识之间可以不是一一对应的关系,例如,可以为多个VLAN标识对应一个用途标识。不予限制。
情况3:
该第二对应关系包括IP地址的网段和VLAN标识的结合与IP地址的用途标识的对应关系。
例如,该第二对应关系如表3所示。
表3
IP地址的网段 | VLAN标识 | IP地址的用途标识 |
网段#A | VLAN#A | 用途标识#1 |
网段#B | VLAN#B | 用途标识#2 |
应理解,表3仅为示例性说明,在一些情况下,可以为多个网段与多个VLAN标识对应一个用途标识。不予限制。
应理解,除上述3种情况之外,第二对应关系还可以为VLAN标识中的特殊字段与IP地址的用途标识的对应关系,或者,IP地址中的特殊字段与IP地址的用途标识的对应关系等,本申请对此不作限定。
上述情况2和情况3中的VLAN标识可以为黑名单VLAN的标识,也可以为白名单VLAN的标识。
例如,当情况2中的VLAN标识为黑名单VLAN的标识时,表2中VLAN#A与用途标识#1,指示除VLAN#A之外的其他VLAN对应的用途标识为用途标识#1。
又例如,当情况2中的VLAN标识为白名单VLAN的标识时,下文中,如果第一网元生成的VLAN标识为VLAN#A,则第一网元根据表2包括的信息可以确定VLAN#A对应的用途标识为用途标识#1。
根据本申请的方案,网络管理网元可以获取第二对应关系,当第二对应关系需要更新时,只需要在网络管理网元上进行更新,不需要对多个第一网元进行更新。因此,采用本申请的方案可以降低维护的复杂度。
此外,用户在向网络管理网元配置第二对应关系时,可以采用json,或者xml,或者脚本等方式,不予限制。当第二对应关系需要更新时,无需升级软件。
S302,第一网元根据路由器通告(router advertisement,RA)报文,生成第一VLAN的标识和第一IP地址。
可选地,作为一种情况,在非IP安全(IPsec)场景下,第一网元可以根据该RA报文,采用无状态地址配置(stateless address autoconfiguration,SLAAC)技术自动生成IP地址,并且启动冲突地址检测(duplicate address detection,DAD)。第一IP地址可以为第一网元根据DAD检测,确定的IP地址。其中,采用SLAAC技术自动生成IP地址包括采用EUI64或者7217协议自动生成IP地址。
可选地,作为另一种情况,在IPsec场景下,第一网元同样可以根据该RA报文,采用SLAAC技术自动生成IP地址,并且启动DAD检测。第一IP地址可以为第一网元根据DAD检测,确定的IP地址。并且,该第一IP地址为IKE本端地址。换言之,第一IP地址为外层IP地址。
图6示出了IPsec场景下的报文结构。下面结合图6对IPsec场景下的IP地址进行说明。
由图6可知,IP地址包括外层IP地址和内层IP地址。对于外层IP地址而言,可以由第一网元根据RA报文生成。对于内层IP地址而言,并不是由第一网元根据RA报文生成的,下文中会有相应的描述,在此暂时不作具体说明。
S303,第一网元向网络管理网元发送第一VLAN的标识和第一IP地址。相应地,网络管理网元接收第一VLAN的标识和第一IP地址。
应理解,第一IP地址包括第一IP地址的前缀信息。
S304,网络管理网元根据第二对应关系,确定第一IP地址的用途标识。
可选地,网络管理网元根据第二对应关系,确定第一IP地址的用途标识可以包括以下中的任一种情况。
情况1:
与S301中的情况1对应,网络管理网元可以根据第一IP地址的网段以及第二对应关系,确定第一IP地址的用途标识。
情况2:
与S301中的情况2对应,网络管理网元可以根据第一VLAN的标识以及第二对应关系,确定第一IP地址的用途标识。
情况3:
与S301中的情况3对应,网络管理网元可以根据第一VLAN的标识结合第一IP地址的网段,以及第二对应关系,确定第一IP地址的用途标识。
S305,网络管理网元向第一网元发送第一信息,该第一信息包括第一IP地址的用途标识、第一VLAN的标识、第一IP地址。相应地,第一网元接收第一信息。
应理解,第一IP地址包括第一IP地址的前缀信息。
可选地,作为一种情况,上述步骤S303-S305可以在第一网元与网络管理网元之间建立维护通道的过程中进行。应理解,维护通道为管理面MP通道。
在此情况下,S303中,第一网元可以通过动态主机配置协议(dynamic host configuration protocol,DHCP)请求消息,向网络管理网元发送第一VLAN的标识和第一IP地址;S305中,网络管理网元可以通过动态主机配置协议确认(DHCP ACK)消息,向第一网元发送 第一信息。
可选地,作为另一种情况,上述步骤S303-S305可以在第一网元与网络管理网元之间的维护通道建立完成之后进行。即,在MP通道建立完成后,通过MP通道下发。
应理解,第一网元与网络管理网元建立维护通道时,第一网元可以向网络管理网元发送第一网元的IP地址;或者,网络管理网元可以向第一网元发送网络管理网元的IP地址。
关于第一网元与网络管理网元之间建立维护通道,下文不再赘述。
S306,网络管理网元可以向第一网元发送第一对应关系。相应地,第一网元从网络管理网元获取第一对应关系。
作为一种情况,网络管理网元可以在与第一网元之间的维护通道建立完成之后,向第一网元发送第一对应关系。
应理解,网络管理网元可以将第一对应关系中的用途标识所在的接口(VLAN子接口)配置到以太网端口(ethernet port,ETHPORT)。
根据本申请的方案,网络管理网元可以同时服务多个第一网元,网络管理网元向每个第一网元配置同样的第一对应关系。因此,网络管理网元可以不对每个第一网元进行差异性配置,降低了网络管理网元配置的复杂度。后续如果第一对应关系有更新,网络管理网元只需重新向每个第一网元配置更新后的第一对应关系。因此,采用本申请的方案可以降低维护的复杂度。
S307,第一网元根据第一对应关系以及第一IP地址的用途标识,确定第一IP地址适用的业务类型。
下面对第一网元确定第一IP地址适用的业务类型进行说明。
方式1:
与S301中的情况A对应。
一示例,如图7所示,第一IP地址的用途标识为用途标识#1,第一VLAN的标识为VLAN 100,第一IP地址为::2408:8161:2100:0000::1/64,由于第一对应关系中用途标识#1与业务类型#A对应,第一网元可以确定该第一IP地址适用于业务类型#A,同时确定VLAN100与ID=1的接口对应。
方式2:
与S301中的情况B对应。
一示例,如图8所示,第一IP地址的用途标识为用途标识#1,第一VLAN的标识为VLAN 100,第一IP地址为::2408:8161:2100:0000::1/64,由于第一对应关系中用途标识#1与业务类型#A对应,第一网元可以确定该第一IP地址适用于业务类型#A,同时确定VLAN100与ID=1的接口对应。
根据本申请的方案,在IP地址适用的业务类型有多种,且多种业务类型使用不同IP地址的情况下,第一网元可以根据从网络管理网元获取的第一对应关系和第一IP地址的用途标识,确定第一IP地址适用的业务类型。
此外,运营商无需规划第一网元的传输配置,当第一网元生成第一IP地址后,第一网元可以确定第一IP地址适用的业务类型。
图9示出了本申请提供的一种方案,应理解,图9所示的方法适用于图1中的(b)所示的系统架构中。
S901,网络管理网元获取第一对应关系。第一对应关系为IP地址的用途标识与IP地址适用的业务类型之间的对应关系。
在一种可能的实现方式中,可以由用户向网络管理网元配置第一对应关系。
一示例,如图10所示,用途标识通过接口ID与IP地址关联起来,IP地址通过IP地址ID与业务类型关联起来。
S902,网络管理网元向第一网元发送第一对应关系。相应地,第一网元获取第一对应关系。
在一种情况下,网络管理网元可以与第一网元建立维护通道。在维护通道建立完成之后,网络管理网元向第一网元发送第一对应关系。
应理解,此时,网络管理网元将第一对应关系中的用途标识所在的接口配置到环回(LOOPBACK)口。
S903,第一网元向网络管理网元发送第一请求消息。相应地,网络管理网元接收第一请求消息。
第一请求消息用于请求第一IP地址。第一请求消息包括第一IP地址的用途标识。第一IP地址为内层IP地址。
一示例,如图10所示,第一对应关系中包括用途标识#1和用途标识#2。第一网元根据第一对应关系中包括的用途标识,向网络管理网元发送第一请求消息。第一请求消息中可以包括用途标识#1和用途标识#2。即,第一请求消息用于请求用途标识#1对应的内层IP地址,以及用途标识#2对应的内层IP地址。
作为一种情况,第一网元可以在与网络管理网元之间的维护通道建立完成,并获取到第一对应关系之后,向网络管理网元发送第一请求消息。
S904,网络管理网元从目标IP地址池中确定第一IP地址。目标IP地址池与第一IP地址的用途标识对应。
应理解,网络管理网元中预配置了至少一个目标IP地址池,以及每个目标IP地址池的对应的用途标识。
一示例,可以由用户向网络管理配置目标IP地址池,以及目标IP地址池对应的用途标识。
网络管理网元可以根据第一请求消息,从目标IP地址池中确定第一IP地址。
一示例,第一请求消息中包括用途标识#1和用途标识#2,网络管理网元从用途标识#1对应的目标地址池中确定IP地址#1(第一IP地址的一例),从用途标识#2对应的目标地址池中确定IP地址#2(第一IP地址的另一例)。
S905,网络管理网元向第一网元发送第一信息,该第一信息包括第一IP地址以及第一IP地址的用途标识。相应地,第一网元接收该第一信息。
应理解,如图5所示,在IPsec场景下,该第一IP地址为内层IP地址。即,在IPsec场景下,第一网元获取外层IP地址和内层IP地址的方式是不同的。具体地,对于内层IP地址而言,是由网络管理网元向第一网元分配的。
作为一种情况,网络管理网元可以在与第一网元之间的维护通道建立完成之后,向第一网元发送第一信息。
S906,第一网元根据第一对应关系以及第一IP地址的用途标识,确定第一IP地址适 用的业务类型。
一示例,如图11所示,第一IP地址的用途标识为用途标识#1,第一IP地址为::2408:8161:2100:0000::1/64,由于第一对应关系中用途标识#1与业务类型#A对应,第一网元可以确定该第一IP地址适用于业务类型#A。
根据本申请的方案,在IPsec场景下,可以由网络管理网元向第一网元分配内层IP地址以及内层IP地址的用途标识,使得第一网元根据内层IP地址的用途标识和第一对应关系,确定内层IP地址适用的业务类型。
图12示出了本申请提供的一种方案,应理解,图12所示的方法适用于图1中的(a)所示的系统架构中。
S1201,网络管理网元获取第三对应关系。该第三对应关系为IP地址的网段和IP地址适用的业务类型的对应关系。
一种可能的情况,可以由用户向网络管理网元配置第三对应关系。
一示例,如图13所示,网段#A通过IP地址ID与业务类型#A对应;网段#B通过IP地址ID与业务类型#B和业务类型#C对应。
S1202,网络管理网元向第一网元发送第三对应关系。相应地,第一网元从网络管理网元获取第三对应关系。
作为一种情况,网络管理网元可以在与第一网元之间的维护通道建立完成之后,向第一网元发送第三对应关系。
应理解,网络管理网元可以将第三对应关系中网段所对应的接口(VLAN子接口)配置到第一网元的ETHPORT。
根据本申请的方案,网络管理网元可以同时服务多个第一网元,网络管理网元向每个第一网元配置同样的第三对应关系。因此,网络管理网元可以不对每个第一网元进行差异性配置,降低了网络管理网元配置的复杂度。后续如果第三对应关系有更新,网络管理网元只需重新向每个第一网元配置更新后的第三对应关系。因此,采用本申请的方案可以降低维护的复杂度。
S1203,第一网元根据RA报文,生成第一IP地址。
应理解,第一网元根据接收的RA报文还可以生成第一VLAN的标识。
该过程与S302相同,具体可以参考S302的描述。
S1204,第一网元根据第一IP地址的网段和第三对应关系,确定第一IP地址适用的业务类型。
一示例,如图14所示,第一IP地址的网段为网段#A,第一VLAN的标识为VLAN100,由于第三对应关系中网段#A与业务类型#A对应,则第一网元确定第一IP地址适用于业务类型#A。
在另一种可能的实现方式中,第一网元可以根据第三对应关系以及RA报文中包括的第一IP地址的前缀,确定第一IP地址适用的业务类型。
图15示出了本申请提供的一种方案,应理解,图15所示的方法适用于图1中的(a)所示的系统架构中。
S1501,网络管理网元获取第三对应关系,该第三对应关系为IP地址的网段和IP地址适用的业务类型的对应关系。
其中,该过程与S1201相同,具体可以参考S1201的描述。
S1502,第一网元根据RA报文,生成第一VLAN的标识和第一IP地址。
该过程与S302相同,具体可以参考S302的描述。
S1503,第一网元向网络管理网元发送第一VLAN的标识和第一IP地址。相应地,网络管理网元从第一网元获取第一VLAN的标识和第一IP地址。
应理解,第一IP地址包括第一IP地址的前缀信息。
S1504,网络管理网元根据第三对应关系以及第一IP地址的网段,确定第一IP地址适用的业务类型。
S1505,网络管理网元向第一网元发送第二信息,该第二信息包括第一IP地址适用的业务类型。相应地,第一网元接收该第二信息。
可选地,第二信息还可以包括第一VLAN的标识、第一IP地址。应理解,第一IP地址包括第一IP地址的前缀信息。
一示例,如图16所示,第二信息包括的第一VLAN的标识为VLAN100,第一IP地址为::2408:8161:2100:0000::1/64,第一IP地址适用的业务类型为业务类型#A。
应理解,网络管理网元可以将第二信息配置到第一网元的ETH接口。
作为一种情况,上述步骤S1503可以在第一网元与网络管理网元之间建立维护通道的过程中进行。例如,S1503中,第一网元可以通过DHCP请求消息,向网络管理网元发送第一VLAN的标识和第一IP地址。上述步骤S1505可以在第一网元与网络管理网元之间的维护通道建立完成之后进行。
根据本申请的方案,网络管理网元获取第三对应关系,并根据第三对应关系确定第一网元上报的第一IP地址适用的业务类型,进而通知第一网元第一IP地址适用的业务类型。后续如果第三对应关系需要更新,只需要在网络管理网元上进行更新。因此,采用本申请的方案可以降低维护的复杂度。
根据前述方法,图17为本申请实施例提供的一种通信装置(如第一网元,又如网络管理网元),该通信装置包括收发单元1701和处理单元1702。
其中,收发单元1701可以用于实现相应的通信功能。收发单元1701还可以称为通信接口或通信单元。处理单元1702可以用于进行处理操作。
可选地,该装置还包括存储单元,该存储单元可以用于存储指令和/或数据,处理单元1702可以读取存储单元中的指令和/或数据,以使得装置实现前述各个方法实施例中的装置(如第一网元,又如网络管理网元)的动作。
在第一种设计中,该装置可以是前述实施例中的第一网元,也可以是第一网元的组成部件(如芯片)。该装置可实现对应于上文方法实施例中的第一网元执行的步骤或者流程,其中,收发单元1701可用于执行上文方法实施例中第一网元的收发相关的操作,处理单元1702可用于执行上文方法实施例中第一网元的处理相关的操作。
在一种情况下,收发单元1701,用于从网络管理网元获取第一对应关系,第一对应关系为互联网协议IP地址的用途标识和IP地址适用的业务类型之间的对应关系;收发单元1701,还用于从网络管理网元获取第一信息,第一信息包括第一IP地址对应的用途标识;处理单元1702,用于根据第一对应关系以及第一IP地址对应的用途标识,确定第一IP地址适用的业务类型。
可选地,处理单元1702,还用于根据从第一虚拟局域网VLAN对应的接口接收的路由器通告RA信息,生成第一IP地址;收发单元1701,还用于向网络管理网元发送第一IP地址和第一VLAN的标识。
在另一种情况下,收发单元1701,用于从网络管理网元获取第三对应关系,第三对应关系为IP地址的网段和IP地址适用的业务类型之间的对应关系;处理单元1702,用于根据从第一VLAN对应的接口接收的RA信息,生成第一IP地址生成第一IP地址;处理单元1702,还用于根据第三对应关系以及第一IP地址的网段,确定第一IP地址适用的业务类型。
在第二种设计中,该装置可以是前述实施例中的网络管理网元,也可以是网络管理网元的组成部件(如芯片)。该装置可实现对应于上文方法实施例中的网络管理网元执行的步骤或者流程,其中,收发单元1701可用于执行上文方法实施例中网络管理网元的收发相关的操作,处理单元1702可用于执行上文方法实施例中网络管理网元的处理相关的操作。
在一种情况下,收发单元1701,用于获取第二对应关系,第二对应关系用于确定IP地址的用途标识;收发单元1701,还用于从第一网元获取第一VLAN的标识和第一IP地址;处理单元1702,用于根据第二对应关系,确定第一IP地址的用途标识;收发单元1701,还用于向第一网元发送第一信息,第一信息包括第一IP地址的用途标识。
可选地,收发单元1701,还用于获取第一对应关系,第一对应关系为IP地址的用途标识和IP地址适用的业务类型的对应关系;收发单元1701,还用于向第一网元发送第一对应关系。
在另一种情况下,收发单元1701,用于从目标IP地址池中获取第一IP地址,目标IP地址池中包括的IP地址适用于相同的业务类型;处理单元1702,用于根据目标IP地址池适用的业务类型,确定第一IP地址的用途标识;收发单元1701,还用于向第一网元发送第一信息,第一信息包括第一IP地址以及第一IP地址的用途标识。
在另一种情况下,收发单元1701,用于获取第三对应关系,第三对应关系为IP地址的网段和IP地址适用的业务类型之间的对应关系;收发单元1701,还用于向第一网元发送第三对应关系。
在另一种情况下,收发单元1701,用于获取第三对应关系,第三对应关系为IP地址的网段和IP地址适用的业务类型之间的对应关系;收发单元1701,还用于从第一网元获取第一VLAN的标识和第一IP地址;处理单元1702,用于根据第三对应关系以及第一IP地址的网段,确定第一IP地址适用的业务类型;收发单元1701,还用于向第一网元发送第二信息,第二信息包括第一IP地址适用的业务类型。
应理解,各单元执行上述相应步骤的具体过程在上述各方法实施例中已经详细说明,为了简洁,在此不再赘述。
还应理解,这里的装置以功能单元的形式体现。这里的术语“单元”可以指应用特有集成电路(application specific integrated circuit,ASIC)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。在一个可选例子中,本领域技术人员可以理解,装置可以具体为上述实施例中的第一网元,可以用于执行上述各方法实施例中 与第一网元对应的各个流程和/或步骤,或者,装置可以具体为上述实施例中的网络管理网元,可以用于执行上述各方法实施例中与网络管理网元对应的各个流程和/或步骤,为避免重复,在此不再赘述。
上述通信装置具有实现上述方法中的装置(如第一网元,或网络管理网元)所执行的相应步骤的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块;例如收发单元可以由收发机替代(例如,收发单元中的发送单元可以由发送机替代,收发单元中的接收单元可以由接收机替代),其它单元,如处理单元等可以由处理器替代,分别执行各个方法实施例中的收发操作以及相关的处理操作。
此外,上述收发单元1701还可以是收发电路(例如可以包括接收电路和发送电路),处理单元可以是处理电路。
需要指出的是,图17中的装置可以是前述方法实施例中的装置(如第一网元,或网络管理网元),也可以是芯片或者芯片系统,例如:片上系统(system on chip,SoC)。其中,收发单元可以是输入输出电路、通信接口;处理单元为该芯片上集成的处理器或者微处理器或者集成电路。在此不做限定。
本申请实施例还提供一种通信设备,如图18所示,包括:处理器1801和通信接口1802。处理器1801用于执行存储器1803存储的计算机程序或指令,或读取存储器1803存储的数据,以执行上文各方法实施例中的方法。可选地,处理器1801为一个或多个。通信接口1802用于信号的接收和/或发送。例如,处理器1801用于控制通信接口1802进行信号的接收和/或发送。
可选地,如图18所示,该通信设备还包括存储器1803,存储器1803用于存储计算机程序或指令和/或数据。该存储器1803可以与处理器1801集成在一起,或者也可以分离设置。可选地,存储器1803为一个或多个。
可选地,处理器1801、通信接口1802以及存储器1803通过总线1804相互连接;总线1804可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。上述总线1804可以分为地址总线、数据总线和控制总线等。为便于表示,图18中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
作为另一种方案,该通信设备用于实现上文各个方法实施例中由第一网元或网络管理网元执行的操作。
例如,处理器1801用于执行存储器1803存储的计算机程序或指令,以实现上文各个方法实施例中第一网元的相关操作。例如,图3所示实施例中的第一网元执行的方法。
又如,处理器1801用于执行存储器1803存储的计算机程序或指令,以实现上文各个方法实施例中网络管理网元的相关操作。例如,图3所示实施例中的网络管理网元执行的方法。
应理解,本申请实施例中提及的处理器(如处理器1801)可以是中央处理器(central processing unit,CPU),网络处理器(network processor,NP)或者CPU和NP的组合。处理器还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上 述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。
还应理解,本申请实施例中提及的存储器(如存储器1803)可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。
本申请实施例的技术方案可以应用于各种通信系统,例如:全球移动通讯(global system of mobile communication,GSM)系统、码分多址(code division multiple access,CDMA)系统、宽带码分多址(wideband code division multiple access,WCDMA)系统、通用分组无线业务(general packet radio service,GPRS)、长期演进(long term evolution,LTE)系统、LTE频分双工(frequency division duplex,FDD)系统、LTE时分双工(time division duplex,TDD)、通用移动通信系统(universal mobile telecommunication system,UMTS)、全球互联微波接入(worldwide interoperability for microwave access,WiMAX)通信系统、未来的第五代(5th generation,5G)系统或新无线(new radio,NR)等。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计 算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。
Claims (30)
- 一种通信方法,其特征在于,包括:第一网元从网络管理网元获取第一对应关系,所述第一对应关系为互联网协议IP地址的用途标识和IP地址适用的业务类型之间的对应关系;所述第一网元从所述网络管理网元获取第一信息,所述第一信息包括第一IP地址的用途标识;所述第一网元根据所述第一对应关系以及所述第一IP地址的用途标识,确定所述第一IP地址适用的业务类型。
- 根据权利要求1所述的方法,其特征在于,在所述第一网元从所述网络管理网元获取第一信息之前,所述方法还包括:所述第一网元根据路由器通告RA报文,生成第一VLAN的标识和所述第一IP地址;所述第一网元向所述网络管理网元发送所述第一IP地址和所述第一VLAN的标识。
- 根据权利要求2所述的方法,其特征在于,所述第一信息还包括所述第一IP地址和所述第一VLAN的标识。
- 根据权利要求1所述的方法,其特征在于,在所述第一网元从所述网络管理网元获取第一信息之前,所述方法还包括:所述第一网元向所述网络管理网元发送第一请求消息,所述第一请求消息用于请求所述第一IP地址,所述第一请求消息包括所述第一IP地址的用途标识,所述第一IP地址为内层IP地址;所述第一信息还包括所述第一IP地址。
- 根据权利要求1-4中任一项所述的方法,其特征在于,所述IP地址适用的业务类型包括以下中的任意一种:管理面MP业务、信令面CP业务、用户面UP业务、因特网密钥交换IKE业务、IP时钟业务。
- 一种通信方法,其特征在于,包括:网络管理网元获取第一对应关系和第二对应关系;其中,所述第一对应关系为IP地址的用途标识和IP地址适用的业务类型的对应关系,所述第二对应关系用于确定IP地址的用途标识;所述网络管理网元从第一网元获取第一VLAN的标识和第一IP地址;所述网络管理网元根据所述第二对应关系,确定所述第一IP地址的用途标识;所述网络管理网元向所述第一网元发送第一信息,所述第一信息包括所述第一IP地址的用途标识;所述网络管理网元向所述第一网元发送所述第一对应关系。
- 根据权利要求6所述的方法,其特征在于,第二对应关系包括以下中的任一项:IP地址的网段与IP地址的用途标识的对应关系、VLAN的标识与IP地址的用途标识的对应关系、IP地址的网段和VLAN标识的结合与IP地址的用途标识的对应关系;其中,所述VLAN的标识为黑名单VLAN的标识或白名单VLAN的标识。
- 根据权利要求6或7所述的方法,其特征在于,所述第一信息还包括所述第一VLAN的标识和所述第一IP地址。
- 一种通信方法,其特征在于,包括:网络管理网元向第一网元发送第一对应关系,所述第一对应关系为IP地址的用途标识和IP地址适用的业务类型之间的对应关系;所述网络管理网元从所述第一网元接收第一请求消息,所述第一请求消息用于请求第一IP地址,所述第一请求消息包括所述第一IP地址的用途标识,所述第一IP地址为内层IP地址;所述网络管理网元从目标IP地址池中确定所述第一IP地址,所述目标IP地址池与所述第一IP地址的用途标识对应;所述网络管理网元向第一网元发送第一信息,所述第一信息包括所述第一IP地址以及所述第一IP地址的用途标识。
- 一种通信方法,其特征在于,包括:第一网元从网络管理网元获取第三对应关系,所述第三对应关系为IP地址的网段和IP地址适用的业务类型之间的对应关系;所述第一网元根据RA报文,生成第一IP地址;所述第一网元根据所述第三对应关系以及所述第一IP地址的网段,确定所述第一IP地址适用的业务类型。
- 根据权利要求10所述的方法,其特征在于,所述IP地址适用的业务类型包括以下中的任意一种:管理面MP业务、信令面CP业务、用户面UP业务、因特网密钥交换IKE业务、IP时钟业务。
- 一种通信方法,其特征在于,包括:网络管理网元获取第三对应关系,所述第三对应关系为IP地址的网段和IP地址适用的业务类型之间的对应关系;网络管理网元向第一网元发送所述第三对应关系。
- 根据权利要求12所述的方法,其特征在于,所述IP地址适用的业务类型包括以下中的任意一种:管理面MP业务、信令面CP业务、用户面UP业务、因特网密钥交换IKE业务、IP时钟业务。
- 一种通信方法,其特征在于,包括:网络管理网元获取第三对应关系,所述第三对应关系为IP地址的网段和IP地址适用的业务类型之间的对应关系;所述网络管理网元从第一网元获取第一VLAN的标识和第一IP地址;所述网络管理网元根据所述第三对应关系以及所述第一IP地址的网段,确定所述第一IP地址适用的业务类型;所述网络管理网元向所述第一网元发送第二信息,所述第二信息包括所述第一IP地址适用的业务类型。
- 根据权利要求14所述的方法,其特征在于,所述第二信息还包括所述第一VLAN的标识和所述第一IP地址。
- 根据权利要求14或15所述的方法,其特征在于,所述IP地址适用的业务类型包括以下中的任意一种:管理面MP业务、信令面CP业务、用户面UP业务、因特网密钥交换IKE业务、IP时钟业务。
- 一种通信装置,其特征在于,包括:收发单元和与所述收发单元连接的处理单元;所述收发单元,用于从网络管理网元获取第一对应关系,所述第一对应关系为互联网协议IP地址的用途标识和IP地址适用的业务类型之间的对应关系;所述收发单元,还用于从所述网络管理网元获取第一信息,所述第一信息包括第一IP地址的用途标识;所述处理单元,用于根据所述第一对应关系以及所述第一IP地址的用途标识,确定所述第一IP地址适用的业务类型。
- 根据权利要求17所述的装置,其特征在于,所述处理单元,还用于根据路由器通告RA报文,生成第一VLAN的标识和所述第一IP地址;所述收发单元,还用于向所述网络管理网元发送所述第一IP地址和所述第一VLAN的标识。
- 根据权利要求18所述的装置,其特征在于,所述第一信息还包括所述第一IP地址和所述第一VLAN的标识。
- 根据权利要求17所述的装置,其特征在于,所述收发单元,还用于向所述网络管理网元发送第一请求消息,所述第一请求消息用于请求所述第一IP地址,所述第一请求消息包括所述第一IP地址的用途标识;所述第一信息还包括所述第一IP地址,所述第一IP地址为内层IP地址。
- 根据权利要求17-20中任一项所述的装置,其特征在于,所述IP地址适用的业务类型包括以下中的任意一种:管理面MP业务、信令面CP业务、用户面UP业务、因特网密钥交换IKE业务、IP时钟业务。
- 一种通信装置,其特征在于,包括:收发单元和与所述收发单元连接的处理单元;所述收发单元,用于获取第一对应关系和第二对应关系;其中,所述第一对应关系为IP地址的用途标识和IP地址适用的业务类型的对应关系,所述第二对应关系用于确定IP地址的用途标识;所述收发单元,还用于从第一网元获取第一VLAN的标识和第一IP地址;所述处理单元,用于根据所述第二对应关系,确定所述第一IP地址的用途标识;所述收发单元,还用于向所述第一网元发送第一信息,所述第一信息包括所述第一IP地址的用途标识;所述收发单元,还用于向所述第一网元发送所述第一对应关系。
- 根据权利要求22所述的装置,其特征在于,第二对应关系包括以下中的任一项:IP地址的网段与IP地址的用途标识的对应关系、VLAN的标识与IP地址的用途标识的对应关系、IP地址的网段和VLAN标识的结合与IP地址的用途标识的对应关系;其中,所述VLAN的标识为黑名单VLAN的标识或白名单VLAN的标识。
- 根据权利要求22或23所述的装置,其特征在于,所述第一信息还包括所述第一VLAN的标识和所述第一IP地址。
- 一种通信装置,其特征在于,包括:收发单元和与所述收发单元连接的处理单元;所述收发单元,用于向第一网元发送第一对应关系,所述第一对应关系为IP地址的用途标识和IP地址适用的业务类型之间的对应关系;所述收发单元,还用于从所述第一网元接收第一请求消息,所述第一请求消息用于请求第一IP地址,所述第一请求消息包括所述第一IP地址的用途标识,所述第一IP地址为内层IP地址;所述处理单元,用于从目标IP地址池中确定所述第一IP地址,所述目标IP地址池与所述第一IP地址的用途标识对应;所述收发单元,还用于向第一网元发送第一信息,所述第一信息包括所述第一IP地址以及所述第一IP地址的用途标识。
- 一种通信装置,其特征在于,包括:收发单元和与所述收发单元连接的处理单元;所述收发单元,用于从网络管理网元获取第三对应关系,所述第三对应关系为IP地址的网段和IP地址适用的业务类型之间的对应关系;所述处理单元,用于根据RA报文,生成第一IP地址;所述处理单元,还用于根据所述第三对应关系以及所述第一IP地址的网段,确定所述第一IP地址适用的业务类型。
- 一种通信装置,其特征在于,包括:收发单元和与所述收发单元连接的处理单元;所述收发单元,用于获取第三对应关系,所述第三对应关系为IP地址的网段和IP地址适用的业务类型之间的对应关系;所述收发单元,还用于向第一网元发送所述第三对应关系。
- 一种通信设备,其特征在于,包括:通信接口和处理器,所述处理器用于执行计算机程序或指令,使得所述通信设备执行如权利要求1-16中任一项所述的方法。
- 一种计算机可读存储介质,其特征在于,包括计算机程序或指令,当所述计算机程序或所述指令在计算机上运行时,使得所述计算机执行如权利要求1-16中任意一项所述的方法。
- 一种计算机程序产品,其特征在于,包含指令,当所述指令在计算机上运行时,使得所述计算机执行如权利要求1-16中任意一项所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111175630.9A CN115955671A (zh) | 2021-10-09 | 2021-10-09 | 通信方法和装置 |
CN202111175630.9 | 2021-10-09 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023056845A1 true WO2023056845A1 (zh) | 2023-04-13 |
Family
ID=85803901
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/120765 WO2023056845A1 (zh) | 2021-10-09 | 2022-09-23 | 通信方法和装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115955671A (zh) |
WO (1) | WO2023056845A1 (zh) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101753635A (zh) * | 2008-12-17 | 2010-06-23 | 华为技术有限公司 | Ipv6地址配置方法和系统 |
EP3107268A1 (en) * | 2015-06-15 | 2016-12-21 | Deutsche Telekom AG | Method for configuring a network node of a telecommunications network, telecommunications network, network node, program and computer program product |
CN110913031A (zh) * | 2019-11-15 | 2020-03-24 | 西安居正知识产权运营管理有限公司 | 一种IPv6网络地址配置方法 |
WO2020221266A1 (zh) * | 2019-04-29 | 2020-11-05 | 华为技术有限公司 | 一种通信方法及装置 |
CN112584393A (zh) * | 2019-09-27 | 2021-03-30 | 上海华为技术有限公司 | 一种基站配置方法、装置、设备及介质 |
WO2021093501A1 (zh) * | 2019-11-13 | 2021-05-20 | 中国移动通信有限公司研究院 | 一种任务处理方法和网络设备 |
-
2021
- 2021-10-09 CN CN202111175630.9A patent/CN115955671A/zh active Pending
-
2022
- 2022-09-23 WO PCT/CN2022/120765 patent/WO2023056845A1/zh active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101753635A (zh) * | 2008-12-17 | 2010-06-23 | 华为技术有限公司 | Ipv6地址配置方法和系统 |
EP3107268A1 (en) * | 2015-06-15 | 2016-12-21 | Deutsche Telekom AG | Method for configuring a network node of a telecommunications network, telecommunications network, network node, program and computer program product |
WO2020221266A1 (zh) * | 2019-04-29 | 2020-11-05 | 华为技术有限公司 | 一种通信方法及装置 |
CN112584393A (zh) * | 2019-09-27 | 2021-03-30 | 上海华为技术有限公司 | 一种基站配置方法、装置、设备及介质 |
WO2021093501A1 (zh) * | 2019-11-13 | 2021-05-20 | 中国移动通信有限公司研究院 | 一种任务处理方法和网络设备 |
CN110913031A (zh) * | 2019-11-15 | 2020-03-24 | 西安居正知识产权运营管理有限公司 | 一种IPv6网络地址配置方法 |
Also Published As
Publication number | Publication date |
---|---|
CN115955671A (zh) | 2023-04-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210345099A1 (en) | Infrastructure coordinated media access control address assignment | |
JP6355705B2 (ja) | ネットワークにアクセスするシステム及び方法 | |
US11528225B2 (en) | Communication method, session management device, and system for packet routing by access network devices belonging to a same network instance having different network addresses | |
KR101780371B1 (ko) | 초기 링크 셋업 동안 감소된 레이턴시를 위한 시스템들 및 방법들 | |
US9577984B2 (en) | Network initiated alerts to devices using a local connection | |
JP5602937B2 (ja) | リレーノードと構成エンティティの間の接続性の確立 | |
JP6564022B2 (ja) | 異種ネットワークに対して有効なユーザ機器識別情報 | |
US11611923B2 (en) | Methods and apparatus for supporting quality of service in a system including a cable modem termination system and wireless communications link | |
US20180145905A1 (en) | Data link layer-based communication method, device, and system | |
US11083048B2 (en) | Devices and methods for transforming user plane signaling from a remote sidelink control server into control plane signaling | |
US11848909B2 (en) | Restricting onboard traffic | |
CN112398959B (zh) | Rlc信道确定方法和装置 | |
WO2019174582A1 (zh) | 一种消息传输方法和装置 | |
US20220263879A1 (en) | Multicast session establishment method and network device | |
WO2022007657A1 (zh) | 一种域名系统请求的发送方法及装置 | |
CN115462051B (zh) | Ip地址的重用 | |
WO2018054272A1 (zh) | 数据的发送方法和装置、计算机存储介质 | |
WO2023056845A1 (zh) | 通信方法和装置 | |
EP3331264B1 (en) | Packet forwarding to subnets hosted by lte cellular equipments | |
US11929850B2 (en) | Dynamic elimination of old IPv6 addresses from WLAN/BYOD/IOT devices INDHCPv6 stateless mode after transitioning between VLANs | |
WO2024148628A1 (zh) | 建立链路的方法、装置及存储介质 | |
CN111010703A (zh) | 移动网络中eNodeB自动接入核心网的方法和系统 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22877864 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 22877864 Country of ref document: EP Kind code of ref document: A1 |