CN1147094C - Message receiving and transmitting method of combined bridge connection function and routing function - Google Patents
Message receiving and transmitting method of combined bridge connection function and routing function Download PDFInfo
- Publication number
- CN1147094C CN1147094C CNB021299269A CN02129926A CN1147094C CN 1147094 C CN1147094 C CN 1147094C CN B021299269 A CNB021299269 A CN B021299269A CN 02129926 A CN02129926 A CN 02129926A CN 1147094 C CN1147094 C CN 1147094C
- Authority
- CN
- China
- Prior art keywords
- message
- router
- bridge
- interface
- bridging
- 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
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention relates to a message receiving and transmitting method of combined bridging function and routing function, which belongs to the field of network communication. The present invention has the method that a bridging module and a bridging functional interface are firstly configured on a router, if the messages are received from an Ethernet interface of the router, the received messages are transmitted to the bridging module on the router and wait for being transmitted; if the messages are received from a WAN interface of the router, the received messages are marked by bridge message marks and are transmitted to the bridging module, and the messages wait for being transmitted. When the messages are transmitted, a bridging processing module judges the type of router interfaces used for transmitting the messages, if the router interfaces are Ethernet interfaces, Ethernet transmission functions are used for transmitting the messages; if the router interfaces are WAN interfaces, the messages to be transmitted are marked with bridging message marks, and link layer functions are used for transmitting the messages. In the message receiving and transmitting method of the present invention, functions of bridging devices are added in the router, different interfaces on the router simultaneously realize bridging and routing, and network design is simplified.
Description
Technical field
The present invention relates to a kind of reception and sending method, belong to network communications technology field by router realization bridge joint message.
Background technology
On conventional router, can only carry out the route and the forwarding of network layer, can only support the route and the forwarding of upper-layer protocols such as IP, IPX.If what use is proprietary protocol, then need transmit at ethernet link layer, so just need to use Layer 2 switch or simple bridge device.On router, forwarding of data is at the 3rd layer---network layer handles, when certain interface of router is received the message of a physical layer, normally in hardware interrupts, put into corresponding link layer processing queue.The task of operating system is that management and running link layer process module is handled, and removes two layers link layer packaging, gives the IP module then and carries out three layers forwarding processing.In traditional axle equipment, be based on two layers data forwarding.For Ethernet bridge, the bridge device interface is received and after the message message is put into processing queue.The forwarding module of bridge is directly set up corresponding forwarding-table item according to the ethernet address of message, and carries out message and transmit, and in this process, message is not changed.
Two kinds of top processing methods that method is a distinct device.
Therefore,, will use router, realize bridging functionality if desired, and so just must use older bridging device if in network, will realize routing function.No matter be, all increased the complexity of network from the network planning or the angle of management.
Summary of the invention
The present invention be directed to the shortcoming that can not realize routing function and bridging functionality in the prior art at same equipment, a kind of reception and sending method that realizes the bridge joint message by router proposed, the function of integrated Ethernet bridge on the basis of router, and support WAN bridge connection function, thereby realize the uniformity of the network planning and design, be beneficial to the expansion of Network Management and network.
The method of reseptance that passes through router realization bridge joint message that the present invention proposes may further comprise the steps:
1, configuration bridge module and bridging functionality interface on router;
2, the Ethernet interface as the bridging functionality interface from router receives message, and the bridge module that the message that receives is delivered on the router is medium to be sent;
3, the Wide Area Network interface as the bridging functionality interface from router receives message, and the message that receives is made the bridge packet labeling, delivers in the link layer module of router again;
The link layer module of described router receives the message that has the bridge packet labeling, removes then that to send into bridge module after the wide area network packaging information of message medium to be sent.
The sending method of passing through router realization bridge joint message that the present invention proposes may further comprise the steps:
1, configuration bridge module and bridging functionality interface on router;
2, bridge module judge in order in the router that sends message as the kind of interface of bridging functionality interface, if Ethernet interface then calls Ethernet and sends function and send message;
If 3 Wide Area Network interface then call the transmission of link layer functions after message is made the bridge packet labeling.
The process that above-mentioned link layer function sends message comprises the steps:
For the message that has the bridge packet labeling, then in message, add the bridge protocol information, send message by link layer module then.
Reception and the sending method of passing through router realization bridge joint message that the present invention proposes, in router, incorporated the function of bridging device, realize bridge joint and route simultaneously by the distinct interface on the router, can simplify network design like this, make router both can be used as three layers of router and use, also can realize the function of two layers of bridge simultaneously, satisfy the needs of different user, reduce equipment simultaneously, save customer investment.In, use this method on the low end router, can realize bridging functionality and routing function simultaneously.
Embodiment
The method of reseptance that passes through router realization bridge joint message that the present invention proposes, at first configuration bridge module and bridging functionality interface on router; If the message that receives from the Ethernet interface of router, then the bridge module that the message that receives is directly delivered on the router is medium to be sent, if receive message from the Wide Area Network interface of router, then the message that receives is made the bridge packet labeling, deliver to again in the link layer module of router, further judge whether message has the bridge mark, if there is not a bridge mark, then by the IP resume module of router; If the bridge mark is arranged, remove then that to send into the bridge processing module after the wide area network packaging information of message medium to be sent.
The present invention proposes passes through the sending method that router is realized the bridge joint message, at first judges kind in order to the router interface that sends message by the bridge module of router, if Ethernet interface then calls Ethernet and sends function and send message; If Wide Area Network interface is then made the bridge packet labeling to sent message, call the link layer functions and send.Calling the process that the link layer functions sends message is: the packet labeling with the message of link layer function transmission is judged, if there is not the bridge packet labeling, then add the IP protocol information, send message by link layer module then, if the bridge packet labeling is arranged, then in message, add the bridge protocol information, send message by link layer module then.
The key of the inventive method is, added the bridge joint processing module in router, realizes complete bridging functionality, comprises the study of forwarding-table item, the forwarding of Ether frame.
It is the interface of bridging functionality that router disposes which interface of appointment by the user, and bridge interface is made corresponding mark in its data structure, be bridge interface in order to represent this interface.
Because what bridging functionality was realized is the processing of Ether frame, so two kinds of situations of link layer are made different disposal.For the message that Ethernet receives,, then directly deliver in the bridge module message that receives if interface is a bridge interface; For other Wide Area Network interface, if interface is a bridge interface, then the core buffer that message is used is made corresponding mark, shows it is the message that needs bridge joint, sends into then with interface and encapsulates corresponding link layer formation.In link layer module, increased the function of handling the bridge message, be used for judging the core buffer that the message of formation uses, if the bridge packet labeling is arranged, then it is taken down link layer packaging (PPP, HDLC, frame relay etc.), put into bridge module then.
For the transmission of bridge message,, then directly call ethernet physical layer and send function transmission message if transmission interface is an Ethernet interface; If transmission interface is a Wide Area Network interface, then the core buffer of message is made respective markers, show it is the bridge message, call link layer then and send function (PPP, HDLC, FRAME-RELAY etc.) transmission message.Simultaneously, also need send and make corresponding modify in the function, the mark of bridge be arranged, then this message be carried out corresponding bridge protocol encapsulation if judge message at link layer.
By above method, the user can specify certain several interface as bridge interface by being configured on the router, and other unspecified interface transmitting-receiving flow process is constant.Like this, router can make several interfaces wherein realize the bridge functions, and remaining interface is realized routing function, thus operation when realizing bridge joint and route.
Claims (3)
1, a kind of method of reseptance by router realization bridge joint message is characterized in that this method may further comprise the steps:
(1) configuration bridge module and bridging functionality interface on router;
(2) Ethernet interface as the bridging functionality interface from router receives message, and the bridge module that the message that receives is delivered on the router is medium to be sent;
(3) Wide Area Network interface as the bridging functionality interface from router receives message, and the message that receives is made the bridge packet labeling, delivers in the link layer module of router again;
(4) link layer module of described router receives the message that has the bridge mark, removes then that to send into bridge module after the wide area network packaging information of message medium to be sent.
2, a kind of sending method by router realization bridge joint message is characterized in that this method may further comprise the steps:
(1) configuration bridge module and bridging functionality interface on router;
(2) bridge module judge in order in the router that sends message as the kind of interface of bridging functionality interface, if Ethernet interface then calls Ethernet and sends function and send message;
(3), call the link layer functions and send message if Wide Area Network interface is then made the bridge packet labeling to sent message.
3, file transmitting method as claimed in claim 2 is characterized in that the wherein said process of calling link layer functions transmission message comprises the steps:
For the message that has the bridge packet labeling, then in message, add the bridge protocol information, send message by link layer module then.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB021299269A CN1147094C (en) | 2002-08-22 | 2002-08-22 | Message receiving and transmitting method of combined bridge connection function and routing function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB021299269A CN1147094C (en) | 2002-08-22 | 2002-08-22 | Message receiving and transmitting method of combined bridge connection function and routing function |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1411212A CN1411212A (en) | 2003-04-16 |
CN1147094C true CN1147094C (en) | 2004-04-21 |
Family
ID=4746350
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB021299269A Expired - Fee Related CN1147094C (en) | 2002-08-22 | 2002-08-22 | Message receiving and transmitting method of combined bridge connection function and routing function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1147094C (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1306761C (en) * | 2003-05-27 | 2007-03-21 | 华为技术有限公司 | Method for transmitting Ethernet message by Internet |
CN1649321B (en) * | 2005-02-04 | 2010-04-28 | 迈普通信技术股份有限公司 | Data transmission and receiving mthod for router and net bridge inter connection |
CN1794673B (en) * | 2005-12-27 | 2011-11-30 | 王卫亚 | Method of constructing local network using IP protocol |
CN1997023B (en) * | 2006-12-19 | 2011-04-27 | 中国科学院研究生院 | Internal edge sampling method and system for IP tracking |
CN101719864B (en) * | 2009-11-27 | 2011-12-07 | 深圳市共进电子有限公司 | Method for transmitting and distributing data of router with double network ports |
CN102916864A (en) * | 2012-11-02 | 2013-02-06 | 上海电机学院 | Ethernet bridge and intelligent link method thereof |
CN107846299B (en) * | 2016-09-21 | 2022-04-12 | 中兴通讯股份有限公司 | Method and device for realizing two-layer and three-layer service bridging and PTN (packet transport network) equipment |
CN109618019B (en) * | 2018-12-25 | 2021-10-22 | 深圳创维数字技术有限公司 | Dynamic address allocation service configuration method, device, equipment and storage medium |
-
2002
- 2002-08-22 CN CNB021299269A patent/CN1147094C/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN1411212A (en) | 2003-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH09321821A (en) | Protocol conversion system and its method | |
KR20040041175A (en) | System and method for processing packets | |
CN1554169A (en) | Method for the optimised use of SCPT (stream control transmission protocol) in MPLS (multi protocol label switching) networks | |
CN1825836A (en) | System and method for avoiding network apparatus jamming | |
CN100561990C (en) | A kind of digital home gateway device and processing method thereof | |
CN1147094C (en) | Message receiving and transmitting method of combined bridge connection function and routing function | |
CN100334834C (en) | A proxy server system and method for realizing proxy communication thereof | |
CN104683228B (en) | A kind of digital switch media gateway realization method based on FPGA | |
JP3664109B2 (en) | Audio channel selection system and selection method thereof | |
CN101146050B (en) | Frame relaying packet transmission method and device | |
CA2364974C (en) | Automatic conversion of telephone number to internet protocol address | |
CN100372346C (en) | A media server based on soft switch | |
CN101621528B (en) | Conversation system based on Ethernet switch cluster management and method for realizing conversation passage | |
CN114928660B (en) | Method for communication between transparent processes of embedded operating system | |
CN100469054C (en) | Method and equipment in use for communication connection of redirecting network | |
CN1426169A (en) | Method for improving route repeat liability of access server | |
CN100576824C (en) | In the IP Telecommunication Network system, realize the method for dual-mode working mode | |
WO2002023810A3 (en) | Method and system for transmit data blocking in a wireless communications network | |
CN1292355C (en) | Method of realizing firewall exchange type transparent deputy | |
US6865178B1 (en) | Method and system for establishing SNA connection through data link switching access services over networking broadband services | |
CN1302140A (en) | Data enchange device and method | |
CN100479423C (en) | Point-to-point communication method on Ethernet | |
CN1564546A (en) | Method of intercepting and transmitting short messages | |
CN1293726C (en) | Method for implementing quick transmission of bridge data on network link | |
KR100440584B1 (en) | A management method of sctp multi-association |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20040421 Termination date: 20110822 |