[go: up one dir, main page]

CN106789528A - The method and apparatus that many bridges are surfed the Net are realized by kernel - Google Patents

The method and apparatus that many bridges are surfed the Net are realized by kernel Download PDF

Info

Publication number
CN106789528A
CN106789528A CN201611144485.7A CN201611144485A CN106789528A CN 106789528 A CN106789528 A CN 106789528A CN 201611144485 A CN201611144485 A CN 201611144485A CN 106789528 A CN106789528 A CN 106789528A
Authority
CN
China
Prior art keywords
lan
wan
net
kernel
forwarding
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.)
Pending
Application number
CN201611144485.7A
Other languages
Chinese (zh)
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.)
Shanghai Gongjin Communication Technology Co Ltd
Original Assignee
Shanghai Gongjin Communication 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 Shanghai Gongjin Communication Technology Co Ltd filed Critical Shanghai Gongjin Communication Technology Co Ltd
Priority to CN201611144485.7A priority Critical patent/CN106789528A/en
Publication of CN106789528A publication Critical patent/CN106789528A/en
Pending legal-status Critical Current

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
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4604LAN interconnection over a backbone network, e.g. Internet, Frame Relay
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering

Landscapes

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

Abstract

The method that many bridges are surfed the Net is realized by kernel the present invention relates to a kind of, at least two WAN are set up including (1) by router to connect, and bind described at least two WAN connections with least two LAN respectively, described LAN is connected one-to-one corresponding with described WAN;(2) at least two LAN described in are connected with least two computers, and described computer is corresponded with described LAN;(3) the forwarding relation that the LAN connected according to the computer mutually binds with WAN connections, by message bag by the WAN linkup transmits to internet;(4) complete to access outer network service;Also include a kind of device that many bridges online are realized by kernel.Using the method and device, by the binding relationship of LAN and WAN before bridge forwarding, LAN side data message is directly forwarded, it is to avoid the problem that LAN not timings can surf the Net caused by MAC Address drift, be with a wide range of applications.

Description

