CN108934058B - Communication method and device - Google Patents

Communication method and device Download PDF

Info

Publication number
CN108934058B
CN108934058B CN201710381305.5A CN201710381305A CN108934058B CN 108934058 B CN108934058 B CN 108934058B CN 201710381305 A CN201710381305 A CN 201710381305A CN 108934058 B CN108934058 B CN 108934058B
Authority
CN
China
Prior art keywords
terminal
address
host
network element
local area
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.)
Expired - Fee Related
Application number
CN201710381305.5A
Other languages
Chinese (zh)
Other versions
CN108934058A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201710381305.5A priority Critical patent/CN108934058B/en
Priority to PCT/CN2018/088266 priority patent/WO2018214947A1/en
Publication of CN108934058A publication Critical patent/CN108934058A/en
Application granted granted Critical
Publication of CN108934058B publication Critical patent/CN108934058B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Abstract

The application discloses a communication method and a communication device, wherein the method comprises the following steps: a first terminal receives first routing information sent by a control plane CP network element, wherein the first routing information indicates address information of a first host, the first host is a host accessed to a second terminal, the second terminal and the first terminal are in the same mobile local area network, and the first routing information is determined by the CP network element after the first host is accessed to the second terminal; and the first terminal communicates with the first host according to the first routing information.

Description

