CN1264311C - Bridge connecting method of ethernet carrying point-to-point protocol and network protocol of ethernet protocol - Google Patents

Bridge connecting method of ethernet carrying point-to-point protocol and network protocol of ethernet protocol Download PDF

Info

Publication number
CN1264311C
CN1264311C CN 03137408 CN03137408A CN1264311C CN 1264311 C CN1264311 C CN 1264311C CN 03137408 CN03137408 CN 03137408 CN 03137408 A CN03137408 A CN 03137408A CN 1264311 C CN1264311 C CN 1264311C
Authority
CN
China
Prior art keywords
packet
heading
pppoe
ethernet
protocol
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.)
Expired - Fee Related
Application number
CN 03137408
Other languages
Chinese (zh)
Other versions
CN1455559A (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.)
Harbour Networks Holdings Ltd
Original Assignee
Harbour Networks Holdings 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 Harbour Networks Holdings Ltd filed Critical Harbour Networks Holdings Ltd
Priority to CN 03137408 priority Critical patent/CN1264311C/en
Publication of CN1455559A publication Critical patent/CN1455559A/en
Application granted granted Critical
Publication of CN1264311C publication Critical patent/CN1264311C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a bridge connecting method for Ethernet carrying point-to-point protocols and network protocols of Ethernet protocols, which belongs to the field of computer network communication. The present invention comprises the method that a sub-module for bridging IP over PPPoE and IP over Ethernet is arranged in a data packet forward module, and the sub-module operates on the second layer of a network seven layer protocol. If IP over PPPoE data packets are input, the data packet forward module can output IP over Ethernet data packets for corresponding; if the IP over Ethernet data packets are input, the data packet forward module can output the IP over PPPoE data packets, so link layer devices which have no IP layer functions can directly terminate PPPOE SESSION. The technique can complete the bridging from the IP over PPPoE to the IP over Ethernet on a two-layer device, and therefore, the work which needs to be completed by BRAS can be realized on the common two-layer devices. The technique can effectively reduce device cost for supporting PPPOE.

Description

