Communication method to generate a service connection configuration of a bearer network, network server, and computer-readable storage medium
11310713 ยท 2022-04-19
Assignee
Inventors
Cpc classification
H04W64/00
ELECTRICITY
International classification
H04W40/24
ELECTRICITY
H04W64/00
ELECTRICITY
Abstract
A communication method implemented by a network server, includes: obtaining, based on geographical location information of a plurality of base stations, a first connection relationship between the plurality of base stations; converting the first connection relationship into a second connection relationship based on a first correspondence between geographical location information of a base station and a network element ID of a network device connected to the base station, where the second connection relationship is a topological connection relationship between a plurality of network elements, and the plurality of base stations are respectively connected to the plurality of network elements in a one-to-one correspondence; and generating a service connection configuration of the bearer network based on the second connection relationship. As a result, the service connection configuration of the bearer network can be automatically generated, thereby reducing an error rate and improving work efficiency.
Claims
1. A communication method implemented by a network server, wherein the method comprises: obtaining a first connection relationship based on geographical location information of a plurality of base stations, wherein the first connection relationship is a connection relationship between the plurality of base stations; converting the first connection relationship into a second connection relationship based on a first correspondence, wherein the second connection relationship is a topological connection relationship between a plurality of network elements comprised in a bearer network, the first correspondence is a correspondence between geographical location information of one of the plurality of base stations and a network element identifier (ID) of one of the plurality of network elements connected to the one base station, and the plurality of base stations are respectively connected to the plurality of network elements in a one-to-one correspondence; and generating a service connection configuration of the bearer network based on the second connection relationship.
2. The communication method according to claim 1, wherein the converting the first connection relationship into the second connection relationship based on the first correspondence comprises: determining a third connection relationship based on a second correspondence and the first correspondence, wherein the second correspondence is a correspondence between the geographical location information of the plurality of base stations and ports of the plurality of network elements, and the third connection relationship is a connection relationship between the plurality of base stations and the plurality of network elements; and determining the second connection relationship based on the first connection relationship and the third connection relationship.
3. The communication method according to claim 2, wherein before the determining the third connection relationship, the method further comprises: presetting the second correspondence.
4. The communication method according to claim 2, wherein before the determining the third connection relationship, the method further comprises: determining the second correspondence if the network server determines, based on an internet protocol (IP) address of the one base station and an IP address of a port through which the one network element is connected to the one base station, that the one base station and the port through which the one network element is connected to the one base station are in a same local area network.
5. The communication method according to claim 1, wherein the generating the service connection configuration of the bearer network based on the second connection relationship comprises: generating, based on the second connection relationship, tunnel configuration information of a tunnel used to bear traffic between the plurality of base stations and/or route diffusion configuration information that is based on a tunnel configuration.
6. A network server, wherein the network server comprises: a memory; a processor communicated with the memory, configured to: obtain a first connection relationship based on geographical location information of a plurality of base stations, wherein the first connection relationship is a connection relationship between the plurality of base stations; convert the first connection relationship into a second connection relationship based on a first correspondence, wherein the second connection relationship is a topological connection relationship between a plurality of network elements comprised in a bearer network, the first correspondence is a correspondence between geographical location information of one of the base stations and a network element identifier (ID) of one of the plurality of network elements connected to the one base station, and the plurality of base stations are respectively connected to the plurality of network elements in a one-to-one correspondence; and generate a service connection configuration of the bearer network based on the second connection relationship.
7. The network server according to claim 6, wherein the processor is further configured to: determine a third connection relationship based on a second correspondence and the first correspondence, wherein the second correspondence is a correspondence between the geographical location information of the plurality of base stations and ports of the plurality of network elements, and the third connection relationship is a connection relationship between the plurality of base stations and the plurality of network elements; and determine the second connection relationship based on the first connection relationship and the third connection relationship.
8. The network server according to claim 7, wherein the processor further configured to: preset the second correspondence.
9. The network server according to claim 7, wherein the processor further configured to: determine the second correspondence if the processor determines, based on an internet protocol IP address of the one base station and an IP address of a port through which the one network element is connected to the one base station, that the one base station and the port through which the one network element is connected to the one base station are in a same local area network.
10. The network server according to claim 6, wherein the processor further configured to: generate, based on the second connection relationship, tunnel configuration information of a tunnel used to bear traffic between the plurality of base stations and/or route diffusion configuration information that is based on a tunnel configuration.
11. A non-transitory computer-readable storage medium, comprising an instruction, wherein when the instruction is run on a computer, the computer is enabled to: obtain a first connection relationship based on geographical location information of a plurality of base stations, wherein the first connection relationship is a connection relationship between the plurality of base stations; convert the first connection relationship into a second connection relationship based on a first correspondence, wherein the second connection relationship is a topological connection relationship between a plurality of network elements comprised in a bearer network, the first correspondence is a correspondence between geographical location information of one of the plurality of base stations and a network element identifier (ID) of one of the plurality of network elements connected to the one base station, and the plurality of base stations are respectively connected to the plurality of network elements in a one-to-one correspondence; and generate a service connection configuration of the bearer network based on the second connection relationship.
12. The non-transitory computer-readable storage medium according to claim 11, wherein the computer is further enabled to: determine a third connection relationship based on a second correspondence and the first correspondence, wherein the second correspondence is a correspondence between the geographical location information of the plurality of base stations and ports of the plurality of network elements, and the third connection relationship is a connection relationship between the plurality of base stations and the plurality of network elements; and determine the second connection relationship based on the first connection relationship and the third connection relationship.
13. The non-transitory computer-readable storage medium according to claim 12, wherein the computer is further enabled to: preset the second correspondence.
14. The non-transitory computer-readable storage medium according to claim 12, wherein the computer is further enabled to: determine the second correspondence if the computer determines, based on an internet protocol IP address of the base station and an IP address of a port through which the one network element is connected to the one base station, that the one base station and the port through which the one network element is connected to the one base station are in a same local area network.
15. The non-transitory computer-readable storage medium according to claim 11, wherein the computer is further enabled to: generate, based on the second connection relationship, tunnel configuration information of a tunnel used to bear traffic between the plurality of base stations and/or route diffusion configuration information that is based on a tunnel configuration.
Description
BRIEF DESCRIPTION OF DRAWINGS
(1) The present invention can be better understood from the following descriptions of specific implementations of the present invention with reference to the accompanying drawings, and same or similar reference numerals indicate same or similar features.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
DESCRIPTION OF EMBODIMENTS
(12) In the embodiments of the present invention, first, a network server determines a first correspondence. After converting a first connection relationship into a second connection relationship, the network server may generate a service connection configuration of a bearer network based on the second connection relationship. Because the service connection configuration of the bearer network can be automatically generated by using the second connection relationship, an error rate can be reduced and work efficiency can be improved.
(13)
(14) S201. The network server determines a first correspondence, where the first correspondence is a correspondence between geographical location information of a base station and a network element identifier of a network element connected to the base station.
(15) In a communications system, the base station is located between a wired communications network and a wireless terminal, to transmit a radio signal between the wired communications network and the wireless terminal. In a place at which there is a relatively large quantity of wireless terminals, for example, a traffic hub with relatively large density of population, a relatively large quantity of base stations are built to ensure normal communication between the wireless terminals. In other words, the base stations are not evenly distributed, and a given quantity of base stations are built based on a communication requirement of the wireless terminals. The wireless terminal may also be a mobile terminal.
(16) Each network element in a communications network has a network element identifier (ID), and the network element identifier is an identifier that distinguishes one network element from another, such as an IP address or a MAC address. In a communication process, the base station needs to interact with another network element to implement communication. Therefore, there is a correspondence between the base station and the network element ID of the network element connected to the base station.
(17) The geographical location information of the base station is unique, and may be determined in a plurality of manners. For example, the geographical location information of the base station may be obtained by using an application program of a mobile terminal; or the geographical location information of the base station may be obtained by using map software; or the geographical location information of the base station may be obtained by using a location based service (LBS) provided by a communications operator. The geographical location information of the base station may include longitude information and latitude information, and may further include guidance information. For example, the guidance information is a reference building.
(18) Therefore, the correspondence between the geographical location information of the base station and the network element ID of the network element connected to the base station may be established based on the correspondence between the base station and the network element ID of the network element connected to the base station, and based on the geographical location information of the base station. The correspondence between the geographical location information of the base station and the network element identifier of the network element connected to the base station is used as the first correspondence.
(19) The first correspondence may be stored. When required, the first correspondence is directly obtained.
(20) S202. The network server obtains a first connection relationship based on geographical location information of a plurality of base stations, where the first connection relationship is a connection relationship between the plurality of base stations.
(21) Traffic between base stations, namely, east-west traffic between the base stations (such as EX2 traffic and X2 traffic between the base stations), is related to geographic locations of the base stations. A distance between two base stations is positively correlated with a connection relationship between the base stations. To be specific, a closer distance between two base stations indicates a closer connection relationship between the two base stations, and a further distance between two base stations indicates a more distant connection relationship between the two base stations.
(22) A wireless plan between the base stations may be preset, and the first connection relationship is calculated based on the geographical location information of the base stations and the preset wireless plan between the base stations. The base station may determine a traffic path between the base station and another base station based on the first connection relationship. In this way, data may be transmitted between the base stations based on the traffic path between the base stations.
(23) For example, the first connection relationship may be that a base station 1 is connected to a base station 3, the base station 3 is connected to a base station 4, and the base station 4 is connected to the base station 1.
(24) It can be learned that different preset wireless plans may be used to determine different first connection relationships. A wireless plan may be preset based on an actual technical requirement to determine a required first connection relationship.
(25) In this embodiment of the present invention, S201 and S202 may be performed simultaneously, or may be performed in any sequence.
(26) S203. The network server converts the first connection relationship into a second connection relationship based on the first correspondence, where the second connection relationship is a topological connection relationship between a plurality of network elements included in a bearer network, and the plurality of base stations are respectively connected to the plurality of network elements in a one-to-one correspondence.
(27) Based on the first correspondence, each base station can implement communication by using a network element corresponding to a network element ID.
(28) Based on the first connection relationship, data transmission between two base stations may be implemented by using network elements that are respectively connected to the base stations. In other words, the base station performs communication by using the network element, and a connection relationship between the base station and the network element is obtained based on a network element ID corresponding to the base station. The second connection relationship may be further obtained based on the first connection relationship.
(29) The second connection relationship means a connection relationship between a plurality of network elements. For example, a first network element is connected to a second network element, the second network element is connected to a fourth network element, and the fourth network element is connected to the first network element.
(30) S204. The network server generates a service connection configuration of the bearer network based on the second connection relationship.
(31) The second connection relationship is a connection relationship between the plurality of network elements in the bearer network, and a link used for transmitting data between network elements may be further obtained. Therefore, the service connection configuration of the bearer network may be generated based on the second connection relationship.
(32) In this embodiment of the present invention, the network server determines the first correspondence, and the network server obtains the first connection relationship based on the geographical location information of the base stations. Then, the network server directly converts the first connection relationship into the second connection relationship based on the first correspondence. The network server automatically generates the service connection configuration of the bearer network based on the second connection relationship. Because the first connection relationship may be converted into the second connection relationship, and even if a service connection volume is heavy, the service connection configuration of the bearer network may be automatically generated based on the second connection relationship, an error rate is reduced and work efficiency is improved.
(33) In a 3 G/4 G wireless network, a wireless terminal and a base station are usually in a one-to-one correspondence, and both a communication service and a data service belong to a same base station. In a 5 G wireless network, a requirement on bandwidth soars, and two or even more base stations jointly serve a same wireless terminal, thereby leading to data exchange between base stations. The data exchange between the base stations has high requirements on a latency and clock precision. A smaller clock deviation between two base stations and a smaller latency indicate higher bandwidth provided for the wireless terminal and better service quality. The clock deviation and the latency are directly related to a distance between the base stations.
(34) In an optional embodiment of the present invention, a preset wireless plan between base stations may be preset based on a specific communication requirement. To ensure correctness of data transmission, base stations that are relatively close to each other may be selected to generate an optimal coordinative connection relationship between the base stations.
(35) Specifically, a relationship between two base stations may be adjacent or non-adjacent. Apparently, accuracy of transmitting data between two adjacent base stations is higher than accuracy of transmitting data between two non-adjacent base stations. In this case, adjacent base stations are preferably selected.
(36) One base station is adjacent to more than one base station, and a shorter adjacent distance between two base stations leads to higher accuracy of transmitting data between the two base stations. Therefore, one or more base stations that are relatively close to each other may be selected to generate an optimal coordinative connection relationship between the base stations.
(37) In other words, the preset wireless plan between base stations includes that the base stations are adjacent and an adjacent distance between the base stations is greater than or equal to a preset minimum threshold and less than or equal to a preset maximum threshold. The preset minimum threshold and the preset maximum threshold may be separately set based on specific situations.
(38) In an optional embodiment of the present invention, the following technical solution may be specifically used to convert the first connection relationship into the second connection relationship, as shown in
(39) A base station needs to access a network element first. The network element may be a network bearer device. Specifically, the network bearer device forwards, to a wireless core network, information sent by the base station, to implement wireless communication.
(40) S301. A network server determines a third connection relationship based on a second correspondence and a first correspondence, where the second correspondence is a correspondence between geographical location information of a plurality of base stations and ports of a plurality of network elements, and the third connection relationship is a connection relationship between the base stations and the network elements.
(41) The base station performs communication by using the network element, and the network element has more than one interface. Specifically, the base station performs communication by using an interface of the network element. In this case, there is a correspondence between geographical location information of the base station and a port through which the network element is connected to the base station. The correspondence between the geographical location information of the plurality of base stations and the ports of the plurality of network elements is used as the second correspondence. A network element connected to the base station may be a network bearer device.
(42) Based on the first correspondence and the second correspondence, a relationship between geographic allocation information of the base station and a port through which the network element is connected to the base station, and a relationship between the address location information of the base station and a network element ID of the network element connected to the base station may be obtained.
(43) To be specific, a connection relationship between the base station and the network element includes the relationship between the address location information of the base station and the port through which the network element is connected to the base station, and the relationship between the address location information of the base station and the network element ID of the network element connected to the base station. The connection relationship between the base station and the network element is used as the third connection relationship.
(44) A base station that sends data is a source node, and a base station that receives data is a sink node. Because the base station can send and receive data, the base station may be a service endpoint.
(45) S302. The network server determines a second connection relationship based on a first connection relationship and the third connection relationship.
(46) The base station performs communication by using the network element. If the network element connected to the base station is found, the base station connected to the network element may be determined.
(47) In consideration of a connection relationship between the base station and the network element, a base station in the first connection relationship may be replaced, based on the third connection relationship, with the network element corresponding to the base station. In this case, in the first connection relationship, if the base station is replaced with the network element corresponding to the base station, the first connection relationship is converted into the second connection relationship.
(48) In this embodiment of the present invention, when a base station in the second connection relationship is directly replaced with a corresponding network element, less time is consumed in a replacement process. Therefore, work efficiency of generating a service connection configuration can be improved.
(49) In an optional embodiment of the present invention, the second correspondence may be determined in the following manner.
(50) In a process of establishing a wireless network, the network server may preset the second correspondence. For example, a first network element includes a first port and a second port. If a first base station is preset to perform communication by using the first port of the first network element, a correspondence between the first base station and the first port of the first network element may be preset. In other words, a correspondence between a base station and a port of a network element is preset.
(51) In an optional embodiment of the present invention, the second correspondence may be determined in the following manner.
(52) In a communication process, the network server determines the second correspondence if the network server determines, based on an Internet protocol IP address of the base station and an IP address of a port through which the network element is connected to the base station, that the base station and the port through which the network element is connected to the base station are in a same local area network.
(53) For example, if the IP address of the base station and the IP address of the port through which the network element is connected to the base station are in a same network segment, the base station and the port through which the network element is connected to the base station are in a same local area network, and this indicates that there is a correspondence between the base station and the port of the network element.
(54) In other words, if the base station and the port through which the network element is connected to the base station are in a same local area network, there is a correspondence between the base station and the port of the network element. If there is a correspondence between the base station and the port through which the network element is connected to the base station, the base station and the port of the network element are in a same local area network.
(55) In an optional embodiment of the present invention, tunnel configuration information of a tunnel used to bear traffic between base stations and/or route diffusion configuration information that is based on a tunnel configuration may be generated by using the second connection relationship.
(56) Specifically, a virtual private network (Virtual Private Network, VPN) technology can effectively simplify a traffic configuration. A VPN has two features: virtualization and dedication, and may be used to decompose an existing IP network into logically separated networks. A basic principle of the VPN is to use a tunnel technology to encapsulate to-be-sent data into a tunnel, and implement transparent transmission of data by using a dedicated data transmission channel established in a VPN backbone network.
(57) A tunnel and a route are VPN bearer technologies used to bear traffic between base stations. The second connection relationship may be used to generate tunnel configuration information of the tunnel bearing the traffic between base stations and/or route diffusion configuration information that is based on a tunnel configuration and that is of the route bearing the traffic between base stations.
(58) The tunnel includes a VPN tunnel, for example, a multi-protocol label switching transport profile (MPLS-TP) tunnel, a resource reservation protocol-traffic engineering (RSVP-TE) tunnel, an IP tunnel, or a generic routing encapsulation (GRE) tunnel.
(59) Generating, based on the second connection relationship, a configuration of a tunnel bearing traffic between base stations is used as an example below for description, as shown in
(60) S401. A service connection requirement has source device information and sink device information, and a specific intermediate device, a specific link, and a specific device port are obtained through calculation in a second connection relationship by using a path calculation algorithm.
(61) The service connection requirement includes the source device information and the sink device information. First, a link between a source device and a sink device may be determined by using the path calculation algorithm, for example, a Dijkstra algorithm or a Floyd algorithm.
(62) Then, a network element related to the link may be determined in the second connection relationship based on the link between the source device and the sink device. The related network element may include a specific intermediate device and a specific device port.
(63) S402. Allocate a multiprotocol label switching (MPLS) label to each link segment.
(64) The link between the source device and the sink device specifically includes a link between network elements. In this case, an MPLS label needs to be allocated to each link segment. Specifically, a downstream network element allocates an MPLS label to an upstream network element.
(65) An ingress port, an ingress MPLS label, an egress port, and an egress MPLS label of each hop of network element, and a label action (Push/PoP/Swap) are determined.
(66) S403. A network manager/controller delivers tunnel configuration information to a forwarding device to guide a packet.
(67) Finally, the network manager/controller delivers the tunnel configuration information to the forwarding device to guide packet transmission.
(68) Generating, based on the second connection relationship, a diffusion configuration of a route bearing traffic between base stations is used as an example below for description, as shown in
(69) The route extension configuration is obtained based on a tunnel configuration, and a route extension configuration may include a route extension configuration in a public network, and may further include a route extension configuration in a private network.
(70) S501. A network manager/controller obtains an IP address of a direct connection interface of a local device by using a second connection relationship, and adds the IP address to a local virtual routing and forwarding (VRF) table.
(71) The network manager/controller may directly obtain the IP address corresponding to the direct connection interface of the local device by using the second connection relationship, and adds the obtained IP address corresponding to the direct connection interface of the local device to the VRF.
(72) After the IP address corresponding to the direct connection interface of the local device is added to the VRF, another network element may be connected to the direct connection interface of the local device based on the VRF.
(73) S502. The network manager/controller searches all tunnels at a public network side in a local L3VPN VRF, and finds a remote L3VPN VRF along a tunnel direction.
(74) In consideration that the VRF records a routing and forwarding table of a user network edge router directly connected to a backbone network edge router, the network manager/controller searches all the tunnels at the public network side in the local L3VPN VRF, to search for the furthest L3VPN VRF.
(75) Searching for the furthest L3VPN VRF is to find the remote L3VPN VRF along the tunnel direction.
(76) S503. Deliver the IP address of the direct connection interface of the local device to the remote L3VPN VRF routing table, so that a next hop points to the local device.
(77) After the remote L3VPN VRF is found along the tunnel direction, the IP address of the direct connection interface of the local device can be delivered to the remote L3VPN VRF routing table, so that the next hop points to the local device. In this way, a connection relationship between the local device and another network element is established.
(78)
(79) The first processing module 601 is configured to determine a first correspondence, where the first correspondence is a correspondence between geographical location information of a base station and a network element identifier ID of a network element connected to the base station.
(80) Each network element in a communications network has a network element ID, and the network element identifier is an identifier that distinguishes one network element from another, such as an IP address or a MAC address. In a communication process, the base station needs to interact with another network element to implement communication. Therefore, there is a correspondence between the base station and the network element D of the network element connected to the base station.
(81) The geographical location information of the base station is unique, and may be determined in a plurality of manners. For example, the geographical location information of the base station may be obtained by using an application program of a mobile terminal; or the geographical location information of the base station may be obtained by using map software; or the geographical location information of the base station may be obtained by using an LBS provided by a communications operator. The geographical location information of the base station may include longitude information and latitude information, and may further include guidance information. For example, the guidance information is a reference building.
(82) Therefore, the correspondence between the geographical location information of the base station and the network element ID of the network element connected to the base station may be established based on the correspondence between the base station and the network element ID of the network element connected to the base station, and based on the geographical location information of the base station.
(83) The correspondence between the geographical location information of the base station and the network element ID of the network element connected to the base station may be stored. When required, the correspondence between the geographical location information of the base station and the network element ID of the network element connected to the base station is directly obtained. The correspondence between the geographical location information of the base station and the network element identifier of the network element connected to the base station is used as the first correspondence.
(84) The second processing module 602 is configured to obtain a first connection relationship based on geographical location information of a plurality of base stations, where the first connection relationship is a connection relationship between the plurality of base stations.
(85) A wireless plan between the base stations may be preset, and the first connection relationship is calculated based on the geographical location information of the base stations and the preset wireless plan between the base stations. The base station may determine a traffic path between the base station and another base station based on the first connection relationship. In this way, data may be transmitted between the base stations based on the traffic path between the base stations.
(86) For example, the first connection relationship may be that a base station 1 is connected to a base station 3, the base station 3 is connected to a base station 4, and the base station 4 is connected to the base station 1.
(87) It can be learned that different preset wireless plans may be used to determine different first connection relationships. A wireless plan may be preset based on an actual technical requirement to determine a required first connection relationship.
(88) The third processing module 603 is configured to convert the first connection relationship into a second connection relationship based on the first correspondence, where the second connection relationship is a topological connection relationship between a plurality of network elements included in a bearer network, and the plurality of base stations are respectively connected to the plurality of network elements in a one-to-one correspondence.
(89) Based on the first correspondence, each base station can implement communication by using a network element corresponding to a network element ID.
(90) Based on the first connection relationship, data transmission between two base stations may be implemented by using network elements that are respectively connected to the base stations. In other words, the base station performs communication by using the network element, and a connection relationship between the base station and the network element is obtained based on a network element ID corresponding to the base station. The second connection relationship may be further obtained based on the first connection relationship.
(91) The second connection relationship means a connection relationship between a plurality of network elements. For example, a first network element is connected to a second network element, the second network element is connected to a fourth network element, and the fourth network element is connected to the first network element.
(92) The fourth processing module 604 is configured to generate a service connection configuration of the bearer network based on the second connection relationship.
(93) In this embodiment of the present invention, the first processing module 601 determines the first correspondence. The second processing module 602 obtains the first connection relationship based on the geographical location information of the plurality of base stations. Then, the first processing module 603 converts the first connection relationship into the second connection relationship based on the first correspondence. The fourth processing module 604 automatically generates the service connection configuration of the bearer network based on the second connection relationship. Because the first connection relationship may be converted into the second connection relationship, and even if a service connection volume is heavy, the service connection configuration of the bearer network may be automatically generated based on the second connection relationship, an error rate is reduced and work efficiency is improved.
(94) In an optional embodiment of the present invention, a preset wireless plan between base stations may be preset based on a specific communication requirement. To ensure correctness of data transmission, base stations that are relatively close to each other may be selected to generate an optimal coordinative connection relationship between the base stations.
(95) Specifically, a relationship between two base stations may be adjacent or non-adjacent. Apparently, accuracy of transmitting data between two adjacent base stations is higher than accuracy of transmitting data between two non-adjacent base stations. In this case, adjacent base stations are preferably selected.
(96) One base station is adjacent to more than one base station, and a shorter adjacent distance between two base stations leads to higher accuracy of transmitting data between the two base stations. Therefore, one or more base stations that are relatively close to each other may be selected to generate an optimal coordinative connection relationship between the base stations.
(97) In other words, the preset wireless plan between base stations includes that the base stations are adjacent and an adjacent distance between the base stations is greater than or equal to a preset minimum threshold and less than or equal to a preset maximum threshold. The preset minimum threshold and the preset maximum threshold may be separately set based on specific situations.
(98) In an optional embodiment of the present invention, the third processing module 603 is further configured to: determine a third connection relationship based on a second correspondence and the first correspondence, where the second correspondence is a correspondence between geographical location information of a plurality of base stations and ports of a plurality of network elements, and the third connection relationship is a connection relationship between the base stations and the network elements; and determine the second connection relationship based on the first connection relationship and the third connection relationship.
(99)
(100) The fifth processing module 605 is configured to preset the second correspondence.
(101)
(102) The sixth processing module 606 is configured to determine the second correspondence if the sixth processing module 606 determines, based on an IP address of the base station and an IP address of a port through which the network element is connected to the base station, that the base station and the port through which the network element is connected to the base station are in a same local area network.
(103)
(104) The seventh processing module 607 is configured to generate, based on the second connection relationship, tunnel configuration information of a tunnel used to bear traffic between base stations and/or route diffusion configuration information that is based on a tunnel configuration.
(105) The network server provided in this application is described merely by using division of the foregoing functional modules as an example. In actual application, the foregoing functions may be integrated into one functional module for implementation; or the foregoing functions may be allocated to different functional modules for implementation as required, to be specific, an internal structure of a device is divided into different functional modules to complete all or some of the functions described above. This is not specifically limited in this application.
(106)
(107) The input interface 1002, the processor 1003, the memory 1004, and the output interface 1005 are connected to each other by using a bus 1010, The input device 1001 and the output device 1006 are respectively connected to the bus 1010 by using the input interface 1002 and the output interface 1005, to further connect to other components of the computing device 1000.
(108) Specifically, the input device 1001 receives external input information, and transmits the input information to the processor 1003 through the input interface 1002. The processor 1003 processes the input information according to a computer-executable instruction stored in the memory 1004, to generate output information, temporarily or permanently stores the output information in the memory 1004, and then transmits the output information to the output device 1006 through the output interface 1005. The output device 1006 outputs the output information to the outside of the computing device 1000 for use by a user.
(109) The computing device 1000 may perform the steps in the foregoing communication method in this application.
(110) The processor 1003 may be one or more central processing units (CPU). When a processor 601 or a processor 701 is a CPU, the CPU may be a single-core CPU or a multi-core CPU.
(111) The memory 1004 may be but is not limited to one or more of a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a compact disc read-only memory (CD-ROM), a hard disk, and the like. The memory 1004 is configured to store program code.
(112) It may be understood that in the embodiments of the present invention, functions of any one or all of the first processing module to the seventh processing module provided in
(113) All or some of the foregoing embodiments may be implemented by using software, hardware, firmware, or any combination thereof. When some or all of the foregoing embodiments are implemented in a form of a computer program product, the computer program product includes one or more computer instructions. When the computer program instructions are loaded or executed on a computer, all or some of the procedures or functions according to the embodiments of the present invention are generated. The computer may be a general-purpose computer, a dedicated computer, a computer network, or another programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or may be transmitted from a computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server, or data center to another website, computer, server, or data center wiredly (for example, a coaxial cable, an optical fiber, or a digital subscriber line (DSL)) or wirelessly (for example, infrared, radio, and microwave). The computer-readable storage medium may be any usable medium accessible by a computer, or a data storage device, such as a server or a data center, integrating one or more usable media. The usable medium may be a magnetic medium. (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, a DVD), a semiconductor medium (for example, a solid-state disk (SSD)), or the like.
(114) The embodiments in this specification are all described in a progressive manner, for same or similar parts in the embodiments, refer to these embodiments. Each embodiment focuses on a difference from other embodiments. Especially, apparatus and system embodiments are basically similar to a method embodiment, and thereby are described briefly. For related parts, refer to descriptions in the method embodiment.
(115) The foregoing descriptions are merely specific implementations of the present invention, but are not intended to limit the protection scope of the present invention. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed in the present invention shall fall within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.