Communication method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a communication method and apparatus.
Background
With the emergence of emerging business office models and smart home models, Wired Local Area Networks (WLANs) and Wireless Local Area Networks (WLANs) have shown their shortcomings in terms of flexibility, mobility, coverage, etc., which has prompted Local Area Networks (LANs) technology to evolve to meet the demand for LANs for future applications. The mobile network utilizes its wide coverage feature, and if a LAN is directly constructed in the mobile network, it is possible to provide LAN services available at any time and place.
The existing scheme for constructing an LAN using a mobile Network is to use the concept of Packet Data Network (PDN), where a terminal belonging to the same LAN carries a special Access Point Name (APN) identifier and cell information to initiate an attach request, a Control Plane (CP) Network element attaches the terminal to the Network according to the cell information carried by the terminal, and the CP Network element selects an appropriate User Plane (UP) Network element for the terminal according to the APN identifier and the cell information carried by the terminal and issues an inter-terminal Data processing and forwarding rule, so that an LAN switching instance becomes effective on an UP Network element. After the terminal carrying the same APN identifier joins the mobile network, the Ethernet (Ethernet) message forwarding based on LAN can be realized. In addition, when the terminal moves, the CP network element issues the data processing and forwarding rules between the terminals to the new UP network element so as to realize the migration of the LAN exchange example.
With the rapid development of mobile terminals and smart home devices, some devices do not have the direct mobile network access capability, but such devices can indirectly access the mobile network through the terminals, and hereinafter, the devices indirectly accessing the mobile network through the terminals are referred to as hosts. One end of the terminal opens a WLAN interface and a LAN interface for the host to access, and the other end of the terminal accesses a mobile network through an air interface. However, in the above solution, because the existing terminal may shield the accessed host, other devices (such as the terminal or the host) communicating with the host cannot sense the existence of the host, and only can sense the terminal accessed by the host, so that the host cannot implement data communication based on the local area network after accessing the mobile network through the terminal.
In summary, how to enable a host indirectly accessing a mobile network through a terminal to implement data communication based on a local area network is an urgent problem to be solved.
Disclosure of Invention
The application provides a communication method and a communication device, which are used for solving the problem that a host indirectly accessing a mobile network through a terminal in the prior art cannot perform data communication based on a local area network.
The embodiment of the application provides a communication method, which comprises the following steps:
and the first terminal receives first routing information sent by a control plane CP network element, and then communicates with the first host according to the first routing information. The first routing information indicates address information of a first host, the first host is a host accessed to a second terminal, the second terminal and the first terminal are in the same mobile local area network, and the first routing information is determined by the CP network element after the first host is accessed to the second terminal.
According to the method provided by the embodiment of the application, the first terminal determines the address information of the first host accessed to the second terminal through the first routing information sent by the CP network element, so that the first terminal can communicate with the first host according to the first routing information. Because the second terminal and the first terminal are in the same mobile local area network, the first host is sensed by the first terminal after the first terminal receives the first routing information, and the first terminal can realize data communication based on the local area network with the first host.
Optionally, before receiving the first routing information sent by the control plane CP network element, the first terminal may also send an attach request message to the CP network element, where the attach request message includes a first identifier of a mobile local area network; the first terminal receives an attachment response message sent by the CP network element, wherein the attachment response message comprises a second identifier of a mobile local area network, a first IP address and a first MAC address; the second identifier of the mobile local area network is determined by the CP network element according to the first identifier of the mobile local area network, and the first IP address and the first MAC address are allocated to the CP network element for the first terminal. The first terminal attaches to the CP network element by sending the attachment request message, thereby realizing that the access CP is positioned in the mobile local area network, and can communicate with other equipment in the mobile local area network through the information such as the second identifier, the first IP address, the first MAC address and the like of the mobile local area network distributed by the CP network element.
Optionally, after receiving the attach response message sent by the CP network element, the first terminal may receive a second request message sent by a second host accessing the first terminal, and forward the second request message to the CP network element, where the second request message is used to request the CP network element to allocate a second IP address to the second host; and the first terminal forwards a first request response message which is sent by the CP network element and comprises the second IP address to the second host. And the first terminal forwards a second request message sent by the second host to the CP network element to realize the allocation of a second IP address for the second host through the CP network element.
Optionally, the second request message includes a terminal identifier of the first terminal, where the terminal identifier of the first terminal is encapsulated in the second request message by the first terminal; and the second IP address is determined by the CP network element according to the terminal identifier of the first terminal. Through the method, the terminal identification of the first terminal can be associated with the IP address allocated by the host under the first terminal, so that the CP network element can conveniently manage the IP address of the host under the first terminal.
Optionally, the first terminal may further receive a first data packet sent to the first host by a second host accessing the first terminal; if the first terminal determines that the first host and the second host are located in the same mobile local area network according to the destination MAC address of the first data packet and determines that the address information of the second terminal is different from the address information of the first terminal, the first terminal performs encapsulation processing on the first data packet and sends the encapsulated first data packet to the second terminal; the encapsulated first data packet includes a local area network identifier of the second host, and a source IP address of the encapsulated first data packet is an IP address of the first terminal, and a destination IP address of the encapsulated first data packet is an IP address of the second terminal.
Optionally, after the first terminal receives a second data packet sent by the second terminal, if the first terminal determines that a destination IP address of the second data packet is the same as an IP address of the first terminal and that a local area network identifier in the second data packet is the same as a local area network identifier of the first terminal, decapsulating the second data packet, and determining a receiving end of the second data packet according to a destination MAC address of the second data packet obtained after decapsulation.
The embodiment of the application provides a communication method, which comprises the following steps:
after a CP network element receives a first request message sent by a second terminal, the CP network element determines first routing information according to an IP address allocated to the first host, and sends the first routing information to a first terminal, where the first terminal and the second terminal are in the same mobile local area network, and the first request message is used to request the CP network element to allocate an internet protocol IP address to the first host accessing the second terminal; the first routing information indicates address information of the first host.
According to the method provided by the embodiment of the present application, after determining the first routing information according to the IP address allocated to the first host, the CP network element sends the first routing information to the first terminal, and since the second terminal and the first terminal are in the same mobile lan, the first terminal makes the first host be perceived by the first terminal after receiving the first routing information, and thus the first terminal can implement data communication based on the lan with the first host.
Optionally, the CP network element receives an attach request message sent by the first terminal, where the attach request message includes a first identifier of a mobile local area network; then, the CP network element sends an attach response message to the first terminal, where the attach response message includes a second identifier of the mobile lan, a first IP address, and a first MAC address; the second identifier of the mobile local area network is determined by the CP network element according to the first identifier of the mobile local area network, and the first IP address and the first MAC address are allocated to the CP network element for the first terminal.
Optionally, after sending the attach response message to the first terminal, the CP network element may further receive a second request message sent by the first terminal, where the second request message is forwarded after the first terminal receives a second request message sent by a second host accessing to the first terminal, and the second request message is used to request the CP network element to allocate a second IP address to the second host; and the CP network element sends a second request response message comprising the second IP address to the first terminal.
Optionally, after sending the attach response message to the first terminal, the CP network element may also send second routing information to the first terminal, where the second routing information indicates address information of the second terminal.
Optionally, the CP network element determines all terminals in the same mobile lan as the first terminal;
the CP network element sends third routing information to all terminals in the same mobile local area network with the first terminal except the first terminal; the third routing information indicates address information of the first terminal.
Optionally, the CP network element determines all terminals in the same mobile lan as the first terminal;
the CP network element sends fourth routing information to all terminals in the same mobile local area network with the first terminal except the first terminal; the fourth routing information indicates address information of a second host accessing the first terminal.
An embodiment of the present application provides a communication apparatus, including: a processor and a transceiver;
the processor is configured to receive, by the transceiver, first routing information sent by a control plane CP network element, where the first routing information indicates address information of a first host, the first host is a host accessing a second terminal, the second terminal and the first terminal are in the same wlan, and the first routing information is determined by the CP network element after the first host accesses the second terminal;
the processor is configured to communicate with the first host through the transceiver according to the first routing information.
Optionally, the processor is further configured to:
sending an attach request message to the CP network element through the transceiver, wherein the attach request message comprises a first identifier of a mobile local area network;
receiving an attachment response message sent by the CP network element through the transceiver, wherein the attachment response message comprises a second identifier of a mobile local area network, a first Internet Protocol (IP) address and a first Media Access Control (MAC) address; the second identifier of the mobile local area network is determined by the CP network element according to the first identifier of the mobile local area network, and the first IP address and the first MAC address are allocated to the CP network element as the first terminal.
Optionally, the processor is further configured to:
receiving, by the transceiver, a second request message sent by a second host accessing the first terminal, and forwarding the second request message to the CP network element, where the second request message is used to request the CP network element to allocate a second IP address to the second host;
forwarding, by the transceiver, a first request response message including the second IP address sent by the CP network element to the second host.
Optionally, the second request message includes a terminal identifier of the first terminal, where the terminal identifier of the first terminal is encapsulated in the second request message by the first terminal;
and the second IP address is determined by the CP network element according to the terminal identifier of the first terminal.
Optionally, the processor is further configured to:
receiving a first data packet sent to a first host by a second host accessing a first terminal through the transceiver;
if the first host and the second host are located in the same mobile local area network according to the destination MAC address of the first data packet and the address information of the second terminal is different from the address information of the first terminal, encapsulating the first data packet and sending the encapsulated first data packet to the second terminal; the encapsulated first data packet includes a local area network identifier of the second host, and a source IP address of the encapsulated first data packet is an IP address of the first terminal, and a destination IP address of the encapsulated first data packet is an IP address of the second terminal.
Optionally, the processor is further configured to:
receiving a second data packet sent by the second terminal through the transceiver;
and if the destination IP address of the second data packet is determined to be the same as the IP address of the first terminal and the local area network identifier in the second data packet is determined to be the same as the local area network identifier of the first terminal, decapsulating the second data packet and determining a receiving end of the second data packet according to the destination MAC address of the second data packet obtained after decapsulation.
An embodiment of the present application provides a communication apparatus, including: a processor and a transceiver;
the processor is configured to receive, through the transceiver, a first request message sent by a second terminal, where the first request message is used to request a CP network element to allocate an internet protocol IP address to a first host accessing the second terminal;
the processor is configured to determine first routing information according to the IP address allocated to the first host, where the first routing information indicates address information of the first host;
the processor is configured to send the first routing information to a first terminal through the transceiver, where the first terminal and the second terminal are in the same mobile local area network.
Optionally, the processor is further configured to:
receiving an attachment request message sent by the first terminal through the transceiver, wherein the attachment request message comprises a first identifier of a mobile local area network;
sending an attachment response message to the first terminal through the transceiver, wherein the attachment response message comprises a second identifier of a mobile local area network, a first IP address and a first MAC address; the second identifier of the mobile local area network is determined by the CP network element according to the first identifier of the mobile local area network, and the first IP address and the first MAC address are allocated to the CP network element for the first terminal.
Optionally, the processor is further configured to:
receiving, by the transceiver, a second request message sent by the first terminal, where the second request message is forwarded after the first terminal receives a second request message sent by a second host accessing the first terminal, and the second request message is used to request the CP network element to allocate a second IP address to the second host;
transmitting, by the transceiver, a second request response message including the second IP address to the first terminal.
Optionally, the processor is further configured to:
and sending second routing information to the first terminal through the transceiver, wherein the second routing information indicates address information of the second terminal.
Optionally, the processor is further configured to:
determining all terminals in the same mobile local area network with the first terminal;
sending third routing information to terminals except the first terminal in all terminals in the same mobile local area network with the first terminal through the transceiver; the third routing information indicates address information of the first terminal.
Optionally, the processor is further configured to:
determining all terminals in the same mobile local area network with the first terminal;
sending fourth routing information to terminals except the first terminal in all terminals in the same mobile local area network with the first terminal through the transceiver; the fourth routing information indicates address information of a second host accessing the first terminal.
An embodiment of the present application provides a communication apparatus, including:
a transceiver unit, configured to receive first routing information sent by a control plane CP network element, where the first routing information indicates address information of a first host, the first host is a host accessing a second terminal, the second terminal and the first terminal are in the same wlan, and the first routing information is determined by the CP network element after the first host accesses the second terminal;
and the processing unit is used for communicating with the first host according to the first routing information.
Optionally, the transceiver unit is further configured to:
sending an attachment request message to the CP network element, wherein the attachment request message comprises a first identifier of a mobile local area network;
receiving an attachment response message sent by the CP network element, wherein the attachment response message comprises a second identifier of a mobile local area network, a first Internet Protocol (IP) address and a first Media Access Control (MAC) address; the second identifier of the mobile local area network is determined by the CP network element according to the first identifier of the mobile local area network, and the first IP address and the first MAC address are allocated to the CP network element as the first terminal.
Optionally, the transceiver unit is further configured to:
receiving a second request message sent by a second host accessed to the first terminal, and forwarding the second request message to the CP network element, where the second request message is used to request the CP network element to allocate a second IP address to the second host;
and forwarding the first request response message which is sent by the CP network element and comprises the second IP address to the second host.
Optionally, the second request message includes a terminal identifier of the first terminal, where the terminal identifier of the first terminal is encapsulated in the second request message by the first terminal;
and the second IP address is determined by the CP network element according to the terminal identifier of the first terminal.
Optionally, the transceiver unit is further configured to:
receiving a first data packet sent to a first host by a second host accessing a first terminal;
the processing unit is configured to, if it is determined according to the destination MAC address of the first data packet that the first host and the second host are located in the same wlan and it is determined that the address information of the second terminal is different from the address information of the first terminal, perform encapsulation on the first data packet, and send the encapsulated first data packet to the second terminal; the encapsulated first data packet includes a local area network identifier of the second host, and a source IP address of the encapsulated first data packet is an IP address of the first terminal, and a destination IP address of the encapsulated first data packet is an IP address of the second terminal.
Optionally, the transceiver unit is further configured to:
receiving a second data packet sent by the second terminal;
and the processing unit is configured to decapsulate the second data packet and determine a receiving end of the second data packet according to the destination MAC address of the second data packet obtained after decapsulation, if it is determined that the destination IP address of the second data packet is the same as the IP address of the first terminal and it is determined that the local area network identifier in the second data packet is the same as the local area network identifier of the first terminal.
An embodiment of the present application provides a communication apparatus, including:
a receiving and sending unit, configured to receive a first request message sent by a second terminal, where the first request message is used to request a CP network element to allocate an internet protocol IP address to a first host accessing the second terminal;
a processing unit, configured to determine first routing information according to an IP address allocated to the first host, where the first routing information indicates address information of the first host;
the transceiver unit is configured to send the first routing information to a first terminal, where the first terminal and the second terminal are in the same mobile lan.
Optionally, the transceiver unit is further configured to:
receiving an attachment request message sent by the first terminal, wherein the attachment request message comprises a first identifier of a mobile local area network;
sending an attachment response message to the first terminal, wherein the attachment response message comprises a second identifier of the mobile local area network, a first IP address and a first MAC address; the second identifier of the mobile local area network is determined by the CP network element according to the first identifier of the mobile local area network, and the first IP address and the first MAC address are allocated to the CP network element for the first terminal.
Optionally, the transceiver unit is further configured to:
receiving a second request message sent by the first terminal, wherein the second request message is forwarded after the first terminal receives a second request message sent by a second host machine accessed to the first terminal, and the second request message is used for requesting the CP network element to allocate a second IP address to the second host machine;
and sending a second request response message comprising the second IP address to the first terminal.
Optionally, the transceiver unit is further configured to:
and sending second routing information to the first terminal, wherein the second routing information indicates the address information of the second terminal.
Optionally, the transceiver unit is further configured to:
determining all terminals in the same mobile local area network with the first terminal;
sending third routing information to terminals except the first terminal in all terminals in the same mobile local area network with the first terminal; the third routing information indicates address information of the first terminal.
Optionally, the transceiver unit is further configured to:
determining all terminals in the same mobile local area network with the first terminal;
sending fourth routing information to terminals except the first terminal in all terminals in the same mobile local area network with the first terminal; the fourth routing information indicates address information of a second host accessing the first terminal.
The embodiment of the application provides a communication method, which comprises the following steps:
a first terminal sends an attachment request message to a CP network element, wherein the attachment request message comprises a first identifier of a mobile local area network; then, the first terminal receives an attachment response message sent by the CP network element, where the attachment response message includes a second identifier of a mobile local area network, a first internet protocol IP address, and a first MAC address; the second identifier of the mobile local area network is determined by the CP network element according to the first identifier of the mobile local area network, and the first IP address and the first MAC address are allocated to the CP network element for the first terminal.
Through the method, the first terminal is attached to the CP network element by sending the attachment request message, so that the access CP is positioned in the mobile local area network, and can communicate with other equipment in the mobile local area network through the information such as the second identifier, the first IP address and the first MAC address of the mobile local area network distributed by the CP network element.
Optionally, after receiving the attach response message sent by the CP network element, the first terminal may further receive a second request message sent by a second host accessing to the first terminal, and forward the second request message to the CP network element, where the second request message is used to request the CP network element to allocate a second IP address to the second host;
and the first terminal forwards a first request response message which is sent by the CP network element and comprises the second IP address to the second host.
Embodiments of the present application also provide a computer storage medium, in which a software program is stored, and the software program can implement the communication method provided by any one of the above designs when being read and executed by one or more processors.
The embodiment of the present application further provides a communication system, where the system includes the communication apparatus provided in any of the above designs, and optionally, the system may further include other devices that interact with the communication apparatus in the scheme provided in the embodiment of the present application.
Embodiments of the present application also provide a computer program product containing instructions, which when run on a computer, cause the computer to perform the communication method according to the above aspects.
Drawings
Fig. 1 is a schematic diagram of a network structure suitable for use in embodiments of the present application;
fig. 2 is a schematic flowchart of a communication method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a data packet structure according to an embodiment of the present application;
fig. 4 is a schematic diagram of a data packet structure according to an embodiment of the present application;
fig. 5 is a schematic diagram of a communication flow provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a communication device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a communication device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a communication device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a communication device according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail below with reference to the accompanying drawings.
Among the existing local area network technologies, the Virtual Extensible LAN (VxLAN) technology is a technology that is developed rapidly. VxLAN is a network virtualization technology, and as long as a physical network supports Internet Protocol (IP) forwarding, a large-range two-layer network technology can be established for terminals with reachable IP routes. VxLAN does not maintain a long connection between virtual machines, so VxLAN requires a control plane network element to record peer address reachability. Respective routing tables cannot be exchanged periodically among nodes in the VxLAN, and for unknown addresses, the VxLAN acquires path information by means of multicast. Specifically, after a Virtual Machine (VM) is added to a VxLAN, an Address Resolution Protocol (ARP) request message is broadcasted in the VxLAN, and an ARP response message returned by other VMs is received, so that a Virtual Tunnel End Point (VTEP) connected to the VM can determine information such as addresses of other VMs, and the VM can communicate with other VMs in the VxLAN. However, when the number of VMs is too large, the broadcast ARP request message may cause a broadcast storm to the network, thereby causing network congestion.
Therefore, the embodiment of the present application provides a communication method, which is used for implementing mutual awareness of address information of each other between nodes in a mobile local area network while avoiding network congestion.
Fig. 1 is a schematic diagram of a network structure suitable for the embodiment of the present application. The Network shown in fig. 1 includes AN UP Network element 101, a CP Network element 102, AN Access Network (AN) Network element 103, AN Network element 104, a terminal 105, a host 106 of the Access terminal 105, a terminal 107, a host 108 of the Access terminal 107, and a host 109 of the Access terminal 107. The network structure shown in fig. 1 may include a plurality of terminals and hosts, and only three hosts and two terminals are shown for clarity.
Host 106, host 108, and host 109 may access the mobile network through respective access terminals.
The UP Network element 101, which may implement data forwarding, may be coupled to one or more External networks (External networks), such as the internet, Public Switched Telephone Network (PSTN), and so on.
The CP network element 102 may select an UP network element for the terminal according to the cell information and the APN identifier carried by the terminal, allocate a virtual Media Access Control (MAC) address, an IP address, and a LAN identifier to the terminal, and store the terminal information. And simultaneously, the information is sent to all terminals in the same LAN as the terminal, and the information of all terminals in the mobile LAN is stored. When the host accesses the mobile local area network, the IP address is distributed to the host, and the MAC address, the IP address and the connected terminal information of the host are sent to all terminals in the mobile local area network.
AN network element 103 is used for accessing the network and connecting the terminal to the UP network element.
In this embodiment, a terminal, which may also be referred to as a User Equipment (terminal), is a device having a mobile communication function, may provide voice and/or data services to a User, and may include a handheld device having a wireless communication function, an in-vehicle device, a wearable device, a computing device, or other processing devices connected to a wireless modem. Terminals can be called different names in different networks, for example: client devices, user equipment, mobile stations, subscriber units, stations, cellular telephones, personal digital assistants, wireless modems, wireless communication devices, handheld devices, laptops, cordless telephones, wireless local loop stations, and the like. For convenience of description, the terminal is simply referred to in this application.
In the embodiment of the application, one end of the terminal is accessed to the mobile network through an air interface, and the other end of the terminal is provided with a WLAN (wireless local area network) and a LAN (local area network) interface for the host to access, so that the host can be accessed to the mobile local area network.
In the embodiment of the application, the terminal is provided with a message encapsulation and decapsulation module, which can encapsulate and forward a message initiated by an application on the connected terminal or host by the mobile network, decapsulate the message received from the mobile network, and forward the decapsulated message to the corresponding host or application. The terminal can store the LAN identification of all terminals or hosts in the local network, the MAC address of the terminal or host, and the IP address of the terminal connected with the host, and meanwhile, the terminal can reply the ARP message initiated by the host or application connected with the terminal.
In the embodiment of the application, the terminal can have the capability of processing the data messages of different types of mobile local area networks.
For example, when the mobile local area network type of the terminal is VxLAN, the terminal has the capability of encapsulating and decapsulating VxLAN messages; when the Protocol type supported by the mobile local area network where the terminal is located is a Layer 2Tunneling Protocol (L2 TP), the terminal has the capability of encapsulating and decapsulating L2TP messages; when the protocol type supported by the mobile local area Network where the terminal is located is Network Virtual General Routing Encapsulation (NVGRE), the terminal has the capability of encapsulating and decapsulating the NVGRE message; when the protocol type supported by the mobile local area network where the terminal is located is Overlay Transport Virtualization (OTV), the terminal has the capability of encapsulating and decapsulating OTV messages.
The terminal can also store the MAC address and IP address of all the terminals in the local area network, the MAC address and IP address of the host, the IP address of the terminal accessed by the host, the local area network identification and other information.
The host is a device which is accessed to the mobile local area network through the terminal. The host may connect with the terminal first, and then send the ethernet packet to other hosts or terminals in the mobile lan through the terminal. It should be noted that the host may also have the capability of directly accessing the network, but in the embodiment of the present application, the host does not communicate by using its capability of directly accessing the network, but needs to access the mobile lan through the terminal.
With reference to the above description, as shown in fig. 2, a schematic flow chart of a communication method provided in the embodiment of the present application is shown. The method comprises the following steps:
step 201: the CP network element receives a first request message sent by a second terminal, wherein the first request message is used for requesting the CP network element to allocate an IP address for a first host accessed to the second terminal.
Step 202: and the CP network element determines first routing information according to the IP address distributed to the first host, wherein the first routing information indicates the address information of the first host.
Step 203: and the CP network element sends the first routing information to a first terminal, and the first terminal and the second terminal are in the same mobile local area network.
Step 204: a first terminal receives first routing information sent by a control plane CP network element, wherein the first routing information indicates address information of a first host, the first host is a host accessed to a second terminal, the second terminal and the first terminal are in the same mobile local area network, and the first routing information is determined by the CP network element after the first host is accessed to the second terminal.
Step 205: and the first terminal communicates with the first host according to the first routing information.
In step 201, the first request message may further include information such as a MAC address of the first host, a terminal identifier of the second terminal, and a local area network identifier of a mobile local area network where the first host is located. The terminal identifier of the second terminal may be an International Mobile Subscriber Identity (IMSI) of the second terminal, or an identifier of a local area network of the Mobile lan where the second terminal is located and an IP address of the second terminal, and the terminal identifier of the second terminal may also be in other forms, which is not described herein again. It should be noted that the first request message may be forwarded after the second terminal receives the first request message of the first host, and the second terminal may perform encapsulation processing on the first request message before forwarding the first request message, and encapsulate information such as a terminal identifier of the second terminal into the first request message.
In step 202, the CP network element may allocate an IP address to the first host according to the terminal identifier of the second terminal, and specifically, the CP network element may determine the IP address of the second terminal according to the terminal identifier of the second terminal, so as to allocate an IP address belonging to the same network segment as the IP address of the second terminal to the first host.
The address information of the first host indicated by the first routing information determined by the CP network element may include an IP address of the first host, an MAC address of the first host, a local area network identifier of the first host, an IP address of a terminal to which the first host is accessed, and the like.
Alternatively, the first request message may be a Dynamic Host Configuration Protocol (DHCP) message. Accordingly, after allocating the information such as the IP address to the first host, the CP network element may send a first request response message including the IP address allocated to the first host to the second terminal. The first request response message may be a DHCP response message.
In step 203, before sending the first routing information to the first terminal, the CP network element may accept the attachment of the first terminal, and the following details describe the attachment process of the first terminal.
Step one, a first terminal sends an attachment request message to a CP network element, wherein the attachment request message comprises a first identifier of a mobile local area network, and the first identifier of the mobile local area network is the identifier of the mobile local area network where the first terminal is located. For example, the first identifier of the mobile lan may be an IN-network Access Point Name (IN-APN). The attach request message may further include information such as a cell identifier and a station identifier of the first terminal. The cell identity may be a cell Identifier.
Step two, the CP network element receives the attach request message sent by the first terminal, and determines the UP network element for the first terminal according to the cell identifier and the first identifier of the mobile local area network, and specifically determines the UP network element, which is not limited herein. Meanwhile, the CP network element may also allocate a first IP address and a first MAC address to the first terminal, and determine a second identifier of the mobile lan according to the first identifier of the mobile lan, where the second identifier of the mobile lan is the same as the mobile lan indicated by the first identifier of the mobile lan.
For example, when the type of the mobile local area Network where the first terminal is located is VxLAN, the first Identifier of the mobile local area Network is IN-APN, and if the CP Network element determines that the VxLAN Network Identifier (VxLAN Network Identifier, VNI) mapped with the first Identifier of the mobile local area Network exists, the mapped VxLAN Network Identifier is determined as the second Identifier of the mobile local area Network; and if the CP network element determines that the VxLAN network identifier mapped with the first identifier does not exist IN the mobile local area network, allocating a VxLAN network identifier as a second identifier of the mobile local area network, and storing the mapping relation between the allocated VxLAN network identifier and the IN-APN.
For another example, when the type supported by the mobile LAN where the first terminal is located is L2TP, the first Identifier of the mobile LAN is an IN-APN, and the second Identifier of the mobile LAN is a Management LAN Identifier (MLAN ID). If the CP network element determines that the first identifier of the mobile local area network has the MLAN ID mapped with the first identifier, the mapped MLAN ID is determined as a second identifier of the mobile local area network; if the CP network element determines that the MLAN ID mapped with the first identifier of the mobile local area network does not exist, one MLAN ID is allocated as a second identifier of the mobile local area network, and the mapping relation between the allocated MLAN ID and the IN-APN is stored. Meanwhile, the CP network element distributes Session (Session) identification and Tunnel (Tunnel) identification between the first terminal and other terminals of the same local area network with the first terminal, and the CP network element stores the mapping relation between the IN-APN and the MLAN ID, and the Tunnel identification and the Session identification of the L2TP Tunnel between the terminals.
For another example, when the type supported by the mobile lan where the first terminal is located is NVGRE, the first Identifier of the mobile lan is an IN-APN, and the second Identifier of the mobile lan is a Tenant Network Identifier (TNI). If the CP network element determines that the TNI mapped with the first identifier of the mobile local area network exists, the mapped TNI is determined as a second identifier of the mobile local area network; and if the CP network element determines that the TNI mapped with the first identifier of the mobile local area network does not exist, allocating one TNI as a second identifier of the mobile local area network, and storing the mapping relation between the allocated TNI and the IN-APN.
For another example, when the type supported by the mobile lan where the first terminal is located is OTV, the first Identifier of the mobile lan is IN-APN, and the second Identifier of the mobile lan is virtual network Identifier (VLAN Identifier, VID). If the CP network element determines that the first identifier of the mobile local area network has the VID mapped with the first identifier, the mapped VIDI is determined as a second identifier of the mobile local area network; and if the CP network element determines that the first identifier of the mobile local area network does not have the VNI mapped with the first identifier, allocating one VNI as a second identifier of the mobile local area network, and storing the mapping relation between the allocated VID and the IN-APN.
Step three, the CP network element stores the above information, and sends an attach response message to the first terminal, where the attach response message includes information such as a second identifier of the mobile local area network, a first IP address, and a first MAC address, and the first IP address and the first MAC address are allocated by the CP network element to the first terminal.
And step four, the first terminal receives the attachment response message sent by the CP network element.
Through the above process, the first terminal completes attachment. It should be noted that, the process of attaching other terminals (e.g., the second terminal) may refer to the above description, and is not described herein again.
After the first terminal attaches, the second host may access the first terminal to access the network through the first terminal. In the process of accessing the first terminal by the second host, the identity of the second host may be first verified by an Authentication, Authorization, Accounting, AAA (Authentication, Authorization, Accounting, AAA) server, and a specific verification method is not limited and will not be described herein again.
After the second host passes the security authentication and accesses the first terminal, a second request message may be sent to the first terminal, where the second request message is used to request the CP network element to allocate a second IP address to the second host. The second request message may further include information such as a MAC address of the second host. It should be noted that the second request message may be a DHCP request message.
After receiving the second request message, the first terminal may perform encapsulation processing on the second request message, where the encapsulated second request message may include information such as a terminal identifier of the first terminal, a local area network identifier of the second host, and the like. The terminal identifier of the first terminal may be an IMSI of the first terminal, or a second identifier of a mobile local area network of the mobile local area network to which the first terminal belongs and an IP address of the first terminal, and the terminal identifier of the first terminal may also be in other forms, which is not described herein again.
And the first terminal forwards the second request message to the CP network element. After receiving the second request message, the CP network element may allocate a second IP address to the second host. The second IP address may be determined by the CP network element according to the terminal identifier of the first terminal. Specifically, the CP network element determines a first IP address of the first terminal according to the terminal identifier of the first terminal, and allocates a second IP address in the same network segment as the first IP address to the second host.
By the method, the first terminal and the hosts under the first terminal can be allocated with the IP addresses of the same network segment, so that the hosts under the first terminal can be managed by the IP addresses conveniently, and the hosts under the same network segment can be ensured to be communicated with each other.
Meanwhile, the CP network element stores the IP address and the MAC address of the second host, the IP address of the first terminal accessed by the second host, the local area network identification of the mobile local area network where the second host is located and other information. By storing the above information, the CP network element may establish a mapping relationship between the second host and the first terminal, and determine information such as address information of the second host and the first terminal.
Subsequently, the CP network element sends a second request response message including the second IP address to the first terminal. And the second request message is forwarded after the first terminal receives a second request message sent by a second host accessed to the first terminal.
And the first terminal receives a second request response message which is sent by the CP network element and comprises the second IP address, and forwards a first request response message which is sent by the CP network element and comprises the second IP address to the second host. Meanwhile, the first terminal may also send a configuration completion message to the CP network element, thereby completing the configuration of the second host.
Through the above process, the second host obtains the second IP address, so that the ethernet packet can be sent through the first terminal.
In step 204, before the first terminal receives the first routing information, the CP network element may further send second routing information to the first terminal, where the second routing information indicates address information of the second terminal, and the address information of the second terminal may include information such as a MAC address, an IP address, and a local area network identifier of the second terminal. After the first terminal receives the second routing information, the first terminal may determine information such as a MAC address, an IP address, and a local area network identifier of the second terminal.
It should be noted that the second routing information may be sent alone, or may be sent by being accompanied by other messages, and the embodiment of the present application is not limited.
In this embodiment of the present application, after a first terminal attaches to a CP network element, the CP network element may further determine all terminals in the same mobile lan as the first terminal; then, the CP network element sends a third routing information to all terminals in the same mobile local area network as the first terminal except the first terminal; the third routing information indicates address information of the first terminal. The address information of the first terminal may include information such as a MAC address, an IP address, and a local area network identifier of the first terminal.
In the above process, after the first terminal attaches the CP network element, the CP network element sends the routing information of the first terminal to other terminals in the mobile lan where the first terminal is located, so that the other terminals determine the routing information of the first terminal, and thus the other terminals can communicate with the first terminal. By the method, the broadcast storm generated when the routing information between the terminals in the mobile local area network is exchanged in the mode of ARP request messages in the prior art can be avoided.
In this embodiment of the present application, the CP network element may further send fourth routing information to terminals, except the first terminal, in all terminals in the same mobile lan as the first terminal; the fourth routing information indicates address information of a second host accessing the first terminal. The address information of the second host may include information such as a MAC address of the second host, an IP address of a terminal to which the second host has access, and a lan identifier of the second host.
In step 205, the first terminal, the first host, the second terminal, and the second host have determined mutual address information, so that they can communicate with each other.
For example, when the second host sends a data packet to the first host, the second host first sends a first data packet to the first terminal. The source IP address of the first data packet is the IP address of the second host, and the source MAC address is the MAC address of the second host; and the destination IP address of the first data packet is the IP address of the first host, and the destination MAC address is the MAC address of the first host. Specifically, as shown in fig. 3, the first data packet sent by the second host to the first terminal may include a data packet header and a data field, a source IP address in the data packet header is an IP address of the second host, a source MAC address is an MAC address of the second host, a destination IP address is an IP address of the first host, a destination MAC address is an MAC address of the first host, and other contents in the data packet header may refer to descriptions in the ethernet packet and are not described herein again. The data field is data that needs to be transmitted by the second host, and may be determined specifically according to an actual situation, and is not described herein again.
The first terminal receives a first data packet sent to the first host by a second host accessing the first terminal, and can determine an IP address of the terminal accessed by the second host, namely the IP address of the second terminal, according to a destination IP address or a destination MAC address of the first data packet. At this time, if the first terminal determines that the first host and the second host are located in the same mobile local area network according to the destination MAC address of the first data packet and determines that the address information of the second terminal is different from the address information of the first terminal, the first terminal performs encapsulation processing on the first data packet and sends the encapsulated first data packet to the second terminal; the encapsulated first data packet includes a local area network identifier of the second host, and a source IP address of the encapsulated first data packet is an IP address of the first terminal, and a destination IP address of the encapsulated first data packet is an IP address of the second terminal.
It should be noted that the encapsulating of the first Data Packet by the first terminal is to encapsulate a Data Packet header for the first Data Packet, where the encapsulated Data Packet header includes a local area network identifier field, a transmission Protocol field, an IP layer, a Packet Data Convergence Protocol (PDCP) layer, a Radio Link Control (RLC) layer, an MAC layer, a Physical (PHY) layer, and the like. Specifically, referring to fig. 3, as shown in fig. 4, the first terminal repackages a data packet header for the first data packet, where a source IP address in an IP layer in the repackaged data packet header is an IP address of the first terminal, and a destination IP address is an IP address of the second terminal. The lan identification field in the re-encapsulated packet header may include a lan identification, such as a VNI, TNI, or VID, and the transport Protocol field in the re-encapsulated packet header may include a transport Protocol field identification, such as a User Datagram Protocol (UDP) identification, and other content included in the re-encapsulated packet header is not shown.
It should be noted that, the first terminal sends the first data packet after encapsulation to the second terminal, the first data packet after encapsulation is sent to the first AN network element first, the first AN network element sends the first data packet after encapsulation to the UP network element, the UP network element sends the first data packet after encapsulation to the second AN network element, and finally the second AN network element sends the first data packet after encapsulation to the second terminal. The first AN network element is AN AN network element for accessing the first terminal to the UP network element, and the second AN network element is AN AN network element for accessing the second terminal to the UP network element. And the UP network element is determined by the CP network element when the first terminal and the second terminal are attached to the CP network element.
After receiving the first data packet after encapsulation, the second terminal decapsulates the first data packet after encapsulation first, and determines a local area network identifier in the first data packet after encapsulation and a destination IP address of the first data packet; if the second terminal determines that the destination IP address of the first data packet after encapsulation is the same as the IP address of the second terminal and the local area network identifier of the local area network where the second terminal or the first host is located is the same as the local area network identifier of the local area network, decapsulating the packet header of the first data packet and determining the destination MAC address in the first data packet; and if the second terminal determines that the destination MAC address is the MAC address of the second terminal, the first data packet is analyzed, and if the destination MAC address is the MAC address of the first host, the first data packet is forwarded to the first host.
By the method, after the first terminal receives the first data packet sent to the first host by the second host accessed to the first terminal, the receiving end of the data packet is determined according to the destination MAC address of the first data packet, and the interconnection between the terminals or the hosts in the mobile local area network is realized.
Optionally, the first terminal may further receive a second data packet sent by the second terminal; and if the first terminal determines that the destination IP address of the second data packet is the same as the IP address of the first terminal and determines that the local area network identifier in the second data packet is the same as the local area network identifier of the first terminal, decapsulating the second data packet, and determining a receiving end of the second data packet according to the destination MAC address of the second data packet obtained after decapsulation. Specifically, if the first terminal determines that the destination MAC address of the second packet is the same as the MAC address of the first terminal, the first terminal parses the second packet; and if the first terminal determines that the destination MAC address of the second data packet is the same as the MAC address of the second host, forwarding the second data packet to the second host.
The above process is described below by way of specific examples.
Fig. 5 is a schematic diagram of a communication flow provided in the embodiment of the present application.
In the flow shown in fig. 5, the first terminal and the second terminal are in the same wlan, and the mobile networks accessed by the first terminal and the second terminal are Backhaul (Backhaul) networks based on IP, and the mobile lan may further include other terminals, which is described by way of example only as including the first terminal and the second terminal, and the number of terminals included in the mobile lan is not limited herein. In fig. 5, the first terminal and the second terminal have already been attached to the CP network element, and the attaching process may refer to the foregoing description, which is not described herein again. After the first terminal and the second terminal are attached, the CP network element may send the routing information of the first terminal and the routing information of the second terminal to each other, and a specific process is not described herein.
Step 501: the second terminal sends a first request message to a CP network element, where the first request message is used to request the CP network element to allocate an IP address to the first host, and the first request message may be a DHCP message. The first host is a host accessed to the second terminal.
The first request message may further include information such as a MAC address of the first host, a terminal identifier of the second terminal, and the like.
Optionally, before the first host sends the first request message to the second terminal, security authentication may also be performed.
Step 502: the CP network element allocates an IP address to the first host.
The CP network element may allocate an IP address to the first host according to the terminal identifier of the second terminal, where the allocated IP address and the IP address of the second terminal belong to the same network segment.
Meanwhile, the CP network element may also store the following information: an IP address and an MAC address of the first host; the IP address and the MAC address of the second terminal; the local area network identification of the mobile local area network where the second terminal (or the first host) is located, and the like.
Step 503: and the CP network element sends a first request response message to the second terminal, wherein the first request response message comprises the IP address allocated to the first host by the CP network element. The first request response message may be a DHCP response message.
Step 504: the second terminal stores the IP address and MAC address of the first host, and the local area network identification of the mobile local area network where the first host is located.
Step 505: and the second terminal forwards the first request response message to the first host.
Step 506: and the second terminal sends a configuration completion message to the CP network element so as to complete the configuration of the first host.
Step 507: and the CP network element inquires all terminals in the mobile local area network where the second terminal is located, and sends the first routing information to all terminals except the second terminal in the mobile local area network where the second terminal is located. The first routing information indicates address information of the first host.
Here, the description is given only by taking the example that the CP network element sends the first routing information to the first terminal.
In this step, the CP network element may further send, to the first terminal, an identifier of the local area network of the mobile local area network where the first host is located, for example, an identifier of the VNI or the VID of the mobile local area network where the first host is located.
Step 508: and the first terminal stores the received first routing information and the second routing information and sends a configuration completion message to the CP network element.
Optionally, step 509: and the CP network element sends third routing information to the second terminal, and the third routing information indicates the address information of the first terminal.
Step 510: and the CP network element sends fourth routing information to the second terminal, wherein the fourth routing information indicates the address information of the second host. The second host is a host accessed to the first terminal.
It should be noted that the order of step 509 and step 510 is not limited, and step 509 and step 510 may also be combined into one step for execution, which is determined according to the actual situation.
Based on the same inventive concept, the present embodiment provides a communication apparatus, which may perform steps 204 to 205 in the flowchart shown in fig. 2.
Fig. 6 is a schematic structural diagram of a communication device according to an embodiment of the present application. As shown in fig. 6, the apparatus 600 includes: a transceiver 601, a processor 602, a memory 603, and a bus system 604;
the memory 603 is used for storing programs. In particular, the program may include program code including computer operating instructions. The memory 603 may be a Random Access Memory (RAM) or a non-volatile memory (non-volatile memory), such as at least one disk memory. Only one memory is shown in the figure, but of course, the memory may be provided in plural numbers as necessary. The memory 603 may also be memory in the processor 602.
Memory 603 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof:
and (3) operating instructions: including various operational instructions for performing various operations.
Operating the system: including various system programs for implementing various basic services and for handling hardware-based tasks.
Processor 602 may also be referred to as a CPU (Central Processing Unit). In a particular application, the various components of the communication device 600 are coupled together by a bus system 604, where the bus system 604 may include a power bus, a control bus, a status signal bus, and the like, in addition to a data bus. For clarity of illustration, however, the various buses are designated in the figure as the bus system 604. For ease of illustration, it is only schematically drawn in fig. 6.
The methods disclosed in the embodiments of the present application may be applied to the processor 602, or implemented by the processor 602. The processor 602 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 602. The processor 602 may be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 603, and the processor 602 reads the program in the memory 603 and, in conjunction with its hardware, performs the method steps performed by the communication device 600.
Based on the same inventive concept, the embodiment of the present application further provides a communication apparatus 700, as shown in fig. 7, the communication apparatus 700 includes a processing unit 701 and a transceiver unit 702, and the communication apparatus 700 may be a terminal. The communication device 700 may be used to perform the method performed by the terminal in any of the embodiments described above.
Based on the same inventive concept, the present embodiment provides a communication apparatus, which may perform steps 201 to 203 in the flowchart shown in fig. 2.
Fig. 8 is a schematic structural diagram of a communication device according to an embodiment of the present application. As shown in fig. 8, the apparatus 800 includes: a transceiver 801, a processor 802, a memory 803, and a bus system 804;
the memory 803 is used for storing programs. In particular, the program may include program code including computer operating instructions. The memory 803 may be a Random Access Memory (RAM) or a non-volatile memory (non-volatile memory), such as at least one disk memory. Only one memory is shown in the figure, but of course, the memory may be provided in plural numbers as necessary. The memory 803 may also be memory within the processor 802.
The memory 803 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof:
and (3) operating instructions: including various operational instructions for performing various operations.
Operating the system: including various system programs for implementing various basic services and for handling hardware-based tasks.
The processor 802 may also be referred to as a CPU (Central Processing Unit). In a particular application, the various components of the communication device 800 are coupled together by a bus system 804, where the bus system 804 may include a power bus, a control bus, a status signal bus, and the like, in addition to a data bus. For clarity of illustration, however, the various buses are designated in the figure as the bus system 804. For ease of illustration, it is only schematically drawn in fig. 8.
The method disclosed in the embodiments of the present application can be applied to the processor 802, or implemented by the processor 802. The processor 802 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 802. The processor 802 described above may be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 803, and the processor 802 reads the program in the memory 803 and executes the method steps executed by the communication apparatus 800 in conjunction with the hardware thereof.
Based on the same inventive concept, an embodiment of the present application further provides a communication apparatus 900, as shown in fig. 9, where the communication apparatus 900 includes a processing unit 901 and a transceiver unit 902, and the communication apparatus 900 may be a CP network element. The communications apparatus 900 may be configured to perform the method performed by the CP network element in any of the embodiments described above.
The embodiment of the present application further provides a computer-readable storage medium, which is used for storing computer software instructions required to be executed for executing the processor, and which contains a program required to be executed for executing the processor.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. 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.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (24)

