CN102437962B - Implementation method for layer-3 network processing - Google Patents

Implementation method for layer-3 network processing Download PDF

Info

Publication number
CN102437962B
CN102437962B CN201110450936.0A CN201110450936A CN102437962B CN 102437962 B CN102437962 B CN 102437962B CN 201110450936 A CN201110450936 A CN 201110450936A CN 102437962 B CN102437962 B CN 102437962B
Authority
CN
China
Prior art keywords
message
switching system
layers
privately owned
layer
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
CN201110450936.0A
Other languages
Chinese (zh)
Other versions
CN102437962A (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.)
Opzoon Technology Co Ltd
Original Assignee
Opzoon 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 Opzoon Technology Co Ltd filed Critical Opzoon Technology Co Ltd
Priority to CN201110450936.0A priority Critical patent/CN102437962B/en
Publication of CN102437962A publication Critical patent/CN102437962A/en
Application granted granted Critical
Publication of CN102437962B publication Critical patent/CN102437962B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an implementation method for layer-3 network processing. The method comprises the following steps of: S1, setting work modes of a layer-3 switching system, wherein the work modes comprise a switching mode and a physical mode; S2, determining the needed work mode of the layer-3 switching system, and starting the work mode; and S3, removing a switching function of the layer-3 switching system when starting the physical mode, and using the layer-3 switching system as a conventional layer-3 network processing device. By utilizing the implementation method, code transplanting can be easier, and users can get more convenient use experience.

Description

Three-layer network is processed implementation method
Technical field
The present invention relates to network function and realize technical field, relate in particular to a kind of three-layer network and process implementation method.
Background technology
Traditional three-layer network appliance only forms (mainly completing three-layer network processing capacity) by network interface card and cpu, and traditional two-layer network device forms (mainly completing double layer network processing capacity) by exchange chip.Current most popular network equipment framework is three-tier switch, described three-tier switch is made up of network interface card, cpu, exchange chip, the function that can simultaneously realize double layer network processing and three-layer network processing is not identical with above-mentioned traditional three-layer network appliance and two-layer network device on its equipment framework.Although three-tier switch can be realized all functions of traditional three-layer equipment, but because logical construction changes, order line and use habit also need to change, like this for the user who only three layer services is had demand, need to again adapt to new using method, and concerning original need are wanted the equipment of three layer services (such as Flow Control), because traditional three-layer network appliance just can meet, therefore to use original code on three-tier switch, to realize the function of traditional three-layer network appliance, just need to drop into manpower and do code transplanting.Therefore, need a kind of method can make three layers of architecture for exchanging can realize quickly and easily the three-layer network processing capacity of traditional three-layer network appliance.
Summary of the invention
(1) technical problem that will solve
The technical problem to be solved in the present invention is: provide a kind of three-layer network to process implementation method, become easily so that transplant code, user uses convenient.
(2) technical scheme
For addressing the above problem, the invention provides a kind of three-layer network and process implementation method, it is characterized in that, comprise the following steps:
S1: the mode of operation that three layers of switching system are set comprises: switch mode, for completing three layers of original function of exchange of switching system; Multiplicative model, for completing three-layer network processing capacity;
S2: judge the mode of operation that three layers of switching system need and start corresponding mode of operation;
S3: in the time starting multiplicative model:
S31: the cpu of three layers of switching system fictionalizes and physical port physical vlan network interface card one to one;
S32: the exchange chip of three layers of switching system increases for mark in message receives the first privately owned field of the physical port of message, then forwards the packet to described cpu;
S33: after described cpu receives message, first read described the first privately owned field in message, and mate the physical vlan network interface card of this message according to physical port corresponding to described the first privately owned field, message is placed into after corresponding physical vlan network interface card, described the first privately owned field is removed, then the three layer service modules that described message offered to cpu by physical vlan network interface card are used;
S34: after the three layer service resume module of described cpu complete, message after treatment is passed to physical vlan network interface card to be forwarded, described physical vlan network interface card increases by the second privately owned field after receiving message in message, and pass to exchange chip, described exchange chip sends to corresponding physical port to forward message according to described the second privately owned field again.
Preferably, described step S2 is specially: the cpu of three layers of switching system judges that by reading the configuration of configuration file the mode of operation of described three layers of switching system needs is switch mode or multiplicative model, and cpu correspondingly starts the exchange chip of three layers of switching system for switch mode or multiplicative model again.
Preferably, in described step S32, described the first privately owned field is added to the mac back of head of described message.
Preferably, in described step S34, described the second privately owned field is added to the mac back of head of described message.
Preferably, described step S34 sends to message at exchange chip corresponding physical port also to comprise the step of removing described the second privately owned field before forwarding.
(3) beneficial effect
Same three layers of switching plane of the present invention, can (be used two layers by fire compartment wall simultaneously, three layer functions), the all-network equipment such as Flow Control (use three layer functions) uses, and three-layer network switching system is arranged to multiplicative model configuration, make to transplant code and become easily, user uses the convenience of change.
Accompanying drawing explanation
Fig. 1 is the flow chart of steps of processing implementation method according to embodiment of the present invention three-layer network.
Embodiment
Below in conjunction with drawings and Examples, that the present invention is described in detail is as follows.
As shown in Figure 1, the present embodiment has been recorded a kind of three-layer network and has been processed implementation method, comprises the following steps:
S1: the mode of operation that three layers of switching system are set comprises: switch mode, for completing three layers of original function of exchange of switching system; Multiplicative model, for completing three-layer network processing capacity;
In the present embodiment, can configure the also next start-up mode starting of saved system by order line is multiplicative model or switch mode.
When three layers of switching system of tape swap function are set to multiplicative model, can remove the function of exchange of three layers of switching system, now relative user and research staff, can be this equipment as traditional three-layer network appliance; When three layers of switching system are set to switch mode, can recover its function of exchange.
S2: judge the mode of operation that three layers of switching system need and start corresponding mode of operation, be specially: the cpu of three layers of switching system judges that by reading the configuration of configuration file the mode of operation of described three layers of switching system needs is switch mode or multiplicative model, and cpu correspondingly starts the exchange chip of three layers of switching system for switch mode or multiplicative model again;
S3: in the time starting multiplicative model:
S31: the cpu of three layers of switching system fictionalizes and physical port physical vlan network interface card one to one;
S32: the exchange chip of three layers of switching system increases for mark and receives the first privately owned field of the physical port of message at the mac of message back of head, then forwards the packet to described cpu;
S33: after described cpu receives message, first read described the first privately owned field in message, and mate the physical vlan network interface card of this message according to physical port corresponding to described the first privately owned field, message is placed into after corresponding physical vlan network interface card, described the first privately owned field is removed, then the three layer service modules that described message offered to cpu by physical vlan network interface card are used;
S34: after the three layer service resume module of described cpu complete, message after treatment is passed to physical vlan network interface card to be forwarded, described physical vlan network interface card increases by the second privately owned field at the mac of message back of head after receiving message, and pass to exchange chip, described exchange chip sends to corresponding physical port to forward message according to described the second privately owned field again, and before forwarding, removes described the second privately owned field.
The present invention arranges multiplicative model configuration to three-layer network switching system, makes three-layer network switching system can realize original function of exchange, can realize again traditional three-layer network processing capacity, makes to transplant code and becomes easily, and user uses the convenience of change.
Above execution mode is only for illustrating the present invention; and be not limitation of the present invention; the those of ordinary skill in relevant technologies field; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.

Claims (5)

1. three-layer network is processed an implementation method, it is characterized in that, comprises the following steps:
S1: the mode of operation that three layers of switching system are set comprises: switch mode, for completing three layers of original function of exchange of switching system; Multiplicative model, for completing three-layer network processing capacity;
S2: judge the mode of operation that three layers of switching system need and start corresponding mode of operation;
S3: in the time starting multiplicative model:
S31: the cpu of three layers of switching system fictionalizes and physical port physical vlan network interface card one to one;
S32: the exchange chip of three layers of switching system increases for mark in message receives the first privately owned field of the physical port of message, then forwards the packet to described cpu;
S33: after described cpu receives message, first read described the first privately owned field in message, and mate the physical vlan network interface card of this message according to physical port corresponding to described the first privately owned field, message is placed into after corresponding physical vlan network interface card, described the first privately owned field is removed, then the three layer service modules that described message offered to cpu by physical vlan network interface card are used;
S34: after the three layer service resume module of described cpu complete, message after treatment is passed to physical vlan network interface card to be forwarded, described physical vlan network interface card increases by the second privately owned field after receiving message in message, and pass to exchange chip, described exchange chip sends to corresponding physical port to forward message according to described the second privately owned field again.
2. three-layer network as claimed in claim 1 is processed implementation method, it is characterized in that, described step S2 is specially: the cpu of three layers of switching system judges that by reading the configuration of configuration file the mode of operation of described three layers of switching system needs is switch mode or multiplicative model, and cpu correspondingly starts the exchange chip of three layers of switching system for switch mode or multiplicative model again.
3. three-layer network as claimed in claim 1 is processed implementation method, it is characterized in that, in described step S32, described the first privately owned field is added to the mac back of head of described message.
4. three-layer network as claimed in claim 1 is processed implementation method, it is characterized in that, in described step S34, described the second privately owned field is added to the mac back of head of described message.
5. three-layer network as claimed in claim 1 is processed implementation method, it is characterized in that, described step S34 sends to message at exchange chip corresponding physical port also to comprise the step of removing described the second privately owned field before forwarding.
CN201110450936.0A 2011-12-29 2011-12-29 Implementation method for layer-3 network processing Expired - Fee Related CN102437962B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110450936.0A CN102437962B (en) 2011-12-29 2011-12-29 Implementation method for layer-3 network processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110450936.0A CN102437962B (en) 2011-12-29 2011-12-29 Implementation method for layer-3 network processing

Publications (2)

Publication Number Publication Date
CN102437962A CN102437962A (en) 2012-05-02
CN102437962B true CN102437962B (en) 2014-06-18

Family

ID=45985845

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110450936.0A Expired - Fee Related CN102437962B (en) 2011-12-29 2011-12-29 Implementation method for layer-3 network processing

Country Status (1)

Country Link
CN (1) CN102437962B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1527548A (en) * 2003-03-05 2004-09-08 华为技术有限公司 Port bundling method for distributed network exchange system
CN1527544A (en) * 2003-03-05 2004-09-08 华为技术有限公司 Ethernet exchanger and its service processing method
CN102137169A (en) * 2011-01-30 2011-07-27 华为技术有限公司 Method, network card and communication system for binding physical internet ports

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7664123B2 (en) * 2004-01-22 2010-02-16 Nortel Networks Limited Generalized virtual router

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1527548A (en) * 2003-03-05 2004-09-08 华为技术有限公司 Port bundling method for distributed network exchange system
CN1527544A (en) * 2003-03-05 2004-09-08 华为技术有限公司 Ethernet exchanger and its service processing method
CN102137169A (en) * 2011-01-30 2011-07-27 华为技术有限公司 Method, network card and communication system for binding physical internet ports

Also Published As

Publication number Publication date
CN102437962A (en) 2012-05-02

Similar Documents

Publication Publication Date Title
CN105072482B (en) The control method for playing back and device of a kind of multimedia play equipment
CN103905213B (en) A kind of idle method, home intelligent equipment and standby system
CN103118090B (en) Based on the implementation method of the household fusion cloud computer terminal of public network
CN102045332B (en) Method for processing control message in intelligent resilient framework and line card boards
CN104540175A (en) Switching method of uninterrupted Bluetooth connection, Bluetooth equipment and system
CN101541068A (en) WLAN network control method and device thereof
CN104656515B (en) The long-range control method and system of dual system smart machine
CN103152239A (en) Open VSwitch-based virtual network implementation method and system
US20120106429A1 (en) Method for interconnecting mobile communication terminals in ad-hoc network
CN104349304A (en) Information processing method and electronic equipment
Tseng Coordinator traffic diffusion for data-intensive Zigbee transmission in real-time electrocardiography monitoring
CN101505277B (en) Method, equipment and system for withdrawing from elegant restart
CN104333520A (en) Method for controlling interchanger MAC address table dual-ageing time
CN105227458B (en) The route computing method and device of TRILL ISIS
CN102437962B (en) Implementation method for layer-3 network processing
CN103092641B (en) Electronic equipment
CN103106101B (en) Correlating method, electronic equipment and interconnected system
CN106990870A (en) Terminal control method and device
CN101902341B (en) Method and device for supplying power for powered device
CN102724126A (en) Method, device and equipment for forwarding Ethernet tree (E-tree) service message
CN201518499U (en) Device for writing in MAC address and serial number to set-top box
CN103384265B (en) The application layer implementation method of GVRP agreement and system
CN104468483A (en) Data transmission method and system, control device and node device
CN101972545A (en) On-line game operating terminal combined with television remote controller, and signal receiving device
CN102739523B (en) A kind of method of nuclear location CPE traffic flow types in linux

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
PP01 Preservation of patent right
PP01 Preservation of patent right

Effective date of registration: 20180823

Granted publication date: 20140618

PD01 Discharge of preservation of patent
PD01 Discharge of preservation of patent

Date of cancellation: 20210823

Granted publication date: 20140618

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140618

Termination date: 20191229