The method and apparatus that many bridges are surfed the Net are realized by kernel
Technical field
The present invention relates to network communication technology field, more particularly to many bridge login technique fields, specifically refer to one kind and pass through The method and apparatus that kernel realizes many bridge online.
Background technology
In home router, a plurality of bridge WAN connections are placed in same bridge, and the forwarding principle according to bridge, many PC pass through Different bridges access outer nets, and MAC Address can go out drift, and kernel realizes many bridges online, can before bridge forwarding by LAN and The binding relationship of WAN, directly forwards LAN side data message, it is to avoid LAN not timings can surf the Net caused by MAC Address drift Problem.
The content of the invention
The purpose of the present invention is the shortcoming for overcoming above-mentioned prior art, there is provided one kind can realize many bridges by kernel The method and apparatus of online.
To achieve these goals, the present invention has following composition:
This realizes the method that many bridges are surfed the Net by kernel, comprises the following steps:
(1) at least two WAN are set up by router to connect, and by described at least two WAN connections respectively with least Two LAN bindings, at least two described LAN are connected one-to-one corresponding with least two described WAN;
(2) at least two LAN described in are connected with least two computers, described at least two computers with it is described At least two LAN are corresponded;
(3) when each computer is by corresponding WAN connected references outer net, according to the computer connect LAN and The forwarding relation that WAN connections are mutually bound, by message bag by the WAN linkup transmits to internet;
(4) the message bag according to completes to access outer network service.
It is preferred that between described step (3) and described step (2), also including step (2-1):
The relation production Methods forward table that (2-1) is connected according to each LAN with corresponding WAN.
It is preferred that between described step (3) and described step (2), it is further comprising the steps of:
(2-2) judges that the forwarding relation of LAN and WAN connections whether there is, if it is, continuing step (3), otherwise, root The principle forwarded according to bridge is forwarded, and continues step (2-3);
(2-3) searches bridge forward table NF_BR_FORWARD.
Also include a kind of device that many bridges online are realized by kernel, described device includes:
Router, the outer net connection for realizing many bridges simultaneously;
Many bridge on-line modules, for the forwarding relation connected according to LAN and WAN, the WAN linkup transmits are passed through by message bag To internet.
It is preferred that described many bridge on-line modules also include:
Relation forward table generation unit, for the relation production Methods forwarding connected with corresponding WAN according to each LAN Table
Forwarding relation judging unit, the forwarding relation for judging LAN and WAN connections whether there is, if it is, passing through Many bridge on-line modules send message bag, otherwise, according to the principle that bridge is forwarded, are entered by searching bridge forward table NF_BR_FORWARD The forwarding of row message bag.
The method and apparatus that many bridges online are realized by kernel in the invention are employed, LAN was passed through before bridge forwarding With the binding relationship of WAN, LAN side data message is directly forwarded, it is to avoid LAN not timings can surf the Net caused by MAC Address drift Problem, be with a wide range of applications.
Brief description of the drawings
Fig. 1 is the schematic diagram that the method and apparatus that many bridges are surfed the Net are realized by kernel of the invention.
Specific embodiment
In order to more clearly describe technology contents of the invention, carried out with reference to specific embodiment further Description.
This realizes the method that many bridges are surfed the Net by kernel, comprises the following steps:
(1) at least two WAN are set up by router to connect, and by described at least two WAN connections respectively with least Two LAN bindings, at least two described LAN are connected one-to-one corresponding with least two described WAN;
(2) at least two LAN described in are connected with least two computers, described at least two computers with it is described At least two LAN are corresponded;
(3) when each computer is by corresponding WAN connected references outer net, according to the computer connect LAN and The forwarding relation that WAN connections are mutually bound, by message bag by the WAN linkup transmits to internet;
(4) the message bag according to completes to access outer network service.
In a kind of preferably implementation method, between described step (3) and described step (2), also including step (2- 1):
The relation production Methods forward table that (2-1) is connected according to each LAN with corresponding WAN.
In a kind of preferably implementation method, between described step (3) and described step (2), also including following step Suddenly:
(2-2) judges that the forwarding relation of LAN and WAN connections whether there is, if it is, continuing step (3), otherwise, root The principle forwarded according to bridge is forwarded, and continues step (2-3);
(2-3) searches bridge forward table NF_BR_FORWARD.
Also include a kind of device that many bridges online are realized by kernel, described device includes:
Router, the outer net connection for realizing many bridges simultaneously;
Many bridge on-line modules, for the forwarding relation connected according to LAN and WAN, the WAN linkup transmits are passed through by message bag To internet.
In a kind of preferably implementation method, described many bridge on-line modules also include:
Relation forward table generation unit, for the relation production Methods forwarding connected with corresponding WAN according to each LAN Table
Forwarding relation judging unit, the forwarding relation for judging LAN and WAN connections whether there is, if it is, passing through Many bridge on-line modules send message bag, otherwise, according to the principle that bridge is forwarded, are entered by searching bridge forward table NF_BR_FORWARD The forwarding of row message bag.
In a kind of specific embodiment, as shown in figure 1, first step router sets up two bridge WAN connections, respectively WAN1, WAN2, and LAN1, LAN2 are bound respectively, to be hung under LAN1 and hang PC2 under PC1, LAN2;Two PC of second step LAN side are visited simultaneously Outer net is asked, the 3rd step PC1 is accessed by the WAN1 of router, and kernel skips the step of searching bridge forward table NF_BR_FORWARD, According to the binding relationship of LAN and WAN, the bag that PC1 is come is forwarded from WAN1 mouthfuls, while the WAN2 that PC2 passes through router Access, kernel skips the step of searching bridge forward table NF_BR_FORWARD, according to the binding relationship of LAN and WAN, PC2 is come Bag forwarded from WAN2 mouthfuls;4th step completes to access outer network service.
In another specific embodiment, for the forwarding relation without correspondence LAN and WAN, then continue according to bridge The principle of forwarding is forwarded.
The method and apparatus that many bridges online are realized by kernel in the invention are employed, LAN was passed through before bridge forwarding With the binding relationship of WAN, LAN side data message is directly forwarded, it is to avoid LAN not timings can surf the Net caused by MAC Address drift Problem, be with a wide range of applications.
In this description, the present invention is described with reference to its specific embodiment.But it is clear that can still make Various modifications and alterations are without departing from the spirit and scope of the present invention.Therefore, specification and drawings are considered as illustrative And it is nonrestrictive.

Claims (5)

