CN108123865B - Message processing method and device - Google Patents
Message processing method and device Download PDFInfo
- Publication number
- CN108123865B CN108123865B CN201711395462.8A CN201711395462A CN108123865B CN 108123865 B CN108123865 B CN 108123865B CN 201711395462 A CN201711395462 A CN 201711395462A CN 108123865 B CN108123865 B CN 108123865B
- Authority
- CN
- China
- Prior art keywords
- message
- port
- packet
- tunnel
- receiving
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The method is applied to UP in a transfer control separation system, a shared VX L AN tunnel is established between the UP and a CP in the transfer control separation system, and the shared VX L AN tunnel is bound with a plurality of ports enabling VX L AN tunnel sharing function on the UP.
Description
Technical Field
The present application relates to the field of communication channel technologies, and in particular, to a method and an apparatus for processing a packet.
Background
Recently, a scheme of transition Control separation is proposed for an application scenario of a BRAS (Broadband Remote Access server), in which a Control Plane (CP) and a User Plane (UP) are separated and independently controlled to reduce mutual influence between the two planes. The control plane is mainly responsible for user access control, address allocation, control instruction processing and the like, and the user plane is mainly responsible for data message encapsulation, forwarding and the like.
In the prior art, communication between a CP and a UP can be completed through VX L AN (Virtual eXtensible L AN, a network virtualization technology) channels, the method is mainly realized by binding different ports through different VX L AN instances, and if a plurality of ports are required to be online, a plurality of VX L AN instances and a plurality of VX L AN tunnels need to be configured.
Content of application
In order to overcome the above defects in the prior art, the present application provides a method and AN apparatus for processing a packet, which can save VX L AN tunnel resources when UP interacts with CP.
In a first aspect, AN embodiment of the present application provides a packet processing method, where the method is applied to a UP in a transfer control separation system, where the UP and a CP in the transfer control separation system establish a shared VX L AN tunnel, and a shared VX L AN tunnel is bound to ports of the UP that enable a function shared by VX L AN tunnels, and the method includes:
after receiving a first message from a client, judging whether a port on the UP for receiving the first message is a port enabling a VX L AN tunnel sharing function;
if so, performing the shared VX L AN tunnel encapsulation on the first message to obtain a first VX L AN message, wherein a VX L AN header of the first VX L AN message carries port information of a port for receiving the first message;
and sending the first VX L AN message to a control plane CP in the transfer control separation system.
In a second aspect, AN embodiment of the present application provides a packet processing apparatus, where the apparatus is applied to a UP in a transfer control separation system, where the UP and a CP in the transfer control separation system establish a shared VX L AN tunnel, and the shared VX L AN tunnel is bound to multiple ports on the UP that enable a VX L AN tunnel sharing function, and the apparatus includes:
the system comprises a judging module and a sending module, wherein the judging module is used for judging whether a port for receiving a first message on the UP is a port for enabling a VX L AN tunnel sharing function after receiving the first message from a client;
a packaging module, configured to perform, when the determining module determines that the port on the UP that receives the first packet is a port that enables a VX L AN tunnel sharing function, the shared VX L AN tunnel packaging on the first packet to obtain a first VX L AN packet, where a VX L AN header of the first VX L AN packet carries port information of the port that receives the first packet;
and the sending module is used for sending the first VX L AN message to the CP.
Compared with the prior art, the method has the following beneficial effects:
after receiving a first message from a client, judging whether a port receiving the first message on the UP is a port enabling a VX L AN tunnel sharing function, if so, encapsulating the shared VX L AN tunnel to obtain a first VX L AN message, wherein a VX L AN header of the first VX L AN message carries port information of the port receiving the first message, and sending the first VX L AN message to the CP.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a block diagram of a transfer control separation system according to an embodiment of the present disclosure.
Fig. 2 is a flowchart of a message processing method provided in the present application.
Fig. 3 is a functional block diagram of a message processing apparatus according to the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Referring to fig. 1, fig. 1 is a block diagram illustrating a transfer control separation system 10 according to an embodiment of the present disclosure. The transfer control separation system 10 includes: a server 300, at least one client 400, and a gateway device 100 for taking charge of network bridging between the server 300 and the client 400. The gateway device 100 is communicatively connected to a server 300 and at least one client 400, respectively.
In this embodiment, the diversion separation system 10 is based on the application scenario of the BRAS, and as a basic environment of diversion separation (i.e. separation of the control plane CP310 from the user plane UP 130), it can satisfy normal online and access of BRAS users. Wherein the UP130 may be located on the gateway device 100 and the CP310 may be located on the server 300.
Based on the transfer control separation system 10 shown in fig. 1, please refer to fig. 2, and fig. 2 is a flowchart of a message processing method provided in the present application, where the message processing method is applied to a UP130 in the transfer control separation system 10, the UP130 and a CP310 establish a shared VX L AN tunnel, and the shared VX L AN tunnel is bound with a plurality of ports enabling a VX L AN tunnel sharing function on the UP130, and the method includes:
s110, after receiving the first packet from the client 400, determines whether the port on the UP130 receiving the first packet is a port enabling the VX L AN tunnel sharing function.
In this step, the first message may be a protocol message of the BRAS service.
In this embodiment, before executing step S110, the UP130 performs a separate configuration of forwarding control on all ports on the UP130 in advance, considering that the processing capability of the board where a part of the ports are located is limited (for example, the port information cannot be analyzed), for the part of the ports, the UP130 further establishes a corresponding VX L AN tunnel with the CP310 according to the VX L AN instances respectively corresponding to the ports according to the existing manner, and for the remaining ports, configures a function of enabling VX L AN tunnel sharing, which can enable the remaining ports to share one VX L AN tunnel (referred to as a shared VX L AN tunnel), as to which port is used to establish a shared VX L AN tunnel with the CP310, there can be multiple determination manners, for example, one port can be randomly selected from the remaining ports, or a certain port can be designated.
For example, when the remaining ports are specifically configured, a shared VX L AN tunnel and AN enabled shared mode (cu-mode shared enable, after enabled, all messages interacting with CP310 through the remaining ports are encapsulated through a shared VX L AN tunnel) may be configured for the ports establishing a shared VX L AN tunnel with CP310, no VX L AN tunnel is configured for the ports other than the port establishing a shared VX L AN tunnel with CP310, only AN enabled mode (cu-mode enable, after enabled, the corresponding port interacts with CP310 through a message shared VX L AN tunnel is configured), so that UP130 checks the configuration of the port receiving the message on UP130 after receiving the message from client 400, and borrows the port receiving the message as a port enabling AN VX tunnel L when the configuration mode of the port receiving the message is cu-mode shared enable or cu-mode enable, and executes step S120.
S120, when judging that the port on the UP130 for receiving the first message is the port enabling the VX L AN tunnel sharing function, performing shared VX L AN tunnel encapsulation on the first message to obtain a first VX L AN message.
In this step, the VX L AN header of the first VX L AN message carries port information of the port that receives the first message, where the port information may include a port identifier (e.g., a port number) of the port that receives the first message, V L AN information, and the like, and may be encapsulated in a reserved unused field of the VX L AN header of the first VX L AN message according to a certain format (which may be adjusted according to actual needs).
S130, send the first VX L AN message to the CP 310.
In this step, the first VX L AN message is sent to the CP310 for processing through the egress port of the first VX L AN message determined in the existing manner.
Further, in this embodiment, after the step S110 is executed, if the determination result is that the port on the UP130 that receives the first packet is not the port that enables the VX L AN tunnel sharing function, the first packet is sent according to the existing manner, that is, the following steps are executed:
step 1, performing VX L AN tunnel encapsulation bound by a VX L AN instance corresponding to a port for receiving the first message on the first message to obtain a second VX L AN message.
And step 2, sending the second VX L AN message to the CP 310.
That is, the second VX L AN message is sent to the CP310 for processing through the determined egress port of the second VX L AN message in the conventional manner.
Still further, the UP130 further performs the following operations:
after receiving the third VX L AN message from the CP310, if the VX L AN header of the third VX L AN message carries port information, decapsulating the third VX L AN message, and sending the decapsulated message out through a port corresponding to the port information carried by the VX L AN header of the third VX L AN message;
and if the VX L AN head of the third VX L AN message does not carry port information, decapsulating the third VX L AN message, and sending the decapsulated message out through a port corresponding to a VX L AN instance to which the third VX L AN message belongs.
In this operation flow, after receiving the third VX L AN message from the CP310, the UP130 detects whether the VX L AN header of the third VX L AN message carries port information, if so, it indicates that the third VX L AN message is a response message for a message received by the UP130 through a port enabling the VX L AN tunnel sharing function, and if not, it indicates that the third VX L AN message is a response message for a message received by the UP130 through a port not enabling the VX L AN tunnel sharing function.
Based on the same inventive concept, please refer to fig. 3, fig. 3 is a functional module block diagram of a message processing apparatus 200 applied to a UP130 in a relay separation system 10, wherein a shared VX L AN tunnel is established between the UP130 and a CP310 in the relay separation system 10, and the shared VX L AN tunnel is bound to a plurality of ports enabling a VX L AN tunnel sharing function on the UP 130.
The determining module 210 is configured to determine, after receiving the first packet from the client 400, whether a port on the UP130 that receives the first packet is a port that enables a VX L AN tunnel sharing function.
A packaging module 220, configured to perform shared VX L AN tunnel packaging on the first packet when the determining module 210 determines that the port on the UP130 that receives the first packet is a port that enables a VX L AN tunnel sharing function, to obtain a first VX L AN packet, where a VX L AN header of the first VX L AN packet carries port information of the port that receives the first packet.
The sending module 230 is configured to send the first VX L AN message to the CP 310.
In this embodiment, the encapsulating module 220 is further configured to, when the determining module 210 determines that the port on the UP130 receiving the first packet is not the port enabling the VX L AN tunnel sharing function, perform VX L AN tunnel encapsulation bound by the VX L AN instance corresponding to the port receiving the first packet on the first packet, to obtain a second VX L AN packet.
The sending module 230 is further configured to send the second VX L AN message to the CP 310.
Referring to fig. 3 again, the apparatus further includes:
the decapsulation module 240 is configured to decapsulate the third VX L AN packet and send the decapsulated packet out through a port corresponding to port information carried by a VX L AN header of the third VX L AN packet after receiving the third VX L AN packet from the CP310 if the VX L0 AN header of the third VX L AN packet carries the port information, and decapsulate the third VX L AN packet and send the decapsulated packet out through a port corresponding to a VX L AN instance to which the third VX L AN packet belongs if the VX L AN header of the third VX L AN packet does not carry the port information.
To sum UP, the embodiments of the present application provide a method and AN apparatus for processing a packet, where the method is applied to a UP in a transfer control separation system, and a CP in the UP and transfer control separation system establishes a shared VX L AN tunnel, and the shared VX L AN tunnel and a plurality of ports enabling a VX L AN tunnel to share a function on the UP, the method includes, after receiving a first packet from a client, determining whether a port on the UP receiving the first packet is a port enabling a VX L AN tunnel sharing function, if so, encapsulating the shared VX L AN tunnel in the first packet to obtain a first VX L AN packet, where a VX L AN header of the first VX L AN packet carries port information of receiving the first packet, sending the first VX L AN packet to a CP, and thus, in the present application, for a plurality of ports enabling a VX L AN to share a tunnel functions, a VX 4 AN and a CP can share one tunnel, and there is no need to perform corresponding VX resource interaction between AN existing VX 3625 AN capable of sharing tunnel sharing function, and a CP.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims (6)
1. A message processing method is characterized in that the method is applied to a User Plane (UP) in a transfer control separation system, the UP and a Control Plane (CP) in the transfer control separation system establish a shared VX L AN tunnel, and the shared VX L AN tunnel is bound with a plurality of ports enabling a VX L AN tunnel sharing function on the UP, and the method comprises the following steps:
after receiving a first message from a client, judging whether a port on the UP for receiving the first message is a port enabling a VX L AN tunnel sharing function;
if so, performing the shared VX L AN tunnel encapsulation on the first message to obtain a first VX L AN message, wherein a VX L AN header of the first VX L AN message carries port information of a port for receiving the first message;
and sending the first VX L AN message to the CP.
2. The method of claim 1, further comprising:
when judging that the port on the UP for receiving the first message is not a port enabling a VX L AN tunnel sharing function, performing VX L AN tunnel encapsulation bound by a VX L AN instance corresponding to the port for receiving the first message on the first message to obtain a second VX L AN message;
and sending the second VX L AN message to the CP.
3. The method of claim 2, further comprising:
after receiving a third VX L AN message from the CP, if a VX L AN head of the third VX L AN message carries port information, decapsulating the third VX L AN message, and sending the decapsulated message out through a port corresponding to the port information carried by a VX L AN head of the third VX L AN message;
and if the VX L AN head of the third VX L AN message does not carry port information, decapsulating the third VX L AN message, and sending the decapsulated message out through a port corresponding to a VX L AN instance to which the third VX L AN message belongs.
4. A message processing apparatus, wherein the apparatus is applied to a user plane UP in a relay separation system, the UP and a control plane CP in the relay separation system establish a shared VX L AN tunnel, and the shared VX L AN tunnel is bound to a plurality of ports on the UP that enable a VX L AN tunnel sharing function, the apparatus comprising:
the system comprises a judging module and a sending module, wherein the judging module is used for judging whether a port for receiving a first message on the UP is a port for enabling a VX L AN tunnel sharing function after receiving the first message from a client;
a packaging module, configured to perform, when the determining module determines that the port on the UP that receives the first packet is a port that enables a VX L AN tunnel sharing function, the shared VX L AN tunnel packaging on the first packet to obtain a first VX L AN packet, where a VX L AN header of the first VX L AN packet carries port information of the port that receives the first packet;
and the sending module is used for sending the first VX L AN message to the CP.
5. The apparatus of claim 4,
the encapsulating module is further configured to encapsulate, when the determining module determines that the port on the UP that receives the first packet is not a port enabling a VX L AN tunnel sharing function, a VX L AN tunnel bound by a VX L AN instance corresponding to the port that receives the first packet, to obtain a second VX L AN packet;
the sending module is further configured to send the second VX L AN message to the CP.
6. The apparatus of claim 5, further comprising:
and the decapsulation module is configured to decapsulate the third VX L AN packet and send the decapsulated packet out through a port corresponding to port information carried by a VX L AN header of the third VX L AN packet if the VX L0 AN header of the third VX L AN packet carries the port information after receiving the third VX L AN packet from the CP, and decapsulate the third VX L AN packet and send the decapsulated packet out through a port corresponding to a VX L AN instance to which the third VX L AN packet belongs if the VX L AN header of the third VX L AN packet does not carry the port information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711395462.8A CN108123865B (en) | 2017-12-21 | 2017-12-21 | Message processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711395462.8A CN108123865B (en) | 2017-12-21 | 2017-12-21 | Message processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108123865A CN108123865A (en) | 2018-06-05 |
CN108123865B true CN108123865B (en) | 2020-07-14 |
Family
ID=62230996
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711395462.8A Active CN108123865B (en) | 2017-12-21 | 2017-12-21 | Message processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108123865B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113852588B (en) * | 2020-06-28 | 2023-03-10 | 华为技术有限公司 | Message processing method, UP device and CP device, communication system and medium |
CN114944952B (en) * | 2022-05-20 | 2023-11-07 | 深信服科技股份有限公司 | Data processing method, device, system, equipment and readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101541098A (en) * | 2008-12-19 | 2009-09-23 | 中国移动通信集团浙江有限公司 | Simulation method of protocol stack in mobile communication |
CN105939352A (en) * | 2016-06-03 | 2016-09-14 | 汉柏科技有限公司 | User isolation method and device based on session |
CN105978957A (en) * | 2016-04-28 | 2016-09-28 | 汉柏科技有限公司 | Public network IP sharing method suitable for multiple tenants of cloud data center and device |
CN106657442A (en) * | 2017-01-11 | 2017-05-10 | 浙江广播电视集团 | Method and system for realizing media shared storage network based on VxLAN |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140259012A1 (en) * | 2013-03-06 | 2014-09-11 | Telefonaktiebolaget L M Ericsson (Publ) | Virtual machine mobility with evolved packet core |
-
2017
- 2017-12-21 CN CN201711395462.8A patent/CN108123865B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101541098A (en) * | 2008-12-19 | 2009-09-23 | 中国移动通信集团浙江有限公司 | Simulation method of protocol stack in mobile communication |
CN105978957A (en) * | 2016-04-28 | 2016-09-28 | 汉柏科技有限公司 | Public network IP sharing method suitable for multiple tenants of cloud data center and device |
CN105939352A (en) * | 2016-06-03 | 2016-09-14 | 汉柏科技有限公司 | User isolation method and device based on session |
CN106657442A (en) * | 2017-01-11 | 2017-05-10 | 浙江广播电视集团 | Method and system for realizing media shared storage network based on VxLAN |
Non-Patent Citations (1)
Title |
---|
《云计算数据中心网络设计综述》;王斌锋;《计算机研究与发展》;20160915;第53卷(第9期);第2085-2106页 * |
Also Published As
Publication number | Publication date |
---|---|
CN108123865A (en) | 2018-06-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109660443B (en) | SDN-based physical device and virtual network communication method and system | |
CN111193653B (en) | Data transmission method, device, equipment and storage medium | |
CN113326228B (en) | Message forwarding method, device and equipment based on remote direct data storage | |
CN107276783B (en) | Method, device and system for realizing unified management and intercommunication of virtual machines | |
CN109302466B (en) | Data processing method, related device and computer storage medium | |
CN107018058B (en) | Method and system for sharing VLAN (virtual local area network) and VXLAN (virtual extensible local area network) communication in cloud environment | |
CN106878134B (en) | Data center intercommunication method and device | |
CN110311860B (en) | Multilink load balancing method and device under VXLAN | |
WO2021174943A1 (en) | Data forwarding method and apparatus, and device and storage medium | |
CN109412922B (en) | Method, forwarding device, controller and system for transmitting message | |
CN112631726B (en) | Virtual machine data processing method, system, device and medium | |
CN103631652A (en) | Method and system for achieving virtual machine migration | |
CN105190530A (en) | Transmitting hardware-rendered graphical data | |
CN108123865B (en) | Message processing method and device | |
CN108093041A (en) | Single channel VDI proxy servers and implementation method | |
CN105264837B (en) | A kind of Transmission system of data message, transmission method and equipment | |
CN104468389A (en) | Message processing method, servers and server system | |
CN110391961B (en) | Tunnel binding method, device and system | |
WO2021135792A1 (en) | Data forwarding method, forwarding device, system, server, and storage medium | |
CN109787900B (en) | Transmission method, device, equipment and machine readable medium | |
CN107547341B (en) | Access method and device of virtual extensible local area network VXLAN | |
US20230018346A1 (en) | Dial-up packet processing method, network element, system, and network device | |
CN104601431A (en) | Access method of VPN business and network device | |
EP3197106B1 (en) | Switch processing method, controller, switch, and switch processing system | |
CN101309154B (en) | Datagram sending method, sending apparatus and transmission system |
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 |