1. A method of communication, the method comprising:
a first terminal receives first routing information sent by a control plane CP network element, wherein the first routing information indicates address information of a first host, the first host is a host accessed to a second terminal, the second terminal and the first terminal are in the same mobile local area network, and the first routing information is determined by the CP network element after the first host is accessed to the second terminal;
and the first terminal communicates with the first host according to the first routing information.
2. The method of claim 1, wherein before the first terminal receives the first routing information sent by the control plane CP network element, the method further comprises:
the first terminal sends an attachment request message to the CP network element, wherein the attachment request message comprises a first identifier of a mobile local area network;
the first terminal receives an attachment response message sent by the CP network element, wherein the attachment response message comprises a second identifier of a mobile local area network, a first Internet Protocol (IP) address and a first Media Access Control (MAC) address; the second identifier of the mobile local area network is determined by the CP network element according to the first identifier of the mobile local area network, and the first IP address and the first MAC address are allocated to the CP network element for the first terminal.
3. The method of claim 2, wherein after the first terminal receives the attach response message sent by the CP network element, the method further comprises:
the first terminal receives a second request message sent by a second host which is accessed to the first terminal, and forwards the second request message to the CP network element, wherein the second request message is used for requesting the CP network element to allocate a second IP address for the second host;
and the first terminal forwards a first request response message which is sent by the CP network element and comprises the second IP address to the second host.
4. The method according to claim 3, wherein the second request message includes a terminal identifier of the first terminal, and the terminal identifier of the first terminal is encapsulated in the second request message for the first terminal;
and the second IP address is determined by the CP network element according to the terminal identifier of the first terminal.
5. The method of any of claims 1 to 4, further comprising:
the first terminal receives a first data packet sent to the first host by a second host accessed to the first terminal;
if the first terminal determines that the first host and the second host are located in the same mobile local area network according to the destination MAC address of the first data packet and determines that the address information of the second terminal is different from the address information of the first terminal, the first terminal performs encapsulation processing on the first data packet and sends the encapsulated first data packet to the second terminal; the encapsulated first data packet includes a local area network identifier of the second host, and a source IP address of the encapsulated first data packet is an IP address of the first terminal, and a destination IP address of the encapsulated first data packet is an IP address of the second terminal.
6. The method of any of claims 1 to 4, further comprising:
the first terminal receives a second data packet sent by the second terminal;
and if the first terminal determines that the destination IP address of the second data packet is the same as the IP address of the first terminal and determines that the local area network identifier in the second data packet is the same as the local area network identifier of the first terminal, decapsulating the second data packet, and determining a receiving end of the second data packet according to the destination MAC address of the second data packet obtained after decapsulation.
7. A method of communication, the method comprising:
a Control Plane (CP) network element receives a first request message sent by a second terminal, wherein the first request message is used for requesting the CP network element to distribute an Internet Protocol (IP) address for a first host accessed to the second terminal;
the CP network element determines first routing information according to the IP address distributed to the first host, wherein the first routing information indicates the address information of the first host;
and the CP network element sends the first routing information to a first terminal, and the first terminal and the second terminal are in the same mobile local area network.
8. The method of claim 7, further comprising:
the CP network element receives an attachment request message sent by the first terminal, wherein the attachment request message comprises a first identifier of a mobile local area network;
the CP network element sends an attachment response message to the first terminal, wherein the attachment response message comprises a second identifier of the mobile local area network, a first IP address and a first MAC address; the second identifier of the mobile local area network is determined by the CP network element according to the first identifier of the mobile local area network, and the first IP address and the first MAC address are allocated to the CP network element for the first terminal.
9. The method of claim 8, wherein after the CP network element sends the attach response message to the first terminal, further comprising:
the CP network element receives a second request message sent by the first terminal, where the second request message is forwarded after the first terminal receives a second request message sent by a second host accessing the first terminal, and the second request message is used to request the CP network element to allocate a second IP address to the second host;
and the CP network element sends a second request response message comprising the second IP address to the first terminal.
10. The method according to any of claims 7 to 9, wherein after the CP network element sends the attach response message to the first terminal, the method further comprises:
and the CP network element sends second routing information to the first terminal, wherein the second routing information indicates the address information of the second terminal.
11. The method according to any one of claims 7 to 9, further comprising:
the CP network element determines all terminals in the same mobile local area network with the first terminal;
the CP network element sends third routing information to all terminals in the same mobile local area network with the first terminal except the first terminal; the third routing information indicates address information of the first terminal.
12. The method according to any one of claims 7 to 9, further comprising:
the CP network element determines all terminals in the same mobile local area network with the first terminal;
the CP network element sends fourth routing information to all terminals in the same mobile local area network with the first terminal except the first terminal; the fourth routing information indicates address information of a second host accessing the first terminal.
13. A communications apparatus, comprising: a processor and a transceiver;
the processor is configured to receive, by the transceiver, first routing information sent by a control plane CP network element, where the first routing information indicates address information of a first host, the first host is a host accessing a second terminal, the second terminal and the first terminal are in the same mobile local area network, and the first routing information is determined by the CP network element after the first host accesses the second terminal;
the processor is configured to communicate with the first host through the transceiver according to the first routing information.
14. The apparatus of claim 13, wherein the processor is further configured to:
sending an attach request message to the CP network element through the transceiver, wherein the attach request message comprises a first identifier of a mobile local area network;
receiving an attachment response message sent by the CP network element through the transceiver, wherein the attachment response message comprises a second identifier of a mobile local area network, a first Internet Protocol (IP) address and a first Media Access Control (MAC) address; the second identifier of the mobile local area network is determined by the CP network element according to the first identifier of the mobile local area network, and the first IP address and the first MAC address are allocated to the CP network element as the first terminal.
15. The apparatus of claim 14, wherein the processor is further configured to:
receiving, by the transceiver, a second request message sent by a second host accessing the first terminal, and forwarding the second request message to the CP network element, where the second request message is used to request the CP network element to allocate a second IP address to the second host;
forwarding, by the transceiver, a first request response message including the second IP address sent by the CP network element to the second host.
16. The apparatus according to claim 15, wherein the second request message includes a terminal identifier of the first terminal, and the terminal identifier of the first terminal is encapsulated in the second request message for the first terminal;
and the second IP address is determined by the CP network element according to the terminal identifier of the first terminal.
17. The apparatus of any of claims 13 to 16, wherein the processor is further configured to:
receiving a first data packet sent to a first host by a second host accessing a first terminal through the transceiver;
if the first host and the second host are located in the same mobile local area network according to the destination MAC address of the first data packet and the address information of the second terminal is different from the address information of the first terminal, encapsulating the first data packet and sending the encapsulated first data packet to the second terminal; the encapsulated first data packet includes a local area network identifier of the second host, and a source IP address of the encapsulated first data packet is an IP address of the first terminal, and a destination IP address of the encapsulated first data packet is an IP address of the second terminal.
18. The apparatus of any of claims 13 to 16, wherein the processor is further configured to:
receiving a second data packet sent by the second terminal through the transceiver;
and if the destination IP address of the second data packet is determined to be the same as the IP address of the first terminal and the local area network identifier in the second data packet is determined to be the same as the local area network identifier of the first terminal, decapsulating the second data packet and determining a receiving end of the second data packet according to the destination MAC address of the second data packet obtained after decapsulation.
19. A communications apparatus, comprising: a processor and a transceiver;
the processor is configured to receive, through the transceiver, a first request message sent by a second terminal, where the first request message is used to request a CP network element to allocate an internet protocol IP address to a first host accessing the second terminal;
the processor is configured to determine first routing information according to the IP address allocated to the first host, where the first routing information indicates address information of the first host;
the processor is configured to send the first routing information to a first terminal through the transceiver, where the first terminal and the second terminal are in the same mobile local area network.
20. The apparatus of claim 19, wherein the processor is further configured to:
receiving an attachment request message sent by the first terminal through the transceiver, wherein the attachment request message comprises a first identifier of a mobile local area network;
sending an attachment response message to the first terminal through the transceiver, wherein the attachment response message comprises a second identifier of a mobile local area network, a first IP address and a first MAC address; the second identifier of the mobile local area network is determined by the CP network element according to the first identifier of the mobile local area network, and the first IP address and the first MAC address are allocated to the CP network element for the first terminal.
21. The apparatus of claim 20, wherein the processor is further configured to:
receiving, by the transceiver, a second request message sent by the first terminal, where the second request message is forwarded after the first terminal receives a second request message sent by a second host accessing the first terminal, and the second request message is used to request the CP network element to allocate a second IP address to the second host;
transmitting, by the transceiver, a second request response message including the second IP address to the first terminal.
22. The apparatus according to any one of claims 19 to 21, wherein the processor is further configured to:
and sending second routing information to the first terminal through the transceiver, wherein the second routing information indicates address information of the second terminal.
23. The apparatus according to any one of claims 19 to 21, wherein the processor is further configured to:
determining all terminals in the same mobile local area network with the first terminal;
sending third routing information to terminals except the first terminal in all terminals in the same mobile local area network with the first terminal through the transceiver; the third routing information indicates address information of the first terminal.
24. The apparatus according to any one of claims 19 to 21, wherein the processor is further configured to:
determining all terminals in the same mobile local area network with the first terminal;
sending fourth routing information to terminals except the first terminal in all terminals in the same mobile local area network with the first terminal through the transceiver; the fourth routing information indicates address information of a second host accessing the first terminal.
CN201710381305.5A 2017-05-25 2017-05-25 Communication method and device Expired - Fee Related CN108934058B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710381305.5A CN108934058B (en) 2017-05-25 2017-05-25 Communication method and device
PCT/CN2018/088266 WO2018214947A1 (en) 2017-05-25 2018-05-24 Communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710381305.5A CN108934058B (en) 2017-05-25 2017-05-25 Communication method and device

