CN113691399A - Network topology determination method and device, electronic equipment and storage medium - Google Patents

Network topology determination method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113691399A
CN113691399A CN202110941312.2A CN202110941312A CN113691399A CN 113691399 A CN113691399 A CN 113691399A CN 202110941312 A CN202110941312 A CN 202110941312A CN 113691399 A CN113691399 A CN 113691399A
Authority
CN
China
Prior art keywords
address
target network
network element
sgw
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110941312.2A
Other languages
Chinese (zh)
Inventor
侯文杰
陈国喜
田野
蔡琳
梁彧
傅强
王杰
杨满智
金红
陈晓光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Eversec Beijing Technology Co Ltd
Original Assignee
Eversec Beijing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Eversec Beijing Technology Co Ltd filed Critical Eversec Beijing Technology Co Ltd
Priority to CN202110941312.2A priority Critical patent/CN113691399A/en
Publication of CN113691399A publication Critical patent/CN113691399A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies

Abstract

The embodiment of the invention discloses a method and a device for determining network topology, electronic equipment and a storage medium. The network topology determining method comprises the following steps: acquiring a target network topology; determining a first port of a first target network element and a second port of a second target network element according to the target network topology; determining the IP address of a first target network element and the IP address of a third target network element according to the signaling data of the first port, and determining the IP address of a second target network element according to the signaling data of the second port; and marking the target network topology according to the IP address of the first target network element, the IP address of the second target network element and the IP address of the third target network element to obtain the network topology carrying the network element address. The technical scheme of the embodiment of the invention can reduce the learning cost for determining the network topology and acquiring the IP address of the network element, and improve the acquisition efficiency of the IP address of the network element in the network topology.

Description

