CN109088823B - Method and device for realizing terminal interconnection - Google Patents

Method and device for realizing terminal interconnection Download PDF

Info

Publication number
CN109088823B
CN109088823B CN201710448437.5A CN201710448437A CN109088823B CN 109088823 B CN109088823 B CN 109088823B CN 201710448437 A CN201710448437 A CN 201710448437A CN 109088823 B CN109088823 B CN 109088823B
Authority
CN
China
Prior art keywords
ospf
message
terminal
address
core network
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.)
Active
Application number
CN201710448437.5A
Other languages
Chinese (zh)
Other versions
CN109088823A (en
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.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201710448437.5A priority Critical patent/CN109088823B/en
Publication of CN109088823A publication Critical patent/CN109088823A/en
Application granted granted Critical
Publication of CN109088823B publication Critical patent/CN109088823B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/122Shortest path evaluation by minimising distances, e.g. by selecting a route with minimum of number of hops
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5061Pools of addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to the field of network communication technologies, and in particular, to a method and an apparatus for implementing terminal interconnection. The method comprises the following steps: when a terminal is monitored to be accessed, an address pool is distributed for the accessed terminal, an OSPF (open shortest path first) neighbor relation is established with the accessed terminal, a first OSPF message is generated and issued to each accessed terminal, each second OSPF message fed back by each accessed terminal is received and analyzed respectively, new routing entry information is determined, a dynamic routing table is adjusted based on the new routing entry information, and message forwarding between the terminals is realized based on the dynamic routing table. By adopting the method, the interconnection of the terminals can be realized by establishing a neighbor relation with each accessed terminal and processing the OSPF message, so that the condition that the network is paralyzed when a router fails can be prevented, and the user experience is improved.

Description

Method and device for realizing terminal interconnection
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a method and an apparatus for implementing terminal interconnection.
Background
With the rapid advance of industrialization and urbanization, places such as people flow, logistics, information flow and the like are highly gathered (such as large-scale event sites, large-scale shopping malls and the like), and emergency events caused by natural factors, human factors, natural disasters and the like frequently occur, so that the management of the emergency and disaster events is more and more important. In the aspects of dealing with important events, large-scale activities, emergencies and the like, emergency communication vehicles are often required to provide emergency communication services due to more people flow. The emergency communication vehicle is equivalent to a core network, and network interconnection needs to be realized among the down-hanging terminals under each core network, so that network communication is carried out.
In the prior art, network interconnection among different Core networks is usually realized by using an external router, so as to realize network interconnection among all under-hung terminals under each Core network, the Core network is only used as a node of an access network, and the router forms an Open Shortest Path preferred (OSPF) election network for a subnet interface connected with an SGI interface of an Evolved Packet Core (EPC) and each subnet, so as to issue and share dynamic routes, realize network interconnection among all Core networks, and further realize network interconnection among all under-hung terminals under each Core network.
However, at present, network interconnection between the drop-down terminals under each core network is realized by using an external router, which still has many defects and shortcomings, for example, if the external router fails or is damaged by people, the network paralysis of the interconnection network composed of the router and each core network can be caused directly. Therefore, in some specific service scenarios, the network interconnection between the core networks cannot be realized by using an external router, and further the network interconnection between the drop terminals under each core network cannot be realized.
In summary, a new method and device for implementing terminal interconnection needs to be designed to overcome the defects and shortcomings in the prior art.
Disclosure of Invention
The embodiment of the invention provides a method and a device for realizing terminal interconnection, which are used for solving the problem of network paralysis caused by router failure in the prior art.
The embodiment of the invention provides the following specific technical scheme:
a method for realizing terminal interconnection comprises the following steps:
when monitoring that a terminal is accessed, a core network server allocates an address pool for the accessed terminal, and establishes an open shortest path first protocol (OSPF) neighbor relation based on the address pool and the accessed terminal, wherein the address pools obtained by different terminals are different;
a core network server generates a first OSPF message, and transmits the first OSPF message to each accessed terminal when judging that the first OSPF message meets a preset judgment condition;
the core network server receives each accessed second OSPF message fed back by each terminal based on the first OSPF message, analyzes each second OSPF message respectively, and determines new routing entry information;
and the core network server adjusts a dynamic routing table maintained by the core network server based on the new routing entry information, and realizes message forwarding between accessed terminals based on the dynamic routing table.
Preferably, when determining that the first OSPF packet meets the preset determination condition, the core network server issues the first OSPF packet to each accessed terminal, which specifically includes:
when the core network server judges that the source IP address of the first OSPF message is the IP address of the designated port which is set in the core network server in a virtual mode, the core network server determines that the first OSPF message meets the preset judgment condition, performs tunnel encapsulation on the first OSPF message, and issues the encapsulated first OSPF message to each accessed terminal by using default bearing.
Preferably, the designated port set in the core network server in a virtual manner is a vith 255 port, where the vith 255 port is a virtual router interface.
Preferably, the core network server analyzes each second OSPF packet, and determines new routing entry information, which specifically includes:
the core network server respectively executes the following operations aiming at each second OSPF message in the second OSPF messages:
the core network server decapsulates a second OSPF message to obtain an IP address of a terminal feeding back the second OSPF message, and generates corresponding routing entry information based on the IP address of the terminal feeding back the second OSPF message;
and if the core network server judges that the routing entry information does not exist in the locally maintained dynamic routing table, determining that the routing entry information is new routing entry information.
Preferably, the core network server implements packet forwarding between accessed terminals based on the dynamic routing table, and specifically includes:
and when receiving a message which is sent by an accessed terminal and needs to be forwarded, the core network server acquires a destination IP address of the message and acquires a shortest path of the terminal corresponding to the destination IP address of the message from the dynamic routing table.
An apparatus for implementing terminal interconnection, comprising:
the distribution unit is used for distributing an address pool for the accessed terminal when the terminal access is monitored, and establishing an open shortest path first protocol (OSPF) neighbor relation based on the address pool and the accessed terminal, wherein the address pools obtained by different terminals are different;
a generating unit, configured to generate a first OSPF packet, and when it is determined that the first OSPF packet meets a preset determination condition, send the first OSPF packet to each accessed terminal;
a receiving unit, configured to receive each second OSPF packet fed back by each accessed terminal based on the first OSPF packet, and analyze each second OSPF packet respectively to determine new routing entry information;
and the adjusting unit is used for adjusting the dynamic routing table maintained by the device based on the new routing entry information and realizing message forwarding between accessed terminals based on the dynamic routing table.
Preferably, when determining that the first OSPF packet satisfies the preset determination condition and issuing the first OSPF packet to each accessed terminal, the generating unit is specifically configured to:
when the source IP address of the first OSPF message is judged to be the IP address of the appointed port which is set in the device in a virtual mode, the first OSPF message is determined to meet the preset judgment condition, the first OSPF message is packaged in a tunnel, and the packaged first OSPF message is issued to each accessed terminal by using default load.
Preferably, the designated port set in the device in a virtual manner is a port of vteth 255, where the port of vteth 255 is a virtual router interface.
Preferably, when analyzing each second OSPF packet and determining new routing entry information, the receiving unit is specifically configured to:
and executing the following operations for each second OSPF message in the second OSPF messages respectively:
decapsulating a second OSPF message to obtain an IP address of a terminal feeding back the second OSPF message, and generating corresponding routing entry information based on the IP address of the terminal feeding back the second OSPF message;
and if the routing entry information does not exist in the dynamic routing table maintained by the device, determining that the routing entry information is new routing entry information.
Preferably, when implementing packet forwarding between accessed terminals based on the dynamic routing table, the adjusting unit is specifically configured to:
and when receiving a message which is sent by an accessed terminal and needs to be forwarded, acquiring a destination IP address of the message, and acquiring a shortest path of the terminal corresponding to the destination IP address of the message from the dynamic routing table.
The invention has the following beneficial effects:
in summary, in the embodiment of the present invention, in the process of implementing terminal interconnection, each time a core network server monitors that a terminal accesses, the core network server allocates an address pool to the accessed terminal, and establishes an open shortest path first protocol OSPF neighbor relation with the accessed terminal based on the address pool, where the address pools obtained by different terminals are different, the core network server generates a first OSPF message, and when it is determined that the first OSPF message satisfies a preset determination condition, the first OSPF message is sent to each accessed terminal, the core network server receives each second OSPF message fed back by each accessed terminal based on the first OSPF message, and analyzes each second OSPF message respectively, determines new routing entry information, the core network server adjusts a dynamic routing table maintained by the core network server based on the new routing entry information, and realizing message forwarding between accessed terminals based on the dynamic routing table.
By adopting the method, the core network server can realize the interconnection between the terminals in the service scene without the route by establishing the neighbor relation with the accessed terminals and processing the OSPF message, thereby preventing the networking from being paralyzed due to the failure or artificial damage of the router and improving the user experience.
Drawings
Fig. 1 is a schematic structural diagram of an OSPF election network composed of a core network server and a terminal in an embodiment of the present invention;
fig. 2 is a detailed flowchart of a method for implementing terminal interconnection in the embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for implementing terminal interconnection according to an embodiment of the present invention.
Detailed Description
The method aims to solve the problem that in the prior art, network interconnection of all the drop terminals under each core network cannot be realized under a specific router-free service scene. The embodiment of the invention provides a method and a device for realizing terminal interconnection, wherein the method comprises the following steps: when monitoring that a terminal is accessed, the core network server allocates an address pool for the accessed terminal, and establishes an open shortest path first protocol OSPF neighbor relation with the accessed terminal based on the address pool, wherein, the address pools obtained by different terminals are different, the core network server generates a first OSPF message, and when the first OSPF message is judged to meet the preset judgment condition, the first OSPF message is issued to each accessed terminal, the core network server receives each second OSPF message fed back by each accessed terminal based on the first OSPF message, and analyzing each second OSPF message respectively, determining new routing entry information, adjusting a dynamic routing table maintained by the core network server based on the new routing entry information, and realizing message forwarding between accessed terminals based on the dynamic routing table.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Specifically, referring to fig. 1, in the embodiment of the present invention, a core network server (e.g., an emergency communication vehicle) and a terminal form a schematic structural diagram of an Open Shortest Path First (OSPF) election network.
In practical application, the core network server may be specifically an emergency communication vehicle, an OSPF function of a PDN Gateway (PGW) reason device is integrated on the emergency communication vehicle, a local connection module of the emergency communication vehicle supports a logical port function to be used for connection between the emergency communication vehicles, and further, a virtual mode is adopted on the emergency communication vehicle to set a designated port (e.g., a vteth 255 port) to be used for intercommunication between a local host of the emergency communication vehicle and the transmission module.
The scheme of the present invention will be described in detail by way of specific examples, but the present invention is not limited to the following examples.
Referring to fig. 2, in the embodiment of the present invention, a detailed flow of a method for implementing terminal interconnection is as follows:
step 200: when monitoring that a terminal is accessed, a core network server allocates an address pool for the accessed terminal, and establishes an OSPF (open shortest Path first) neighbor relation with the accessed terminal based on the address pool, wherein the address pools obtained by different terminals are different.
Certainly, before the OSPF core module local to the core network generates the first OSPF message, the transmission module local to the core network may also determine an IP Address of an Address Resolution Protocol (ARP) message sent by the host module local to the core network, and if it is determined that the IP Address of the ARP message is an IP Address of a specified port (e.g., a vth 255 port) in the core network server and a destination Address in the ARP message is an IP Address in each Address pool allocated to the accessed terminal by the core network server, establish a connection between the host module local to the core network server and the connection module, so as to perform corresponding processing on the OSPF message in subsequent operations.
In practical application, when step 200 is executed, the core network server detects whether a new terminal is accessed in real time, and when it is detected that a new terminal is accessed, the core network server allocates an address pool to the newly accessed terminal, wherein the address pools allocated by the core network server to different accessed terminals are different, that is, the address pools acquired by the accessed terminals are different. And then, the newly accessed terminal uses one IP address in the acquired address pool as the IP address of the newly accessed terminal, and the core network server establishes an OSPF neighbor relation with the newly accessed terminal based on the local IP address and the IP address of the newly accessed terminal.
For example, assuming that the emergency communication vehicle 1 detects the access of the mobile phone 1, allocates an address pool 1 (e.g., 192.168.0.1-192.168.0.9) to the mobile phone 1, preferably, the mobile phone 1 can use an IP address 1 in the address pool 1 as the local IP address of the mobile phone 1, and the emergency communication vehicle 1 establishes the OSPF neighbor relationship with the mobile phone 1 according to the IP address 1.
For another example, assuming that after the mobile phone 1 is disconnected from the emergency communication vehicle 1, and when the emergency communication vehicle 2 detects that the mobile phone 1 is accessed, an address pool 2 (e.g., 192.168.1.10-192.168.1.19) is allocated to the mobile phone 1, preferably, the mobile phone 1 can use one IP address 2 in the address pool 2 as the local IP address of the mobile phone 1, and the emergency communication vehicle 2 establishes the OSPF neighbor relationship with the mobile phone 1 according to the one IP address 2.
Of course, after the terminal accesses the core network server, the terminal may also serve as a proxy gateway to provide network services for at least one drop device dropped under the terminal.
For example, assuming that the mobile phone 1 is connected to the emergency communication vehicle 1 and establishes a neighbor relationship with the emergency communication vehicle 1, the mobile phone 1 may turn on a "hot spot" function, so that the device 1 may access the mobile phone 1 by using the local subnet address provided by the mobile phone 1 through the "hot spot" function, preferably, the local subnet addresses of different mobile phones are different, and then, when the mobile phone is connected to different emergency communication vehicles, the local subnet address used by the device hung under the mobile phone does not need to be reconfigured, and as long as the mobile phone connected to the device is not changed, the local subnet address used by the device does not need to be changed, even if the mobile phone is connected to different emergency communication vehicles.
Step 210: and the core network server generates a first OSPF message and transmits the first OSPF message to each accessed terminal when judging that the first OSPF message meets the preset judgment condition.
In practical application, when step 210 is executed, the core network server issues the OSPF message in a downlink manner. The method specifically comprises the steps that a local OSPF core module of a core network server generates a first OSPF message, and a local connection module of the core network server issues the first OSPF message to each accessed terminal through base station equipment when the first OSPF message is judged to meet preset judgment conditions.
Specifically, when determining that the source IP address of the first OSPF packet is the IP address of the designated port set in the core network server in a virtual manner, the local connection module of the core network server determines that the first OSPF packet satisfies the preset determination condition, tunnel-encapsulates the first OSPF packet, and issues the encapsulated first OSPF packet to each accessed terminal through the base station device by using a default bearer.
For example, assume that an IP address of an assigned port set in a virtual manner in an emergency communication vehicle is IP X, terminals accessed to the emergency communication vehicle 1 are mobile phones 1, 2 and 3, an OSPF core module local to the emergency communication vehicle 1 generates an OSPF message 1, a connection module local to the emergency communication vehicle 1 performs tunnel encapsulation processing on the OSPF message 1 when determining that a source IP address of the OSPF message 1 is IP X, and forwards the encapsulated OSPF message 1 to the accessed mobile phones 1, 2 and 3 through base station equipment by using a default bearer manner.
Preferably, the designated port set in the core network server in a virtual manner is a vith 255 port, where the vith 255 port is a virtual router interface.
Step 220: and the core network server receives each accessed second OSPF message fed back by each terminal based on the first OSPF message, analyzes each second OSPF message respectively and determines new routing entry information.
In practical application, when step 220 is executed, the core network server executes the following operations for each second OSPF packet in the second OSPF packets respectively: the core network server decapsulates a second OSPF message to obtain an IP address of a terminal feeding back the second OSPF message, and generates corresponding routing entry information based on the IP address of the terminal feeding back the second OSPF message, and if the core network server determines that the routing entry information does not exist in a locally maintained dynamic routing table, the core network server determines that the routing entry information is new routing entry information.
For example, after receiving the OSPF packet 2 fed back by the mobile phone 1, the emergency communication vehicle 1 obtains that the source IP address of the OSPF packet 2 is IP X ', that is, the IP address of the terminal feeding back the OSPF packet is IPX', and the emergency communication vehicle 1 generates corresponding reason entry information according to the IP X ', and determines whether the routing entry information corresponding to the IP X' exists in the currently maintained dynamic routing table, and if the emergency communication vehicle 1 determines that the routing entry information corresponding to the IP X 'does not exist in the currently maintained dynamic routing table, it determines that the routing entry information corresponding to the IP X' is new routing entry information.
Preferably, after receiving the second OSPF packet fed back by the access terminal, the core network server strips off the header of the OSPF packet, and according to the type of the OSPF packet, the core network server uses a unicast ethernet frame or a multicast ethernet frame to deliver the second OSPF packet to the OSPF core module in the core network server to perform parsing processing, so as to obtain the IP address information of the terminal feeding back the second OSPF packet, and generate corresponding routing entry information according to the IP address information, then, the OSPF module in the core network server determines whether the routing entry information exists in the currently maintained dynamic routing table, and when it is determined that the routing entry information does not exist, determines that the routing entry information is new routing entry information.
Step 230: and the core network server adjusts a dynamic routing table maintained by the core network server based on the new routing entry information, and realizes message forwarding between accessed terminals based on the dynamic routing table.
In practical application, when step 230 is executed, the core network server updates the currently maintained dynamic routing table according to the identified new routing entry information to obtain the latest dynamic routing table in which the new dynamic routing entry is stored, and when receiving a data packet sent by an accessed terminal, forwards the data packet to the accessed terminal corresponding to the destination IP address according to the destination IP address of the data packet and the latest dynamic routing table.
Specifically, when receiving a data packet which is sent by an accessed terminal and needs to be forwarded, the core network server obtains a destination IP address of the data packet, obtains a shortest path of a terminal corresponding to the destination IP address of the data packet from the latest dynamic routing table, and sends the data packet to the terminal corresponding to the destination IP address of the data packet through the shortest path.
For example, suppose that after the emergency communication vehicle 1 receives the data packet 1 sent by the mobile phone 1 and needing to be forwarded by the emergency communication vehicle 1, the emergency communication vehicle 1 obtains the destination IP address of the data packet 1 as IP Y, and the emergency communication vehicle 1 obtains the shortest path to be forwarded to the mobile phone 2 corresponding to IP Y from the latest dynamic routing table as follows: the emergency communication vehicle 1-mobile phone 2, then, the emergency communication vehicle 1 can directly forward the data packet 1 to the mobile phone 2.
For another example, assuming that after the emergency communication vehicle 1 receives the data packet 2 sent by the mobile phone 1 and needing to be forwarded by the emergency communication vehicle 1, the emergency communication vehicle 1 obtains the destination IP address of the data packet 2 as IP Y ', and the emergency communication vehicle 1 obtains the shortest path to be forwarded to the mobile phone 3 corresponding to IP Y' from the latest dynamic routing table as follows: the emergency communication vehicle 1-2-3 "can forward the data packet 2 to the emergency communication vehicle 2, and the emergency communication vehicle 2 receives the data packet 2 and then forwards the data packet 2 to the mobile phone 3.
Based on the foregoing embodiments, referring to fig. 3, in an embodiment of the present invention, an apparatus (e.g., a core network server) for implementing terminal interconnection includes at least an allocating unit 30, a generating unit 31, a receiving unit 32, and an adjusting unit 33, where,
the allocating unit 30 is configured to allocate an address pool to an accessed terminal every time it is monitored that a terminal is accessed, and establish an OSPF neighbor relation with the accessed terminal based on the address pool, where the address pools obtained by different terminals are different;
a generating unit 31, configured to generate a first OSPF packet, and when it is determined that the first OSPF packet meets a preset determination condition, send the first OSPF packet to each accessed terminal;
a receiving unit 32, configured to receive each second OSPF packet fed back by each accessed terminal based on the first OSPF packet, and analyze each second OSPF packet respectively to determine new routing entry information;
and an adjusting unit 33, configured to adjust the dynamic routing table maintained by the apparatus based on the new routing entry information, and implement packet forwarding between accessed terminals based on the dynamic routing table.
Preferably, when determining that the first OSPF packet satisfies the preset determination condition and issuing the first OSPF packet to each accessed terminal, the generating unit 31 is specifically configured to:
when the source IP address of the first OSPF message is judged to be the IP address of the appointed port which is set in the device in a virtual mode, the first OSPF message is determined to meet the preset judgment condition, the first OSPF message is packaged in a tunnel, and the packaged first OSPF message is issued to each accessed terminal by using default load.
Preferably, the designated port set in the device in a virtual manner is a port of vteth 255, where the port of vteth 255 is a virtual router interface.
Preferably, when analyzing each second OSPF packet and determining new routing entry information, the receiving unit 32 is specifically configured to:
and executing the following operations for each second OSPF message in the second OSPF messages respectively:
decapsulating a second OSPF message to obtain an IP address of a terminal feeding back the second OSPF message, and generating corresponding routing entry information based on the IP address of the terminal feeding back the second OSPF message;
and if the routing entry information does not exist in the dynamic routing table maintained by the device, determining that the routing entry information is new routing entry information.
Preferably, when implementing packet forwarding between accessed terminals based on the dynamic routing table, the adjusting unit 33 is specifically configured to:
and when receiving a message which is sent by an accessed terminal and needs to be forwarded, acquiring a destination IP address of the message, and acquiring a shortest path of the terminal corresponding to the destination IP address of the message from the dynamic routing table.
In summary, in the embodiment of the present invention, in the process of implementing terminal interconnection, each time a core network server monitors that a terminal accesses, the core network server allocates an address pool to the accessed terminal, and establishes an open shortest path first protocol OSPF neighbor relation with the accessed terminal based on the address pool, where the address pools obtained by different terminals are different, the core network server generates a first OSPF message, and when it is determined that the first OSPF message satisfies a preset determination condition, the first OSPF message is sent to each accessed terminal, the core network server receives each second OSPF message fed back by each accessed terminal based on the first OSPF message, and analyzes each second OSPF message respectively, determines new routing entry information, the core network server adjusts a dynamic routing table maintained by the core network server based on the new routing entry information, and realizing message forwarding between accessed terminals based on the dynamic routing table.
By adopting the method, the core network server can realize the interconnection between the accessed terminals in the service scene without the route by establishing the neighbor relation with the accessed terminals and processing the OSPF message, thereby preventing the networking from being paralyzed due to the failure or artificial damage of the router and improving the user experience.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.

Claims (10)

1. A method for realizing terminal interconnection is characterized by comprising the following steps:
when monitoring that a terminal is accessed, a core network server allocates an address pool for the accessed terminal, and establishes an open shortest path first protocol (OSPF) neighbor relation based on the address pool and the accessed terminal, wherein the address pools obtained by different terminals are different;
a core network server generates a first OSPF message, and when judging that the first OSPF message meets a preset judgment condition, the core network server issues the first OSPF message to each accessed terminal, wherein when judging that a source IP address of the first OSPF message is an IP address of an appointed port which is set in a virtual mode in the core network server, the core network server determines that the first OSPF message meets the preset judgment condition;
the core network server receives each accessed second OSPF message fed back by each terminal based on the first OSPF message, analyzes each second OSPF message respectively, and determines new routing entry information;
and the core network server adjusts a dynamic routing table maintained by the core network server based on the new routing entry information, and realizes message forwarding between accessed terminals based on the dynamic routing table.
2. The method of claim 1, wherein said issuing the first OSPF packet to each accessed terminal specifically comprises:
and the core network server performs tunnel encapsulation on the first OSPF message and issues the encapsulated first OSPF message to each accessed terminal by using a default bearer.
3. The method according to claim 2, wherein the designated port set in a virtual manner in the core network server is a vieth 255 port, wherein the vieth 255 port is a virtual router interface.
4. The method according to any of claims 1-3, wherein the core network server parses each second OSPF packet, and determines new routing entry information, specifically comprising:
the core network server respectively executes the following operations aiming at each second OSPF message in the second OSPF messages:
the core network server decapsulates a second OSPF message to obtain an IP address of a terminal feeding back the second OSPF message, and generates corresponding routing entry information based on the IP address of the terminal feeding back the second OSPF message;
and if the core network server judges that the routing entry information does not exist in the locally maintained dynamic routing table, determining that the routing entry information is new routing entry information.
5. The method according to claim 4, wherein the core network server implements packet forwarding between the accessed terminals based on the dynamic routing table, and specifically comprises:
and when receiving a message which is sent by an accessed terminal and needs to be forwarded, the core network server acquires a destination IP address of the message and acquires a shortest path of the terminal corresponding to the destination IP address of the message from the dynamic routing table.
6. An apparatus for implementing terminal interconnection, comprising:
the distribution unit is used for distributing an address pool for the accessed terminal when the terminal access is monitored, and establishing an open shortest path first protocol (OSPF) neighbor relation based on the address pool and the accessed terminal, wherein the address pools obtained by different terminals are different;
a generating unit, configured to generate a first OSPF packet, and when it is determined that the first OSPF packet meets a preset determination condition, send the first OSPF packet to each accessed terminal, where when it is determined that a source IP address of the first OSPF packet is an IP address of an assigned port set in the device in a virtual manner, it is determined that the first OSPF packet meets the preset determination condition;
a receiving unit, configured to receive each second OSPF packet fed back by each accessed terminal based on the first OSPF packet, and analyze each second OSPF packet respectively to determine new routing entry information;
and the adjusting unit is used for adjusting the dynamic routing table maintained by the device based on the new routing entry information and realizing message forwarding between accessed terminals based on the dynamic routing table.
7. The apparatus of claim 6, wherein when the first OSPF packet is sent to each accessed terminal, the generating unit is specifically configured to:
and performing tunnel encapsulation on the first OSPF message, and issuing the encapsulated first OSPF message to each accessed terminal by using a default bearer.
8. The apparatus of claim 7, wherein the designated port in the apparatus that is virtually provisioned is a vieth 255 port, wherein the vieth 255 port is a virtual router interface.
9. The apparatus according to any of claims 6-8, wherein the receiving unit is specifically configured to, when parsing each of the second OSPF packets and determining new routing entry information:
and executing the following operations for each second OSPF message in the second OSPF messages respectively:
decapsulating a second OSPF message to obtain an IP address of a terminal feeding back the second OSPF message, and generating corresponding routing entry information based on the IP address of the terminal feeding back the second OSPF message;
and if the routing entry information does not exist in the dynamic routing table maintained by the device, determining that the routing entry information is new routing entry information.
10. The apparatus according to claim 9, wherein when implementing packet forwarding between accessed terminals based on the dynamic routing table, the adjusting unit is specifically configured to:
and when receiving a message which is sent by an accessed terminal and needs to be forwarded, acquiring a destination IP address of the message, and acquiring a shortest path of the terminal corresponding to the destination IP address of the message from the dynamic routing table.
CN201710448437.5A 2017-06-14 2017-06-14 Method and device for realizing terminal interconnection Active CN109088823B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710448437.5A CN109088823B (en) 2017-06-14 2017-06-14 Method and device for realizing terminal interconnection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710448437.5A CN109088823B (en) 2017-06-14 2017-06-14 Method and device for realizing terminal interconnection

Publications (2)

Publication Number Publication Date
CN109088823A CN109088823A (en) 2018-12-25
CN109088823B true CN109088823B (en) 2020-07-17

Family

ID=64838865

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710448437.5A Active CN109088823B (en) 2017-06-14 2017-06-14 Method and device for realizing terminal interconnection

Country Status (1)

Country Link
CN (1) CN109088823B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124968A (en) * 2019-12-05 2020-05-08 山东浪潮人工智能研究院有限公司 Interconnection exchange method based on FPGA and RISC-V
CN112291382B (en) * 2020-09-29 2022-04-01 新华三信息安全技术有限公司 IP address allocation method and device
CN114554540A (en) * 2020-11-24 2022-05-27 上海中兴软件有限责任公司 Network slice access method, device, system and storage medium
CN113179212B (en) * 2021-03-11 2022-05-27 新华三信息安全技术有限公司 Message processing method and device
CN113938293A (en) * 2021-09-23 2022-01-14 深圳市柔宇科技股份有限公司 VPN network sharing method, storage medium and terminal device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102868619A (en) * 2012-09-10 2013-01-09 杭州华三通信技术有限公司 Transmitting method and device of LSA (Link State Advertisement)
CN106470117A (en) * 2015-08-21 2017-03-01 成都鼎桥通信技术有限公司 The transmission changing method of LTE broadband cluster system, equipment and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5310262B2 (en) * 2009-05-27 2013-10-09 日本電気株式会社 Server apparatus, transmission system, and GRE encapsulated transfer method used therefor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102868619A (en) * 2012-09-10 2013-01-09 杭州华三通信技术有限公司 Transmitting method and device of LSA (Link State Advertisement)
CN106470117A (en) * 2015-08-21 2017-03-01 成都鼎桥通信技术有限公司 The transmission changing method of LTE broadband cluster system, equipment and system

Also Published As

Publication number Publication date
CN109088823A (en) 2018-12-25

Similar Documents

Publication Publication Date Title
CN109088823B (en) Method and device for realizing terminal interconnection
US11381507B2 (en) Virtual network device and related method
US9648542B2 (en) Session-based packet routing for facilitating analytics
US9173244B2 (en) Methods for establishing and using public path, M2M communication method, and systems thereof
US10873562B2 (en) IP address allocation system and method
CN111246453B (en) Data transmission method, user plane network element and control plane network element
US10390290B1 (en) Flow processing migration
US9641433B2 (en) Method, routing bridge, and system for sending packet
CN106470117B (en) Transmission switching method, equipment and the system of LTE broadband cluster system
CN106936943A (en) The distribution method and system of virtual machine address
CN107306215B (en) Data processing method, system and node
CN113810512A (en) Internet of things terminal access system, method and device and storage medium
CN103401954B (en) The implementation method of virtual DHCP
CN105897542B (en) Tunnel establishment method and video monitoring system
CN102447703B (en) A kind of heat backup method and system, CGN equipment
CN104158756B (en) A kind of group system carries out the method and system of load balancing to message
EP3092741B1 (en) Allocating virtual machines in a gateway coupled to a software-defined switch
US10225191B2 (en) Service packet distribution method and apparatus
CN105592490A (en) Route switching method and equipment
CN114338607B (en) Method, device and system for confirming IP address of 5G user terminal
US11979349B2 (en) Mobile network user plane with access network user plane function
WO2017101028A1 (en) Data transmission method, m2m server, pgw, sgw and serving network node
CN109660459B (en) Physical gateway and method for multiplexing IP address
CN102025549B (en) Backup transmission method and system for fixed network multi-protocol label switching virtual private network
CN108632149B (en) Multicast method and routing device for satellite frame relay network

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
GR01 Patent grant
GR01 Patent grant