The Internet protocol bridging method of Ethernet bearing point-to-point protocol and Ethernet protocol
Affiliated technical field
The invention belongs to computer network communication field, be specifically related to a kind of bridging method of on two-layer equipment, finishing PPPOE carrying Internet protocol (IP over PPPOE) to Ethernet bearing Internet protocol (IP overEthernet).
Background technology
Along with development of internet technology, broadband access has at present become a kind of leading user mode access.Broadband access generally comprises ADSL, VDSL, modes such as Ethernet.According to the needs of operator's operation, these all modes all need broadband dialing and the process that authenticates.Current this broadband dialing is Ethernet bearing point-to-point protocol (PPPOE) with the main mode of authentication.PPPOE is divided into two processes, authentication authorization and accounting process and data transmission procedure.Wherein generally adopt the form of PPPOE carrying Internet protocol (IP over PPPOE) in data transmission procedure, what be used for process IP over PPPOE is an edge router, is also referred to as BAS Broadband Access Server (BRAS).This equipment operation is on the level of the 3rd a layer of network layer (IP layer) of network seven layer protocols of ISO (International Standards Organization) regulation.Therefore, the network equipment that only has IP layer and the above function of IP layer at present could be handled PPPOE, termination PPPOE SESSION.Because the processing level height of BRAS equipment makes that its design is complicated, price is high.
Summary of the invention
The object of the invention: the Ethernet bearing point-to-point protocol of finishing PPPOE SESSION on a kind of two-layer equipment and the Internet protocol bridging method of Ethernet protocol are provided.
Technology contents of the present invention: the Internet protocol bridging method of a kind of Ethernet bearing point-to-point protocol and Ethernet protocol, the submodule of one bridge joint IP over PPPOE and IP overEthernet is set in the packet forwarding module, operate on the second layer of network seven layer protocols, submodule judges at first whether the packet of Ethenet encapsulation is the IP packet, maybe when detecting the packet input of PPPOE, whether the packet of judging the PPPOE encapsulation is the IP packet, during if not the IP packet, do not handle;
Packet as Ethenet encapsulation is the IP packet, and submodule changes the Ethemet heading protocol type of packet into the type of data packet of PPPOE, adding PPPOE heading and PPP heading between Ethernet heading and IP message;
When detecting the packet input of PPPOE, packet as the PPPOE encapsulation is the IP packet, submodule changes the Ethernet heading protocol type field of the IP packet of PPPOE encapsulation into IP bag type, deletion PPPOE heading and PPP heading directly are put into Ethenet heading back with the part that belongs to the IP message in the data message.
The input of submodule process IP over PPPOE data further comprises:
(1) when detecting the packet input of PPPOE, judge at first whether the packet of PPPOE encapsulation is the IP packet, if not the IP packet, do not handle, the IP packet enters 2 in this way;
(2) judge whether the IP packet is multicast packets, if not multicast packets, keep the Ethernet heading source mac field and the purpose mac field of PPPOE packet constant, change Ethernet heading protocol type field into IP bag type, delete PPPOE heading and PPP heading, the part that belongs to the IP message in the data message directly is put into the Ethenet heading after, data processed is forwarded to output port, if multicast packets enters 3;
(3) the multicast IP address according to multicast packets generates corresponding multicast mac address, and the purpose mac address field of replacing the Ethernet heading of PPPOE packet with this multicast mac address, changing Ethernet heading protocol type field is IP bag type, remove PPPOE heading and PPP heading then, after the part that belongs to the IP message in the data message directly is put into the Ethenet heading, data processed is forwarded to output port.
The input of submodule process IP over Ethernet data further comprises:
(1) judges that at first Ethernet encapsulates to such an extent that whether packet is the IP packet,, do not handle that the IP packet enters 2 in this way if not the IP packet;
(2) judge whether the IP packet is multicast packets, if not multicast packets, keep the source mac and the purpose mac of packet Ethernet heading constant, changing Ethenet heading bag type is the type of data packet of PPPOE, between Ethernet heading and IP message, add PPPOE heading and PPP heading, data processed is forwarded to output port, if multicast packets enters 3;
(3) the mac address table to each port carries out following cycling, the Ethenet heading purpose mac field of replacement data bag is the current mac address of mac address table, the Ethenet heading protocol type of changing packet is the type of data packet of PPPOE, between packet Ethernet heading and IP message, add PPPOE heading and PPP heading, the data processed bag is forwarded to output port.
Technique effect of the present invention: the bridge module by IP over PPPOE and IP over Ethernet is handled two kinds of inputs, IP over PPPOE data inputs and the input of IP over Ethernet data, thus make two layers of (link layer) equipment that do not possess IP layer processing capacity PPPOESESSION that can directly terminate.Simplified design and reducing cost effectively.
Embodiment
Hammer 10000 IP DSLAM systems with Harbor Network are example, and the ADU business board of this system provides the PPPOE that ADSL user is inserted to support.User's PC is connected with the ADU business board by ADSLmodem, and the client software of PPPOE has been installed.
Utilize ASIC to realize IP over PPPOE and IP over Ethernet bridge module at the ADU business board.And as a submodule of PPPOE data forwarding module.
Configuration is supported the PPPOE that carries out of user port on the control desk of this system, and configures two or three layers of exchcange core related data, configures the uplink service mouth, and the uplink service mouth is connected with internet, RadiusServer.
The user at first starts the PPPOE dialing procedure, after the PPPOE control message processing module (MPM) of ADU business board picks out PPPOE control message, the control message is mail to the master control CPU module of master control borad.Master control central processing unit and user's PPPOE client, Radius Server carries out finishing authentification of user alternately, and note is taken.Utilize PPPOE modules driver module to be provided with and allow the user to insert.The user begins to visit internet, and the IP over PPPOE of PPPOE module and IP over Ethernet bridge joint submodule are handled the user's data bag in this process, and the multicast tenability is provided.Its algorithm is described below respectively,
The input of IP over PPPOE data:
1, when packet when input that detects PPPOE, judge at first whether the packet of PPPOE encapsulation is the IP packet, if not the IP packet, do not handle, directly with packet exchange to output port; If the IP packet enters 2;
2, judge whether the IP packet is multicast packets, if not multicast packets, keep the Ethernet heading source mac field and the purpose mac field of PPPOE packet constant, change Ethernet heading protocol type field into IP bag type (0x0080), delete PPPOE heading and PPP heading.After the IP message part directly is put into the Ethernet heading, the data processed bag is forwarded to output port; If multicast packets enters 3;
3, the multicast IP address according to multicast packets generates corresponding multicast mac address, and the purpose mac address field of replacing the Ethernet heading of PPPOE packet with this multicast mac address, changing Ethernet heading protocol type field is IP bag type (0x0080), remove PPPOE heading and PPP heading then, after the IP message part directly is put into the Ethenet heading, data processed is forwarded to output port.
The input of IP over Ethernet data:
1, judge that at first Ethernet encapsulates to such an extent that whether packet is the IP packet,, do not handle if not the IP packet, directly with packet exchange to output port; If the IP packet enters 2;
2, judge whether the IP packet is multicast packets, if not multicast packets, keep the source mac and the purpose mac of packet Ethernet heading constant, changing Ethenet heading bag type is the packet (0x8863) of PPPOE, adds PPPOE heading and PPP heading between Ethernet heading and IP message.With the data processed packet switch to output port; If multicast packets enters 3;
3, all of the port of this multicast address correspondence is done following cycling: the mac address table to each port carries out following cycling, the Ethenet heading purpose mac field of replacement data bag is the current mac address of mac address table, the Ethenet heading protocol type of changing packet is the type of data packet (0x8863) of PPPOE, between packet Ethernet heading and IP message, add PPPOE heading and PPP heading, the data processed bag is forwarded to output port.Enter the next item down of mac address table.Enter next port.
Like this, just realized under the situation that does not possess three layer protocol functions, having finished the bridge joint of IP over PPPOE and IP over Ethernet.
The user sends the PPPOE control message of the request of disconnection, PPPOE control message processing module (MPM) is with the past master control CPU module of this control newspaper Bao Wenfa, master control central processing unit and user's PPPOE client, Radius Server carry out alternately, finish user offline, the end of note expense.Utilize the setting of PPPOE modules driver module to forbid that the user inserts.

