CN108075973B - Equipment communication method and device - Google Patents

Equipment communication method and device Download PDF

Info

Publication number
CN108075973B
CN108075973B CN201610998731.9A CN201610998731A CN108075973B CN 108075973 B CN108075973 B CN 108075973B CN 201610998731 A CN201610998731 A CN 201610998731A CN 108075973 B CN108075973 B CN 108075973B
Authority
CN
China
Prior art keywords
message
epc
subnet
address
ospf
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
CN201610998731.9A
Other languages
Chinese (zh)
Other versions
CN108075973A (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 CN201610998731.9A priority Critical patent/CN108075973B/en
Publication of CN108075973A publication Critical patent/CN108075973A/en
Application granted granted Critical
Publication of CN108075973B publication Critical patent/CN108075973B/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
    • 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

Abstract

The embodiment of the invention provides a device communication method and a device, wherein the device comprises User Equipment (UE) and a core network (EPC), and the method comprises the following steps: when the UE attaches to the EPC, the EPC allocates a subnet IP address and a subnet mask to the UE; the EPC receives an OSPF message sent by the UE aiming at the subnet IP address and the subnet mask; the OSPF message is generated by a first OSPF module in the UE according to the subnet IP address and the subnet mask; and the EPC packages the OSPF message into an IP message and sends the IP message to the UE. When the wireless (3G network, 4G network or 5G network) between the UE and the EPC is not reachable, the wireless (3G network, 4G network or 5G network) can be timely notified to other EPCs or UEs through dynamic routing, and unnecessary redundant service data is prevented from being forwarded on the network side to influence the communication between other normal UEs and the EPCs.

Description

Equipment communication method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a device communication method and a device communication apparatus.
Background
In an LTE (Long Term Evolution) communication network, in addition to communication between a User Equipment (UE) and a communication node (e.g., a personal computer) on the network and other UEs, under more and more circumstances, especially in an IOT (Internet of Things) application scenario or some industry private networks, the UE is used as a gateway to implement interconnection and intercommunication between a UE drop-off device and a communication node on the network and other cross-network UE drop-off devices. Furthermore, the address of the device under the UE is also required to be constant when the UE moves and attaches to different PGWs (Public Data Network GateWay). This raises the addressing problem for UE devices that are hanging down.
Referring to fig. 1, a communication System in the prior art is shown, in which a UE drop device (such as a personal computer) needs to communicate with an inter-Network UE drop device or with a device in a PDN (Public Data Network), and since the UE cannot be predicted before attaching to the Network, an IP (Internet Protocol) address needs to be manually configured after the UE attaches, where gtpu tune is a GPRS channel Protocol-user plane channel, LogPortTrafficFwd, loghereportmngmt, PhyEthPort, logport is a logical port processing module, and OS (Operation System) ipsstack is an OS module used for Data exchange. For example, routing configuration is performed on the UE, manual routing configuration is performed on the PGW, so as to implement intercommunication between UE drop-on terminal devices, or communicate with a service (server) in the network, or specify an IP address of the drop-on device according to an address allocated by the terminal, but in this way, the terminal attaches different IP addresses of the UE each time, and it is agreed that the drop-on device must use different IP addresses, so that each device needs to acquire the IP address of the latter in other ways before communicating with other devices. Therefore, the method is complicated, and the cost is high because a global device address management entity is additionally arranged in the network.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a device communication method and a corresponding device communication apparatus that overcome or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present invention discloses an apparatus communication method, where the apparatus includes a user equipment UE and an EPC (evolved packet core), the UE is configured with a first open shortest path first OSPF module, and the EPC is used for communicating with the UE according to an IP packet; the method comprises the following steps:
when the UE attaches to the EPC, the EPC allocates a subnet IP address and a subnet mask to the UE;
the EPC receives an OSPF message sent by the UE aiming at the subnet IP address and the subnet mask; the OSPF message is generated by a first OSPF module in the UE according to the subnet IP address and the subnet mask;
and the EPC packages the OSPF message into an IP message and sends the IP message to the UE.
Preferably, when the UE attaches to the EPC, the step of the EPC allocating a subnet IP address and a subnet mask to the UE includes:
the EPC allocating a subnet IP address to the UE;
establishing a default bearer between the EPC and the UE aiming at the subnet IP address;
the EPC sends the subnet mask to the UE over a default bearer.
Preferably, the step of encapsulating the OSPF packet into an IP packet by the EPC and sending the IP packet to the UE includes:
the EPC packages the OSPF message into an IP message in a GTP-U and sends the IP message to the UE; wherein the IP message does not carry an Ethernet frame header.
Preferably, the step of encapsulating the OSPF packet into an IP packet by the EPC and sending the IP packet to the UE further includes:
judging whether the IP message is a unicast message or a multicast message;
if the IP message is a unicast message, sending the IP message to the UE specified by the destination IP address of the IP message;
and if the IP message is a multicast message, sending the IP message to a plurality of UE attached to an EPC.
Preferably, the EPC includes an operating system OS, a feature module, and a second OSPF module, the method further comprising:
and when the second OSPF module configures a dynamic routing table for the OS, the feature module filters a routing entry of a subnet IP address of the UE corresponding to a routing next hop address in the dynamic routing table.
Preferably, the method further comprises:
and the EPC adds the destination subnet address in the routing entry of the subnet IP address corresponding to the UE to a forwarding configuration table of the downlink service message corresponding to the UE.
The embodiment of the invention also discloses an equipment communication method, the equipment comprises User Equipment (UE) and a core network (EPC), the UE is provided with a first Open Shortest Path First (OSPF) module, and the EPC is used for communicating with the UE according to the IP message; the method comprises the following steps:
when the UE attaches to the EPC, the UE receives a subnet IP address and a subnet mask allocated by the EPC;
a first OSPF module in the UE generates an OSPF message according to the subnet IP address and the subnet mask, and sends the OSPF message to the EPC;
the UE receives an IP message returned by the EPC aiming at the OSPF message; and the IP message is formed by packaging the EPC aiming at the OSPF message, and the IP message does not have an Ethernet frame header.
Preferably, when the UE attaches to the EPC, the step of the EPC allocating a subnet IP address and a subnet mask to the UE includes:
when the UE attaches to an EPC, receiving a subnet IP address allocated by the EPC;
the UE receives the establishment information of the default bearer;
receiving the subnet mask over a default bearer for the UE.
Preferably, the device further comprises a mobile terminal, and the method further comprises:
the UE allocates local IP addresses to a plurality of mobile terminals; wherein the mobile terminal communicates with the UE using the local IP address.
The embodiment of the invention also discloses a device communication device, the device comprises User Equipment (UE) and a core network (EPC), the UE is provided with a first Open Shortest Path First (OSPF) module, and the EPC is used for communicating with the UE according to the IP message; the device comprises:
a subnet IP address and subnet mask assignment module, configured to assign a subnet IP address and a subnet mask to the UE when the UE attaches to the EPC;
an OSPF message returning module, configured to receive, by the EPC, an OSPF message returned by the UE for the subnet IP address and the subnet mask; the OSPF message is generated by a first OSPF module in the UE according to the subnet IP address and the subnet mask;
and the IP message sending module is used for encapsulating the OSPF message into an IP message by the EPC and sending the IP message to the UE.
Preferably, the subnet IP address and subnet mask allocating module includes:
a subnet IP address allocation submodule, configured to allocate a subnet IP address to the UE by the EPC;
a default bearer establishing submodule, configured to establish a default bearer between the EPC and the UE for the subnet IP address;
a subnet mask sending submodule, configured to send the subnet mask to the UE through a default bearer by the EPC.
Preferably, the IP packet sending module includes:
an IP message sending submodule, configured to encapsulate the OSPF message in a GTP-U by the EPC to form an IP message, and send the IP message to the UE; wherein the IP message does not carry an Ethernet frame header.
Preferably, the IP packet sending module further includes:
the message format judging submodule is used for judging whether the IP message is a unicast message or a multicast message;
the first IP message sending submodule is used for sending the IP message to the UE appointed by the IP message if the IP message is a unicast message;
and the first IP message sending submodule is used for sending the IP message to a plurality of UE (user equipment) attached to the EPC if the IP message is a multicast message.
Preferably, the EPC includes an operating system OS, a feature module, and a second OSPF module, and the apparatus further includes:
a subnet IP address filtering module, configured to, when the second OSPF module configures an entry of a dynamic routing table to the OS, filter, by the feature module, a routing entry of a subnet IP address of the UE corresponding to a routing next hop address in the dynamic routing table.
Preferably, the apparatus further comprises:
a forwarding configuration table adding module, configured to add the subnet address of the filtered routing entry to the forwarding configuration table of the downlink service packet of the corresponding UE by the EPC.
The embodiment of the invention also discloses a device communication device, the device comprises User Equipment (UE) and a core network (EPC), the UE is provided with a first Open Shortest Path First (OSPF) module, and the EPC is used for communicating with the UE according to the IP message; the device comprises:
a subnet IP address and subnet mask receiving module, configured to receive, by the UE, a subnet IP address and subnet mask allocated by the EPC when the UE attaches to the EPC;
an OSPF message sending module, configured to, by a first OSPF module in the UE, generate an OSPF message according to the subnet IP address and the subnet mask, and send the OSPF message to the EPC;
an IP packet receiving module, configured to receive, by the UE, an IP packet returned by the EPC for the OSPF packet; and the IP message is formed by packaging the EPC aiming at the OSPF message, and the IP message does not have an Ethernet frame header.
Preferably, the subnet IP address and subnet mask receiving module includes:
a subnet IP address receiving submodule, configured to receive a subnet IP address allocated by an EPC when the UE is attached to the EPC;
a default bearer establishment information receiving submodule, configured to receive establishment information of a default bearer by the UE;
a subnet mask receiving submodule, configured to receive the subnet mask through a default bearer for the UE.
Preferably, the device further comprises a mobile terminal, and the apparatus further comprises:
a local IP address allocation module, configured to allocate a local IP address to the plurality of mobile terminals by the UE; wherein the mobile terminal communicates with the UE using the local IP address.
The embodiment of the invention has the following advantages:
in the embodiment of the present invention, after the EPC and the UE establish a connection using a subnet IP address and a subnet mask, a second OSPF module of the EPC establishes an adjacency with a first OSPF module of the UE through an OSPF packet, and the OSPF packet is forwarded through a default bearer. In the embodiment of the present invention, when the radio (3G network, 4G network, or 5G network) between the UE and the EPC is not reachable, the UE may be notified to other EPC or UE through the dynamic routing in time, so as to avoid forwarding unnecessary redundant service data on the network side to affect the communication between other normal UEs and the EPC.
Drawings
FIG. 1 is a schematic diagram of a prior art device communication system;
fig. 2 is a flowchart of a first step of a first embodiment of a method for communicating by a device according to the present invention;
FIG. 3 is a schematic diagram of a device communication system according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating steps of a second embodiment of a method for communicating by a device according to the present invention;
fig. 5 is a flowchart illustrating steps of a third embodiment of a method for communicating with a device according to the present invention;
fig. 6 is a block diagram of a fourth embodiment of a device communication apparatus according to the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the embodiments of the present invention more comprehensible, embodiments of the present invention are described in detail below with reference to the accompanying drawings and the detailed description.
Referring to fig. 2, a flowchart of a First step of an apparatus communication method according to an embodiment of the present invention is shown, where the apparatus includes a User Equipment (UE) and an Evolved Packet Core (EPC), the UE is configured with a First Open Shortest Path First (OSPF) module, and the EPC is configured to communicate with the UE according to an IP (Internet Protocol) Packet, and may specifically include the following steps:
step 101, when the UE attaches to the EPC, the EPC allocating a subnet IP address and a subnet mask to the UE;
in the embodiment of the present invention, the UE is configured with a First Open Shortest Path First OSPF module, where the OSPF module is a routing module, and OSPF (Open Shortest Path First) is an Interior Gateway Protocol (IGP) for making a decision on routing in an Autonomous System (AS). The method is an implementation of a link state routing protocol, namely an affiliation Internal Gateway Protocol (IGP), which operates in an autonomous system. The dixoka algorithm is used to compute the shortest path tree. OSPF is divided into two versions, OSPFv2 and OSPFv3, wherein OSPFv2 is used in IPv4(Internet Protocol Version 4 ) network, and OSPFv3 is used in IPv6(Internet Protocol Version 6) network. In contrast to RIP (Routing Information Protocol), OSPF is a link-state Protocol, whereas RIP is a distance vector Protocol. Similarly, the EPC is configured with a second OSFP module, and the EPC is mainly composed of network elements such as MME (Mobility Management Entity), SGW (Serving GateWay), PGW (PDN GateWay), PCRF (Policy and Charging Rules Function), and defines an all-IP core network EPC (evolved Packet core), and is characterized by having only a Packet domain but no circuit domain, being based on an all-IP structure, separate control and bearer, and a flat network structure. After the UE is started, receiving broadcast information of a cell where the UE is located, accessing a base station corresponding to the cell, further attaching the base station to the EPC, after the UE is attached to the EPC, establishing a default bearer for the UE by the EPC, allocating a subnet IP address and a subnet mask to the UE by the EPC, receiving the subnet IP address and the subnet mask by the UE, configuring the subnet IP address and the subnet mask to a first OSPF module, and after the subnet IP address is allocated, adjusting the default bearer. When the UE attaches to any EPC, a neighbor relationship is established between the EPC and a subnet IP address allocated by the EPC (a subnet IP address pool of the UE planned by the core network EPC, that is, one of subnet IP address pools of the UE), and in a simple manner, the first OSFP module and the second OSFP module establish a neighbor relationship.
102, receiving an OSPF message returned by the UE aiming at the subnet IP address and the subnet mask by the EPC; the OSPF message is generated by a first OSPF module in the UE according to the subnet IP address and the subnet mask;
in practical application, after the UE establishes connection with the EPC through the subnet IP address and the subnet mask, the first OSFP module of the UE generates and sends an OSPF message to the EPC, and the EPC receives the OSPF message returned by the UE.
Step 103, the EPC packages the OSPF message into an IP message and sends the IP message to the UE; wherein, the OSPF message does not carry an Ethernet frame header.
In practice, an IP Packet sent by the second OSPF module in the EPC is encapsulated into an ethernet frame (unicast or multicast ethernet frame) in the operating system OS, and then is sent to a logical port (the Packet received by the logical port processing module is an OSPF-type IP Packet including an ethernet frame header), but the ethernet frame header is removed in the logical port processing module, and the IP Packet is really encapsulated in a GTP-U (GPRS Tunnel Protocol User Plane, GPRS tunneling Protocol-User Plane, where GPRS is General Packet Radio Service) Tunnel and sent to the UE is an IP Packet without an ethernet frame header (the frame header is an IP Packet without an ethernet frame header substantially). Conversely, when the OSPF message received from the UE is transferred to the OS by the logical port processing module, the Ethernet frame header is also encapsulated according to the unicast or multicast OSPF message, and then the OSPF message is transferred to the second OSPF module by the OS. In this way, the UE and the EPC can communicate with each other.
Specifically, referring to fig. 3, a schematic diagram of a device communication system according to an embodiment of the present invention is shown, where the UE is configured with a first OSPF module, the EPC is configured with a second OSPF module, and the two modules establish a connection through the OSPF module to communicate with each other; further, a plurality of mobile terminals communicate with the UE through a local IP address allocated by the UE, wherein the mobile terminals include Personal Computers (PCs) and the like, and a default gateway of the mobile terminal is configured as the local IP address of the UE, after the above processes, the EPC, the UE and the mobile terminals can communicate with each other, it is to be noted that gtpu tune is a GPRS channel protocol-user plane channel, LogPortTrafficFwd, LogEtherPortMngmt, PhyEthPort, and logport are logical port processing modules, and OS (operating System) ipsstack is an OS module having a function of data exchange. Compared with the method in FIG. 1, the UE is configured with a first OSPF module, the EPC is configured with a second OSPF module, and the mobile terminal, the UE connected with the mobile terminal and the EPC connected with the UE are communicated with each other through the OSPF modules of the UE and the UE, so that the IP address of the connection of the mobile terminal connected with the UE can be unchanged when the UE is attached to different EPCs connected with each other.
It should be noted that the first OSPF module is also responsible for notifying the local IP address subnet allocated by the UE to the second OSPF module on the EPC, and the second OSPF module generates a dynamic route to the mobile terminal according to the local IP address subnet. In addition, the second OSPF module also informs other UE or adjacent EPC, so that other UE or adjacent EPC equipment can know the equipment to which the service message of the mobile terminal is sent.
In the embodiment of the invention, the IP address of the mobile terminal connected with the UE does not need to be reconfigured under different EPCs connected with each other along with the movement of the UE, so that the difficulty and labor intensity of manually maintaining the whole communication network including the EPCs, the UE and the mobile terminal and configuring the route can be effectively reduced, and the problem that the service data can not be normally forwarded due to abnormal route configuration possibly caused by manually configuring the route can be avoided. When the UE and the mobile terminal are dynamically added, only the IP addresses of the UE and the mobile terminal need to be re-planned, and the core network EPC side does not need to be re-configured, so that resources are saved, and the problem of addressing of the connection between the mobile terminal and the UE is effectively solved.
Referring to fig. 4, a flowchart of a second step of an apparatus communication method embodiment of the present invention is shown, where the apparatus includes a user equipment UE and a core network EPC, the UE is configured with a first open shortest path first OSPF module, and the EPC is used to communicate with the UE according to an IP packet; the method specifically comprises the following steps:
step 201, the EPC allocates subnet IP address to the UE;
in the embodiments of the present invention, when the UE attaches to the EPC, the EPC allocates the subnet IP address to the UE.
Step 202, establishing a default bearer between the EPC and the UE for the subnet IP address;
in a specific implementation, after the UE attaches to the EPC, the EPC establishes a default bearer with the UE.
Step 203, the EPC sends the subnet mask to the UE through a default bearer;
and after the default bearer is established, the EPC is used for sending the subnet mask to the UE through the default bearer.
Step 204, receiving an OSPF message returned by the UE for the subnet IP address and the subnet mask; the OSPF message is generated by a first OSPF module in the UE according to the subnet IP address and the subnet mask;
in a specific application, a first OSPF module in the UE returns an OSPF message for the subnet IP address and the subnet mask, the EPC receives the OSPF message returned by the UE, it needs to be noted that, when the EPC configures a subnet IP address to the UE, it needs to configure one of the subnet IP addresses to an OS module in the EPC, as a virtual network interface, and after acquiring one of the subnet IP addresses in a subnet IP address pool of the UE, it is configured to the OS, and configures the virtual network interface to a second OSPF module therein.
Step 205, the EPC encapsulates the OSPF message in GTP-U as an IP message, and sends the IP message to the UE; wherein, the IP message does not carry an Ethernet frame header;
step 206, judging the IP message is a unicast message or a multicast message;
further, after being processed by the second OSPF module, the EPC transmits the IP packet to the UE, and the specific steps include first determining that the IP packet is a unicast packet or a multicast packet, and then transmitting the IP packet to different UEs according to different types of packets.
Step 207, if the IP packet is a unicast packet, sending the IP packet to the UE specified by the IP packet;
specifically, if the IP packet is a unicast packet, the IP packet is sent to the UE specified by the IP packet through a default bearer.
And step 208, if the IP packet is a multicast packet, sending the IP packet to a plurality of UEs attached to the EPC.
Further, if the IP packet is a multicast packet, the IP packet is sent to a plurality of UEs attached to the EPC through a default bearer. It should be noted that the EPC includes an operating system OS, a feature module, and a second OSPF module, and when the second OSPF module configures a dynamic routing table to the OS, the feature module filters an entry of a subnet IP address of the UE corresponding to a routing next hop address in the dynamic routing table; and the EPC adds the routing destination subnet address of the filtered entry to a forwarding configuration table of the downlink service message of the corresponding UE, so that when one EPC receives the service message from other EPCs and destined to the mobile terminal connected with the UE, the service message can be forwarded.
In the embodiment of the present invention, after the EPC and the UE establish a connection using a subnet IP address and a subnet mask, a second OSPF module of the EPC establishes an adjacency with a first OSPF module of the UE through an OSPF packet, and the OSPF packet is forwarded through a default bearer. In the embodiment of the present invention, when the radio (3G network, 4G network, or 5G network) between the UE and the EPC is not reachable, the dynamic routing module may notify other EPCs or UEs in time through the dynamic routing, so as to avoid forwarding unnecessary redundant service data on the network side to affect the communication between other normal UEs and EPCs.
Referring to fig. 5, a flowchart illustrating a third step of an apparatus communication method embodiment of the present invention is shown, where the apparatus includes a user equipment UE and a core network EPC, the UE is configured with a first open shortest path first OSPF module, and the EPC is used for communicating with the UE according to an IP packet; the method specifically comprises the following steps:
step 301, when the UE attaches to the EPC, the UE receives a subnet IP address and a subnet mask allocated by the EPC;
in a preferred embodiment of the present invention, when the UE attaches to the EPC, the step of allocating, by the EPC, a subnet IP address and a subnet mask to the UE includes:
when the UE attaches to an EPC, receiving a subnet IP address allocated by the EPC;
the UE receives the establishment information of the default bearer;
receiving the subnet mask over a default bearer for the UE.
In practical application, when the UE attaches to an EPC, the subnet IP address allocated by the EPC is received, the UE receives establishment information of a default bearer, and receives the subnet mask through the default bearer. It should be noted that the subnet mask of the UE should be consistent with the network mask corresponding to the virtual network interface of the EPC.
Step 302, a first OSPF module in the UE generates an OSPF message according to the subnet IP address and the subnet mask, and sends the OSPF message to the EPC;
step 303, the UE receives an IP packet returned by the EPC for the OSPF packet; and the IP message is formed by packaging the EPC aiming at the OSPF message, and the IP message does not have an Ethernet frame header.
Specifically, after the UE establishes a connection with the EPC, the device further includes a mobile terminal, and the UE allocates a local IP address to a plurality of mobile terminals; wherein the mobile terminal is configured to communicate with the UE for the local IP address. In this way, the UE, the EPC, and the mobile terminal may communicate with each other, where the mobile terminal may include a plurality of mobile terminals, and it should be noted that the subnet IP address of the UE, the local IP address, and the SGI interface address of the EPC are respectively located in different subnets.
In the embodiment of the invention, the EPC and the mobile terminal are connected by taking the UE side as a reference, in the embodiment of the invention, the UE, the EPC and the mobile terminal can communicate with each other, the IP address of the mobile terminal connected with the UE does not need to be reconfigured under different EPCs along with the movement of the UE, the whole communication network can be effectively maintained manually, abnormal routing configuration caused by routing configuration manually can be avoided, when the UE and the mobile terminal are dynamically added, the IP addresses of the UE and the mobile terminal only need to be re-planned, and the problem of frequent conversion of the IP addresses connected with the UE by the mobile terminal is effectively solved.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 6, a block diagram of a fourth embodiment of an apparatus communication device according to the present invention is shown, where the apparatus includes a user equipment UE and an EPC (core network), the UE is configured with a first open shortest path first OSPF module, and the EPC is configured to communicate with the UE according to an IP packet; the method specifically comprises the following modules:
a subnet IP address and subnet mask allocating module 401, configured to allocate a subnet IP address and a subnet mask to the UE when the UE attaches to the EPC;
an OSPF message returning module 402, configured to receive an OSPF message returned by the UE for the subnet IP address and the subnet mask; the OSPF message is generated by a first OSPF module in the UE according to the subnet IP address and the subnet mask;
an IP packet sending module 403, configured to encapsulate the OSPF packet into an IP packet by the EPC, and send the IP packet to the UE.
Preferably, the subnet IP address and subnet mask allocating module includes:
a subnet IP address allocation submodule, configured to allocate a subnet IP address to the UE by the EPC;
a default bearer establishing submodule, configured to establish a default bearer between the EPC and the UE for the subnet IP address;
a subnet mask sending submodule, configured to send the subnet mask to the UE through a default bearer by the EPC.
Preferably, the IP packet sending module includes:
a destination address judging submodule, configured to judge that a destination address of the OSPF packet is a unicast address or a multicast address;
an IP message sending submodule, configured to encapsulate the OSPF message in a GTP-U by the EPC to form an IP message, and send the IP message to the UE; wherein the IP message does not carry an Ethernet frame header.
Preferably, the IP packet sending module further includes:
the message format judging submodule is used for judging whether the IP message is a unicast message or a multicast message;
the first IP message sending submodule is used for sending the IP message to the UE appointed by the IP message if the IP message is a unicast message;
and the first IP message sending submodule is used for sending the IP message to a plurality of UE (user equipment) attached to the EPC if the IP message is a multicast message.
In a preferred embodiment of the present invention, the EPC includes an operating system OS, a feature module, and a second OSPF module, and the apparatus further includes:
a subnet IP address filtering module, configured to, when the second OSPF module configures a dynamic routing table for the OS, filter, by the feature module, an entry of the subnet IP address of the UE corresponding to the next hop address in the dynamic routing table.
In a preferred embodiment of the embodiments of the present invention, the apparatus further includes:
a forwarding configuration table adding module, configured to add the routing destination subnet address of the routing entry corresponding to the subnet IP address of the UE to the forwarding configuration table of the downlink service packet corresponding to the UE by the EPC.
The embodiment of the invention also discloses a device communication device, the device comprises User Equipment (UE) and a core network (EPC), the UE is provided with a first Open Shortest Path First (OSPF) module, and the EPC is used for communicating with the UE according to the IP message; the device comprises:
a subnet IP address and subnet mask receiving module, configured to receive, by the UE, a subnet IP address and subnet mask allocated by the EPC when the UE attaches to the EPC;
an OSPF message sending module, configured to, by a first OSPF module in the UE, generate an OSPF message according to the subnet IP address and the subnet mask, and send the OSPF message to the EPC;
an IP packet receiving module, configured to receive an IP packet returned by the EPC for the OSPF packet; and the IP message is formed by packaging the EPC aiming at the OSPF message, and the IP message does not have an Ethernet frame header.
Preferably, the subnet IP address and subnet mask receiving module includes:
a subnet IP address receiving submodule, configured to receive a subnet IP address allocated by an EPC when the UE is attached to the EPC;
a default bearer establishment information receiving submodule, configured to receive establishment information of a default bearer by the UE;
a subnet mask receiving submodule, configured to receive the subnet mask through a default bearer for the UE.
In a preferred embodiment of the present invention, the device further includes a mobile terminal, and the apparatus further includes:
a local IP address allocation module, configured to allocate a local IP address to the plurality of mobile terminals by the UE; wherein the mobile terminal is configured to communicate with the UE for the local IP address.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of 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, embodiments of 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.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (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 terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, 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 terminal 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 terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal 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 of these 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 embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The method and the apparatus provided by the present invention are described in detail, and the principle and the embodiment of the present invention are explained by applying specific examples, and the description of the above examples is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (14)

1. An equipment communication method is characterized in that the equipment comprises User Equipment (UE) and a core network (EPC), the UE is configured with a first Open Shortest Path First (OSPF) module, and the EPC is used for communicating with the UE according to an IP message; the method comprises the following steps:
when the UE attaches to the EPC, the EPC allocates a subnet IP address and a subnet mask to the UE;
the EPC receives an OSPF message sent by the UE aiming at the subnet IP address and the subnet mask; the OSPF message is generated by a first OSPF module in the UE according to the subnet IP address and the subnet mask;
the EPC packages the OSPF message into an IP message and sends the IP message to the UE;
wherein the EPC comprises an Operating System (OS), a feature module and a second OSPF module, and the method further comprises:
when the second OSPF module configures a dynamic routing table to the OS, the feature module filters a routing entry of a subnet IP address of the UE corresponding to a routing next hop address in the dynamic routing table;
wherein the method further comprises:
and the EPC adds the destination subnet address in the routing entry of the subnet IP address corresponding to the UE to a forwarding configuration table of the downlink service message corresponding to the UE.
2. The method of claim 1, wherein the step of the EPC allocating a subnet IP address and a subnet mask to the UE when the UE attaches to the EPC comprises:
the EPC allocating a subnet IP address to the UE;
establishing a default bearer between the EPC and the UE aiming at the subnet IP address;
the EPC sends the subnet mask to the UE over a default bearer.
3. The method of claim 1, wherein the EPC encapsulating the OSPF message into an IP message and sending the IP message to the UE comprises:
the EPC packages the OSPF message into an IP message in a GTP-U and sends the IP message to the UE; wherein the IP message does not carry an Ethernet frame header.
4. The method of claim 1, wherein the EPC encapsulating the OSPF message into an IP message and sending the IP message to the UE further comprises:
judging whether the IP message is a unicast message or a multicast message;
if the IP message is a unicast message, sending the IP message to the UE specified by the destination IP address of the IP message;
and if the IP message is a multicast message, sending the IP message to a plurality of UE attached to an EPC.
5. An equipment communication method is characterized in that the equipment comprises User Equipment (UE) and a core network (EPC), the UE is configured with a first Open Shortest Path First (OSPF) module, and the EPC is used for communicating with the UE according to an IP message; the method comprises the following steps:
when the UE attaches to the EPC, the UE receives a subnet IP address and a subnet mask allocated by the EPC;
a first OSPF module in the UE generates an OSPF message according to the subnet IP address and the subnet mask, and sends the OSPF message to the EPC;
the UE receives an IP message returned by the EPC aiming at the OSPF message; the IP message is formed by packaging the EPC aiming at the OSPF message, and the IP message does not have an Ethernet frame header;
wherein the EPC comprises an Operating System (OS), a feature module and a second OSPF module, and the method further comprises:
when the second OSPF module configures a dynamic routing table to the OS, the feature module filters a routing entry of a subnet IP address of the UE corresponding to a routing next hop address in the dynamic routing table;
wherein the method further comprises:
and the EPC adds the destination subnet address in the routing entry of the subnet IP address corresponding to the UE to a forwarding configuration table of the downlink service message corresponding to the UE.
6. The method of claim 5, wherein the step of the EPC assigning a subnet IP address and a subnet mask to the UE when the UE attaches to the EPC comprises:
when the UE attaches to an EPC, receiving a subnet IP address allocated by the EPC;
the UE receives the establishment information of the default bearer;
receiving the subnet mask over a default bearer for the UE.
7. The method of claim 5, wherein the device further comprises a mobile terminal, and wherein the method further comprises:
the UE allocates local IP addresses to a plurality of mobile terminals; wherein the mobile terminal communicates with the UE using the local IP address.
8. An equipment communication device is characterized in that the equipment comprises User Equipment (UE) and a core network (EPC), the UE is configured with a first Open Shortest Path First (OSPF) module, and the EPC is used for communicating with the UE according to an IP message; the device comprises:
a subnet IP address and subnet mask assignment module, configured to assign a subnet IP address and a subnet mask to the UE when the UE attaches to the EPC;
an OSPF message returning module, configured to receive, by the EPC, an OSPF message returned by the UE for the subnet IP address and the subnet mask; the OSPF message is generated by a first OSPF module in the UE according to the subnet IP address and the subnet mask;
an IP packet sending module, configured to encapsulate the OSPF packet into an IP packet by the EPC, and send the IP packet to the UE;
wherein the EPC comprises an Operating System (OS), a feature module and a second OSPF module, and the device further comprises:
a subnet IP address filtering module, configured to, when the second OSPF module configures a dynamic routing table entry for the OS, filter, by the feature module, a routing entry of a subnet IP address of the UE corresponding to a routing next hop address in the dynamic routing table;
wherein the apparatus further comprises:
a forwarding configuration table adding module, configured to add the subnet address of the filtered routing entry to the forwarding configuration table of the downlink service packet of the corresponding UE by the EPC.
9. The apparatus of claim 8, wherein the subnet IP address and subnet mask assigning module comprises:
a subnet IP address allocation submodule, configured to allocate a subnet IP address to the UE by the EPC;
a default bearer establishing submodule, configured to establish a default bearer between the EPC and the UE for the subnet IP address;
a subnet mask sending submodule, configured to send the subnet mask to the UE through a default bearer by the EPC.
10. The apparatus of claim 8, wherein the IP messaging module comprises:
an IP message sending submodule, configured to encapsulate the OSPF message in a GTP-U by the EPC to form an IP message, and send the IP message to the UE; wherein the IP message does not carry an Ethernet frame header.
11. The apparatus of claim 8, wherein the IP messaging module further comprises:
the message format judging submodule is used for judging whether the IP message is a unicast message or a multicast message;
the first IP message sending submodule is used for sending the IP message to the UE appointed by the IP message if the IP message is a unicast message;
and the first IP message sending submodule is used for sending the IP message to a plurality of UE (user equipment) attached to the EPC if the IP message is a multicast message.
12. An equipment communication device is characterized in that the equipment comprises User Equipment (UE) and a core network (EPC), the UE is configured with a first Open Shortest Path First (OSPF) module, and the EPC is used for communicating with the UE according to an IP message; the device comprises:
a subnet IP address and subnet mask receiving module, configured to receive, by the UE, a subnet IP address and subnet mask allocated by the EPC when the UE attaches to the EPC;
an OSPF message sending module, configured to, by a first OSPF module in the UE, generate an OSPF message according to the subnet IP address and the subnet mask, and send the OSPF message to the EPC;
an IP packet receiving module, configured to receive, by the UE, an IP packet returned by the EPC for the OSPF packet; the IP message is formed by packaging the EPC aiming at the OSPF message, and the IP message does not have an Ethernet frame header;
wherein the EPC comprises an Operating System (OS), a feature module and a second OSPF module, and the device further comprises:
a subnet IP address filtering module, configured to, when the second OSPF module configures a dynamic routing table entry for the OS, filter, by the feature module, a routing entry of a subnet IP address of the UE corresponding to a routing next hop address in the dynamic routing table;
wherein the apparatus further comprises:
a forwarding configuration table adding module, configured to add the subnet address of the filtered routing entry to the forwarding configuration table of the downlink service packet of the corresponding UE by the EPC.
13. The apparatus of claim 12, wherein the subnet IP address and subnet mask receiving module comprises:
a subnet IP address receiving submodule, configured to receive a subnet IP address allocated by an EPC when the UE is attached to the EPC;
a default bearer establishment information receiving submodule, configured to receive establishment information of a default bearer by the UE;
a subnet mask receiving submodule, configured to receive the subnet mask through a default bearer for the UE.
14. The apparatus of claim 12, wherein the device further comprises a mobile terminal, and wherein the apparatus further comprises:
a local IP address allocation module, configured to allocate a local IP address to the plurality of mobile terminals by the UE; wherein the mobile terminal communicates with the UE using the local IP address.
CN201610998731.9A 2016-11-11 2016-11-11 Equipment communication method and device Active CN108075973B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610998731.9A CN108075973B (en) 2016-11-11 2016-11-11 Equipment communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610998731.9A CN108075973B (en) 2016-11-11 2016-11-11 Equipment communication method and device

Publications (2)

Publication Number Publication Date
CN108075973A CN108075973A (en) 2018-05-25
CN108075973B true CN108075973B (en) 2020-11-13

Family

ID=62161971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610998731.9A Active CN108075973B (en) 2016-11-11 2016-11-11 Equipment communication method and device

Country Status (1)

Country Link
CN (1) CN108075973B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110784329B (en) * 2018-07-30 2022-04-12 成都鼎桥通信技术有限公司 Method and system for routing terminal equipment of LTE network
CN111918412B (en) * 2019-05-10 2022-11-04 大唐移动通信设备有限公司 Communication system, service processing method and device
CN111404816B (en) * 2020-03-06 2021-06-15 联想(北京)有限公司 Method, device, system and storage medium for sending multicast message across network

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100579076C (en) * 2007-08-24 2010-01-06 华为技术有限公司 Neighbourhood establishing method and router
CN103841048B (en) * 2012-11-23 2017-03-15 杭州华三通信技术有限公司 Neighbours' connection establishment method and apparatus
US8693374B1 (en) * 2012-12-18 2014-04-08 Juniper Networks, Inc. Centralized control of an aggregation network with a reduced control plane
WO2015100610A1 (en) * 2013-12-31 2015-07-09 华为技术有限公司 Method and device for keeping ip address of user equipment fixed

Also Published As

Publication number Publication date
CN108075973A (en) 2018-05-25

Similar Documents

Publication Publication Date Title
KR102139712B1 (en) Packet processing method and device
EP3210365B1 (en) Methods for packet-based communications using the internet protocol, as well as corresponding source node and corresponding transit network node
EP3249863B1 (en) Access control apparatus, system and method
CN106664732B (en) Apparatus and method for multipath TCP with LTE connection
EP2893765B1 (en) Minimizing mapping and signaling for data path aggregation
US20190007984A1 (en) Communication system and communication method
US9479951B2 (en) Selective real-time GTP session tracking using distributed processing techniques
US20150052234A1 (en) Centralized ip address management for distributed gateways
CN108243409B (en) Data transmission method and equipment
CN106664551B (en) Method and device for allocating IP address
EP3298734B1 (en) Method and apparatus for handling data flow in wireless communication networks
US11496441B2 (en) Network address translation with TEID
US9398513B2 (en) Communication system and computer-readable recording medium
CN108617009B (en) Data transmission method, device and system and packet data network gateway
CN108075973B (en) Equipment communication method and device
JP2022540672A (en) Enabling NAT for User Plane Traffic
TW201709757A (en) Cell and method and system for bandwidth management of backhaul network of cell
US20170374696A1 (en) Method and device for connectionless bearer service
EP2166735A1 (en) Method and device for data processing and communication system comprising such device
JP5675247B2 (en) Method for routing packets from a terminal of a mobile network to a device of an Internet network, and home node B comprising a routing module
CN108377524B (en) Terminal data packet transmission method and device
CN108028799B (en) Service flow forwarding function deployment method, device and system
US10250490B2 (en) Method and network node for routing backhaul packets
US20170078942A1 (en) Method and network node for routing ip packets
CN117837214A (en) Data transmission scheme in wireless communication

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