CN105119829A - Method, device and system for data transmission - Google Patents

Method, device and system for data transmission Download PDF

Info

Publication number
CN105119829A
CN105119829A CN201510564519.7A CN201510564519A CN105119829A CN 105119829 A CN105119829 A CN 105119829A CN 201510564519 A CN201510564519 A CN 201510564519A CN 105119829 A CN105119829 A CN 105119829A
Authority
CN
China
Prior art keywords
result
service request
data transmission
processing result
virtual gateway
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.)
Granted
Application number
CN201510564519.7A
Other languages
Chinese (zh)
Other versions
CN105119829B (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201510564519.7A priority Critical patent/CN105119829B/en
Publication of CN105119829A publication Critical patent/CN105119829A/en
Application granted granted Critical
Publication of CN105119829B publication Critical patent/CN105119829B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/80Actions related to the user profile or the type of traffic
    • H04L47/805QOS or priority aware
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses

Landscapes

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

Abstract

本发明提供了一种数据传输方法、装置和系统,其中,方法包括:接收虚拟网关发送的对第一业务请求处理后的第一处理结果,并将所述第一处理结果存储至随机存储器,第一业务请求是终端发送的;将随机存储器中的第一处理结果备份至闪存中;若接到终端再次发送的第一业务请求,则判断随机存储器中是否有第一处理结果,若判断结果为否,则将闪存中的第一处理结果加载至随机存储器;读取随机存储器中的第一处理结果,并根据第一处理结果进行处理。本发明的数据传输方法、装置和系统,当终端向家庭网关发送的同样的业务请求时,家庭网关无需每次都向虚拟网关发送业务请求,从而可以减少信令开销。

The present invention provides a data transmission method, device, and system, wherein the method includes: receiving a first processing result sent by a virtual gateway after processing a first service request, and storing the first processing result in a random access memory, The first service request is sent by the terminal; backup the first processing result in the random access memory to the flash memory; If no, load the first processing result in the flash memory to the random access memory; read the first processing result in the random access memory, and perform processing according to the first processing result. In the data transmission method, device and system of the present invention, when the terminal sends the same service request to the home gateway, the home gateway does not need to send a service request to the virtual gateway every time, thereby reducing signaling overhead.

Description

数据传输方法、装置和系统Data transmission method, device and system

技术领域technical field

本发明涉及通信技术,尤其涉及一种数据传输方法、装置和系统。The present invention relates to communication technology, in particular to a data transmission method, device and system.

背景技术Background technique

现阶段,在虚拟化网关的部署场景下,家庭网关设备的部分功能由虚拟网关来执行,终端向家庭网关发送业务请求,家庭网关将业务请求转发给虚拟网关,虚拟网关对家庭网关转发的业务请求进行处理,并将处理结果发送给家庭网关,家庭网关再根据得到的处理结果进行后续的转发或者分析等操作。At this stage, in the deployment scenario of a virtualized gateway, some functions of the home gateway device are performed by the virtual gateway. The terminal sends a service request to the home gateway, and the home gateway forwards the service request to the virtual gateway. The virtual gateway forwards the service to the home gateway. The request is processed, and the processing result is sent to the home gateway, and the home gateway performs subsequent operations such as forwarding or analysis according to the obtained processing result.

但是当终端向家庭网关发送的同样的业务请求时,家庭网关每次都需要向虚拟网关发送业务请求,由虚拟网关进行处理后再将处理结果发送给家庭网关,但是这样无疑增加了通信时延以及信令开销。However, when the terminal sends the same service request to the home gateway, the home gateway needs to send the service request to the virtual gateway every time, and the virtual gateway will process it and then send the processing result to the home gateway, but this will undoubtedly increase the communication delay. and signaling overhead.

发明内容Contents of the invention

本发明提供一种数据传输方法、装置和系统,用于解决现有技术中在虚拟网关的部署场景下的数据传输方法会增加通信时延和信令开销的问题。The present invention provides a data transmission method, device and system, which are used to solve the problem in the prior art that the data transmission method in the deployment scenario of a virtual gateway increases communication delay and signaling overhead.

本发明的第一个方面是提供一种数据传输方法,包括:接收虚拟网关发送的对第一业务请求处理后的第一处理结果,并将所述第一处理结果存储至随机存储器,所述第一业务请求是终端发送的;The first aspect of the present invention is to provide a data transmission method, including: receiving the first processing result sent by the virtual gateway after processing the first service request, and storing the first processing result in a random access memory, the The first service request is sent by the terminal;

将所述随机存储器中的第一处理结果备份至闪存中;backing up the first processing result in the random access memory to the flash memory;

若接到所述终端再次发送的第一业务请求,则判断所述随机存储器中是否有所述第一处理结果,若判断结果为否,则将所述闪存中的第一处理结果加载至所述随机存储器;If the first service request sent again by the terminal is received, it is judged whether there is the first processing result in the random access memory, and if the judgment result is no, then the first processing result in the flash memory is loaded into the random access memory;

读取所述随机存储器中的第一处理结果,并根据所述第一处理结果进行处理。Reading the first processing result in the random access memory, and performing processing according to the first processing result.

本发明的第二个方面还提供一种数据传输装置,包括:接收模块,用于接收虚拟网关发送的对第一业务请求处理后的第一处理结果,并将所述第一处理结果存储至随机存储器,所述第一业务请求是终端发送的;The second aspect of the present invention also provides a data transmission device, including: a receiving module, configured to receive the first processing result sent by the virtual gateway after processing the first service request, and store the first processing result in random access memory, the first service request is sent by the terminal;

备份模块,用于将所述随机存储器中的第一处理结果备份至闪存中;A backup module, configured to back up the first processing result in the RAM to the flash memory;

判断模块,用于当接到所述终端再次发送的第一业务请求时,判断所述随机存储器中是否有所述第一处理结果,若判断结果为否,则将所述闪存中的第一处理结果加载至所述随机存储器;A judging module, configured to judge whether there is the first processing result in the random access memory when receiving the first service request sent again by the terminal, and if the judging result is no, save the first processing result in the flash memory Loading the processing result into the random access memory;

读取模块,用于读取所述随机存储器中的第一处理结果,并根据所述第一处理结果进行处理。A reading module, configured to read the first processing result in the random access memory, and perform processing according to the first processing result.

本发明的第三个方面还提供一种数据传输系统,包括:上述数据传输装置和虚拟网关,所述虚拟网关用于接收所述数据传输装置发送的第一业务请求,并对所述第一业务请求进行处理,生成第一处理结果数据包,并将所述第一处理结果发送至所述数据传输装置。The third aspect of the present invention also provides a data transmission system, including: the above-mentioned data transmission device and a virtual gateway, the virtual gateway is used to receive the first service request sent by the data transmission device, and The service request is processed, a first processing result data packet is generated, and the first processing result is sent to the data transmission device.

由以上技术方案可知,本发明提供的数据传输方法、装置和系统,当终端向家庭网关发送的同样的业务请求时,家庭网关无需每次都向虚拟网关发送业务请求,从而可以减少信令开销,此外,本发明通过在家庭网关中设置了两级存储的模式,即在闪存内对业务请求的处理结果进行备份,从而可以在再次接收到终端发送的同样的业务请求时,若随机存储器中的第一处理结果被擦除,则直接将闪存中的处理结果数据包加载至随机存储器,从而无需再将第一业务请求发送至虚拟网关,并且也无需等待网络侧的虚拟网关将第一请求的处理结果发送回家庭网关,从而减少了信令时延和信令开销。It can be seen from the above technical solutions that, with the data transmission method, device and system provided by the present invention, when the terminal sends the same service request to the home gateway, the home gateway does not need to send a service request to the virtual gateway every time, thereby reducing signaling overhead In addition, the present invention sets a two-level storage mode in the home gateway, that is, backs up the processing result of the service request in the flash memory, so that when the same service request sent by the terminal is received again, if the random access memory If the first processing result is erased, the processing result data packet in the flash memory is directly loaded into the RAM, so that there is no need to send the first service request to the virtual gateway, and there is no need to wait for the virtual gateway on the network side to send the first request The processing results are sent back to the home gateway, thereby reducing signaling delay and signaling overhead.

附图说明Description of drawings

图1为本发明实施例提供的数据传输方法的流程图;FIG. 1 is a flowchart of a data transmission method provided by an embodiment of the present invention;

图2为本发明又一实施例提供的数据传输方法的流程图;FIG. 2 is a flowchart of a data transmission method provided by another embodiment of the present invention;

图3为本发明再一实施例提供的数据传输方法的流程图;FIG. 3 is a flow chart of a data transmission method provided in yet another embodiment of the present invention;

图4为本发明另一实施例提供的数据传输装置的结构示意图;FIG. 4 is a schematic structural diagram of a data transmission device provided by another embodiment of the present invention;

图5为本发明一实施例提供的数据传输装置的结构示意图;FIG. 5 is a schematic structural diagram of a data transmission device provided by an embodiment of the present invention;

图6为本发明又一实施例提供的数据传输系统的结构示意图。Fig. 6 is a schematic structural diagram of a data transmission system provided by another embodiment of the present invention.

具体实施方式Detailed ways

实施例一Embodiment one

本实施例提供一种数据传输方法,图1为本发明实施例提供的数据传输方法的流程图,本实施例的执行主体为家庭网关,该家庭网关位于用户侧,并且本实施例中的家庭网关与传统网关相比仅仅保留了一部分功能,例如,远程管理功能,但是家庭网关与传统网关相比,硬件接口不变。This embodiment provides a data transmission method. FIG. 1 is a flow chart of the data transmission method provided by the embodiment of the present invention. Compared with the traditional gateway, the gateway only retains some functions, for example, the remote management function, but the hardware interface of the home gateway remains unchanged compared with the traditional gateway.

如图1所示,本实施例提供的数据传输方法包括:As shown in Figure 1, the data transmission method provided in this embodiment includes:

步骤101,接收虚拟网关发送的对第一业务请求处理后的第一处理结果,并将第一处理结果存储至随机存储器,其中,该第一业务请求是终端发送的。Step 101: Receive a first processing result sent by a virtual gateway after processing a first service request, and store the first processing result in a random access memory, wherein the first service request is sent by a terminal.

其中,虚拟网关位于网络侧,本实施例中的虚拟网关可以执行现有技术中传统家庭网关的部分功能,例如,给家庭内部的手机分配IP(InternetProtocol,简称IP)地址的动态主机配置协议DHCP(DynamicHostConfigurationProtocol,简称DHCP)功能,拨号功能等。其中,随机存储器,也就是RAM(RandomAccessMemory,简称RAM)可以支持带电存储。第一处理结果是虚拟网关根据自身存储的网络协议,对第一业务请求进行不同的处理得到的结果。Wherein, the virtual gateway is located on the network side, and the virtual gateway in this embodiment can perform some functions of traditional home gateways in the prior art, for example, the dynamic host configuration protocol DHCP that assigns IP (Internet Protocol, IP) addresses to mobile phones inside the home (DynamicHostConfigurationProtocol, referred to as DHCP) function, dial-up function, etc. Wherein, random access memory, that is, RAM (Random Access Memory, RAM for short) can support charged storage. The first processing result is a result obtained by the virtual gateway performing different processing on the first service request according to its own stored network protocol.

可以看出,由于虚拟网关执行了一部分传统网关的功能,因此,与传统的家庭网关相比,本实施例的家庭网关由于执行的功能变少,因而可以降低CPU(CentralProcessingUnit,简称CPU)的主频,从而可以减少家庭网关的负担。It can be seen that since the virtual gateway performs a part of the functions of the traditional gateway, compared with the traditional home gateway, the home gateway in this embodiment can reduce the main CPU (Central Processing Unit, CPU for short) because it performs fewer functions. Frequency, which can reduce the burden on the home gateway.

步骤102,将随机存储器中的第一处理结果备份至闪存中。Step 102, backing up the first processing result in the RAM to the flash memory.

其中,闪存的内存大小小于传统家庭网关的闪存大小,举例来说,现有技术中的家庭网关由于执行太多的功能,因此Flash大小一般为16MB左右,但本申请中的家庭网关由于部分功能由虚拟网关来执行,因此,Flash的内存大小得以大大减小,一般而言,8MB大小即可。当然这里仅仅是举例进行说明,具体Flash的大小并不加以限定。可以看出,本实施例中的家庭网关与现有技术的传统网关相比,硬件需求得以降低。Wherein, the memory size of the flash memory is smaller than the flash memory size of the traditional home gateway. For example, the home gateway in the prior art performs too many functions, so the Flash size is generally about 16MB, but the home gateway in this application is due to some functions Executed by the virtual gateway, therefore, the memory size of Flash can be greatly reduced. Generally speaking, 8MB is enough. Of course, this is just an example for illustration, and the size of the specific Flash is not limited. It can be seen that, compared with the traditional gateway in the prior art, the hardware requirement of the home gateway in this embodiment is reduced.

步骤103,若接到终端再次发送的第一业务请求,则判断随机存储器中是否有第一处理结果,若判断结果为否,则将闪存中的第一处理结果加载至随机存储器。Step 103: If the first service request sent again by the terminal is received, it is judged whether there is a first processing result in the random access memory, and if the judgment result is no, the first processing result in the flash memory is loaded into the random access memory.

这里需要说明的是,由于随机存储器不支持带电存储,因此存在家庭网关断电、数据更新、业务故障等原因而导致的随机存储器中的第一处理结果被擦除。It should be noted here that since the random access memory does not support live storage, the first processing result in the random access memory is erased due to reasons such as power failure of the home gateway, data update, or service failure.

因此,当用户再次使用第一业务时,家庭网关接收到终端再次发送的第一业务请求,则判断RAM中是否存在第一处理结果,如果RAM中不存在第一处理结果,则将闪存中的第一处理结果加载到RAM中,从而更快的提供服务,从而家庭网关可以不将第一业务请求发送至虚拟网关。Therefore, when the user uses the first service again, the home gateway receives the first service request sent again by the terminal, then judges whether there is the first processing result in the RAM, and if there is no first processing result in the RAM, then saves the first processing result in the flash memory The first processing result is loaded into the RAM, so as to provide services faster, so that the home gateway may not send the first service request to the virtual gateway.

当然,用于备份第一处理结果的随机存储器也可以独立于家庭网关存在。Of course, the RAM for backing up the first processing result may also exist independently of the home gateway.

步骤104,读取随机存储器中的第一处理结果,并根据第一处理结果进行处理。Step 104, read the first processing result in the RAM, and perform processing according to the first processing result.

家庭网关在读取随机存储器中的第一处理结果后,可以将第一处理结果发送至网络处理核心(Networkprocessor,简称NP),由NP进行后续的转发、拆解包、添加标签等功能。After the home gateway reads the first processing result in the RAM, it can send the first processing result to a network processor (NP for short), and the NP performs subsequent functions such as forwarding, unpacking, and labeling.

由以上技术方案可知,本发明提供的数据传输方法,当终端向家庭网关发送的同样的业务请求时,家庭网关无需每次都向虚拟网关发送业务请求,从而可以减少信令开销,此外,本发明通过在家庭网关中设置了两级存储的模式,即在闪存内对业务请求的处理结果进行备份,从而可以在再次接收到终端发送的同样的业务请求时,若随机存储器中的第一处理结果被擦除,则直接将闪存中的处理结果数据包加载至随机存储器,从而无需再将第一业务请求发送至虚拟网关,并且也无需等待网络侧的虚拟网关将第一请求的处理结果发送回家庭网关,从而减少了信令时延和信令开销。It can be seen from the above technical solutions that, in the data transmission method provided by the present invention, when the terminal sends the same service request to the home gateway, the home gateway does not need to send a service request to the virtual gateway every time, thereby reducing signaling overhead. In addition, this The invention sets a two-level storage mode in the home gateway, that is, backs up the processing result of the service request in the flash memory, so that when the same service request sent by the terminal is received again, if the first processing result in the random access memory If the result is erased, the processing result data package in the flash memory is directly loaded into the RAM, so that there is no need to send the first service request to the virtual gateway, and there is no need to wait for the virtual gateway on the network side to send the processing result of the first request Back to the home gateway, thereby reducing signaling delay and signaling overhead.

实施例二Embodiment two

本实施例是对上述实施例的进一步的补充说明,图2是本发明又一实施例提供的数据传输方法的流程图,如图2所示,该方法包括:This embodiment is a further supplementary description of the above embodiment. FIG. 2 is a flowchart of a data transmission method provided by another embodiment of the present invention. As shown in FIG. 2, the method includes:

步骤201,接收终端发送的第一业务请求。Step 201, receiving a first service request sent by a terminal.

步骤202,向虚拟网关发送第一业务请求,以使虚拟网关对第一业务请求进行处理并生成第一处理结果。Step 202, sending the first service request to the virtual gateway, so that the virtual gateway processes the first service request and generates a first processing result.

步骤203,接收虚拟网关发送的对第一业务请求处理后的第一处理结果,并将第一处理结果存储至随机存储器,其中,第一处理结果包括以下结果中的至少一种:与第一业务对应的MAC(MediaAccessControl,简称MAC)地址表、IP(InternetProtocol,简称IP)地址分配表、路由表、服务质量Qos(QualityofService,简称Qos)策略表。Step 203, receiving the first processing result sent by the virtual gateway after processing the first service request, and storing the first processing result in the RAM, wherein the first processing result includes at least one of the following results: the same as the first MAC (Media Access Control, referred to as MAC) address table, IP (Internet Protocol, referred to as IP) address allocation table, routing table, and quality of service Qos (Quality of Service, referred to as Qos) policy table corresponding to the service.

其中,第一业务请求可以是任一业务请求,例如可以是终端加入网络的请求,此时第一处理结果可以是在终端加入网络时,虚拟网关为终端分配静态IP地址的IP地址分配表等,例如,平时使用手机加入家庭路由器时,手机会获取一个静态IP地址。Wherein, the first service request may be any service request, for example, it may be a request for a terminal to join the network. At this time, the first processing result may be an IP address allocation table in which the virtual gateway assigns a static IP address to the terminal when the terminal joins the network, etc. , For example, when using a mobile phone to join a home router, the mobile phone will obtain a static IP address.

本实施例中以第一业务请求为访问浏览百度网站的请求为例进行说明。当终端需要访问百度时,若则家庭网关接收到终端发送的百度的浏览请求,则将该浏览的业务请求发送至虚拟网关,虚拟网关根据百度的IP地址和以及终端的MAC地址或者终端的静态IP地址产生一个路由表,即虚拟网关根据目的IP地址和源MAC/IP地址生成路由表。即路由表中包括了目的IP地址和源MAC/IP地址的一一对应关系。或者,还可以根据百度的服务器的MAC地址与终端的MAC地址生成MAC地址表,即MAC地址表中包括源MAC地址和目的MAC地址的一一对应关系。当然第一处理结果也可以是与第一业务对应的Qos策略表,在此不一一举例。In this embodiment, the first service request is a request to visit and browse the Baidu website as an example for illustration. When the terminal needs to visit Baidu, if the home gateway receives the browsing request from Baidu sent by the terminal, it sends the browsing service request to the virtual gateway. The IP address generates a routing table, that is, the virtual gateway generates a routing table based on the destination IP address and source MAC/IP address. That is, the routing table includes a one-to-one correspondence between the destination IP address and the source MAC/IP address. Alternatively, a MAC address table may also be generated according to the MAC address of Baidu's server and the MAC address of the terminal, that is, the MAC address table includes a one-to-one correspondence between the source MAC address and the destination MAC address. Of course, the first processing result may also be a Qos policy table corresponding to the first service, and no examples are given here.

步骤204,将随机存储器中的第一处理结果备份至闪存中。Step 204, backing up the first processing result in the RAM to the flash memory.

步骤205,若接到终端再次发送的第一业务请求,则判断随机存储器中是否有第一处理结果,若判断结果为否,则将闪存中的第一处理结果加载至随机存储器。Step 205: If the first service request sent again by the terminal is received, it is judged whether there is a first processing result in the random access memory, and if the judgment result is no, the first processing result in the flash memory is loaded into the random access memory.

当终端再次发送百度的浏览请求时,由于随机存储器不支持带电存储,因此存在当家庭网关断电、数据更新、业务故障、老化机制等原因而导致的随机存储器中与百度的业务相关的MAC地址表、路由表等被擦除,此时,判断随机存储器中是否有与百度业务相关的MAC地址表、路由表、Qos策略表等处理结果,若判断结果为否,将闪存中备份的MAC地址表、路由表、Qos策略表等加载至随机存储器,从而家庭网关可以不将第一业务请求发送至虚拟网关。When the terminal sends Baidu’s browsing request again, since the random access memory does not support live storage, there will be MAC addresses related to Baidu’s business in the random access memory caused by home gateway power failure, data update, service failure, aging mechanism, etc. table, routing table, etc. are erased, at this time, judge whether there are processing results such as MAC address table, routing table, Qos policy table related to Baidu business in the RAM, if the judgment result is no, the MAC address backed up in the flash memory Tables, routing tables, Qos policy tables, etc. are loaded into random access memory, so that the home gateway may not send the first service request to the virtual gateway.

步骤206,读取随机存储器中的第一处理结果,并根据第一处理结果进行处理。Step 206, read the first processing result in the RAM, and perform processing according to the first processing result.

家庭网关的将与百度业务相关的MAC地址表、路由表、Qos策略表等发送至NP,由NP进行后续的转发、拆解包、添加标签等功能。The home gateway sends the MAC address table, routing table, Qos policy table, etc. related to Baidu business to the NP, and the NP performs subsequent functions such as forwarding, unpacking, and adding labels.

由以上技术方案可知,本发明提供的数据传输方法,当终端向家庭网关发送的同样的业务请求时,家庭网关无需每次都向虚拟网关发送业务请求,从而可以减少信令开销,此外,本发明通过在家庭网关中设置了两级存储的模式,即由闪存对业务请求的处理结果进行备份,从而可以在再次接收到终端发送的同样的业务请求,若随机存储器中的第一处理结果被擦除,则直接将闪存中的处理结果数据包加载至随机存储器,从而无需再将第一业务请求发送至虚拟网关,并且也无需等待网络侧的虚拟网关将第一请求的处理结果发送回家庭网关,从而减少了信令时延和信令开销。此外,通过二级存储的模式也可以避免家庭网关在断电或者故障而造成的数据丢失。It can be seen from the above technical solutions that, in the data transmission method provided by the present invention, when the terminal sends the same service request to the home gateway, the home gateway does not need to send a service request to the virtual gateway every time, thereby reducing signaling overhead. In addition, this The invention sets a two-level storage mode in the home gateway, that is, the processing result of the service request is backed up by the flash memory, so that the same service request sent by the terminal can be received again, if the first processing result in the RAM is stored Erase, the processing result data packet in the flash memory is directly loaded into the RAM, so that there is no need to send the first service request to the virtual gateway, and there is no need to wait for the virtual gateway on the network side to send the processing result of the first request back to the home gateway, thereby reducing signaling delay and signaling overhead. In addition, data loss caused by a power outage or failure of the home gateway can also be avoided through the secondary storage mode.

实施例三Embodiment Three

本实施例是对上述实施例的进一步的补充说明,图3是本发明再一实施例提供的数据传输方法的流程图,如图3所示,该方法包括:This embodiment is a further supplementary description of the above embodiment. FIG. 3 is a flow chart of a data transmission method provided by another embodiment of the present invention. As shown in FIG. 3 , the method includes:

步骤301,接收虚拟网关发送的对第一业务请求处理后的第一处理结果,并将第一处理结果存储至随机存储器,其中,第一处理结果包括以下结果中的至少一种:与第一业务对应的MAC地址表、IP地址分配表、路由表、服务质量Qos策略表。Step 301, receiving the first processing result sent by the virtual gateway after processing the first service request, and storing the first processing result in the RAM, wherein the first processing result includes at least one of the following results: the same as the first The MAC address table, IP address allocation table, routing table, and service quality Qos policy table corresponding to the business.

步骤302,将随机存储器中的第一处理结果备份至闪存中。Step 302, backing up the first processing result in the RAM to the flash memory.

步骤301、步骤302分别与上述实施例中的步骤101、步骤102相应的相同,在此不再赘述。Step 301 and step 302 are respectively the same as step 101 and step 102 in the above embodiment, and will not be repeated here.

步骤303,若接到终端再次发送的第一业务请求,则判断随机存储器中是否有第一处理结果。Step 303: If the first service request sent again by the terminal is received, it is judged whether there is a first processing result in the RAM.

步骤3031,若判断结果为否,则将闪存中的第一处理结果加载至随机存储器。Step 3031, if the judgment result is no, load the first processing result in the flash memory to the random access memory.

由于随机存储器不支持带电存储,因此存在当家庭网关断电、数据更新、业务故障等原因而导致的随机存储器中的第一处理结果被擦除。此时,判断出随机存储器中没有第一处理结果,则将闪存中的第一处理结果加载至随机存储器。Since the random access memory does not support live storage, the first processing result in the random access memory may be erased due to reasons such as power failure of the home gateway, data update, or service failure. At this point, if it is determined that there is no first processing result in the random access memory, the first processing result in the flash memory is loaded into the random access memory.

步骤3032,若判断结果为是,则读取随机存储器中的第一处理结果,并根据第一处理结果进行处理。Step 3032, if the judgment result is yes, read the first processing result in the RAM, and perform processing according to the first processing result.

若家庭网关在访问第一业务之后,并没有访问其他的业务,此时随机存储器中应仍然存储有第一处理结果。因此,当家庭网关接收终端再次发送的第一业务请求,若随机存储器中存在第一处理结果,则读取随机存储器中的第一处理结果。If the home gateway does not access other services after accessing the first service, the first processing result should still be stored in the RAM. Therefore, when the home gateway receives the first service request sent again by the terminal, if the first processing result exists in the random access memory, it reads the first processing result in the random access memory.

步骤304,读取随机存储器中的第一处理结果,并根据第一处理结果进行处理。Step 304, read the first processing result in the RAM, and perform processing according to the first processing result.

步骤304与步骤206或者步骤104相一致,在此不再赘述。Step 304 is consistent with step 206 or step 104 and will not be repeated here.

由以上技术方案可知,本发明提供的数据传输方法,通过在家庭网关中设置了两级存储的模式,即由闪存对业务请求的处理结果进行备份,从而可以在再次接收到终端发送的同样的业务请求时,若随机存储器中的第一处理结果被擦除,直接将闪存中的处理结果数据包加载至随机存储器,若随机存储器中存在第一处理结果,则直接加载随机存储器中的第一处理结果,从而无需再将第一业务请求发送至虚拟网关,并且也无需等待网络侧的虚拟网关将第一请求的处理结果发送回家庭网关,从而减少了信令时延和信令开销。It can be seen from the above technical solutions that the data transmission method provided by the present invention sets a two-level storage mode in the home gateway, that is, the flash memory backs up the processing results of the service requests, so that the same data sent by the terminal can be received again. When a business request is made, if the first processing result in the random access memory is erased, directly load the processing result data package in the flash memory to the random access memory; if the first processing result exists in the random access memory, directly load the first processing result in the random access memory. Processing results, so that there is no need to send the first service request to the virtual gateway, and there is no need to wait for the virtual gateway on the network side to send the processing result of the first request back to the home gateway, thereby reducing signaling delay and signaling overhead.

实施例四Embodiment Four

本实施例提供一种数据传输装置,图4为本发明另一实施例提供的数据传输装置的结构示意图,用于执行实施例一的数据传输方法,如图4所示,本实施例中的数据传输装置位于用户侧,举例来说,可以是家庭网关。如图4所示,该数据传输装置包括:接收模块接收模块401、备份模块402、判断模块403和读取模块404。This embodiment provides a data transmission device. FIG. 4 is a schematic structural diagram of a data transmission device provided by another embodiment of the present invention, which is used to implement the data transmission method in Embodiment 1. As shown in FIG. 4, the The data transmission device is located at the user side, for example, it may be a home gateway. As shown in FIG. 4 , the data transmission device includes: a receiving module receiving module 401 , a backup module 402 , a judging module 403 and a reading module 404 .

其中,接收模块401用于接收虚拟网关发送的对第一业务请求处理后的第一处理结果,并将第一处理结果存储至随机存储器,第一业务请求是终端发送的。Wherein, the receiving module 401 is configured to receive the first processing result sent by the virtual gateway after processing the first service request, and store the first processing result in the RAM, where the first service request is sent by the terminal.

具体的,虚拟网关位于网络侧,本实施例中的虚拟网关可以执行现有技术中的数据传输装置的部分功能,例如,给家庭内部的手机分配IP(InternetProtocol,简称IP)地址的动态主机配置协议DHCP(DynamicHostConfigurationProtocol,简称DHCP)功能,拨号功能等。其中,随机存储器,也就是RAM(RandomAccessMemory,简称RAM)可以支持带电存储。第一处理结果是虚拟网关根据自身存储的网络协议,对第一业务请求进行不同的处理得到的结果。Specifically, the virtual gateway is located on the network side, and the virtual gateway in this embodiment can perform some functions of the data transmission device in the prior art, for example, assigning an IP (Internet Protocol, referred to as IP) address to the mobile phone in the family's dynamic host configuration Protocol DHCP (DynamicHostConfigurationProtocol, referred to as DHCP) function, dial-up function, etc. Wherein, random access memory, that is, RAM (Random Access Memory, RAM for short) can support charged storage. The first processing result is a result obtained by the virtual gateway performing different processing on the first service request according to its own stored network protocol.

可以看出,由于虚拟网关执行了一部分现有技术中数据传输装置的功能,因此,与传统的数据传输装置相比,本实施例的数据传输装置由于执行的功能变少,因而可以降低CPU(CentralProcessingUnit,简称CPU)的主频,从而可以减少数据传输装置的负担。It can be seen that since the virtual gateway performs a part of the functions of the data transmission device in the prior art, compared with the traditional data transmission device, the data transmission device of this embodiment can reduce the CPU ( Central Processing Unit (CPU for short), thereby reducing the burden on the data transmission device.

备份模块402与接收模块401连接,可以获取接收模块401接收的第一处理结果,具体的,备份模块402用于将随机存储器中的第一处理结果备份至闪存中。The backup module 402 is connected to the receiving module 401, and can acquire the first processing result received by the receiving module 401. Specifically, the backup module 402 is used for backing up the first processing result in the RAM to the flash memory.

其中,闪存的内存大小小于传统数据传输装置的闪存大小,举例来说,现有技术中的数据传输装置由于执行太多的功能,因此Flash大小一般为16MB左右,但本申请中的数据传输装置由于部分功能由虚拟网关来执行,因此,Flash的内存大小得以大大减小,一般而言,8MB大小即可。当然这里仅仅是举例进行说明,具体Flash的大小并不加以限定。可以看出,本实施例中的数据传输装置与现有技术的数据传输装置相比,硬件需求得以降低。Wherein, the memory size of the flash memory is smaller than the flash memory size of the traditional data transmission device. For example, the data transmission device in the prior art performs too many functions, so the Flash size is generally about 16MB, but the data transmission device in the present application Since some functions are performed by the virtual gateway, the memory size of Flash can be greatly reduced. Generally speaking, 8MB is enough. Of course, this is just an example for illustration, and the size of the specific Flash is not limited. It can be seen that, compared with the data transmission device in the prior art, the hardware requirement of the data transmission device in this embodiment is reduced.

判断模块403分别与接收模块401及备份模块402连接,用于当接到终端再次发送的第一业务请求时,判断随机存储器中是否有第一处理结果,若判断结果为否,则将闪存中的第一处理结果加载至随机存储器。The judging module 403 is respectively connected with the receiving module 401 and the backup module 402, and is used for judging whether there is the first processing result in the random access memory when receiving the first service request sent again by the terminal, and if the judging result is no, then save the first processing result in the flash memory. The first processing result of is loaded into random access memory.

这里需要说明的是,由于随机存储器不支持带电存储,因此存在数据传输装置断电、数据更新、业务故障等原因而导致的随机存储器中的第一处理结果被擦除。It should be noted here that since the random access memory does not support live storage, the first processing result in the random access memory is erased due to reasons such as power failure of the data transmission device, data update, or service failure.

因此,当用户再次使用第一业务时,数据传输装置接收到终端再次发送的第一业务请求,判断模块403则判断RAM中是否存在第一处理结果,如果RAM中不存在第一处理结果,则将闪存中的第一处理结果加载到RAM中,从而更快的提供服务,从而数据传输装置可以不将第一业务请求发送至虚拟网关。Therefore, when the user uses the first service again, the data transmission device receives the first service request sent again by the terminal, and the judging module 403 judges whether there is the first processing result in the RAM, and if there is no first processing result in the RAM, then The first processing result in the flash memory is loaded into the RAM, so as to provide services faster, so that the data transmission device may not send the first service request to the virtual gateway.

当然,用于备份第一处理结果的随机存储器也可以独立于数据传输装置存在。Of course, the RAM for backing up the first processing result may also exist independently of the data transmission device.

读取模块404与备份模块402连接,该读取模块404用于读取随机存储器中的第一处理结果,并根据第一处理结果进行处理。The reading module 404 is connected with the backup module 402, and the reading module 404 is used to read the first processing result in the random access memory, and perform processing according to the first processing result.

具体地,读取模块404在读取随机存储器中的第一处理结果后,可以将第一处理结果发送至网络处理核心(Networkprocessor,简称NP),由NP进行后续的转发、拆解包、添加标签等功能。Specifically, after reading the first processing result in the random access memory, the reading module 404 can send the first processing result to a network processing core (Networkprocessor, NP for short), and the NP performs subsequent forwarding, unpacking, adding Labels and other functions.

由以上技术方案可知,本发明提供的数据传输装置,当终端向数据传输装置发送的同样的业务请求时,数据传输装置无需每次都向虚拟网关发送业务请求,从而可以减少信令开销,此外,本发明通过在数据传输装置中设置了两级存储的模式,即在闪存内对业务请求的处理结果进行备份,从而可以在再次接收到终端发送的同样的业务请求时,若随机存储器中的第一处理结果被擦除,则直接将闪存中的处理结果数据包加载至随机存储器,从而无需再将第一业务请求发送至虚拟网关,并且也无需等待网络侧的虚拟网关将第一请求的处理结果发送回数据传输装置,从而减少了信令时延和信令开销。It can be seen from the above technical solutions that, with the data transmission device provided by the present invention, when the terminal sends the same service request to the data transmission device, the data transmission device does not need to send a service request to the virtual gateway every time, thereby reducing signaling overhead. , the present invention sets a two-level storage mode in the data transmission device, that is, backs up the processing result of the service request in the flash memory, so that when the same service request sent by the terminal is received again, if the random access memory When the first processing result is erased, the processing result data packet in the flash memory is directly loaded into the random access memory, so that there is no need to send the first service request to the virtual gateway, and there is no need to wait for the virtual gateway on the network side to send the first request to the virtual gateway. The processing result is sent back to the data transmission device, thereby reducing signaling delay and signaling overhead.

实施例五Embodiment five

本实施例是对上述实施例进一步的补充说明。图5为本发明一实施例提供的数据传输装置的结构示意图,用于执行上述实施例二的数据传输方法,本实施例中的数据传输装置位于用户侧,举例来说,可以是家庭网关。如图5所示,该数据传输装置包括:接收模块501、备份模块502、判断模块503、读取模块504和发送模块505。This embodiment is a further supplementary description of the above embodiments. 5 is a schematic structural diagram of a data transmission device provided by an embodiment of the present invention, which is used to implement the data transmission method of the second embodiment above. The data transmission device in this embodiment is located at the user side, for example, it may be a home gateway. As shown in FIG. 5 , the data transmission device includes: a receiving module 501 , a backup module 502 , a judging module 503 , a reading module 504 and a sending module 505 .

其中,接收模块501、备份模块502、判断模块503的作用与实施例一中的接收模块401、备份模块402、判断模块403的作用相同,在此不再赘述。Wherein, the functions of the receiving module 501, the backup module 502, and the judging module 503 are the same as those of the receiving module 401, the backup module 402, and the judging module 403 in Embodiment 1, and will not be repeated here.

接收模块501与发送模块506连接,接收模块501还用于接收终端发送的第一业务请求,以使得发送模块506向虚拟网关发送第一业务请求。The receiving module 501 is connected to the sending module 506, and the receiving module 501 is also configured to receive the first service request sent by the terminal, so that the sending module 506 sends the first service request to the virtual gateway.

发送模块505用于向虚拟网关发送第一业务请求,以使所述虚拟网关对所述第一业务请求进行处理并生成第一处理结果。The sending module 505 is configured to send the first service request to the virtual gateway, so that the virtual gateway processes the first service request and generates a first processing result.

其中,第一处理结果包括以下结果中的至少一种:与第一业务对应的MAC(MediaAccessControl,简称MAC)地址表、IP(InternetProtocol,简称IP)地址分配表、路由表、服务质量Qos(QualityofService,简称Qos)策略表。Wherein, the first processing result includes at least one of the following results: a MAC (MediaAccessControl, referred to as MAC) address table corresponding to the first service, an IP (Internet Protocol, referred to as IP) address allocation table, a routing table, a QoS (QualityofService , referred to as Qos) policy table.

其中,第一业务请求可以是任一业务请求,例如可以是终端加入网络的请求,此时第一处理结果可以是在终端加入网络时,虚拟网关为终端分配静态IP地址的IP地址分配表等,例如,平时使用手机加入家庭路由器时,手机会获取一个静态IP地址。Wherein, the first service request may be any service request, for example, it may be a request for a terminal to join the network. At this time, the first processing result may be an IP address allocation table in which the virtual gateway assigns a static IP address to the terminal when the terminal joins the network, etc. , For example, when using a mobile phone to join a home router, the mobile phone will obtain a static IP address.

与上述实施例不同的是,本实施例中的读取模块504还用于当接到终端再次发送的第一业务请求时,判断随机存储器中是否有第一处理结果,若判断出随机存储器中有第一处理结果,则读取随机存储器中的第一处理结果,并根据第一处理结果进行处理。Different from the above-mentioned embodiments, the reading module 504 in this embodiment is also used to determine whether there is a first processing result in the random access memory when receiving the first service request sent again by the terminal. If there is a first processing result, read the first processing result in the RAM and perform processing according to the first processing result.

具体的,若在访问第一业务之后,用户并没有访问其他的业务,此时随机存储器中应仍然存储有第一处理结果。因此,当数据传输装置接收终端再次发送的第一业务请求,若随机存储器中存在第一处理结果,则读取随机存储器中的第一处理结果。Specifically, if the user does not access other services after accessing the first service, the first processing result should still be stored in the RAM at this moment. Therefore, when the data transmission device receives the first service request sent again by the terminal, if the first processing result exists in the random access memory, it reads the first processing result in the random access memory.

由以上技术方案可知,本发明提供的数据传输装置,通过在数据传输装置中设置了两级存储的模式,即由闪存对业务请求的处理结果进行备份,从而可以在再次接收到终端发送的同样的业务请求时,若随机存储器中的第一处理结果被擦除,直接将闪存中的处理结果数据包加载至随机存储器,若随机存储器中存在第一处理结果,则直接加载随机存储器中的第一处理结果,从而无需再将第一业务请求发送至虚拟网关,并且也无需等待网络侧的虚拟网关将第一请求的处理结果发送回数据传输装置,从而减少了信令时延和信令开销。It can be seen from the above technical solutions that the data transmission device provided by the present invention sets a two-level storage mode in the data transmission device, that is, the processing result of the service request is backed up by the flash memory, so that the same data sent by the terminal can be received again. When a business request is made, if the first processing result in the random access memory is erased, directly load the processing result data package in the flash memory to the random access memory; if there is the first processing result in the random access memory, directly load the second processing result in the random access memory There is no need to send the first service request to the virtual gateway, and there is no need to wait for the virtual gateway on the network side to send the processing result of the first request back to the data transmission device, thereby reducing signaling delay and signaling overhead .

实施例六Embodiment six

本实施例提供一种数据传输系统,图6为本发明又一实施例提供的数据传输系统的结构示意图,如图6所示,该系统包括:数据传输装置1和虚拟网关2,虚拟网关2用于接收数据传输装置1发送的第一业务请求,并对第一业务请求进行处理,生成第一处理结果,并将第一处理结果发送至数据传输装置。This embodiment provides a data transmission system. FIG. 6 is a schematic structural diagram of a data transmission system provided by another embodiment of the present invention. As shown in FIG. 6, the system includes: a data transmission device 1 and a virtual gateway 2, and a virtual gateway 2 It is used to receive the first service request sent by the data transmission device 1, process the first service request, generate a first processing result, and send the first processing result to the data transmission device.

本实施例中的虚拟网关2可以执行了一部分现有技术中数据传输装置的功能,因此,与传统的数据传输装置相比,本实施例的数据传输装置1由于执行的功能变少,因而可以降低CPU的主频,从而可以减少数据传输装置1的负担。The virtual gateway 2 in this embodiment can perform a part of the functions of the data transmission device in the prior art. Therefore, compared with the traditional data transmission device, the data transmission device 1 in this embodiment has fewer functions, so it can The main frequency of the CPU is reduced, thereby reducing the burden on the data transmission device 1 .

其中,第一处理结果包括以下结果中的至少一种:与第一业务对应的MAC地址表、IP地址分配表、路由表、Qos策略表。Wherein, the first processing result includes at least one of the following results: a MAC address table corresponding to the first service, an IP address allocation table, a routing table, and a Qos policy table.

数据传输装置1可以执行上述实施例中所提供的任一数据传输装置的功能,其原理在此不再赘述。The data transmission device 1 can perform the function of any data transmission device provided in the above-mentioned embodiments, and the principle thereof will not be repeated here.

第一业务请求可以是任一业务请求,例如可以是终端加入网络的请求,此时第一处理结果可以是在终端加入网络时,虚拟网关为终端分配静态IP地址的IP地址分配表等,例如,平时使用手机加入家庭路由器时,手机会获取一个静态IP地址。The first service request may be any service request, for example, it may be a request for a terminal to join the network. At this time, the first processing result may be an IP address allocation table in which the virtual gateway assigns a static IP address to the terminal when the terminal joins the network, for example , when using a mobile phone to join the home router, the mobile phone will obtain a static IP address.

本实施例中以第一业务请求为访问浏览百度网站的请求为例进行说明。当终端需要访问百度时,若则数据传输装置1接收到终端发送的百度的浏览请求,则将该浏览的业务请求发送至虚拟网关2,虚拟网关2根据百度的IP地址和以及终端的MAC地址或者终端的静态IP地址产生一个路由表,即虚拟网关2根据目的IP地址和源MAC/IP地址生成路由表,即路由表中包括了目的IP地址和源MAC/IP地址的一一对应关系。或者,还可以根据百度的服务器的MAC地址与终端的MAC地址生成MAC地址表,即MAC地址表中包括源MAC地址和目的MAC地址的一一对应关系。当然第一处理结果也可以是与第一业务对应的Qos策略表,在此不一一举例。In this embodiment, the first service request is a request to visit and browse the Baidu website as an example for illustration. When the terminal needs to visit Baidu, if the data transmission device 1 receives the browsing request of Baidu sent by the terminal, it sends the browsing service request to the virtual gateway 2, and the virtual gateway 2 uses Baidu's IP address and the terminal's MAC address Or the static IP address of the terminal generates a routing table, that is, the virtual gateway 2 generates a routing table according to the destination IP address and the source MAC/IP address, that is, the routing table includes the one-to-one correspondence between the destination IP address and the source MAC/IP address. Alternatively, a MAC address table may also be generated according to the MAC address of Baidu's server and the MAC address of the terminal, that is, the MAC address table includes a one-to-one correspondence between the source MAC address and the destination MAC address. Of course, the first processing result may also be a Qos policy table corresponding to the first service, and no examples are given here.

在虚拟网关2生成第一处理结果之后,虚拟网关2向数据传输装置1发送第一处理结果,数据传输装置1在接收到第一处理结果后,可以参见上述实施例中所提供的数据传输方法的操作步骤,在此不再赘述。After the virtual gateway 2 generates the first processing result, the virtual gateway 2 sends the first processing result to the data transmission device 1. After the data transmission device 1 receives the first processing result, it can refer to the data transmission method provided in the above-mentioned embodiment The operation steps are not repeated here.

由以上技术方案可知,本发明提供的数据传输系统,虚拟网关2执行了部分数据传输装置1的功能,因此可以降低数据传输装置1的CPU的主频,从而减少数据传输装置1的负担,并且本发明的数据传输系统通过在数据传输装置1中设置了两级存储的模式,即由闪存对业务请求的处理结果进行备份,从而可以在再次接收到终端发送的同样的业务请求时,若随机存储器中的第一处理结果被擦除,直接将闪存中的处理结果数据包加载至随机存储器,若随机存储器中存在第一处理结果,则直接加载随机存储器中的第一处理结果,从而无需再将第一业务请求发送至虚拟网关2,并且也无需等待网络侧的虚拟网关2将第一请求的处理结果发送回数据传输装置1,从而减少了信令时延和信令开销。It can be seen from the above technical solutions that in the data transmission system provided by the present invention, the virtual gateway 2 performs part of the functions of the data transmission device 1, so the main frequency of the CPU of the data transmission device 1 can be reduced, thereby reducing the burden on the data transmission device 1, and The data transmission system of the present invention sets a two-level storage mode in the data transmission device 1, that is, the processing result of the service request is backed up by the flash memory, so that when the same service request sent by the terminal is received again, if random The first processing result in the memory is erased, and the processing result data package in the flash memory is directly loaded to the random access memory. If there is the first processing result in the random access memory, then the first processing result in the random access memory is directly loaded, so that The first service request is sent to the virtual gateway 2, and there is no need to wait for the virtual gateway 2 on the network side to send the processing result of the first request back to the data transmission device 1, thereby reducing signaling delay and signaling overhead.

本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above method embodiments can be completed by program instructions and related hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above-mentioned method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting 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 is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.

Claims (8)

1. a data transmission method, is characterized in that, comprising:
Receive that virtual gateway sends to the first result after the first service request process, and described first result is stored to random asccess memory, described first service request is that terminal sends;
The first result in described random asccess memory is backed up in flash memory;
If receive the first service request that described terminal sends again, then judge in described random asccess memory, whether there is described first result, if judged result is no, then the first result in described flash memory is loaded on described random asccess memory;
Read the first result in described random asccess memory, and process according to described first result.
2. data transmission method according to claim 1, is characterized in that,
If judge there is described first result in described random asccess memory, then read the first result in described random asccess memory, and process according to described first result.
3. data transmission method according to claim 1, is characterized in that, described first result comprises at least one in following result: the mac address table corresponding with the first business, IP address assignment table, routing table, Qos Policy Table.
4. the data transmission method according to any one of claim 1-3, is characterized in that, receive virtual gateway send to the first result after the first service request process before, also comprise:
The first service request that receiving terminal sends;
Send the first service request to virtual gateway, to make described virtual gateway described first service request processed and generate the first result.
5. a data transmission device, is characterized in that, comprising:
Receiver module, for receive that virtual gateway sends to the first result after the first service request process, and described first result is stored to random asccess memory, described first service request is that terminal sends;
Backup module, for backing up in flash memory by the first result in described random asccess memory;
Judge module, for when receiving the first service request that described terminal sends again, judge in described random asccess memory, whether there is described first result, if judged result is no, then the first result in described flash memory is loaded on described random asccess memory;
Read module, for reading the first result in described random asccess memory, and processes according to described first result.
6. data transmission device according to claim 5, it is characterized in that, described read module also for when judging there is described first result in described random asccess memory, then reads the first result in described random asccess memory, and processes according to described first result.
7. data transmission device according to claim 5, is characterized in that,
Described receiver module, for the first service request that receiving terminal sends;
Also comprise:
Sending module, for sending the first service request to virtual gateway, to process described first service request to make described virtual gateway and generating the first result.
8. a data transmission system, it is characterized in that, comprise as arbitrary in claim 5-7 as described in data transmission device and virtual gateway, the first service request that described virtual gateway sends for receiving described data transmission device, and described first service request is processed, generate the first result, and described first result is sent to described data transmission device.
CN201510564519.7A 2015-09-07 2015-09-07 Data transmission method, device and system Active CN105119829B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510564519.7A CN105119829B (en) 2015-09-07 2015-09-07 Data transmission method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510564519.7A CN105119829B (en) 2015-09-07 2015-09-07 Data transmission method, device and system

Publications (2)

Publication Number Publication Date
CN105119829A true CN105119829A (en) 2015-12-02
CN105119829B CN105119829B (en) 2018-11-09

Family

ID=54667724

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510564519.7A Active CN105119829B (en) 2015-09-07 2015-09-07 Data transmission method, device and system

Country Status (1)

Country Link
CN (1) CN105119829B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109088867A (en) * 2018-08-08 2018-12-25 浙江天地人科技有限公司 A method of reducing data and uploads the connection frequency

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1713139A (en) * 2004-06-24 2005-12-28 华为技术有限公司 Realization and maintainment for running mode of preventing apparatus
CN101673229A (en) * 2008-09-10 2010-03-17 创惟科技股份有限公司 Storage system and method for automatically backing up storage data of flash memory
CN101969407A (en) * 2010-11-03 2011-02-09 中国电信股份有限公司 Home gateway based storage service method and storage service device
US20130173797A1 (en) * 2011-12-30 2013-07-04 Juniper Networks Inc. Cloud based customer premises equipment
CN103973834A (en) * 2014-05-12 2014-08-06 重庆邮电大学 Domain name resolution (DNS) acceleration method and device based on home gateway
US8887145B2 (en) * 2010-07-02 2014-11-11 Fujitsu Limited Storage device and configuration-information storing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1713139A (en) * 2004-06-24 2005-12-28 华为技术有限公司 Realization and maintainment for running mode of preventing apparatus
CN101673229A (en) * 2008-09-10 2010-03-17 创惟科技股份有限公司 Storage system and method for automatically backing up storage data of flash memory
US8887145B2 (en) * 2010-07-02 2014-11-11 Fujitsu Limited Storage device and configuration-information storing method
CN101969407A (en) * 2010-11-03 2011-02-09 中国电信股份有限公司 Home gateway based storage service method and storage service device
US20130173797A1 (en) * 2011-12-30 2013-07-04 Juniper Networks Inc. Cloud based customer premises equipment
CN103973834A (en) * 2014-05-12 2014-08-06 重庆邮电大学 Domain name resolution (DNS) acceleration method and device based on home gateway

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
蒋铭;李浩琳;沈成彬;曹敏;: "家庭网关功能虚拟化技术研究", 《电信科学》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109088867A (en) * 2018-08-08 2018-12-25 浙江天地人科技有限公司 A method of reducing data and uploads the connection frequency

Also Published As

Publication number Publication date
CN105119829B (en) 2018-11-09

Similar Documents

Publication Publication Date Title
US20200351204A1 (en) Method, apparatus, and system for load balancing of service chain
US8650326B2 (en) Smart client routing
CN105610632B (en) A kind of virtual network device and related method
CN110784557B (en) Detecting hardware address conflicts in a computer network
JP6342401B2 (en) Layer-2 address management at an access point that can accommodate only three addresses in a network having a relay device
CN110071900A (en) Data sending method and device
CN113625589B (en) Equipment control method and device, electronic equipment and storage medium
CN106095533A (en) Method of server expansion and device
US20200259783A1 (en) Method and apparatus for determining ethernet mac address
CN106533973A (en) Method and system for distributing service message, and equipment
CN118175160B (en) Processing method and device of bare metal server and electronic equipment
CN107046585A (en) Dynamic Host Configuration Protocol server system of selection and device
WO2021190029A1 (en) Method, apparatus and system for realizing carrier grade network address translation
CN111294316B (en) Network isolation method and device based on user-mode protocol stack virtual router
WO2018161795A1 (en) Routing priority configuration method, device, and controller
CN103535015A (en) Management method of public network address resource, terminal control protocol server and client
CN106330492B (en) A kind of method, apparatus and system configuring user equipment forwarding table
WO2017166038A1 (en) Communication method and terminal
CN109819064B (en) Method for communication between modules, operating system module and conference panel
CN113329022B (en) Information processing method of virtual firewall and electronic equipment
CN105119829B (en) Data transmission method, device and system
WO2020048177A1 (en) Set top box management method and apparatus, and device and storage medium
CN114553771A (en) Method for loading virtual router and related equipment
CN110661895A (en) A network address mapping method for a server and a network address mapping device
CN106302838B (en) Domain name system DNS resolution processing 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