Publications (2)

Publication Number Publication Date
CN108934058A CN108934058A (en) 2018-12-04
CN108934058B true CN108934058B (en) 2020-11-27

Family

ID=64396252

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710381305.5A Expired - Fee Related CN108934058B (en) 2017-05-25 2017-05-25 Communication method and device

Country Status (2)

Country Link
CN (1) CN108934058B (en)
WO (1) WO2018214947A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596192B (en) * 2021-07-26 2024-02-20 绿盟科技集团股份有限公司 Communication method, device, equipment and medium based on gatekeeper networking
CN117097804A (en) * 2022-05-11 2023-11-21 华为技术有限公司 Method for obtaining application-aware network identification and related equipment

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100628112B1 (en) * 2004-12-30 2006-09-26 엘지전자 주식회사 Method for Controlling Configuration of IP Address Using Mobile Terminal in Multi Hop Access Network
US8286220B2 (en) * 2008-09-23 2012-10-09 Zscaler, Inc. Browser access control
CN101895525B (en) * 2009-05-22 2013-02-13 华为技术有限公司 Multi-access data connection management method, system and related equipment
CN102355746A (en) * 2011-10-28 2012-02-15 大唐移动通信设备有限公司 Data transmission method based on WLAN (Wireless Local Area Network), wireless terminal and access network equipment
CN103312828A (en) * 2012-03-09 2013-09-18 中兴通讯股份有限公司 Method, device and system of MAC and IP address couple configuration of virtual machine
US10965615B2 (en) * 2012-03-30 2021-03-30 Nokia Solutions And Networks Oy Centralized IP address management for distributed gateways
CN103379010B (en) * 2012-04-20 2018-09-21 中兴通讯股份有限公司 A kind of virtual network realization method and system
GB2508355B (en) * 2012-11-28 2021-02-17 Nomad Digital Ltd Communication method
US9749231B2 (en) * 2013-07-02 2017-08-29 Arista Networks, Inc. Method and system for overlay routing with VXLAN on bare metal servers
CN104917849B (en) * 2014-03-11 2018-09-07 华为技术有限公司 A kind of message treatment method, access controller and network node
CN103841028B (en) * 2014-03-24 2017-02-08 杭州华三通信技术有限公司 Method and device for forwarding messages
CN104283980B (en) * 2014-10-09 2018-02-09 新华三技术有限公司 A kind of address resolution protocol pickup method and device
CN105554748A (en) * 2014-10-30 2016-05-04 中兴通讯股份有限公司 Method, apparatus, and system for WiFi offloading
US9912615B2 (en) * 2015-02-05 2018-03-06 Verizon Patent And Licensing Inc. Dynamic removal of MAC table entries based on a MAC table fullness level

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《Clarification on Ethernet PDU session》;Huawei;《SA WG2 Meeting #123 S2-177143》;20171027;全文 *

Also Published As

Publication number Publication date
WO2018214947A1 (en) 2018-11-29
CN108934058A (en) 2018-12-04

Similar Documents

Publication Publication Date Title
US20220078047A1 (en) Virtual network communication method, device, and system
JP6995189B2 (en) Data transmission methods, devices, and systems
KR101146139B1 (en) Method for providing mobility of mobile node in packet transport network, packet transport network system and Gateway switch
KR102445355B1 (en) Session management method and device for user groups
CN114124618B (en) Message transmission method and electronic equipment
CN113595908A (en) Message transmission method and device
CN107872542A (en) The method and the network equipment of a kind of data transfer
US20210092792A1 (en) Communication method and apparatus
US20210044456A1 (en) Method for implementing gre tunnel, access point and gateway
EP4027593A1 (en) Tunnel configuration method, apparatus and system, and device and storage medium
WO2020238327A1 (en) Method, apparatus and system for establishing user plane connection
CN114189905A (en) Message processing method and related equipment
CN113660164A (en) Message forwarding method and network equipment
WO2019242525A1 (en) Data transmission method, related device and system
CN108934058B (en) Communication method and device
WO2022021435A1 (en) Data transmission method, device, and storage medium
CN113518475B (en) Communication method, device and system
US20220329566A1 (en) Access Control Method, Apparatus, and System
CN111163463A (en) Method, device, equipment and storage medium for accessing wireless equipment to router
WO2019134637A1 (en) Method, device, and system for multi-type network virtualization overlay interconnection
WO2022007749A1 (en) Data transmission method and apparatus
JPWO2014049668A1 (en) Communication system, GGSN, PGW, and program
EP3220584A1 (en) Wifi sharing method and system, home gateway and wireless local area network gateway
WO2022089503A1 (en) Method, apparatus, and system for allowing application to access network
CN112422397B (en) Service forwarding method and communication device

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20201127

Termination date: 20210525

CF01 Termination of patent right due to non-payment of annual fee