CN104969519B - Message distributing method and device, radio network gateway - Google Patents
Message distributing method and device, radio network gateway Download PDFInfo
- Publication number
- CN104969519B CN104969519B CN201380000350.1A CN201380000350A CN104969519B CN 104969519 B CN104969519 B CN 104969519B CN 201380000350 A CN201380000350 A CN 201380000350A CN 104969519 B CN104969519 B CN 104969519B
- Authority
- CN
- China
- Prior art keywords
- address
- processor
- user equipment
- processing identifier
- message
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明实施例公开了一种报文分发方法及装置、无线网关,无线网关接收报文,所述报文中包括目的IP地址,所述目的IP地址为接收所述报文的用户设备的IP地址;根据所述IP地址,利用散列函数,确定与所述IP地址对应的第一处理标识;根据所述IP地址和所述第一处理标识,在所述第一处理标识对应的第一处理器中查找预设的散列用户转发表,确定与所述IP地址对应的用户设备的上下文信息指向的第二处理标识;根据所述第二处理标识,通过所述第二处理标识对应的第二处理器将所述报文发送给所述用户设备,提高了报文分发的效率。
The embodiment of the present invention discloses a message distribution method and device, and a wireless gateway. The wireless gateway receives a message, and the message includes a destination IP address, and the destination IP address is the IP address of the user equipment receiving the message. address; according to the IP address, use a hash function to determine the first processing identifier corresponding to the IP address; according to the IP address and the first processing identifier, in the first processing identifier corresponding to the first processing identifier Search the preset hash user forwarding table in the processor, and determine the second processing identifier pointed to by the context information of the user equipment corresponding to the IP address; according to the second processing identifier, through the second processing identifier, the corresponding The second processor sends the message to the user equipment, which improves the efficiency of message distribution.
Description
技术领域technical field
本发明实施例涉及通信技术领域,尤其涉及一种报文分发方法及装置、无线网关。Embodiments of the present invention relate to the field of communication technologies, and in particular, to a message distribution method and device, and a wireless gateway.
背景技术Background technique
无线网关包括通信接口和多个处理器,在无线网关与每个用户设备(通常是指手机、数据卡等无线通信设备)建立连接后,会在其中一个处理器上创建该用户设备的上下文信息,其中,上下文信息中保存处理和转发与该用户设备有关的报文所需要用到的信息,以及无线网关为该用户设备分配的一个互联网协议(Internet Protocol,IP)地址。之后,在通信接口的转发表中建立该用户设备的IP地址与该用户设备的上下文信息所在的处理器之间的对应关系,比如在转发表中加入一条包含用户设备IP地址和处理器编号的表项,就可以根据用户设备IP地址查询到处理该用户设备的处理器编号。The wireless gateway includes a communication interface and multiple processors. After the wireless gateway establishes a connection with each user device (usually refers to wireless communication devices such as mobile phones and data cards), the context information of the user device will be created on one of the processors. , wherein the context information stores information required for processing and forwarding packets related to the user equipment, and an Internet Protocol (Internet Protocol, IP) address assigned by the wireless gateway to the user equipment. Afterwards, establish the corresponding relationship between the IP address of the user equipment and the processor where the context information of the user equipment is located in the forwarding table of the communication interface, such as adding an entry containing the IP address of the user equipment and the processor number in the forwarding table table entry, the processor number for processing the user equipment can be queried according to the IP address of the user equipment.
当网络侧设备向用户设备发送报文时,该报文需要通过无线网关的通信接口分发到相应的处理器进行处理。具体为:通信接口收到报文后,根据报文的目的IP地址(用户设备的IP地址),查找转发表,确定与该目的IP地址对应的用户设备的上下文信息所在的处理器,将报文发送给确定的处理器并转发给用户设备。When the network side device sends a message to the user equipment, the message needs to be distributed to a corresponding processor through the communication interface of the wireless gateway for processing. Specifically: after the communication interface receives the message, it searches the forwarding table according to the destination IP address of the message (the IP address of the user equipment), and determines the processor where the context information of the user equipment corresponding to the destination IP address is located, and forwards the report to The text is sent to the determined processor and forwarded to the user equipment.
由于每个用户设备需要在通信接口的转发表中建立该用户设备的IP地址与该用户设备的上下文信息所在的处理器之间的对应关系,当用户设备数量比较大的情况下,比如百万或千万用户设备量时,通信接口的转发表非常庞大,报文分发效率下降。Since each user equipment needs to establish the corresponding relationship between the IP address of the user equipment and the processor where the context information of the user equipment is located in the forwarding table of the communication interface, when the number of user equipment is relatively large, such as millions When there are tens of millions of user devices, the forwarding table of the communication interface is very large, and the packet distribution efficiency decreases.
发明内容Contents of the invention
有鉴于此,本发明实施例提供了一种报文分发方法及装置、无线网关,能够解决报文分发效率的下降的问题。In view of this, an embodiment of the present invention provides a message distribution method and device, and a wireless gateway, which can solve the problem of a decrease in message distribution efficiency.
第一方面,提供一种报文分发方法,包括:In the first aspect, a message distribution method is provided, including:
无线网关接收报文,所述报文中包括目的IP地址,所述目的IP地址为接收所述报文的用户设备的IP地址;The wireless gateway receives the message, the message includes a destination IP address, and the destination IP address is the IP address of the user equipment receiving the message;
根据所述IP地址,利用散列函数,确定与所述IP地址对应的第一处理标识;Determine a first processing identifier corresponding to the IP address by using a hash function according to the IP address;
根据所述IP地址和所述第一处理标识,在所述第一处理标识对应的第一处理器中查找预设的散列用户转发表,确定与所述IP地址对应的用户设备的上下文信息指向的第二处理标识;According to the IP address and the first processing identifier, search the preset hash user forwarding table in the first processor corresponding to the first processing identifier, and determine the context information of the user equipment corresponding to the IP address the second processing identifier pointed to;
根据所述第二处理标识,通过所述第二处理标识对应的第二处理器将所述报文发送给所述用户设备。According to the second processing identifier, the packet is sent to the user equipment through a second processor corresponding to the second processing identifier.
基于第一方面,在第一种可能的实现方式中,所述根据所述IP地址和所述第一处理标识,在所述第一处理标识对应的第一处理器中查找预设的散列用户转发表,确定与所述IP地址对应的用户设备的上下文信息指向的第二处理标识之前,包括:Based on the first aspect, in a first possible implementation manner, according to the IP address and the first processing identifier, searching for a preset hash in the first processor corresponding to the first processing identifier The user forwarding table, before determining the second processing identifier pointed to by the context information of the user equipment corresponding to the IP address, includes:
所述无线网关根据所述用户设备的IP地址,利用散列函数确定与所述用户设备的IP地址对应的所述第一处理标识;The wireless gateway determines the first processing identifier corresponding to the IP address of the user equipment by using a hash function according to the IP address of the user equipment;
根据所述第一处理标识,在所述第一处理标识对应的第一处理器中预设所述散列用户转发表;According to the first processing identifier, preset the hash user forwarding table in the first processor corresponding to the first processing identifier;
将所述用户设备的IP地址与所述用户设备的上下文信息指向的第二处理标识之间的对应关系保存到预设的所述散列用户转发表中。saving the correspondence between the IP address of the user equipment and the second processing identifier pointed to by the context information of the user equipment in the preset hash user forwarding table.
第二方面,提供一种报文分发装置,位于无线网关侧,包括:In the second aspect, a device for distributing messages is provided, located on the wireless gateway side, including:
接收模块,用于接收报文,所述报文中包括目的IP地址,所述目的IP地址为接收所述报文的用户设备的IP地址;A receiving module, configured to receive a message, the message includes a destination IP address, and the destination IP address is the IP address of the user equipment receiving the message;
确定模块,用于根据所述IP地址,利用散列函数,确定与所述IP地址对应的第一处理标识;A determining module, configured to determine the first processing identifier corresponding to the IP address by using a hash function according to the IP address;
所述确定模块,还用于根据所述IP地址和所述第一处理标识,在所述第一处理标识对应的第一处理器中查找预设的散列用户转发表,确定与所述IP地址对应的用户设备的上下文信息指向的第二处理标识;The determining module is further configured to search a preset hash user forwarding table in the first processor corresponding to the first processing identifier according to the IP address and the first processing identifier, and determine the The second processing identifier pointed to by the context information of the user equipment corresponding to the address;
发送模块,用于根据所述第二处理标识,通过所述第二处理标识对应的第二处理器将所述报文发送给所述用户设备。A sending module, configured to send the packet to the user equipment through a second processor corresponding to the second processing identifier according to the second processing identifier.
基于第二方面,在第一种可能的实现方式中,所述确定模块,还用于根据所述用户设备的IP地址,利用散列函数确定与所述用户设备的IP地址对应的所述第一处理标识;Based on the second aspect, in a first possible implementation manner, the determining module is further configured to use a hash function to determine, according to the IP address of the user equipment, the first - processing identification;
所述装置还包括:The device also includes:
建立模块,用于根据所述第一处理标识,在所述第一处理标识对应的第一处理器中预设所述散列用户转发表;An establishment module, configured to preset the hash user forwarding table in the first processor corresponding to the first processing identifier according to the first processing identifier;
保存模块,用于将所述用户设备的IP地址与所述用户设备的上下文信息指向的第二处理标识之间的对应关系保存到预设的所述散列用户转发表中。The saving module is configured to save the corresponding relationship between the IP address of the user equipment and the second processing identifier pointed to by the context information of the user equipment in the preset hash user forwarding table.
第三方面,提供一种无线网关,包括:通信接口和至少两个处理器,即第一处理器和第二处理器,所述通信接口分别与所述第一处理器和所述第二处理器通过通信总线连接;In a third aspect, a wireless gateway is provided, including: a communication interface and at least two processors, namely a first processor and a second processor, the communication interface communicates with the first processor and the second processor respectively The device is connected through the communication bus;
所述通信接口,用于接收报文,所述报文中包括目的IP地址,所述目的IP地址为接收所述报文的用户设备的IP地址;The communication interface is used to receive a message, the message includes a destination IP address, and the destination IP address is the IP address of the user equipment receiving the message;
所述通信接口,还用于根据所述IP地址,利用散列函数,将所述报文散列到所述第一处理器;The communication interface is further configured to hash the message to the first processor by using a hash function according to the IP address;
所述第一处理器,用于根据所述IP地址,查找预设的散列用户转发表,确定与所述IP地址对应的用户设备的上下文信息所在的第二处理器;The first processor is configured to search a preset hash user forwarding table according to the IP address, and determine a second processor where the context information of the user equipment corresponding to the IP address is located;
所述第一处理器,还用于将所述报文发送给所述第二处理器;The first processor is further configured to send the packet to the second processor;
所述第二处理器,用于根据与所述IP地址对应的用户设备的上下文信息,将所述报文发送给所述用户设备。The second processor is configured to send the packet to the user equipment according to the context information of the user equipment corresponding to the IP address.
基于第三方面,在第一种可能的实现方式中,所述通信接口,具体用于根据所述IP地址,利用散列函数确定与所述IP地址对应的所述第一处理标识;根据所述第一处理标识,将所述报文发送给所述第一处理标识所指向的第一处理器。Based on the third aspect, in a first possible implementation manner, the communication interface is specifically configured to use a hash function to determine the first processing identifier corresponding to the IP address according to the IP address; the first processing identifier, and send the packet to the first processor pointed to by the first processing identifier.
基于第三方面,在第二种可能的实现方式中,在所述第一处理器根据所述IP地址,查找预设的散列用户转发表,确定与所述IP地址对应的用户设备的上下文信息所在的第二处理器之前;Based on the third aspect, in the second possible implementation manner, the first processor searches a preset hash user forwarding table according to the IP address, and determines the context of the user equipment corresponding to the IP address before the second processor where the information is located;
所述第二处理器,用于根据所述用户设备的IP地址,利用散列函数确定与所述用户设备的IP地址对应的所述第一处理标识;根据所述第一处理标识,向所述第一处理标识指向的所述第一处理器发送所述用户设备的IP地址与所述用户设备的上下文信息指向的第二处理标识之间的对应关系;The second processor is configured to determine the first processing identifier corresponding to the IP address of the user equipment by using a hash function according to the IP address of the user equipment; The first processor pointed to by the first processing identifier sends the correspondence between the IP address of the user equipment and the second processing identifier pointed to by the context information of the user equipment;
所述第一处理器,还用于将所述用户设备的IP地址与所述用户设备的上下文信息指向的第二处理标识之间的对应关系保存到预设的散列用户转发表中。The first processor is further configured to save the correspondence between the IP address of the user equipment and the second processing identifier pointed to by the context information of the user equipment in a preset hash user forwarding table.
基于第三方面或第三方面的第一或第二种可能的实现方式,在第三种可能的实现方式中,在所述第一处理器根据所述IP地址,查找预设的散列用户转发表,确定与所述IP地址对应的用户设备的上下文信息所在的第二处理器之后;Based on the third aspect or the first or second possible implementation of the third aspect, in the third possible implementation, the first processor searches for a preset hash user according to the IP address The forwarding table is determined after the second processor where the context information of the user equipment corresponding to the IP address is located;
所述第一处理器,还用于向所述第二处理器发送请求消息,所述请求消息中包括所述IP地址,用以请求所述第二处理器将与所述IP地址对应的用户设备的上下文信息发送给所述第一处理器;The first processor is further configured to send a request message to the second processor, the request message includes the IP address, and is used to request the second processor to send the user corresponding to the IP address sending the context information of the device to the first processor;
所述第一处理器,还用于根据所述第二处理器发送的与所述IP地址对应的用户设备的上下文信息,根据与所述IP地址对应的用户设备的上下文信息,将所述报文发送给所述用户设备。The first processor is further configured to send the report according to the context information of the user equipment corresponding to the IP address sent by the second processor, and according to the context information of the user equipment corresponding to the IP address The text is sent to the user equipment.
基于第三方面或第三方面的第一至第三种任一可能的实现方式,在第四种可能的实现方式中,所述第一处理器和所述第二处理器通过所述通信接口与所述用户设备通信连接。Based on the third aspect or any of the first to third possible implementations of the third aspect, in a fourth possible implementation, the first processor and the second processor use the communication interface Communicatively connect with the user equipment.
本发明根据接收的报文中包括目的IP地址,利用散列函数,利用散列函数,确定与所述IP地址对应的第一处理标识;根据所述IP地址和所述第一处理标识,在所述第一处理标识对应的第一处理器中查找预设的散列用户转发表,确定与所述IP地址对应的用户设备的上下文信息指向的第二处理标识;根据所述第二处理标识,通过所述第二处理标识对应的第二处理器将所述报文发送给所述用户设备。由于散列用户转发表中只保存了部分用户设备的上下文信息所在的处理标识和部分用户设备的IP地址之间的对应关系,因此,根据报文中包括目的IP地址,可以迅速查找到该IP地址对应的用户设备的上下文信息所在的处理器,通过用户设备的上下文信息所在的处理器将报文发送给对应的用户设备,可以提高报文的分发效率。In the present invention, according to the destination IP address included in the received message, a hash function is used to determine the first processing identifier corresponding to the IP address; according to the IP address and the first processing identifier, in Search the preset hash user forwarding table in the first processor corresponding to the first processing identifier, and determine the second processing identifier pointed to by the context information of the user equipment corresponding to the IP address; according to the second processing identifier , sending the packet to the user equipment through the second processor corresponding to the second processing identifier. Since the hashed user forwarding table only saves the correspondence between the processing identifiers where the context information of some user equipments is located and the IP addresses of some user equipments, the IP address can be quickly found according to the destination IP address included in the message. The processor where the context information of the user equipment corresponding to the address is located sends the message to the corresponding user equipment through the processor where the context information of the user equipment is located, which can improve the efficiency of message distribution.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1为本发明一实施例提供的报文分发方法的流程示意图;FIG. 1 is a schematic flowchart of a message distribution method provided by an embodiment of the present invention;
图2为本发明另一实施例提供的报文分发方法的流程示意图;FIG. 2 is a schematic flowchart of a message distribution method provided by another embodiment of the present invention;
图3为本发明另一实施例提供的报文分发方法的流程示意图;FIG. 3 is a schematic flowchart of a message distribution method provided by another embodiment of the present invention;
图4为本发明另一实施例提供的报文分发装置的结构示意图;FIG. 4 is a schematic structural diagram of a message distribution device provided by another embodiment of the present invention;
图5为本发明另一实施例提供的无线网关的结构示意图。Fig. 5 is a schematic structural diagram of a wireless gateway provided by another embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
本发明的技术方案,可以应用于各种无线通信系统,例如:全球移动通信系统(Global System for Mobile Communications,GSM)、通用分组无线业务(General PacketRadio Service,GPRS)系统、码分多址(Code Division Multiple Access,CDMA)系统、CDMA2000系统、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)系统、长期演进(Long Term Evolution,LTE)系统或全球微波接入互操作性(WorldInteroperability for Microwave Access,WiMAX)系统等。The technical scheme of the present invention can be applied to various wireless communication systems, such as: Global System for Mobile Communications (Global System for Mobile Communications, GSM), General Packet Radio Service (General Packet Radio Service, GPRS) system, Code Division Multiple Access (Code Division Multiple Access (CDMA) system, CDMA2000 system, Wideband Code Division Multiple Access (WCDMA) system, Long Term Evolution (LTE) system or World Interoperability for Microwave Access , WiMAX) system, etc.
本发明各实施例中所述的第一和第二没有具体的含义,只是为了区别处理器而已。The first and second mentioned in the various embodiments of the present invention have no specific meaning, but are only used to distinguish processors.
本发明各实施例中所述的通信接口具体可以采用单板或中央处理器来实现,或者采用单板或中央处理器中的转发芯片来实现,本发明各实施例中所述的处理器具体可以单板或中央处理器来实现。The communication interface described in each embodiment of the present invention can be realized by a single board or a central processing unit, or by a forwarding chip in a single board or a central processing unit. The processor described in each embodiment of the present invention specifically It can be realized by a single board or a central processing unit.
图1为本发明一实施例提供的报文分发方法的流程示意图,应用于网络侧设备通过无线网关向用户设备发送报文的场景中,如图1所示,本实施例的报文分发方法可以包括:Figure 1 is a schematic flowchart of a message distribution method provided by an embodiment of the present invention, which is applied to a scenario where a network side device sends a message to a user equipment through a wireless gateway, as shown in Figure 1 , the message distribution method of this embodiment Can include:
101、无线网关接收报文,所述报文中包括目的IP地址,所述目的IP地址为接收所述报文的用户设备的IP地址;101. The wireless gateway receives a packet, where the packet includes a destination IP address, and the destination IP address is the IP address of the user equipment that receives the packet;
102、无线网关根据所述IP地址,利用散列函数,确定与所述IP地址对应的第一处理标识;102. The wireless gateway determines a first processing identifier corresponding to the IP address by using a hash function according to the IP address;
103、无线网关根据所述IP地址和所述第一处理标识,在所述第一处理标识对应的第一处理器中查找预设的散列用户转发表,确定与所述IP地址对应的用户设备的上下文信息指向的第二处理标识;103. According to the IP address and the first processing identifier, the wireless gateway searches the preset hash user forwarding table in the first processor corresponding to the first processing identifier, and determines the user corresponding to the IP address The second processing identifier pointed to by the context information of the device;
在本发明的一个可选实施方式中,步骤103之前,包括:In an optional embodiment of the present invention, before step 103, include:
所述无线网关根据所述用户设备的IP地址,利用散列函数确定与所述用户设备的IP地址对应的所述第一处理标识;The wireless gateway determines the first processing identifier corresponding to the IP address of the user equipment by using a hash function according to the IP address of the user equipment;
根据所述第一处理标识,在所述第一处理标识对应的第一处理器中预设所述散列用户转发表;According to the first processing identifier, preset the hash user forwarding table in the first processor corresponding to the first processing identifier;
将所述用户设备的IP地址与所述用户设备的上下文信息指向的第二处理标识之间的对应关系保存到预设的所述散列用户转发表中。saving the correspondence between the IP address of the user equipment and the second processing identifier pointed to by the context information of the user equipment in the preset hash user forwarding table.
需要说明的是,散列用户转发表中只保存了散列到第一处理器的部分用户设备的上下文信息所在的处理标识和部分用户设备的IP地址之间的对应关系,因此,不需要保存每一个用户设备的上下文信息所在的处理标识和该用户设备的IP地址之间的对应关系,从而可以克服现有技术中的通信接口的转发表的性能瓶颈。It should be noted that the hashed user forwarding table only stores the correspondence between the processing identifiers of the context information of some user equipments hashed to the first processor and the IP addresses of some user equipments. Therefore, there is no need to save The corresponding relationship between the processing identification of the context information of each user equipment and the IP address of the user equipment can overcome the performance bottleneck of the forwarding table of the communication interface in the prior art.
104、无线网关根据所述第二处理标识,通过所述第二处理标识对应的第二处理器将所述报文发送给所述用户设备。104. The wireless gateway sends the packet to the user equipment through a second processor corresponding to the second processing identifier according to the second processing identifier.
本发明实施例根据接收的报文中包括目的IP地址,利用散列函数,利用散列函数,确定与所述IP地址对应的第一处理标识;根据所述IP地址和所述第一处理标识,在所述第一处理标识对应的第一处理器中查找预设的散列用户转发表,确定与所述IP地址对应的用户设备的上下文信息指向的第二处理标识;根据所述第二处理标识,通过所述第二处理标识对应的第二处理器将所述报文发送给所述用户设备。由于散列用户转发表中只保存了部分用户设备的上下文信息所在的处理标识和部分用户设备的IP地址之间的对应关系,因此,根据报文中包括的目的IP地址,可以迅速查找到该IP地址对应的用户设备的上下文信息所在的处理器,通过用户设备的上下文信息所在的处理器将报文发送给对应的用户设备,可以提高报文的分发效率。In the embodiment of the present invention, according to the destination IP address included in the received message, a hash function is used to determine the first processing identifier corresponding to the IP address; according to the IP address and the first processing identifier Searching the preset hash user forwarding table in the first processor corresponding to the first processing identifier, and determining the second processing identifier pointed to by the context information of the user equipment corresponding to the IP address; according to the second A processing identifier, sending the packet to the user equipment through a second processor corresponding to the second processing identifier. Since the hashed user forwarding table only stores the correspondence between the processing identifiers where the context information of some user equipments is located and the IP addresses of some user equipments, the user equipment can be quickly found according to the destination IP address included in the message. The processor where the context information of the user equipment corresponding to the IP address is located sends the message to the corresponding user equipment through the processor where the context information of the user equipment is located, which can improve the efficiency of message distribution.
为了详细描述图1所示实施例所述的技术方案实现过程,以下通过图2和图3所示实施例进行详细说明。In order to describe in detail the implementation process of the technical solution described in the embodiment shown in FIG. 1 , the embodiments shown in FIG. 2 and FIG. 3 will be described in detail below.
图2为本发明另一实施例提供的报文分发方法的流程示意图,应用于网络侧设备通过无线网关向用户设备发送报文的场景中,如图2所示,本实施例的报文分发方法可以包括:Fig. 2 is a schematic flowchart of a message distribution method provided by another embodiment of the present invention, which is applied to a scenario where a network side device sends a message to a user device through a wireless gateway. As shown in Fig. 2, the message distribution method of this embodiment Methods can include:
201、通信接口接收报文,所述报文中包括目的IP地址,所述目的IP为接收所述报文的用户设备的IP地址。201. The communication interface receives a packet, where the packet includes a destination IP address, where the destination IP is the IP address of a user equipment that receives the packet.
其中,通信接口为无线网关中的通信接口,通信接口接收来自网络侧设备向用户设备发送的报文,所述报文中包括目的IP地址,所述目的IP为最终接收所述报文的用户设备的IP地址。Wherein, the communication interface is a communication interface in the wireless gateway, and the communication interface receives a message sent from the network side device to the user equipment, and the message includes a destination IP address, and the destination IP is the user who finally receives the message The IP address of the device.
其中,用户设备的IP地址为该用户设备与无线网关建立连接时,无线网关分配给用户设备使用的IP地址。Wherein, the IP address of the user equipment is an IP address allocated to the user equipment by the wireless gateway when the user equipment establishes a connection with the wireless gateway.
202、通信接口根据所述IP地址,利用散列函数,将所述报文散列到第一处理器。202. The communication interface hashes the message to the first processor by using a hash function according to the IP address.
具体为:通信接口根据所述IP地址,利用散列函数确定与所述IP地址对应的所述第一处理标识;其中,第一处理标识通常为第一处理器的编号。Specifically, according to the IP address, the communication interface uses a hash function to determine the first processing identifier corresponding to the IP address; wherein, the first processing identifier is usually the serial number of the first processor.
根据所述第一处理标识,将所述报文发送给所述第一处理标识指向的第一处理器。According to the first processing identifier, sending the packet to the first processor pointed to by the first processing identifier.
具体实现时,上述散列函数具体可以为:i=f(IpAddr,M);其中,IpAddr为用户设备的IP地址,M为无线网关中的处理器的数量,i表示根据用户设备的IP地址和处理器的数量M,通过散列函数计算得到的该用户设备散列到的处理标识(处理器的编号)。During specific implementation, the above-mentioned hash function may specifically be: i=f(IpAddr, M); wherein, IpAddr is the IP address of the user equipment, M is the number of processors in the wireless gateway, and i represents the IP address according to the user equipment and the number M of processors, and the processing identifier (the number of the processor) hashed to by the user equipment obtained by calculating through the hash function.
假设用户设备的数量比较大时,通过散列函数f能够将用户设备比较均匀的分布到各个处理器上。举例来说,将散列函数f(IpAddr,M)=IpAddr mod M,mod为取模计算,即IpAddr整除M所得的余数。假设处理器的数量M=3时,3个处理器的编号分别为0、1、2;假设有10个用户设备,IP地址分别为1、2、3、4、5、6、7、8、9、10;通过散列函数的计算,IP地址为3、6、9整除3后的余数均为0,即IpAddr mod 3=0,因此,可以将IP地址为3、6、9对应的用户设备散列到0号处理器处理,同理,通过散列函数的计算,IP地址为1、4、7、10整除3后的余数均为1,IP地址为1、4、7、10对应的用户设备散列到1号处理器处理,同理,IP地址为2、5、8整除3后的余数均为2,IP地址为2、5、8对应的用户设备散列到2号处理器处理。Assuming that the number of user equipments is relatively large, the user equipments can be evenly distributed to each processor through the hash function f. For example, the hash function f(IpAddr, M)=IpAddr mod M, mod is a modulo calculation, that is, the remainder obtained by dividing M by IpAddr. Assuming that the number of processors M=3, the numbers of the three processors are 0, 1, and 2 respectively; assuming that there are 10 user devices, the IP addresses are 1, 2, 3, 4, 5, 6, 7, and 8 respectively , 9, 10; through the calculation of the hash function, the remainder after the IP addresses are 3, 6, and 9 when they are divided by 3 is 0, that is, IpAddr mod 3=0, therefore, the IP addresses corresponding to 3, 6, and 9 can be The user equipment is hashed to processor No. 0 for processing. Similarly, through the calculation of the hash function, the remainder after the IP address is 1, 4, 7, and 10 is 1, and the IP address is 1, 4, 7, and 10 The corresponding user equipment is hashed to processor No. 1 for processing. Similarly, the remainder after the IP address is 2, 5, and 8 is 2, and the user equipment corresponding to IP address 2, 5, and 8 is hashed to No. 2. processor processing.
203、第一处理器根据所述IP地址,查找预设的散列用户转发表,确定与所述IP地址对应的用户设备的上下文信息所在的第二处理器。203. The first processor searches a preset hashed user forwarding table according to the IP address, and determines a second processor where the context information of the user equipment corresponding to the IP address resides.
具体实现时,在步骤203之前,假设用户设备在与无线网关建立连接时选择第二处理器,第二处理器就会创建该用户设备的上下文信息,上下文信息中保存了处理发送给该用户设备的报文所需的信息;During specific implementation, before step 203, assuming that the user equipment selects the second processor when establishing a connection with the wireless gateway, the second processor will create the context information of the user equipment, and the context information saves the process and sends it to the user equipment information required by the message;
当无线网关为该用户设备分配IP地址之后,第二处理器根据所述用户设备的IP地址,利用散列函数确定与所述用户设备的IP地址对应的所述第一处理标识,有关散列函数的内容可以参考步骤202中的相关描述,不再赘述;After the wireless gateway assigns an IP address to the user equipment, the second processor uses a hash function to determine the first processing identifier corresponding to the IP address of the user equipment according to the IP address of the user equipment. The content of the function can refer to the relevant description in step 202, and will not be repeated;
第二处理器根据所述第一处理标识,向所述第一处理标识指向的第一处理器发送所述用户设备的IP地址与所述用户设备的上下文信息所指向的第二处理标识之间的对应关系;According to the first processing identifier, the second processor sends to the first processor pointed to by the first processing identifier the difference between the IP address of the user equipment and the second processing identifier pointed to by the context information of the user equipment. corresponding relationship;
第一处理器将所述用户设备的IP地址与所述用户设备的上下文信息所指向的第二处理标识之间的对应关系保存到预设的散列用户转发表中。The first processor saves the corresponding relationship between the IP address of the user equipment and the second processing identifier pointed to by the context information of the user equipment in a preset hash user forwarding table.
由此可知,上述第一处理器预设的散列用户转发表中只保存了散列到第一处理器的部分用户设备的上下文信息所在的处理标识和部分用户设备的IP地址之间的对应关系,因此,通信接口中不需要保存每一个用户设备的上下文信息所在的处理标识和该用户设备的IP地址之间的对应关系,从而可以避免查找通信接口的转发表的性能瓶颈。It can be seen that the hashed user forwarding table preset by the first processor only stores the correspondence between the processing identifiers of the context information of some user equipments hashed to the first processor and the IP addresses of some user equipments. Therefore, the communication interface does not need to save the corresponding relationship between the processing identifier where the context information of each user equipment is located and the IP address of the user equipment, thereby avoiding the performance bottleneck of searching the forwarding table of the communication interface.
204、第一处理器将所述报文发送给所述第二处理器,以使所述第二处理器根据与所述IP地址对应的用户设备的上下文信息,将所述报文发送给所述用户设备。204. The first processor sends the packet to the second processor, so that the second processor sends the packet to the second processor according to the context information of the user equipment corresponding to the IP address user equipment.
本发明实施例根据通信接口接收的报文中包括目的IP地址,利用散列函数,将所述报文散列到第一处理器;使得第一处理器根据所述IP地址,查找预设的散列用户转发表,确定与所述IP地址对应的用户设备的上下文信息所在的第二处理器,并将所述报文发送给所述第二处理器,以使所述第二处理器根据与所述IP地址对应的用户设备的上下文信息,将所述报文发送给所述用户设备。由于散列用户转发表中只保存了部分用户设备的上下文信息所在的处理标识和部分用户设备的IP地址之间的对应关系,因此,根据报文中包括目的IP地址,可以迅速查找到该IP地址对应的用户设备的上下文信息所在的处理器,通过用户设备的上下文信息所在的处理器将报文发送给对应的用户设备,可以提高报文的分发效率。According to the embodiment of the present invention, according to that the message received by the communication interface includes the destination IP address, the message is hashed to the first processor by using a hash function; so that the first processor searches for the preset IP address according to the IP address. Hashing the user forwarding table, determining the second processor where the context information of the user equipment corresponding to the IP address resides, and sending the message to the second processor, so that the second processor according to The context information of the user equipment corresponding to the IP address, and sending the packet to the user equipment. Since the hashed user forwarding table only saves the correspondence between the processing identifiers where the context information of some user equipments is located and the IP addresses of some user equipments, the IP address can be quickly found according to the destination IP address included in the message. The processor where the context information of the user equipment corresponding to the address is located sends the message to the corresponding user equipment through the processor where the context information of the user equipment is located, which can improve the efficiency of message distribution.
由于本实施例不需要通过通信接口的转发表进行查表,可以避免查找通信接口的转发表的性能瓶颈,因此,能够解决由于查找通信接口的转发表的性能瓶颈容易导致报文分发效率的下降。Because this embodiment does not need to look up the table through the forwarding table of the communication interface, the performance bottleneck of searching the forwarding table of the communication interface can be avoided, so it can solve the problem that the performance bottleneck of the forwarding table of the communication interface can easily lead to the decline of message distribution efficiency .
图3为本发明另一实施例提供的报文分发方法的流程示意图,应用于网络侧设备通过无线网关向用户设备发送报文的场景中,如图3所示,本实施例的报文分发方法可以包括:Fig. 3 is a schematic flowchart of a message distribution method provided by another embodiment of the present invention, which is applied to a scenario where a network side device sends a message to a user device through a wireless gateway. As shown in Fig. 3, the message distribution method of this embodiment Methods can include:
301、通信接口接收报文,所述报文中包括目的IP地址,所述目的IP为接收所述报文的用户设备的IP地址。301. The communication interface receives a packet, where the packet includes a destination IP address, where the destination IP is the IP address of a user equipment that receives the packet.
302、通信接口根据所述IP地址,利用散列函数,将所述报文散列到第一处理器。302. The communication interface hashes the message to the first processor by using a hash function according to the IP address.
303、第一处理器根据所述IP地址,查找预设的散列用户转发表,确定与所述IP地址对应的用户设备的上下文信息所在的第二处理器。303. The first processor searches a preset hashed user forwarding table according to the IP address, and determines a second processor where the context information of the user equipment corresponding to the IP address resides.
上述步骤301-303可以参考图2所示实施例中的步骤201-203中的相关描述,不再赘述。For the above steps 301-303, reference may be made to the relevant descriptions in steps 201-203 in the embodiment shown in FIG. 2 , and details are not repeated here.
304、第一处理器向所述第二处理器发送请求消息,所述请求消息中包括所述IP地址,用以请求所述第二处理器将与所述IP地址对应的用户设备的上下文信息发送给所述第一处理器。304. The first processor sends a request message to the second processor, where the request message includes the IP address, to request the second processor to provide context information of the user equipment corresponding to the IP address sent to the first processor.
举例来说,第二处理器将与所述IP地址对应的用户设备的上下文信息发送给所述第一处理器,为了释放第二处理器的缓存空间,第二处理器可以删除与所述IP地址对应的用户设备的上下文信息。For example, the second processor sends the context information of the user equipment corresponding to the IP address to the first processor, and in order to release the cache space of the second processor, the second processor may delete the The context information of the user equipment corresponding to the address.
305、第一处理器根据所述第二处理器发送的与所述IP地址对应的用户设备的上下文信息,根据与所述IP地址对应的用户设备的上下文信息,将所述报文发送给所述用户设备。305. According to the context information of the user equipment corresponding to the IP address sent by the second processor, the first processor sends the packet to the user equipment according to the context information of the user equipment corresponding to the IP address user equipment.
本实施例根据接收的报文中的IP地址,利用散列函数,将报文散列到第一处理器,使得第一处理器根据所述IP地址,查找预设的散列用户转发表,确定与所述IP地址对应的用户设备的上下文信息所在的第二处理器,可以避免查找通信接口的转发表的性能瓶颈,能够解决由于查找通信接口的转发表的性能瓶颈容易导致报文分发效率的下降。In this embodiment, according to the IP address in the received message, a hash function is used to hash the message to the first processor, so that the first processor searches the preset hash user forwarding table according to the IP address, Determining the second processor where the context information of the user equipment corresponding to the IP address is located can avoid the performance bottleneck of searching the forwarding table of the communication interface, and can solve the problem of packet distribution efficiency caused by the performance bottleneck of searching the forwarding table of the communication interface. Decline.
进一步地,第一处理器接收第二处理器发送的与所述IP地址对应的用户设备的上下文信息,使得第一处理器根据与所述IP地址对应的用户设备的上下文信息,将所述报文发送给所述用户设备,可以避免通信接口散列导致的报文二次转发,简化了分发路径,减少转发时延,进一步提高了报文分发效率;有利于实现大容量系统,并提升系统的平滑扩容能力。Further, the first processor receives the context information of the user equipment corresponding to the IP address sent by the second processor, so that the first processor sends the report according to the context information of the user equipment corresponding to the IP address Sending the message to the user equipment can avoid the secondary forwarding of the message caused by the hash of the communication interface, simplify the distribution path, reduce the forwarding delay, and further improve the efficiency of message distribution; it is beneficial to realize a large-capacity system and improve the system smooth expansion capability.
本发明实施例进一步给出实现上述各方法实施例中的方法或步骤的装置实施例。Embodiments of the present invention further provide device embodiments for implementing the methods or steps in the foregoing method embodiments.
图4为本发明另一实施例提供的报文分发装置的结构示意图,应用于网络侧设备通过所述无线网关向用户设备发送报文的场景中,如图4所示,包括:FIG. 4 is a schematic structural diagram of a message distribution device provided by another embodiment of the present invention, which is applied to a scenario where a network side device sends a message to a user equipment through the wireless gateway, as shown in FIG. 4 , including:
接收模块41,用于接收报文,所述报文中包括目的IP地址,所述目的IP地址为接收所述报文的用户设备的IP地址;The receiving module 41 is configured to receive a message, the message includes a destination IP address, and the destination IP address is the IP address of the user equipment receiving the message;
确定模块42,用于根据所述IP地址,利用散列函数,确定与所述IP地址对应的第一处理标识;The determination module 42 is configured to determine the first processing identifier corresponding to the IP address by using a hash function according to the IP address;
所述确定模块42,还用于根据所述IP地址和所述第一处理标识,在所述第一处理标识对应的第一处理器中查找预设的散列用户转发表,确定与所述IP地址对应的用户设备的上下文信息指向的第二处理标识;The determining module 42 is further configured to search a preset hash user forwarding table in the first processor corresponding to the first processing identifier according to the IP address and the first processing identifier, and determine the The second processing identifier pointed to by the context information of the user equipment corresponding to the IP address;
发送模块43,用于根据所述第二处理标识,通过所述第二处理标识对应的第二处理器将所述报文发送给所述用户设备。The sending module 43 is configured to send the packet to the user equipment through a second processor corresponding to the second processing identifier according to the second processing identifier.
举例来说,所述确定模块42,还用于根据所述用户设备的IP地址,利用散列函数确定与所述用户设备的IP地址对应的所述第一处理标识;For example, the determining module 42 is further configured to determine the first processing identifier corresponding to the IP address of the user equipment by using a hash function according to the IP address of the user equipment;
所述装置还包括:The device also includes:
建立模块44,用于根据所述第一处理标识,在所述第一处理标识对应的第一处理器中预设所述散列用户转发表;The establishment module 44 is configured to preset the hash user forwarding table in the first processor corresponding to the first processing identifier according to the first processing identifier;
保存模块45,用于将所述用户设备的IP地址与所述用户设备的上下文信息指向的第二处理标识之间的对应关系保存到预设的所述散列用户转发表中。The saving module 45 is configured to save the correspondence between the IP address of the user equipment and the second processing identifier pointed to by the context information of the user equipment in the preset hash user forwarding table.
本发明实施例根据接收的报文中包括目的IP地址,利用散列函数,利用散列函数,确定与所述IP地址对应的第一处理标识;根据所述IP地址和所述第一处理标识,在所述第一处理标识对应的第一处理器中查找预设的散列用户转发表,确定与所述IP地址对应的用户设备的上下文信息指向的第二处理标识;根据所述第二处理标识,通过所述第二处理标识对应的第二处理器将所述报文发送给所述用户设备。由于散列用户转发表中只保存了部分用户设备的上下文信息所在的处理标识和部分用户设备的IP地址之间的对应关系,因此,根据报文中包括的目的IP地址,可以迅速查找到该IP地址对应的用户设备的上下文信息所在的处理器,通过用户设备的上下文信息所在的处理器将报文发送给对应的用户设备,可以提高报文的分发效率。In the embodiment of the present invention, according to the destination IP address included in the received message, a hash function is used to determine the first processing identifier corresponding to the IP address; according to the IP address and the first processing identifier Searching the preset hash user forwarding table in the first processor corresponding to the first processing identifier, and determining the second processing identifier pointed to by the context information of the user equipment corresponding to the IP address; according to the second A processing identifier, sending the packet to the user equipment through a second processor corresponding to the second processing identifier. Since the hashed user forwarding table only stores the correspondence between the processing identifiers where the context information of some user equipments is located and the IP addresses of some user equipments, the user equipment can be quickly found according to the destination IP address included in the message. The processor where the context information of the user equipment corresponding to the IP address is located sends the message to the corresponding user equipment through the processor where the context information of the user equipment is located, which can improve the efficiency of message distribution.
图5为本发明另一实施例提供的无线网关的结构示意图,应用于网络侧设备通过所述无线网关向用户设备发送报文的场景中,如图5所示,包括:通信接口51和至少两个处理器,即第一处理器52和第二处理器53,所述通信接口51分别与所述第一处理器52和所述第二处理器53通过通信总线54连接;FIG. 5 is a schematic structural diagram of a wireless gateway provided by another embodiment of the present invention, which is applied to a scenario where a network side device sends a message to a user equipment through the wireless gateway. As shown in FIG. 5 , it includes: a communication interface 51 and at least Two processors, i.e. a first processor 52 and a second processor 53, the communication interface 51 is respectively connected to the first processor 52 and the second processor 53 through a communication bus 54;
所述通信接口51,用于接收报文,所述报文中包括目的IP地址,所述目的IP地址为接收所述报文的用户设备的IP地址;The communication interface 51 is configured to receive a message, the message includes a destination IP address, and the destination IP address is the IP address of the user equipment receiving the message;
所述通信接口51,还用于根据所述IP地址,利用散列函数,将所述报文散列到所述第一处理器;The communication interface 51 is further configured to hash the message to the first processor by using a hash function according to the IP address;
所述第一处理器52,用于根据所述IP地址,查找预设的散列用户转发表,确定与所述IP地址对应的用户设备的上下文信息所在的第二处理器;The first processor 52 is configured to search a preset hash user forwarding table according to the IP address, and determine a second processor where the context information of the user equipment corresponding to the IP address is located;
所述第一处理器52,还用于将所述报文发送给所述第二处理器;The first processor 52 is further configured to send the message to the second processor;
所述第二处理器53,用于根据与所述IP地址对应的用户设备的上下文信息,将所述报文发送给所述用户设备。The second processor 53 is configured to send the message to the user equipment according to the context information of the user equipment corresponding to the IP address.
举例来说,所述通信接口51,具体用于根据所述IP地址,利用散列函数确定与所述IP地址对应的所述第一处理标识;根据所述第一处理标识,将所述报文发送给所述第一处理标识所指向的第一处理器。For example, the communication interface 51 is specifically configured to use a hash function to determine the first processing identifier corresponding to the IP address according to the IP address; The text is sent to the first processor pointed to by the first processing identifier.
举例来说,在所述第一处理器52根据所述IP地址,查找预设的散列用户转发表,确定与所述IP地址对应的用户设备的上下文信息所在的第二处理器之前;For example, before the first processor 52 searches a preset hash user forwarding table according to the IP address, and determines the second processor where the context information of the user equipment corresponding to the IP address is located;
所述第二处理器53,用于根据所述用户设备的IP地址,利用散列函数确定与所述用户设备的IP地址对应的所述第一处理标识;根据所述第一处理标识,向所述第一处理标识指向的所述第一处理器发送所述用户设备的IP地址与所述用户设备的上下文信息指向的第二处理标识之间的对应关系;The second processor 53 is configured to determine, according to the IP address of the user equipment, the first processing identifier corresponding to the IP address of the user equipment using a hash function; according to the first processing identifier, send The first processor pointed to by the first processing identifier sends the correspondence between the IP address of the user equipment and the second processing identifier pointed to by the context information of the user equipment;
所述第一处理器52,还用于将所述用户设备的IP地址与所述用户设备的上下文信息指向的第二处理标识之间的对应关系保存到预设的散列用户转发表中。The first processor 52 is further configured to save the correspondence between the IP address of the user equipment and the second processing identifier pointed to by the context information of the user equipment in a preset hash user forwarding table.
举例来说,在所述第一处理器52根据所述IP地址,查找预设的散列用户转发表,确定与所述IP地址对应的用户设备的上下文信息所在的第二处理器之后;For example, after the first processor 52 searches a preset hash user forwarding table according to the IP address, and determines the second processor where the context information of the user equipment corresponding to the IP address is located;
所述第一处理器52,还用于向所述第二处理器发送请求消息,所述请求消息中包括所述IP地址,用以请求所述第二处理器将与所述IP地址对应的用户设备的上下文信息发送给所述第一处理器;The first processor 52 is further configured to send a request message to the second processor, the request message includes the IP address, and is used to request the second processor to send the IP address corresponding to the IP address to the second processor. sending the context information of the user equipment to the first processor;
所述第一处理器52,还用于根据所述第二处理器发送的与所述IP地址对应的用户设备的上下文信息,根据与所述IP地址对应的用户设备的上下文信息,将所述报文发送给所述用户设备。The first processor 52 is further configured to, according to the context information of the user equipment corresponding to the IP address sent by the second processor, according to the context information of the user equipment corresponding to the IP address, send The message is sent to the user equipment.
举例来说,所述第一处理器52和所述第二处理器53通过所述通信接口51与所述用户设备通信连接。For example, the first processor 52 and the second processor 53 are communicatively connected to the user equipment through the communication interface 51 .
本发明实施例根据接收的报文中包括目的IP地址,利用散列函数,利用散列函数,确定与所述IP地址对应的第一处理标识;根据所述IP地址和所述第一处理标识,在所述第一处理标识对应的第一处理器中查找预设的散列用户转发表,确定与所述IP地址对应的用户设备的上下文信息指向的第二处理标识;根据所述第二处理标识,通过所述第二处理标识对应的第二处理器将所述报文发送给所述用户设备。由于散列用户转发表中只保存了部分用户设备的上下文信息所在的处理标识和部分用户设备的IP地址之间的对应关系,因此,根据报文中包括的目的IP地址,可以迅速查找到该IP地址对应的用户设备的上下文信息所在的处理器,通过用户设备的上下文信息所在的处理器将报文发送给对应的用户设备,可以提高报文的分发效率。In the embodiment of the present invention, according to the destination IP address included in the received message, a hash function is used to determine the first processing identifier corresponding to the IP address; according to the IP address and the first processing identifier Searching the preset hash user forwarding table in the first processor corresponding to the first processing identifier, and determining the second processing identifier pointed to by the context information of the user equipment corresponding to the IP address; according to the second A processing identifier, sending the packet to the user equipment through a second processor corresponding to the second processing identifier. Since the hashed user forwarding table only stores the correspondence between the processing identifiers where the context information of some user equipments is located and the IP addresses of some user equipments, the user equipment can be quickly found according to the destination IP address included in the message. The processor where the context information of the user equipment corresponding to the IP address is located sends the message to the corresponding user equipment through the processor where the context information of the user equipment is located, which can improve the efficiency of message distribution.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and module can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or modules may be in electrical, mechanical or other forms.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or may be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, or in the form of hardware plus software function modules.
上述以软件功能模块的形式实现的集成的模块,可以存储在一个计算机可读取存储介质中。上述软件功能模块存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated modules implemented in the form of software function modules can be stored in a computer-readable storage medium. The above-mentioned software function modules are stored in a storage medium, and include several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) to execute some steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as a removable hard disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的保护范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions depart from the protection scope of the technical solutions of the various embodiments of the present invention.
Claims (6)
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013074862 | 2013-04-27 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104969519A CN104969519A (en) | 2015-10-07 |
CN104969519B true CN104969519B (en) | 2018-03-09 |
Family
ID=54222086
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201380000350.1A Active CN104969519B (en) | 2013-04-27 | 2013-04-27 | Message distributing method and device, radio network gateway |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104969519B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111127125A (en) * | 2019-12-26 | 2020-05-08 | 北京每日优鲜电子商务有限公司 | Virtual bill issuing method, device, server and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1545279A (en) * | 2003-11-10 | 2004-11-10 | 中兴通讯股份有限公司 | A method for implementing Move command in distributed processing gateway |
CN1642135A (en) * | 2004-01-17 | 2005-07-20 | 华为技术有限公司 | GGSN/PDSN device and its data forwarding method |
CN101495993A (en) * | 2006-08-08 | 2009-07-29 | 瑞科网信科技有限公司 | System and method for distributed multi-processing security gateway |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050074003A1 (en) * | 2003-10-02 | 2005-04-07 | Ball David Alexander | Distributed software architecture for implementing BGP |
-
2013
- 2013-04-27 CN CN201380000350.1A patent/CN104969519B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1545279A (en) * | 2003-11-10 | 2004-11-10 | 中兴通讯股份有限公司 | A method for implementing Move command in distributed processing gateway |
CN1642135A (en) * | 2004-01-17 | 2005-07-20 | 华为技术有限公司 | GGSN/PDSN device and its data forwarding method |
CN101495993A (en) * | 2006-08-08 | 2009-07-29 | 瑞科网信科技有限公司 | System and method for distributed multi-processing security gateway |
Also Published As
Publication number | Publication date |
---|---|
CN104969519A (en) | 2015-10-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104348757B (en) | A kind of flow table exchange method, interchanger and system | |
CN103379029B (en) | A kind of method of the routing forwarding of content network, apparatus and system | |
CN104796336B (en) | A kind of method and device for being configured, issuing flow table item | |
CN104519036B (en) | Method and device for sending service request message | |
CN107547391B (en) | Message transmission method and device | |
CN102413041B (en) | Method, device and system for moving security policy | |
CN112583655B (en) | Data transmission method, device, electronic device and readable storage medium | |
CN103004172B (en) | Information processing method and load balancing device | |
WO2021008591A1 (en) | Data transmission method, device, and system | |
CN108965094A (en) | A kind of virtual machine network connection method and device | |
CN106533973A (en) | Method and system for distributing service message, and equipment | |
CN104426794B (en) | A kind of message forwarding method and device | |
CN103888364A (en) | Message shunting method and device | |
CN101110772A (en) | A device and method for processing messages | |
CN105657078A (en) | Data transmission method, data transmission device and multi-layer network manager | |
CN104040967B (en) | A message stream forwarding method and message forwarding device | |
CN103826276A (en) | Data transmission method, base station, management control center and system | |
CN104969519B (en) | Message distributing method and device, radio network gateway | |
CN102571543B (en) | A kind of communication means, message treatment method and system | |
CN106612307B (en) | Method and device for realizing always-on service | |
CN103179229B (en) | A kind of data service communications method, equipment and system | |
CN102904804A (en) | Routing and forwarding information adding method, message forwarding method and device, and network equipment | |
CN102833146B (en) | Method and equipment for network duplicate removal | |
CN107547382B (en) | Neighbor relation discovery method and device | |
CN115865816A (en) | A network load balancing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |