CN107948028A - The system for accessing internet without source IP based on the gateway of bridge mode - Google Patents

The system for accessing internet without source IP based on the gateway of bridge mode Download PDF

Info

Publication number
CN107948028A
CN107948028A CN201711341987.3A CN201711341987A CN107948028A CN 107948028 A CN107948028 A CN 107948028A CN 201711341987 A CN201711341987 A CN 201711341987A CN 107948028 A CN107948028 A CN 107948028A
Authority
CN
China
Prior art keywords
internet
gateway
data
source
terminal
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
CN201711341987.3A
Other languages
Chinese (zh)
Other versions
CN107948028B (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.)
Chengdu Wangding Science & Technology Co Ltd
Original Assignee
Chengdu Wangding Science & Technology 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 Chengdu Wangding Science & Technology Co Ltd filed Critical Chengdu Wangding Science & Technology Co Ltd
Priority to CN201711341987.3A priority Critical patent/CN107948028B/en
Publication of CN107948028A publication Critical patent/CN107948028A/en
Application granted granted Critical
Publication of CN107948028B publication Critical patent/CN107948028B/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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • H04L12/2858Access network architectures
    • H04L12/2859Point-to-point connection between the data network and the subscribers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Landscapes

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

Abstract

The invention discloses a kind of system for accessing internet without source IP based on the gateway of bridge mode, including data acquisition module, for monitoring network interface, obtains terminal network port communications data, obtains the IP available of dial-up terminal network interface;Data processing module:Extract the Session ID of can surf the Internet IP, MAC, PPP;Memory module:Store data packet;Data transmission blocks:Data packet is sent to Target IP from specified interface;Data reception module:Receive the data that Target IP returns.The present invention can realize that gateway accesses internet without source IP.

Description

The system for accessing internet without source IP based on the gateway of bridge mode
Technical field
The present invention relates to network communication field, and in particular to is without what source IP accessed internet based on the gateway of bridge mode System.
Background technology
Internet(English:internet), also known as Internet or transliteration internet, internet are networks with network it Between the huge network that is concatenated into, these networks are connected with one group of general agreement, form single huge international networks in logic Network.This method for being linked together computer network mutually can be referred to as " network interconnection ", and covering is developed on the basis of this Global global internetwork claims " internet ", is " interconnecting network together ".Internet is not equal to ten thousand dimensions Net(World Wide Web), WWW is the global system built and interlinked based on hypertext, and is interconnection One of service that net can be provided.Individually lift internet, be typically all internet or access certain network therein, sometimes by it Referred to as net or network(the Net)It can communicate, social, internet trade.
The access of internet refers to that two computers or multiple stage computers are connected through the internet to other computer or biography Computer of the transmission of data to other side.Various chat tools on internet, online game, are all internet during use Access.
The broadband access network business that administration department of company applies to China Netcom is open-minded.Network administrator is needed one Common computer is connected with gateway, and broadband connection is created in Windows, so that this computer is able to access that Internet。
Virtual dial-up is carried out using PPP over Ethernet (PPPoE) agreement, is verified after dialing by authentication server The username and password of user, is verified the number circuit for just setting up a high speed afterwards, and corresponding for user's distribution Dynamic IP address.When network administrator creates broadband connection in Windows, system can install PPPoE associations automatically View.Username and password is provided by China Netcom, and password allows user voluntarily to change.
It can to sum up obtain, to realize that the access of internet must have the visit that an IP address could realize internet at present Ask, for can not then be accessed as this kind of equipment for not possessing IP address of gateway itself.
The content of the invention
Visited it is an object of the invention to overcome the deficiencies of the prior art and provide a kind of based on the gateway of bridge mode without source IP The system for asking internet, it is possible to achieve gateway accesses internet without source IP.
The purpose of the present invention is what is be achieved through the following technical solutions:
The system for accessing internet without source IP based on the gateway of bridge mode, including with lower module:
Data acquisition module, for monitoring network interface, obtains terminal network port communications data, obtains the IP available of dial-up terminal network interface;
Data processing module:Extract the Session ID of can surf the Internet IP, MAC, PPP;
Memory module:Store data packet;
Data transmission blocks:Data packet is sent to Target IP from specified interface;
Data reception module:Receive the data that Target IP returns.
Further, the data packet includes IP layers, PPP layers and Ethernet frame head;The IP layers of encapsulation DIP and SIP, Wherein DIP is Target IP, and SIP is the IP that surfs the Internet of dial-up terminal;The PPP layers of encapsulation Session ID and protocol fields; The Ethernet frame head encapsulates DMAC, SMAC, and wherein DMAC refers to Destination MAC, and SMAC refers to user equipment MAC i.e. dial-up terminal MAC。
Further, the data packet further includes transport layer and application layer, the transport layer encapsulation Transmission Control Protocol field with And udp protocol field;The application layer encapsulates corresponding function field according to specific processing business.
Further, the terminal network interface is LAN mouthfuls.
Further, the interface specified is optical fiber port or LAN mouthfuls.
Further, the dial-up terminal can be router, computer, intelligent terminal.
Further, the Target IP refers to the IP of accessed request point.
The beneficial effects of the invention are as follows:Surfed the Internet first by access terminals dial-up success in the present invention, then monitor network interface Communication data, extraction dial-up terminal MAC, connection side MAC(Destination MAC i.e. in the present invention), PPP Session ID, into And data packet is constructed, data packet is sent directly to Target IP from gateway, then dial-up terminal IP receives the number that Target IP returns According to so then foring gateway to Target IP and Target IP to the transmission path of dial-up terminal IP, wherein Target IP is to dialling The transmission path of terminal IP is effective complete networking access path, and the path is necessary crosses gateway node, so realize Gateway node accesses the purpose of internet, gateway itself and unallocated IP during whole realization, it is achieved thereby that gateway is in nothing Internet is accessed in the case of source IP.
Brief description of the drawings
Fig. 1 is the block schematic illustration of the present invention;
Fig. 2 is the structure diagram of data packet of the present invention;
Fig. 3 is the schematic diagram that gateway of the present invention accesses interconnection without source IP.
Embodiment
Technical scheme is described in further detail below in conjunction with the accompanying drawings, but protection scope of the present invention is not limited to It is as described below.
As shown in Figs. 1-3,
The system for accessing internet without source IP based on the gateway of bridge mode, including with lower module:
Data acquisition module, for monitoring network interface, obtains terminal network port communications data, obtains the IP available of dial-up terminal network interface;
Data processing module:Extract the Session ID of can surf the Internet IP, MAC, PPP;
Memory module:Store data packet;
Data transmission blocks:Data packet is sent to Target IP from specified interface;
Data reception module:Receive the data that Target IP returns.
Further, the data packet includes IP layers, PPP layers and Ethernet frame head;The IP layers of encapsulation DIP and SIP, Wherein DIP is Target IP, and SIP is the IP that surfs the Internet of dial-up terminal;The PPP layers of encapsulation Session ID and protocol fields; The Ethernet frame head encapsulates DMAC, SMAC, and wherein DMAC refers to Destination MAC, and SMAC refers to user equipment MAC i.e. dial-up terminal MAC。
Further, the data packet further includes transport layer and application layer, the transport layer encapsulation Transmission Control Protocol field with And udp protocol field;The application layer encapsulates corresponding function field according to specific processing business.
Further, the terminal network interface is LAN mouthfuls.
Further, the interface specified is optical fiber port or LAN mouthfuls.
Further, the dial-up terminal can be router, computer, intelligent terminal.
Further, the Target IP refers to the IP of accessed request point.
The specific workflow of the system is as follows:
Data acquisition:Network interface is monitored, obtains terminal network port communications data;
Data parse:Extract the Session ID of can surf the Internet IP, MAC, PPP;
Construct data packet:Utilize the data configuration data packet in data analyzing step;
Send data packet:The data packet of construction is sent to Target IP from specified interface;
Data receiver:Receive the data that Target IP returns.
Business function processing:Corresponding business processing is carried out according to the function field of application layer.
Its operation principle is as follows:
Dial-up terminal is dialled up on the telephone, and can access internet after dial-up success, soft motoring gateway optical fiber port communication datas, And the Session ID of MAC, PPP are extracted, there are up path A → B of internet access between dial-up terminal and internet, And downlink path B ' → A ', soft obtain the Session of optical fiber port communication data extraction MAC, PPP by up path A → B ID, and the internet address that data packet needs to Target IP to access, the data of Target IP return are occurred by C points in A → B Gateway is transmitted to by downlink path B ' → A ', i.e., gateway puts the data that interception Target IP returns from C ' so that establish C → B → The internet access path of B ' → C ', i.e., established the path of gateway access internet based on bridge Law, it is passive to realize gateway IP accesses internet.
【Embodiment 1】
A kind of gateway velocity-measuring system for accessing internet without source IP based on the gateway of bridge mode, the dial-up terminal in the present embodiment For laptop.
The system includes:
Data acquisition module, for monitoring network interface, obtains terminal network port communications data, obtains the IP available of dial-up terminal network interface;
Data processing module:Extract the Session ID of can surf the Internet IP, MAC, PPP;
Memory module:Data packet is stored, data packet includes IP layers, PPP layers and Ethernet frame head, transport layer and application layer, number It is as follows according to the concrete structure of bag:
IP layers, encapsulate IP and necessary default field that network speed test point IP and laptop are distributed;
PPP layers, encapsulate the Session ID+ protocol fields of PPP;
Ethernet frame head, encapsulates available MAC and network speed the test point MAC of notebook;
Transport layer:Encapsulate Transmission Control Protocol field or udp protocol field;
Application layer:Field of the encapsulation with network speed speed measuring function;
Data transmission blocks:Data packet is sent to the IP to test the speed to needs from specified interface;
Data reception module:Receive the data for needing the IP to test the speed to return.
By above-mentioned software configuration in a gateway, and passage path C → B → B ' → C ' obtains the net that internet is uploaded and downloaded Speed, so as to fulfill testing the speed for internet, concrete function realization is the function field by changing application layer in data packet, by the work( Energy field is packaged into the function field for obtaining internet network speed, so as to obtain the real-time network speed of internet, the advantage is that:Tradition Network speed test be all based on measuring using APP in terminal, the result measured is actually the network speed of the terminal, but together The possibility more than one user connected under one gateway, so that the inaccuracy that network speed measures is caused, using mutual in the present invention Networking access method can measure network speed from " source " of gateway, and the measurement result is without any loss, its measurement result is more Accurately.
【Embodiment 2】
A kind of gateway speed-measuring method for accessing internet without source IP based on the gateway of bridge mode, the dial-up terminal in the present embodiment For router.
First, software is built using the method for accessing internet without source IP based on the gateway of bridge mode, which possesses:
Data acquisition module, for monitoring network interface, obtains terminal network port communications data, obtains the IP available of dial-up terminal network interface;
Data processing module:Extract Session ID, the MAC of can surf the Internet IP, PPP;
Memory module:Data packet is stored, data packet includes IP layers, PPP layers and Ethernet frame head, transport layer and application layer, number It is as follows according to the concrete structure of bag:
IP layers, encapsulate IP and necessary default fields that network speed test point IP and laptop are distributed;
PPP layers, encapsulate the Session ID+ protocol fields of PPP;
Ethernet frame head, encapsulates available MAC and network speed the test point MAC of notebook;
Transport layer:Encapsulate Transmission Control Protocol field or udp protocol field;
Application layer, encapsulates ICMP agreements(Internet Control Message Protocol, Internet control messages association View.It is a sub-protocol of TCP/IP protocol suite, for transmitting control message between IP hosts, router.)PING work( The packets fields of energy;
Data transmission blocks:Data packet is sent to the IP for the server for needing to respond from specified interface.
Data reception module:Receive the response that object server returns.
By above-mentioned software configuration in a gateway, and passage path C → B → B ' → C ' obtains the net that internet is uploaded and downloaded Speed, so as to fulfill the PING functions of internet, concrete function realization is the function field by changing application layer in data packet, will The function field is packaged into ICMP echo requests, and obtains the ICMP Echo Replies of target, so as to obtain PING time delays.
The above is only the preferred embodiment of the present invention, it should be understood that the present invention is not limited to described herein Form, is not to be taken as the exclusion to other embodiment, and can be used for various other combinations, modification and environment, and can be at this In the text contemplated scope, it is modified by the technology or knowledge of above-mentioned teaching or association area.And those skilled in the art institute into Capable modifications and changes do not depart from the spirit and scope of the present invention, then all should be in the protection domain of appended claims of the present invention It is interior.

Claims (7)

1. the system of internet is accessed without source IP based on the gateway of bridge mode, it is characterised in that including with lower module:
Data acquisition module, for monitoring network interface, obtains terminal network port communications data, obtains the IP available of dial-up terminal network interface;
Data processing module:Extract the Session ID of can surf the Internet IP, MAC, PPP;
Memory module:Store data packet;
Data transmission blocks:Data packet is sent to Target IP from specified interface;
Data reception module:Receive the data that Target IP returns.
2. the system according to claim 1 for accessing internet without source IP based on the gateway of bridge mode, it is characterised in that: The data packet includes IP layers, PPP layers and Ethernet frame head;The IP layers of encapsulation DIP and SIP, wherein DIP is Target IP, SIP is the IP that surfs the Internet of dial-up terminal;The PPP layers of encapsulation Session ID and protocol fields;The Ethernet frame head envelope DMAC, SMAC are filled, wherein DMAC refers to Destination MAC, and SMAC refers to user equipment MAC i.e. dial-up terminal MAC.
3. the system according to claim 2 for accessing internet without source IP based on the gateway of bridge mode, it is characterised in that: The data packet further includes transport layer and application layer, the transport layer encapsulation Transmission Control Protocol field and udp protocol field;Institute State application layer and corresponding function field is encapsulated according to specific processing business.
4. the system according to claim 1 for accessing internet without source IP based on the gateway of bridge mode, it is characterised in that: The terminal network interface is LAN mouthfuls.
5. the system according to claim 1 for accessing internet without source IP based on the gateway of bridge mode, it is characterised in that: The interface specified is optical fiber port or LAN mouthfuls.
6. the system according to claim 1 for accessing internet without source IP based on the gateway of bridge mode, it is characterised in that: The dial-up terminal can be router, computer, intelligent terminal.
7. the system according to claim 1 for accessing internet without source IP based on the gateway of bridge mode, it is characterised in that: The Target IP refers to the IP of accessed request point.
CN201711341987.3A 2017-12-14 2017-12-14 Gateway passive IP access internet system based on bridge mode Active CN107948028B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711341987.3A CN107948028B (en) 2017-12-14 2017-12-14 Gateway passive IP access internet system based on bridge mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711341987.3A CN107948028B (en) 2017-12-14 2017-12-14 Gateway passive IP access internet system based on bridge mode

Publications (2)

Publication Number Publication Date
CN107948028A true CN107948028A (en) 2018-04-20
CN107948028B CN107948028B (en) 2020-10-23

Family

ID=61944209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711341987.3A Active CN107948028B (en) 2017-12-14 2017-12-14 Gateway passive IP access internet system based on bridge mode

Country Status (1)

Country Link
CN (1) CN107948028B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113747533A (en) * 2021-08-16 2021-12-03 湖南恒茂高科股份有限公司 Automatic router link switching method and dual-frequency router

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070198897A1 (en) * 2002-03-22 2007-08-23 Schroeder Jacob J Method and apparatus to perform error control
CN101146062A (en) * 2006-09-13 2008-03-19 中兴通讯股份有限公司 A gateway dialing method combining bridge forward
CN101202720A (en) * 2006-12-15 2008-06-18 中国电信股份有限公司 Method for establishing gateway equipment and method for processing data of gateway equipment
CN102594635A (en) * 2012-02-15 2012-07-18 中国联合网络通信集团有限公司 Home-gateway-based terminal access method and system, and home gateway

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070198897A1 (en) * 2002-03-22 2007-08-23 Schroeder Jacob J Method and apparatus to perform error control
CN101146062A (en) * 2006-09-13 2008-03-19 中兴通讯股份有限公司 A gateway dialing method combining bridge forward
CN101202720A (en) * 2006-12-15 2008-06-18 中国电信股份有限公司 Method for establishing gateway equipment and method for processing data of gateway equipment
CN102594635A (en) * 2012-02-15 2012-07-18 中国联合网络通信集团有限公司 Home-gateway-based terminal access method and system, and home gateway

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113747533A (en) * 2021-08-16 2021-12-03 湖南恒茂高科股份有限公司 Automatic router link switching method and dual-frequency router
CN113747533B (en) * 2021-08-16 2024-04-16 湖南恒茂高科股份有限公司 Automatic switching method of router link and dual-frequency router

Also Published As

Publication number Publication date
CN107948028B (en) 2020-10-23

Similar Documents

Publication Publication Date Title
CN108234235B (en) Method, network device and computer-readable storage medium for data monitoring
CN104010049B (en) Ethernet ip message encapsulating method and Network Isolation and DHCP implementation methods based on SDN
CN103379009B (en) SSL VPN communication method based on data link layers
Fox et al. Internet infrastructure: networking, web services, and cloud computing
CN101227344B (en) Method for simulating L2TP dialing
Merlo et al. A comparative performance evaluation of DNS tunneling tools
CN105376299A (en) A network communication method, an apparatus and a network attached storage apparatus
US20120177049A1 (en) Method and system for implementing network intercommunication
CN102739684A (en) Portal authentication method based on virtual IP address, and server thereof
CN106657035B (en) A kind of network message transmission method and device
Taylor et al. Whole home proxies: Bringing enterprise-grade security to residential networks
CN206313803U (en) A kind of router for realizing network game acceleration
CN202094935U (en) Dynamic IP network based remote switch signal control system
CN102821020B (en) Method for transparent transmission of virtual private network (VPN) communication through copy and transfer of internet protocol (IP) packet
CN104601944B (en) Method for connecting to media stream providing device and media stream system
CN107786536B (en) TCP reverse port penetration method and system thereof
WO2021052280A1 (en) Network measurement system and method, device and storage medium
CN107948028A (en) The system for accessing internet without source IP based on the gateway of bridge mode
Vrijders et al. Reducing the complexity of virtual machine networking
CN108111376A (en) The method for accessing internet without source IP based on the gateway of bridge mode
Benomar et al. A cloud-based and dynamic dns approach to enable the web of things
CN104994113B (en) A kind of ADSL wireless routers and the method and system for realizing forced gate under bridge mode using the router
Jain et al. Performance Comparison Between Different Tunneling Techniques Using Different Routing Protocols
CN104426735A (en) Method and device for establishing VPN (Virtual Private Network) connection
CN108183850A (en) Suitable for packet encapsulation method of the gateway of bridge mode without source IP access internet

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A System for Gateway Passive IP Access to the Internet Based on Bridge Mode

Effective date of registration: 20230329

Granted publication date: 20201023

Pledgee: Chengdu Rural Commercial Bank Co.,Ltd. Chenghua sub branch

Pledgor: CHENGDU WANGDING SCIENCE & TECHNOLOGY Co.,Ltd.

Registration number: Y2023980036506

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Granted publication date: 20201023

Pledgee: Chengdu Rural Commercial Bank Co.,Ltd. Chenghua sub branch

Pledgor: CHENGDU WANGDING SCIENCE & TECHNOLOGY Co.,Ltd.

Registration number: Y2023980036506

PC01 Cancellation of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Gateway Passive IP Access Internet System Based on Bridge Mode

Granted publication date: 20201023

Pledgee: Chengdu Rural Commercial Bank Co.,Ltd. Chenghua sub branch

Pledgor: CHENGDU WANGDING SCIENCE & TECHNOLOGY Co.,Ltd.

Registration number: Y2024980010991

PE01 Entry into force of the registration of the contract for pledge of patent right