1. it is a kind of that the method that many bridges are surfed the Net is realized by kernel, it is characterised in that described method is comprised the following steps:
(1) at least two WAN are set up by router to connect, and by described at least two WAN connections respectively with least two LAN binds, and at least two described LAN are connected one-to-one corresponding with least two described WAN;
(2) at least two LAN described in are connected with least two computers, described at least two computers with it is described at least Two LAN is corresponded;
(3) when each computer is by corresponding WAN connected references outer net, according to LAN and the WAN that the computer is connected The forwarding relation that connection is mutually bound, by message bag by the WAN linkup transmits to internet;
(4) the message bag according to completes to access outer network service.
2. it is according to claim 1 that the method that many bridges are surfed the Net is realized by kernel, it is characterised in that described step (3) Between described step (2), also including step (2-1):
The relation production Methods forward table that (2-1) is connected according to each LAN with corresponding WAN.
3. it is according to claim 1 that the method that many bridges are surfed the Net is realized by kernel, it is characterised in that described step (3) It is further comprising the steps of between described step (2):
(2-2) judges that the forwarding relation of LAN and WAN connections whether there is, if it is, continue step (3), otherwise, according to bridge The principle of forwarding is forwarded, and continues step (2-3);
(2-3) searches bridge forward table NF_BR_FORWARD.
4. it is a kind of that the device that many bridges are surfed the Net is realized by kernel, it is characterised in that described device includes:
Router, the outer net connection for realizing many bridges simultaneously;
Many bridge on-line modules, for the forwarding relation connected according to LAN and WAN, by message bag by the WAN linkup transmits to mutual Networking.
5. it is according to claim 4 that the device that many bridges are surfed the Net is realized by kernel, it is characterised in that described many bridges online Module also includes:
Relation forward table generation unit, for the relation production Methods forward table connected with corresponding WAN according to each LAN
Forwarding relation judging unit, the forwarding relation for judging LAN and WAN connections whether there is, if it is, passing through many bridges On-line module sends message bag, otherwise, according to the principle that bridge is forwarded, is reported by searching bridge forward table NF_BR_FORWARD The forwarding of text bag.
CN201611144485.7A 2016-12-13 2016-12-13 The method and apparatus that many bridges are surfed the Net are realized by kernel Pending CN106789528A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611144485.7A CN106789528A (en) 2016-12-13 2016-12-13 The method and apparatus that many bridges are surfed the Net are realized by kernel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611144485.7A CN106789528A (en) 2016-12-13 2016-12-13 The method and apparatus that many bridges are surfed the Net are realized by kernel

Publications (1)

Publication Number Publication Date
CN106789528A true CN106789528A (en) 2017-05-31

Family

ID=58876360

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611144485.7A Pending CN106789528A (en) 2016-12-13 2016-12-13 The method and apparatus that many bridges are surfed the Net are realized by kernel

Country Status (1)

Country Link
CN (1) CN106789528A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113660358A (en) * 2021-08-20 2021-11-16 芯河半导体科技(无锡)有限公司 Method for distributing different Ipv6PD prefixes to drop-on equipment by gateway

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1795435A (en) * 2003-04-15 2006-06-28 汤姆森特许公司 Method and apparatus for router port configuration
CN101022384A (en) * 2007-03-12 2007-08-22 杭州华为三康技术有限公司 Method for determining out interface and multi-switch-in wideband router
CN101895589A (en) * 2010-07-26 2010-11-24 杭州华三通信技术有限公司 Wide area network router and method for establishing routing table items therein
US20110182289A1 (en) * 2010-01-22 2011-07-28 Gopalakrishnan Raman Aggregating Multiple Wireless Channels
CN102497369A (en) * 2011-12-12 2012-06-13 深圳市共进电子股份有限公司 Routing method for multi-wide area network (WAN) connection in voice over Internet phone (VOIP) voice communication system
CN103095608A (en) * 2013-01-07 2013-05-08 深圳市共进电子股份有限公司 Delegation forwarding method for domain name system (DNS) data package
CN103166854A (en) * 2011-12-12 2013-06-19 深圳市共进电子股份有限公司 Local area network (LAN) and wide area network (WAN) service binding method and service binding system
CN103327129A (en) * 2012-03-21 2013-09-25 深圳市共进电子股份有限公司 Domain name analyticmethod for multi-WAN-port gateway device
CN103716181A (en) * 2013-12-13 2014-04-09 上海斐讯数据通信技术有限公司 LAN_WAN virtual channel implementation method under gateway device routing mode
CN103812746A (en) * 2012-11-14 2014-05-21 深圳市共进电子股份有限公司 Bridging device based on linux operation system and communication method thereof
CN103841084A (en) * 2012-11-23 2014-06-04 中国电信股份有限公司 WAN connection query method, gateway and terminal management device and system
CN104054306A (en) * 2011-12-05 2014-09-17 适应性频谱和信号校正股份有限公司 System and method for traffic aggregation over multiple WAN backhaul and multiple disparate LAN networks
CN104094564A (en) * 2011-12-05 2014-10-08 适应性频谱和信号校正股份有限公司 System and method for load balancing traffic over multiple WAN backhaul and multiple disparate LAN networks

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1795435A (en) * 2003-04-15 2006-06-28 汤姆森特许公司 Method and apparatus for router port configuration
CN101022384A (en) * 2007-03-12 2007-08-22 杭州华为三康技术有限公司 Method for determining out interface and multi-switch-in wideband router
US20110182289A1 (en) * 2010-01-22 2011-07-28 Gopalakrishnan Raman Aggregating Multiple Wireless Channels
CN101895589A (en) * 2010-07-26 2010-11-24 杭州华三通信技术有限公司 Wide area network router and method for establishing routing table items therein
CN104094564A (en) * 2011-12-05 2014-10-08 适应性频谱和信号校正股份有限公司 System and method for load balancing traffic over multiple WAN backhaul and multiple disparate LAN networks
CN104054306A (en) * 2011-12-05 2014-09-17 适应性频谱和信号校正股份有限公司 System and method for traffic aggregation over multiple WAN backhaul and multiple disparate LAN networks
CN103166854A (en) * 2011-12-12 2013-06-19 深圳市共进电子股份有限公司 Local area network (LAN) and wide area network (WAN) service binding method and service binding system
CN102497369A (en) * 2011-12-12 2012-06-13 深圳市共进电子股份有限公司 Routing method for multi-wide area network (WAN) connection in voice over Internet phone (VOIP) voice communication system
CN103327129A (en) * 2012-03-21 2013-09-25 深圳市共进电子股份有限公司 Domain name analyticmethod for multi-WAN-port gateway device
CN103812746A (en) * 2012-11-14 2014-05-21 深圳市共进电子股份有限公司 Bridging device based on linux operation system and communication method thereof
CN103841084A (en) * 2012-11-23 2014-06-04 中国电信股份有限公司 WAN connection query method, gateway and terminal management device and system
CN103095608A (en) * 2013-01-07 2013-05-08 深圳市共进电子股份有限公司 Delegation forwarding method for domain name system (DNS) data package
CN103716181A (en) * 2013-12-13 2014-04-09 上海斐讯数据通信技术有限公司 LAN_WAN virtual channel implementation method under gateway device routing mode

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113660358A (en) * 2021-08-20 2021-11-16 芯河半导体科技(无锡)有限公司 Method for distributing different Ipv6PD prefixes to drop-on equipment by gateway
CN113660358B (en) * 2021-08-20 2023-06-20 芯河半导体科技(无锡)有限公司 Method for gateway to allocate different IPv6PD prefixes for down-hanging equipment

Similar Documents

Publication Publication Date Title
CN107342952B (en) Service link selection control method and device
CN104219340B (en) A kind of arp reply Proxy Method and device
Kim et al. Developing a cost-effective OpenFlow testbed for small-scale Software Defined Networking
CN102377640B (en) Message processing apparatus, message processing method and preprocessor
CN103401800B (en) A kind of balancing link load method and apparatus
CN101388800B (en) Method, device and system for pressed test to network performance of server
CN102891802B (en) Data distribution method, mobile terminal and data distribution system
CN104917838B (en) A kind of realization method and system of redirection of router
CN105743684B (en) The configuration method and router of router under a kind of ap mode
CN109314664B (en) Zombie main control machine discovery equipment and method
CN104780088A (en) Service message transmission method and equipment
CN104935521B (en) For realizing the Whole load equalizing method and server of mixed scheduling
CN103309877A (en) Method and device for cross-domain communication and full-duplex communication
CN105122741A (en) Method and apparatus for controlling service chain of service flow
CN103516567A (en) Method and system for equipment discovery and server
CN104660597A (en) Three-layer authentication method and device as well as three-layer authentication exchanger
CN107659930A (en) A kind of AP connection control methods and device
CN107332857A (en) A kind of network data transmission method, device, system and storage medium
CN104954415B (en) Handle the method and device of HTTP request
CN104780231B (en) Double stack application access method and apparatus
CN106789528A (en) The method and apparatus that many bridges are surfed the Net are realized by kernel
CN104509066B (en) A kind of method and the network equipment, management server for accessing network
CN104735174B (en) A kind of implementation method and device of HTTP Transparent Proxies
CN103188154B (en) A kind of method of network address translation and board
CN102123153B (en) Method, device and system for authenticating IPv4/IPv6 (internet protocol version 4/internet protocol version 6) dual-stack host

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170531

RJ01 Rejection of invention patent application after publication