Claims (3)

1, the Internet protocol bridging method of a kind of Ethernet bearing point-to-point protocol and Ethernet protocol is provided with the submodule of a bridge joint IP over PPPOE and IP overEthernet in the packet forwarding module, it is characterized in that:
(1) submodule judges at first whether the packet of Ethenet encapsulation is the IP packet, maybe when detecting the packet input of PPPOE, judges whether the packet of PPPOE encapsulation is the IP packet, during if not the IP packet, does not handle;
(2) packet as Ethenet encapsulation is the IP packet, and submodule changes the Ethernet heading protocol type of packet into the type of data packet of PPPOE, adding PPPOE heading and PPP heading between Ethernet heading and IP message;
(3) when detecting the packet input of PPPOE, packet as the PPPOE encapsulation is the IP packet, submodule changes the Ethernet heading protocol type field of the IP packet of PPPOE encapsulation into IP bag type, deletion PPPOE heading and PPP heading directly are put into Ethenet heading back with the part that belongs to the IP message in the data message.
2, the Internet protocol bridging method of Ethernet bearing point-to-point protocol as claimed in claim 1 and Ethernet protocol is characterized in that the input of submodule process IP over PPPOE data further comprises:
(1) when detecting the packet input of PPPOE, judge at first whether the packet of PPPOE encapsulation is the IP packet, if not the IP packet, do not handle, the IP packet enters next step in this way;
(2) judge whether the IP packet is multicast packets, if not multicast packets, keep the Ethernet heading source mac field and the purpose mac field of PPPOE packet constant, change Ethernet heading protocol type field into IP bag type, delete PPPOE heading and PPP heading, the part that belongs to the IP message in the data message directly is put into the Ethenet heading after, data processed is forwarded to output port, if multicast packets enters next step;
(3) the multicast IP address according to multicast packets generates corresponding multicast mac address, and the purpose mac address field of replacing the Ethernet heading of PPPOE packet with this multicast mac address, changing Ethernet heading protocol type field is IP bag type, remove PPPOE heading and PPP heading then, after the part that belongs to the IP message in the data message directly is put into the Ethenet heading, data processed is forwarded to output port.
3, the Internet protocol bridging method of Ethernet bearing point-to-point protocol as claimed in claim 1 and Ethernet protocol is characterized in that the input of submodule process IP over Ethernet data further comprises:
(1) judges that at first Ethernet encapsulates to such an extent that whether packet is the IP packet, if not the IP packet, does not handle, if the IP packet enters next step;
(2) judge whether the IP packet is multicast packets, if not multicast packets, keep the source mac and the purpose mac of packet Ethernet heading constant, changing Ethenet heading bag type is the type of data packet of PPPOE, between Ethernet heading and IP message, add PPPOE heading and PPP heading, the data processed bag is forwarded to output port, if multicast packets enters next step;
(3) the mac address table to each port carries out following cycling, the Ethenet heading purpose mac field of replacement data bag is the current mac address of mac address table, the Ethenet heading protocol type of changing packet is the type of data packet of PPPOE, between packet Ethernet heading and IP message, add PPPOE heading and PPP heading, the data processed bag is forwarded to output port.
CN 03137408 2003-06-19 2003-06-19 Bridge connecting method of ethernet carrying point-to-point protocol and network protocol of ethernet protocol Expired - Fee Related CN1264311C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 03137408 CN1264311C (en) 2003-06-19 2003-06-19 Bridge connecting method of ethernet carrying point-to-point protocol and network protocol of ethernet protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 03137408 CN1264311C (en) 2003-06-19 2003-06-19 Bridge connecting method of ethernet carrying point-to-point protocol and network protocol of ethernet protocol

Publications (2)

Publication Number Publication Date
CN1455559A CN1455559A (en) 2003-11-12
CN1264311C true CN1264311C (en) 2006-07-12

Family

ID=29260547

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 03137408 Expired - Fee Related CN1264311C (en) 2003-06-19 2003-06-19 Bridge connecting method of ethernet carrying point-to-point protocol and network protocol of ethernet protocol

Country Status (1)

Country Link
CN (1) CN1264311C (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197835A (en) * 2007-12-27 2008-06-11 华为技术有限公司 Virtual special network access method, system and device
CN104486196A (en) * 2014-12-23 2015-04-01 上海市共进通信技术有限公司 Method for realizing PPPOE packaged multicast protocol message handling

Also Published As

Publication number Publication date
CN1455559A (en) 2003-11-12

Similar Documents

Publication Publication Date Title
US7983258B1 (en) Dynamic virtual local area network (VLAN) interface configuration
EP2725749B1 (en) Method, apparatus and system for processing service flow
CN101110847B (en) Method, device and system for obtaining medium access control address
CN1324164A (en) Communication system, communiction control method, and control program storage medium
CN1411210A (en) Method of acting address analytic protocol Ethernet Switch in application
CN101043331A (en) System and method for distributing address for network equipment
US9281957B2 (en) Flexible MAC/PHY association
CN101115006A (en) Three-layer packet forwarding method and routing device and two-layer switch module
CN101616056B (en) Shunt-stream method and shunt-stream gateway breaking through PPPoE technical limitation and network structure of the shunt-stream gateway
US6618386B1 (en) Hosting a cable modem in a computer using a virtual bridge
CN1553674A (en) Method for wideband connection server to obtain port numbers of its uers
CN100352203C (en) Method for controlling wide band network user to access network
CN1298138C (en) Method for realizing chain circuit polymer function based on strategy route
WO2011140865A1 (en) Authentication authorization and accounting server and message processing method thereof
CN1264311C (en) Bridge connecting method of ethernet carrying point-to-point protocol and network protocol of ethernet protocol
CN1300985C (en) Method for processing extra-long message in two-layer virtual special-purpose network
CN1215686C (en) Method of distruting network protocol address of distributed wideband connecting-in authenticated node users
CN101030915A (en) Method for sharing V-Switch transparent-transferring data load
CN101039328A (en) Multi-protocol network terminal service shunting method and apparatus thereof
US20010023456A1 (en) Multiple-processor information processing system
CN1816003A (en) Telecommunication method and apparatus of dissimilar chain protocol
CN1248455C (en) Customer access management system for wideband network
CN100362820C (en) Method and system for bearing PPP proxy server with Ethernet
CN1264316C (en) Method for implementing verification and termination by connecting digital subscriber loop into hub
CN1571392A (en) A method for implementing PPPoA to PPPoE conversion in network access equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C14 Grant of patent or utility model
GR01 Patent grant
C19 Lapse of patent right due to non-payment of the annual fee
CF01 Termination of patent right due to non-payment of annual fee