Method and device for achieving gateway NAPT function based on middleware

A middleware and gateway technology, which is applied in the field of communication, can solve problems such as lack of functionality, poor scalability of NAPT functions, and large coupling degree of NAPT functions, and achieve the effect of reducing coupling degree and good function scalability

Inactive Publication Date: 2014-08-27
BEIHANG UNIV
View PDF7 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The defect of the first and third methods is that the NAPT function is highly coupled with the operating system and the underlying driver. The defect of the second method is that the NAPT function has poor scalability.
[0004] In the prior art, there is a lack of a middleware-based method for realizing the gateway NAPT function that can overcome the deficiencies of the NAPT function in the kernel mode, the user mode, and the underlying driver at the same time

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for achieving gateway NAPT function based on middleware
  • Method and device for achieving gateway NAPT function based on middleware
  • Method and device for achieving gateway NAPT function based on middleware

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The embodiment of the present invention is applicable to the method for realizing the NAPT function in the gateway device, specifically adding a middleware between the kernel operating system and the underlying driver of the gateway device, and realizing the NAPT function by the middleware, figure 1 The flow chart of the method for implementing the gateway NAPT function based on middleware provided by the embodiment of the present invention, the specific steps are as follows:

[0024] Step S101, the middleware obtains the data packet, and judges whether the data packet is an IP data packet;

[0025] The middleware obtains the data packets through the third-party software function packages Libpcap and Libnet. The third-party software function packages Libpcap and Libnet are used to obtain the data packets entering the gateway device from the underlying driver. The middleware filters the obtained data packets and selects the target The MAC is the data packet of the gatewa...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention provides a method and device for achieving a gateway NAPT function based on middleware. The method comprises the steps that a data package is obtained by the middleware; if the data package is an IP data package and the IP data package carries TCP messages or UDP messages, the middleware is used for inquiring an NAPT table; if the corresponding relation of a source IP and a source port number does not exist in the NAPT table, the middleware is used for modifying the source IP and the source port number in the IP data package respectively, and the source IP, the source port number, the modified source IP and the modified source port number are stored in the NAPT table. According to the embodiment of the method and device for achieving the gateway NAPT function based on the middleware, the NAPT function is achieved through the middleware, and compared with the mode that the NAPT function is achieved in a kernel state and under bottom driving, the coupling degree is lowered; compared with the mode that the NAPT function is achieved in a user state, the middleware has good function expandability, and the NAPT function can be adjusted.

Description

technical field [0001] Embodiments of the present invention relate to communication technologies, and in particular to a method and device for implementing a gateway NAPT function based on middleware. Background technique [0002] Network Address Port Translation (NAPT for short) is a translation technology that maps multiple private internal IP addresses to a legal public IP address, that is, <internal address + internal port> and <external address + external port > conversion between. The access gateway device generally has this NAPT function, which is used for the interconnection and intercommunication between the LAN and the WAN. [0003] Existing methods for realizing the NAPT function are mainly divided into three categories: one is to modify the protocol stack of the operating system in the kernel mode to realize the NAPT function, which has the advantages of fast processing speed and high reliability; the other is to implement the NAPT function in the us...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/12
Inventor 刘锋陈旭陈凌鹏徐桢刘凯
Owner BEIHANG UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products