Network topology determination method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a network topology determining method and device, electronic equipment and a storage medium.
Background
In the field of communications technology, each communication network needs to have its own network topology. Since technicians need to manage and monitor network elements by means of the network topology of a communication network, the determination of the network topology becomes a research hotspot in the field of communication technology.
At present, a network topology is mainly drawn by technicians according to communication requirements of a communication network, so that the communication network transmits data according to the drawn network topology. When an IP (Internet Protocol) address of a network element in a network topology needs to be acquired, a technician needs to query a configuration condition of the network element according to the drawn network topology, so as to acquire required information.
Because, the acquisition of the network element IP address in the network topology needs a professional to query the configuration of the network element. Therefore, the problem of high learning cost and low acquisition efficiency exists in the acquisition of the network element IP address in the existing network topology.
Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for determining a network topology, an electronic device, and a storage medium, which can reduce learning cost for acquiring a network element IP address and improve acquisition efficiency of the network element IP address in the network topology.
In a first aspect, an embodiment of the present invention provides a method for determining a network topology, including:
acquiring a target network topology;
determining a first port of a first target network element and a second port of a second target network element according to the target network topology;
determining the IP address of a first target network element and the IP address of a third target network element according to the signaling data of the first port, and determining the IP address of a second target network element according to the signaling data of the second port;
and marking the target network topology according to the IP address of the first target network element, the IP address of the second target network element and the IP address of the third target network element to obtain the network topology carrying the network element address.
In a second aspect, an embodiment of the present invention further provides a network topology determining apparatus, including:
the target network topology acquisition module is used for acquiring a target network topology;
a network element port determining module, configured to determine, according to a target network topology, a first port of a first target network element and a second port of a second target network element;
a network element IP address determining module, configured to determine an IP address of a first target network element and an IP address of a third target network element according to the signaling data of the first port, and determine an IP address of a second target network element according to the signaling data of the second port;
and the IP address labeling module is used for labeling the target network topology according to the IP address of the first target network element, the IP address of the second target network element and the IP address of the third target network element to obtain the network topology with the network element address.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method for determining a network topology as provided by any of the embodiments of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the network topology determining method provided in any embodiment of the present invention.
The embodiment of the invention determines the IP address of the first target network element and the IP address of the third target network element according to the signaling data of the first port by acquiring the target network topology and further determining the first port of the first target network element and the second port of the second target network element according to the target network topology, determines the IP address of the second target network element according to the signaling data of the second port, and further labels the target network topology according to the IP address of the first target network element, the IP address of the second target network element and the IP address of the third target network element to obtain the network topology with the network element address. In the scheme, the IP address of the first target network element and the IP address of the third target network element can be automatically obtained according to the signaling data of the first port of the first target network element, and the IP address of the second target network element can be automatically obtained according to the signaling data of the second port of the second target network element. The acquired IP address of the first target network element, the acquired IP address of the second target network element and the acquired IP address of the third target network element are automatically marked on the target network topology, so that the IP addresses of the network elements in the target network topology are more visual, the automatic acquisition and application of the IP addresses of the network elements are realized, the problems of low acquisition efficiency, high learning cost and the like of the IP addresses of the network elements in the prior art are solved, the learning cost and the labor cost for acquiring the IP addresses of the network elements can be reduced, and the acquisition efficiency of the IP addresses of the network elements in the network topology is improved.
Drawings
Fig. 1 is a flowchart of a network topology determining method according to an embodiment of the present invention;
fig. 2 is a flowchart of a network topology determining method according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of a target network topology according to a second embodiment of the present invention;
fig. 4 is a schematic diagram of a target network topology labeled with a network element IP address according to a second embodiment of the present invention;
fig. 5 is a schematic diagram of a network topology determining apparatus according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.
It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a network topology determining method according to an embodiment of the present invention, where this embodiment is applicable to a case of automatically labeling an IP address for a network element in a network topology, and the method may be executed by a network topology determining apparatus, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in an electronic device, where the electronic device may be a terminal device or a server device, and the embodiment of the present invention does not limit a type of the electronic device that executes the network topology determining method. Accordingly, as shown in fig. 1, the method comprises the following operations:
and S110, acquiring a target network topology.
The target network topology may be a topology formed by a plurality of network elements and connection lines of communication links between the network elements. In the embodiment of the present invention, a network topology existing in the communication network or automatically drawn according to data transmitted by the communication network may be used as the target network topology. Illustratively, the target network topology may be a network topology of a core network.
S120, determining a first port of the first target network element and a second port of the second target network element according to the target network topology.
Wherein the first target network element may be a network element responsible for signaling plane related functions. The first port may be an interface for the first target network element to transmit signalling plane related data. The second target network element may be a network element responsible for user plane and signalling plane related functions. The second port may be an interface for the second target network element to transmit signaling plane and user plane related data.
In the embodiment of the present invention, a first target network element and a second target network element included in a target network topology may be determined first, and then a first port included in the first target network element and a second port included in the second target network element are determined. The target network topology comprises network elements except the first target network element and the second target network element.
S130, determining the IP address of the first target network element and the IP address of the third target network element according to the signaling data of the first port, and determining the IP address of the second target network element according to the signaling data of the second port.
The signaling data may be data associated with signaling, which is transmitted through a communication network. The third target network element may be a network element communicatively coupled to the first target network element for coordinated scheduling of communication network resources.
In the embodiment of the present invention, the signaling data of the first port may be obtained from the communication network, and then the signaling data of the first port is analyzed to obtain the IP address of the first target network element and the IP address of the third target network element, and the signaling data of the second port may also be obtained from the communication network, and then the signaling data of the second port is analyzed to obtain the IP address of the second target network element.
S140, labeling the target network topology according to the IP address of the first target network element, the IP address of the second target network element and the IP address of the third target network element to obtain the network topology with the network element address.
In the embodiment of the present invention, after the IP address of the first target network element, the IP address of the second target network element, and the IP address of the third target network element are obtained, the IP address of the first target network element may be labeled to the first target network element of the target network topology, the IP address of the second target network element may be labeled to the second target network element of the target network topology, and the IP address of the third target network element may be labeled to the third target network element of the target network topology, so as to obtain the network topology labeled with the network element address.
Different from the prior art, technicians determine the IP address of the network element by analyzing the user plane related data and the signaling plane related data of the network element, the scheme can automatically analyze the data of the target port of the network element to obtain the IP address of the target network element, can also automatically mark the IP address of the network element in the target network topology, and can provide basis and guidance for accurately and directionally analyzing the flow in a large-flow scene.
The embodiment of the invention determines the IP address of the first target network element and the IP address of the third target network element according to the signaling data of the first port by acquiring the target network topology and further determining the first port of the first target network element and the second port of the second target network element according to the target network topology, determines the IP address of the second target network element according to the signaling data of the second port, and further labels the target network topology according to the IP address of the first target network element, the IP address of the second target network element and the IP address of the third target network element to obtain the network topology with the network element address. In the scheme, the IP address of the first target network element and the IP address of the third target network element can be automatically obtained according to the signaling data of the first port of the first target network element, and the IP address of the second target network element can be automatically obtained according to the signaling data of the second port of the second target network element. The acquired IP address of the first target network element, the acquired IP address of the second target network element and the acquired IP address of the third target network element are automatically marked on the target network topology, so that the IP addresses of the network elements in the target network topology are more visual, the automatic acquisition and application of the IP addresses of the network elements are realized, the problems of low acquisition efficiency, high learning cost and the like of the IP addresses of the network elements in the prior art are solved, the learning cost and the labor cost for acquiring the IP addresses of the network elements can be reduced, and the acquisition efficiency of the IP addresses of the network elements in the network topology is improved.
Example two
Fig. 2 is a flowchart of a network topology determining method provided in the second embodiment of the present invention, which is embodied on the basis of the above embodiments, and in this embodiment, a specific optional implementation manner is provided for acquiring a target network topology, further determining a first port of a first target network element and a second port of a second target network element according to the target network topology, further determining an IP address of the first target network element and an IP address of a third target network element according to signaling data of the first port, and determining an IP address of the second target network element according to signaling data of the second port, so as to label the target network topology according to the IP address of the first target network element, the IP address of the second target network element, and the IP address of the third target network element, and obtain a network topology carrying a network element address. Accordingly, as shown in fig. 2, the method includes the following operations:
s210, obtaining network element signaling data.
Wherein the network element signaling data may be data associated with a network element signaling plane function.
In the embodiment of the invention, the network element signaling data can be acquired from the communication network so as to automatically acquire the target network topology.
S220, determining the information flow direction between target network elements according to the network element signaling data.
The target network element may be a network element corresponding to the network element signaling data.
In the embodiment of the present invention, the network element signaling data may be analyzed, and a target network element that sends the network element signaling data and a target network element that receives the network element signaling data are determined, so as to obtain information flow directions of the target network element that sends the network element signaling data and the target network element that receives the network element signaling data.
Illustratively, if the network element signaling data is analyzed to obtain data sent by the target network element a to the target network element B, it may be determined that the information flow between the target network element a and the target network element B is from the target network element a to the target network element B.
S230, determining the target network topology according to the information flow direction between the target network elements.
In the embodiment of the invention, the directed communication link of the target network element in the target network topology can be determined according to the information flow direction between the target network elements, and then the target network element with the communication link is connected by using the directed line segment, so that the target network topology is automatically determined.
Illustratively, if the information flow between the target network element a and the target network element B is from the target network element a to the target network element B, the target network element a and the target network element B may be connected by a directed line segment, and the direction of the directed line segment is directed from the target network element a to the target network element B. Similarly, the target network element can be connected by using a directed line segment according to the information flow direction among all the target network elements, so as to obtain the target network topology.
S240, determining a first port of the first target network element and a second port of the second target network element according to the target network topology.
In an optional embodiment of the present invention, the first target network element may include an MME (Mobile Management Entity) and an SGW (Serving GateWay) network element, the second target network element may include an SGW and a PGW (Public data network GateWay) network element, and the third target network element may include an eNB (base station); determining the first port of the first target network element and the second port of the second target network element according to the target network topology may include: determining an S11 interface of the MME and the SGW according to the target network topology; and determining the S5 interface or the S8 interface of the SGW and the PGW according to the target network topology.
The S11 interface may be an interface of a signaling plane between the MME and the SGW. The S5 interface or S8 interface is the interface between the signaling plane and the user plane between the SGW and the PGW.
In the embodiment of the present invention, an MME and an SGW included in a target network topology may be determined first, an S11 interface for transmitting signaling plane related data between the MME and the SGW may be further determined, a PGW and an SGW included in the target network topology may also be determined according to the target network topology, and an S5 interface or an S8 interface for transmitting signaling plane and user plane related data between the PGW and the SGW may further be determined.
S250, determining the IP address of the first target network element and the IP address of the third target network element according to the signaling data of the first port, and determining the IP address of the second target network element according to the signaling data of the second port.
In an optional embodiment of the present invention, determining an IP address of the first target network element and an IP address of the third target network element according to the signaling data of the first port, and determining an IP address of the second target network element according to the signaling data of the second port may include: determining an IP address of the MME, a first IP address of the SGW, a second IP address of the SGW and an IP address of the eNB according to the signaling data of the S11 interface; and determining the third IP address of the SGW, the fourth IP address of the SGW, the first IP address of the PGW and the second IP address of the PGW according to the signaling data of the S5 interface or the S8 interface.
The first IP address of the SGW may be an IP address adopted by the SGW when the SGW and the MME transmit signaling plane related data. The second IP address of the SGW may be an IP address used by the SGW when the SGW transmits data with the eNB. The first IP address of the PGW may be an IP address adopted by the PGW when the PGW and the SGW transmit signaling plane related data. The second IP address of the PGW may be an IP address used by the PGW when the PGW and the SGW transmit user plane related data. The third IP address of the SGW may be an IP address used by the SGW when the SGW transmits signaling plane related data with the PGW. The fourth IP address of the SGW may be an IP address used by the SGW when the SGW and the PGW transmit the user plane related data.
In the embodiment of the present invention, the signaling data of the S11 interface may be analyzed to obtain an IP address used by the MME when the MME and the SGW transmit signaling plane related data, a first IP address of the SGW, a second IP address of the SGW, and an IP address used by the eNB when the eNB and the SGW transmit data, and the signaling data of the S5 interface or the S8 interface may be analyzed to obtain a third IP address of the SGW, a fourth IP address of the SGW, a first IP address of the PGW, and a second IP address of the PGW.
In an optional embodiment of the present invention, determining the IP address of the MME, the first IP address of the SGW, the second IP address of the SGW, and the IP address of the eNB according to the signaling data of the S11 interface may include: determining the IP address of the MME according to a Create Session Request signaling message of an S11 interface; determining a first IP address of the SGW and a second IP address of the SGW according to a Create Session Response signaling message of an S11 interface; and determining the IP address of the eNB according to the modified Bearer Request signaling message of the S11 interface.
The Create Session Request signaling message of the S11 interface may be signaling Data sent by the MME to the SGW through the S11 interface, and is used to Request Session establishment of initial attach or new PDN (Public Data Network) connection for the user. The Create Session Response signaling message of the S11 interface may be a signaling data sent by the SGW to the MME through the S11 interface, and is used to return a Request result of the Create Session Request signaling message. The modification Bearer Request signaling message of the S11 interface may be a signaling data sent by the MME to the SGW through the S11 interface, and is used to Request the update of the established Bearer for the user.
In the embodiment of the present invention, data extraction processing may be performed on signaling data of the S11 interface to obtain a Create Session Request signaling message of the S11 interface, and the Create Session Request signaling message is further analyzed to obtain the IP address of the MME. After the IP address of the MME is obtained, data extraction processing may be performed on signaling data of the S11 interface to obtain a Create Session Response signaling message of the S11 interface, and the Create Session Response signaling message is analyzed to obtain a first IP address of the SGW and a second IP address of the SGW. In addition, data extraction processing is performed on the signaling data of the S11 interface, and a modified Bearer Request signaling message of the S11 interface can be obtained, and further the modified Bearer Request signaling message can be analyzed to obtain the IP address of the eNB.
In an optional embodiment of the present invention, determining the third IP address of the SGW, the fourth IP address of the SGW, the first IP address of the PGW, and the second IP address of the PGW according to the signaling data of the S5 interface or the S8 interface may include: determining a third IP address of the SGW and a fourth IP address of the SGW according to a Create Session Request signaling message of an S5 interface or an S8 interface; and determining the first IP address of the PGW and the second IP address of the PGW according to a Create Session Response signaling message of the S5 interface or the S8 interface.
The Create Session Request signaling message of the S5 interface or the S8 interface may be a signaling data sent by the SGW to the PGW through the S5 interface or the S8 interface, and is used to Request Session establishment of initial attachment or new PDN connection for the user. The Create Session Response signaling message of the S5 interface or the S8 interface may be a type of signaling data sent by the PGW to the SGW, and is used to return a Request result of the Create Session Request message.
In the embodiment of the present invention, data extraction processing may be performed on signaling data of the S5 interface or the S8 interface to obtain a Create Session Request signaling message of the S5 interface or the S8 interface, and then the Create Session Request signaling message is analyzed to obtain the third IP address of the SGW and the fourth IP address of the SGW. In the embodiment of the present invention, data extraction processing may be further performed on signaling data of the S5 interface or the S8 interface to obtain a Create Session Response signaling message of the S5 interface or the S8 interface, and the Create Session Response signaling message is further analyzed to obtain the first IP address of the PGW and the second IP address of the PGW.
S260, labeling the target network topology according to the IP address of the first target network element, the IP address of the second target network element and the IP address of the third target network element to obtain the network topology with the network element address.
In an optional embodiment of the present invention, labeling, according to the IP address of the first target network element, the IP address of the second target network element, and the IP address of the third target network element, a target network topology to obtain a network topology carrying a network element address, may include: and marking the IP address of the MME, the first IP address of the SGW, the second IP address of the SGW, the IP address of the eNB, the third IP address of the SGW, the fourth IP address of the SGW, the first IP address of the PGW and the second IP address of the PGW on the target network topology to obtain the network topology carrying the network element address.
In the embodiment of the present invention, the IP address of the MME, the first IP address of the SGW, the second IP address of the SGW, the IP address of the eNB, the third IP address of the SGW, the fourth IP address of the SGW, the first IP address of the PGW, and the second IP address of the PGW may be marked on a corresponding target network element in the target network topology, so as to obtain the network topology with the network element address.
Fig. 3 is a schematic diagram of a target network topology according to a second embodiment of the present invention, and in a specific example, network element signaling data is analyzed, it may be determined that network elements associated with the network element signaling data are an MME, an SGW, a PGW, and an eNB, and it may also be determined that the MME performs data interaction with the SGW, the eNB performs data interaction with the SGW, and the SGW performs data interaction with the PGW. Because the MME and the SGW perform data interaction, the information flow direction between the MME and the SGW is bidirectional, that is, two line segments exist between the MME and the SGW to connect the MME and the SGW, the direction of one line segment is directed from the MME to the SGW, and the direction of the other line segment is directed from the SGW to the MME. In the same way, directional line segments between all network elements can be obtained, and then the target network topology shown in fig. 3, which is composed of the network elements and the directional line segments, is obtained.
Illustratively, the PGW and the SGW may be divided into a user plane network element and a signaling plane network element according to different application functions. For example, the SGW in the target network topology of FIG. 3 may be divided into SGW-C and SGW-U, and the PGW may be divided into PGW-C and PGW-U. The SGW-C represents an SGW for transmitting data on a signaling plane, the SGW-U represents an SGW for transmitting data on a user plane, the PGW-C represents a PGW for transmitting data on the signaling plane, and the PGW-U represents a PGW for transmitting data on the user plane. In addition, the S5 interface and the S8 interface may be divided into a signaling plane interface and a user plane interface according to different types of transmission data. For example, the S5 interface can be divided into an S5-C interface and an S5-U interface. The S8 interface can be divided into an S8-C interface and an S8-U interface. The S5-C interface represents an S5 interface for transmitting signaling plane related data, and the S5-U interface represents an S5 interface for transmitting user plane related data. The S8-C interface represents an S8 interface for transmitting signaling plane related data, and the S8-U interface represents an S8 interface for transmitting user plane related data.
Specifically, network elements of the S5-C/S8-C interface are SGW-C and PGW-C. Network elements of the S5-U/S8-U interface are SGW-U and PGW-U. The network elements of the S11 interface (signaling plane interface) are MME and SGW-C, and the network elements of the S1-U interface (user plane interface) are eNB and SGW-C. Wherein, the signaling plane interface transmits gtpv2 signaling traffic, and the user plane interface transmits gtpU user plane traffic.
Fig. 4 is a schematic diagram of a target network topology labeled with network element IP addresses according to a second embodiment of the present invention, and in a specific example, after a PGW and an SGW are divided according to application functions, an S11 interface between the MME and the SGW may be determined, an IP address of the MME is determined to be 220.206.151.248 according to a Create Session Request signaling message of an S11 interface, a first IP address of the SGW is determined to be 116.79.228.184 according to a Create Session Response signaling message of an S11 interface, and a second IP address of the SGW is determined to be 10.100.32.40. And determining the IP address of the eNB to be 10.109.83.21 according to the modified Bearer Request signaling message of the S11 interface. And determining that the IP address of the signaling plane of the SGW is 116.79.228.185 and the IP address of the user plane of the SGW is 116.79.228.186 according to the Create Session Request signaling message of the S5 interface or the S8 interface. And determining that the first IP address of the PGW is 220.206.186.248 and the second IP address of the PGW is 220.206.186.249 according to a Create Session Response signaling message of the S5 interface or the S8 interface.
After the IP addresses of the network elements are obtained, the first IP address of the SGW may be labeled on a side close to the SGW-C of the MME, the second IP address of the SGW may be labeled on a side close to the SGW-U of the MME, the third IP address of the SGW may be labeled on a side far from the SGW-C of the MME, the fourth IP address of the SGW may be labeled on a side far from the SGW-U of the MME, the first IP address of the PGW may be labeled on a side of the PGW-C, and the second IP address of the PGW may be labeled on a side of the PGW-U, and the final target network element topology with the labeled network element IP addresses may be as shown in fig. 4.
The embodiment of the invention determines the information flow direction between the target network elements according to the network element signaling data by acquiring the network element signaling data, thereby determining the target network topology according to the information flow direction between the target network elements. After the target network topology is obtained, a first port of a first target network element and a second port of a second target network element are determined according to the target network topology, an IP address of the first target network element and an IP address of a third target network element are further determined according to signaling data of the first port, an IP address of the second target network element is determined according to signaling data of the second port, the target network topology is further labeled according to the IP addresses of the first target network element, the second target network element and the third target network element, and the network topology with the network element addresses is obtained. In the scheme, the IP address of the first target network element and the IP address of the third target network element can be automatically obtained according to the signaling data of the first port of the first target network element, and the IP address of the second target network element can be automatically obtained according to the signaling data of the second port of the second target network element. The acquired IP address of the first target network element, the acquired IP address of the second target network element and the acquired IP address of the third target network element are automatically marked on the target network topology, so that the IP addresses of the network elements in the target network topology are more visual, the automatic acquisition and application of the IP addresses of the network elements are realized, the problems of low acquisition efficiency, high learning cost and the like of the IP addresses of the network elements in the prior art are solved, the learning cost and the labor cost for acquiring the IP addresses of the network elements can be reduced, and the acquisition efficiency of the IP addresses of the network elements in the network topology is improved.
It should be noted that any permutation and combination between the technical features in the above embodiments also belong to the scope of the present invention.
EXAMPLE III
Fig. 5 is a schematic diagram of a network topology determining apparatus according to a third embodiment of the present invention, and as shown in fig. 5, the apparatus includes: a target network topology obtaining module 310, a network element port determining module 320, a network element IP address determining module 330, and an IP address labeling module 340, wherein:
a target network topology obtaining module 310, configured to obtain a target network topology;
a network element port determining module 320, configured to determine, according to the target network topology, a first port of a first target network element and a second port of a second target network element;
a network element IP address determining module 330, configured to determine an IP address of a first target network element and an IP address of a third target network element according to the signaling data of the first port, and determine an IP address of a second target network element according to the signaling data of the second port;
and the IP address labeling module 340 is configured to label a target network topology according to the IP address of the first target network element, the IP address of the second target network element, and the IP address of the third target network element, so as to obtain a network topology carrying a network element address.
The embodiment of the invention determines the IP address of the first target network element and the IP address of the third target network element according to the signaling data of the first port by acquiring the target network topology and further determining the first port of the first target network element and the second port of the second target network element according to the target network topology, determines the IP address of the second target network element according to the signaling data of the second port, and further labels the target network topology according to the IP address of the first target network element, the IP address of the second target network element and the IP address of the third target network element to obtain the network topology with the network element address. In the scheme, the IP address of the first target network element and the IP address of the third target network element can be automatically obtained according to the signaling data of the first port of the first target network element, and the IP address of the second target network element can be automatically obtained according to the signaling data of the second port of the second target network element. The acquired IP address of the first target network element, the acquired IP address of the second target network element and the acquired IP address of the third target network element are automatically marked on the target network topology, so that the IP addresses of the network elements in the target network topology are more visual, the automatic acquisition and application of the IP addresses of the network elements are realized, the problems of low acquisition efficiency, high learning cost and the like of the IP addresses of the network elements in the prior art are solved, the learning cost and the labor cost for acquiring the IP addresses of the network elements can be reduced, and the acquisition efficiency of the IP addresses of the network elements in the network topology is improved.
Optionally, the target network topology obtaining module 310 is specifically configured to: acquiring network element signaling data; determining the information flow direction between target network elements according to the network element signaling data; and determining the target network topology according to the information flow direction between the target network elements.
Optionally, the first target network element includes an MME mobility management entity and an SGW serving gateway; the second target network element comprises an SGW and a PGW public data network gateway; the third target network element comprises an eNB base station; the network element port determining module 320 is specifically configured to: determining an S11 interface of the MME and the SGW according to the target network topology; and determining S5 interfaces or S8 interfaces of the SGW and the PGW according to the target network topology.
Optionally, the network element IP address determining module 330 is specifically configured to: determining an IP address of the MME, a first IP address of the SGW, a second IP address of the SGW and an IP address of the eNB base station according to the signaling data of the S11 interface; and determining a third IP address of the SGW, a fourth IP address of the SGW, a first IP address of the PGW and a second IP address of the PGW according to the signaling data of the S5 interface or the S8 interface.
Optionally, the network element IP address determining module 330 is specifically configured to: determining the IP address of the MME according to the Create Session Request signaling message of the S11 interface; determining a first IP address of the SGW and a second IP address of the SGW according to a Create Session Response signaling message of the S11 interface; and determining the IP address of the eNB according to the modified Bearer Request signaling message of the S11 interface.
Optionally, the network element IP address determining module 330 is specifically configured to: determining a third IP address of the SGW and a fourth IP address of the SGW according to a Create Session Request signaling message of the S5 interface or the S8 interface; and determining a first IP address of the PGW and a second IP address of the PGW according to the Create Session Response signaling message of the S5 interface or the S8 interface.
Optionally, the IP address labeling module 340 is specifically configured to: and marking the IP address of the MME, the first IP address of the SGW, the second IP address of the SGW, the IP address of the eNB, the third IP address of the SGW, the fourth IP address of the SGW, the first IP address of the PGW and the second IP address of the PGW on the target network topology to obtain the network topology carrying the network element address.
The network topology determining device can execute the network topology determining method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the executing method. For details of the technology that are not described in detail in this embodiment, reference may be made to a network topology determining method provided in any embodiment of the present invention.
Since the network topology determining apparatus described above is an apparatus that can execute the network topology determining method in the embodiment of the present invention, based on the network topology determining method described in the embodiment of the present invention, a person skilled in the art can understand a specific implementation manner of the network topology determining apparatus in the embodiment and various variations thereof, and therefore, how the network topology determining apparatus implements the network topology determining method in the embodiment of the present invention is not described in detail here. As long as those skilled in the art implement the apparatus used in the method for determining a network topology according to the embodiment of the present invention, the apparatus is within the scope of the present application.
Example four
Fig. 6 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. FIG. 6 illustrates a block diagram of an electronic device 412 that is suitable for use in implementing embodiments of the present invention. The electronic device 412 shown in fig. 6 is only an example and should not bring any limitations to the functionality and scope of use of the embodiments of the present invention. The electronic device 412 may be, for example, a computer device or a server device, etc.
As shown in fig. 6, the electronic device 412 is in the form of a general purpose computing device. The components of the electronic device 412 may include, but are not limited to: one or more processors 416, a storage device 428, and a bus 418 that couples the various system components including the storage device 428 and the processors 416.
Bus 418 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
Electronic device 412 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 412 and includes both volatile and nonvolatile media, removable and non-removable media.
Storage 428 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 430 and/or cache Memory 432. The electronic device 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 434 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk-Read Only Memory (CD-ROM), a Digital Video disk (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 418 by one or more data media interfaces. Storage 428 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
Program 436 having a set (at least one) of program modules 426 may be stored, for example, in storage 428, such program modules 426 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination may comprise an implementation of a network environment. Program modules 426 generally perform the functions and/or methodologies of embodiments of the invention as described herein.
The electronic device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing device, camera, display 424, etc.), with one or more devices that enable a user to interact with the electronic device 412, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 412 to communicate with one or more other computing devices. Such communication may be through an Input/Output (I/O) interface 422. Also, the electronic device 412 may communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), and/or a public Network, such as the internet) via the Network adapter 420. As shown, network adapter 420 communicates with the other modules of electronic device 412 over bus 418. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 412, including but not limited to: microcode, device drivers, Redundant processing units, external disk drive Arrays, disk array (RAID) systems, tape drives, and data backup storage systems, to name a few.
The processor 416 executes various functional applications and data processing by executing programs stored in the storage device 428, for example, to implement the network topology determining method provided by the above-described embodiment of the present invention: acquiring a target network topology; determining a first port of a first target network element and a second port of a second target network element according to the target network topology; determining the IP address of a first target network element and the IP address of a third target network element according to the signaling data of the first port, and determining the IP address of a second target network element according to the signaling data of the second port; and marking the target network topology according to the IP address of the first target network element, the IP address of the second target network element and the IP address of the third target network element to obtain the network topology carrying the network element address.
The embodiment of the invention determines the IP address of the first target network element and the IP address of the third target network element according to the signaling data of the first port by acquiring the target network topology and further determining the first port of the first target network element and the second port of the second target network element according to the target network topology, determines the IP address of the second target network element according to the signaling data of the second port, and further labels the target network topology according to the IP address of the first target network element, the IP address of the second target network element and the IP address of the third target network element to obtain the network topology with the network element address. In the scheme, the IP address of the first target network element and the IP address of the third target network element can be automatically obtained according to the signaling data of the first port of the first target network element, and the IP address of the second target network element can be automatically obtained according to the signaling data of the second port of the second target network element. The acquired IP address of the first target network element, the acquired IP address of the second target network element and the acquired IP address of the third target network element are automatically marked on the target network topology, so that the IP addresses of the network elements in the target network topology are more visual, the automatic acquisition and application of the IP addresses of the network elements are realized, the problems of low acquisition efficiency, high learning cost and the like of the IP addresses of the network elements in the prior art are solved, the learning cost and the labor cost for acquiring the IP addresses of the network elements can be reduced, and the acquisition efficiency of the IP addresses of the network elements in the network topology is improved.
EXAMPLE five
An embodiment of the present invention further provides a computer storage medium storing a computer program, where the computer program is executed by a computer processor to perform the network topology determining method according to any one of the above embodiments of the present invention: acquiring a target network topology; determining a first port of a first target network element and a second port of a second target network element according to the target network topology; determining the IP address of a first target network element and the IP address of a third target network element according to the signaling data of the first port, and determining the IP address of a second target network element according to the signaling data of the second port; and marking the target network topology according to the IP address of the first target network element, the IP address of the second target network element and the IP address of the third target network element to obtain the network topology carrying the network element address.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM) or flash Memory), an optical fiber, a portable compact disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for determining a network topology, comprising:
acquiring a target network topology;
determining a first port of a first target network element and a second port of a second target network element according to the target network topology;
determining the IP address of the first target network element and the IP address of a third target network element according to the signaling data of the first port, and determining the IP address of the second target network element according to the signaling data of the second port;
and labeling the target network topology according to the IP address of the first target network element, the IP address of the second target network element and the IP address of the third target network element to obtain a network topology with a network element address.
2. The method of claim 1, wherein obtaining the target network topology comprises:
acquiring network element signaling data;
determining the information flow direction between target network elements according to the network element signaling data;
and determining the target network topology according to the information flow direction between the target network elements.
3. The method of claim 2, wherein the first target network element comprises an MME mobility management entity and an SGW serving gateway; the second target network element comprises an SGW and a PGW public data network gateway; the third target network element comprises an eNB base station;
the determining a first port of a first target network element and a second port of a second target network element according to the target network topology includes:
determining an S11 interface of the MME and the SGW according to the target network topology;
and determining S5 interfaces or S8 interfaces of the SGW and the PGW according to the target network topology.
4. The method of claim 3, wherein the determining the IP address of the first target network element and the IP address of the third target network element according to the signaling data of the first port and the determining the IP address of the second target network element according to the signaling data of the second port comprises:
determining an IP address of the MME, a first IP address of the SGW, a second IP address of the SGW and an IP address of the eNB according to the signaling data of the S11 interface;
and determining a third IP address of the SGW, a fourth IP address of the SGW, a first IP address of the PGW and a second IP address of the PGW according to the signaling data of the S5 interface or the S8 interface.
5. The method of claim 4, wherein determining the IP address of the MME, the first IP address of the SGW, the second IP address of the SGW, and the IP address of the eNB according to the signaling data of the S11 interface comprises:
determining the IP address of the MME according to the Create Session Request signaling message of the S11 interface;
determining a first IP address of the SGW and a second IP address of the SGW according to a Create Session Response signaling message of the S11 interface;
and determining the IP address of the eNB according to the modified Bearer Request signaling message of the S11 interface.
6. The method of claim 4, wherein determining the third IP address of the SGW, the fourth IP address of the SGW, the first IP address of the PGW and the second IP address of the PGW according to the signaling data of the S5 interface or the S8 interface comprises:
determining a third IP address of the SGW and a fourth IP address of the SGW according to a Create Session Request signaling message of the S5 interface or the S8 interface;
and determining a first IP address of the PGW and a second IP address of the PGW according to the Create Session Response signaling message of the S5 interface or the S8 interface.
7. The method of claim 4, wherein the obtaining of the network topology with the network element address by labeling the target network topology according to the IP address of the first target network element, the IP address of the second target network element, and the IP address of the third target network element comprises:
and marking the IP address of the MME, the first IP address of the SGW, the second IP address of the SGW, the IP address of the eNB, the third IP address of the SGW, the fourth IP address of the SGW, the first IP address of the PGW and the second IP address of the PGW on the target network topology to obtain the network topology carrying the network element address.
8. A network topology determination apparatus, comprising:
the target network topology acquisition module is used for acquiring a target network topology;
a network element port determining module, configured to determine, according to the target network topology, a first port of a first target network element and a second port of a second target network element;
a network element IP address determining module, configured to determine, according to the signaling data of the first port, an IP address of the first target network element and an IP address of a third target network element, and determine, according to the signaling data of the second port, an IP address of the second target network element;
and the IP address labeling module is used for labeling the target network topology according to the IP address of the first target network element, the IP address of the second target network element and the IP address of the third target network element to obtain the network topology with the network element address.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the network topology determination method of any of claims 1-7.
10. A computer storage medium having a computer program stored thereon, the program, when executed by a processor, implementing a network topology determination method according to any of claims 1-7.
CN202110941312.2A 2021-08-17 2021-08-17 Network topology determination method and device, electronic equipment and storage medium Pending CN113691399A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110941312.2A CN113691399A (en) 2021-08-17 2021-08-17 Network topology determination method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110941312.2A CN113691399A (en) 2021-08-17 2021-08-17 Network topology determination method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113691399A true CN113691399A (en) 2021-11-23

Family

ID=78580182

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110941312.2A Pending CN113691399A (en) 2021-08-17 2021-08-17 Network topology determination method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113691399A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114339943A (en) * 2021-12-15 2022-04-12 中国电信股份有限公司 Network access method, data distribution method, system, equipment and storage medium
CN114339767A (en) * 2021-12-30 2022-04-12 恒安嘉新(北京)科技股份公司 Signaling detection method and device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010052157A1 (en) * 2008-11-10 2010-05-14 Telefonaktiebolaget Lm Ericsson (Publ) Topology determination in a communications network
US20120110197A1 (en) * 2010-09-27 2012-05-03 Telefonaktiebolaget L Technique for relocating a serving gateway associated to a user equipment
CN102685769A (en) * 2010-12-21 2012-09-19 特克特朗尼克公司 Topology detection of lte nodes
CN104320345A (en) * 2014-10-30 2015-01-28 杭州华三通信技术有限公司 Method and device for collecting topological information in SDN network
CN106941670A (en) * 2017-02-10 2017-07-11 北京浩瀚深度信息技术股份有限公司 A kind of LTE system interior signaling face and the correlating method and device of user plane
US20170302562A1 (en) * 2014-12-31 2017-10-19 Huawei Technologies Co., Ltd. Topological Learning Method and Apparatus for OPENFLOW Network Cross Conventional IP Network
CN109936877A (en) * 2017-12-15 2019-06-25 慧与发展有限责任合伙企业 Select the address of equipment
CN111224901A (en) * 2019-12-03 2020-06-02 北京锐安科技有限公司 Data association method, device and distributed system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010052157A1 (en) * 2008-11-10 2010-05-14 Telefonaktiebolaget Lm Ericsson (Publ) Topology determination in a communications network
US20120110197A1 (en) * 2010-09-27 2012-05-03 Telefonaktiebolaget L Technique for relocating a serving gateway associated to a user equipment
CN102685769A (en) * 2010-12-21 2012-09-19 特克特朗尼克公司 Topology detection of lte nodes
CN104320345A (en) * 2014-10-30 2015-01-28 杭州华三通信技术有限公司 Method and device for collecting topological information in SDN network
US20170302562A1 (en) * 2014-12-31 2017-10-19 Huawei Technologies Co., Ltd. Topological Learning Method and Apparatus for OPENFLOW Network Cross Conventional IP Network
CN106941670A (en) * 2017-02-10 2017-07-11 北京浩瀚深度信息技术股份有限公司 A kind of LTE system interior signaling face and the correlating method and device of user plane
CN109936877A (en) * 2017-12-15 2019-06-25 慧与发展有限责任合伙企业 Select the address of equipment
CN111224901A (en) * 2019-12-03 2020-06-02 北京锐安科技有限公司 Data association method, device and distributed system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114339943A (en) * 2021-12-15 2022-04-12 中国电信股份有限公司 Network access method, data distribution method, system, equipment and storage medium
CN114339767A (en) * 2021-12-30 2022-04-12 恒安嘉新(北京)科技股份公司 Signaling detection method and device, electronic equipment and storage medium
CN114339767B (en) * 2021-12-30 2024-04-05 恒安嘉新(北京)科技股份公司 Signaling detection method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN113691399A (en) Network topology determination method and device, electronic equipment and storage medium
US20140341199A1 (en) Method and device for processing service in software-defined networking system
US20200296181A1 (en) Data transmission method, apparatus and system
WO2019084714A1 (en) System information sending method, apparatus, computer device, and storage medium
CN109669787B (en) Data transmission method and device, storage medium and electronic equipment
US11057813B2 (en) Method and apparatus for transmitting downlink data
US20200260277A1 (en) Method for wireless access authentication
CN115240157B (en) Method, apparatus, device and computer readable medium for persistence of road scene data
CN114302426B (en) Method, device, medium and electronic equipment for controlling service quality in heterogeneous network
CN110831005A (en) Device adding method of Mesh network, gateway device and storage medium
CN115174123A (en) SA5G network-oriented user tracing association method and system
CN114726829A (en) Communication method, user plane gateway and communication system
WO2019136821A1 (en) Network selection method and apparatus of terminal, computer device, and storage medium
CN103686906B (en) Method for switching network, terminal equipment and gateway equipment
BR112021008216A2 (en) implementation of cellular network core stack in cloud infrastructure
JP2018522480A (en) Method and apparatus for searching a fronthaul topology
CN114158074B (en) 5G network element address determination method and device, electronic equipment and storage medium
CN109819026B (en) Method and device for transmitting information
CN104917800A (en) Method and device for establishing redundancy connection for virtual machine
CN103188822A (en) Machine communication method and device
JP2020533905A5 (en)
CN115412993A (en) Relay discovery method, system, device and storage medium
CN115914251A (en) Data frame transmission method and device and readable storage medium
CN113613239B (en) Network mode switching method, network mode switching device, medium, and electronic device
CN114422998A (en) Method, device, electronic equipment and medium for identifying non-independent networking and network-climbing users

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination