CN108632175A - Switching method and device for first line of a couplet port in polymorphic network - Google Patents
Switching method and device for first line of a couplet port in polymorphic network Download PDFInfo
- Publication number
- CN108632175A CN108632175A CN201710176219.0A CN201710176219A CN108632175A CN 108632175 A CN108632175 A CN 108632175A CN 201710176219 A CN201710176219 A CN 201710176219A CN 108632175 A CN108632175 A CN 108632175A
- Authority
- CN
- China
- Prior art keywords
- port
- network
- current
- line
- passive optical
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/10—Packet switching elements characterised by the switching fabric construction
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/25—Routing or path finding in a switch fabric
- H04L49/253—Routing or path finding in a switch fabric using establishment or release of connections between ports
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/30—Peripheral units, e.g. input or output ports
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 present invention discloses a kind of switching method and device for the first line of a couplet port in polymorphic network, the state of detection signal and the switch concatenation network port by obtaining passive optical network port;According to the detection signal, the state of the switch concatenation network port and default priority rule, switches current first line of a couplet port or keep former first line of a couplet port.Through the above scheme, the present invention provides a kind of with passive optical network port, the switch concatenation network port for being used in switch concatenation network and a kind of switching method of first line of a couplet port.Use passive optical network port as current first line of a couplet port in the case where passive optical network port is online to realize;When the switch concatenation network port is online, the switch concatenation network port is switched to as current first line of a couplet port.This ensure that equipment under switch concatenation network or passive optical network can normal use, reduce network upgrade caused by the wasting of resources.
Description
Technical field
The present invention relates to network equipment field more particularly to a kind of switching methods for first line of a couplet port in polymorphic network
And device.
Background technology
This Active Optical Fiber of switch concatenation network can be defined as two or more interchangers pass through it is certain
Mode is connected with each other, and as needed, more interchangers can be cascaded in many ways.In larger LAN such as garden
In net, more interchangers generally form bus-type, tree-shaped or star-like cascade structure according to performance and purposes.
With the continuous development of network technology, passive optical network (PON) is due to its low cost, the advantages that being easy to safeguard and by
Extensive utilization.The outstanding advantages of passive optical network are a cancellation outdoor active equipment, and all signal processing functions are being handed over
It changes planes and is completed with station equipment.And the access way up-front investment of passive optical network is small.Computer room need not be separately set, safeguards and holds
Easily.This structure can be economically house user service, be cope with multi-service, high bandwidth access demand ideal solution party
Case.
This Active Optical Fiber of switch concatenation network is longer than the transmission range of passive optical network, and the range of covering is larger.But
It is to establish switch concatenation network to need more equipment, so cost is high, it is more difficult to safeguard.
Therefore, with the continuous upgrading of network, some access nets can use passive optical network to replace part switch concatenation
Network, the advantages of with comprehensive two kinds of networks.However, the existing equipment in switch concatenation network is due to cannot be used for passive optical network
In network, after network update, it can only be eliminated.It will result in prodigious waste in this way.
Invention content
The main purpose of the present invention is to provide a kind of switching method and device for first line of a couplet port in polymorphic network,
Aim to solve the problem that the technical problem that cannot be used for for the equipment in switch concatenation network in passive optical network.
To achieve the above object, a kind of switching method for the first line of a couplet port in polymorphic network provided by the invention,
The polymorphic network includes:Passive optical network and switch concatenation network, the switching method include the following steps:
Obtain the state of the detection signal and the switch concatenation network port of passive optical network port;
It is current according to the detection signal, the state of the switch concatenation network port and default priority rule, switching
First line of a couplet port keeps former first line of a couplet port.
Optionally, the state and preset rules according to the detection signal, the switch concatenation network port, cuts
It changes current first line of a couplet port or includes the step of keeping former first line of a couplet port:
According to the state of the detection signal, the switch concatenation network port, determine that current network is passive optical network
Network and/or switch concatenation network;
According to current network and default priority rule, switches current first line of a couplet port or keep former first line of a couplet port.
Optionally, the state according to the detection signal, the switch concatenation network port, determines current network
Include for the step of passive optical network and/or switch concatenation network:
When the detection signal exists and the state of the switch concatenation network port is not online, current net is determined
Network is passive optical network;
When the detection signal is not present and the state of the switch concatenation network port is online, current net is determined
Network is switch concatenation network;
When the detection signal exists and the state of the switch concatenation network port is online, current network is determined
It is parallel for the passive optical network and the switch concatenation network.
Optionally, described according to current network and default priority rule, switch current first line of a couplet port or keeps former first line of a couplet end
Mouthful the step of include:
If current network is the passive optical network, the passive optical network port is switched to current first line of a couplet port;
If current network is the switch concatenation network, the switch concatenation network port is switched on current
Join port;
If current network is that the passive optical network and the switch concatenation network are parallel, according to default priority rule
The passive optical network port or the switch concatenation network port are switched to current first line of a couplet port or keep former first line of a couplet port.
Optionally, the switching method further includes:
When the detection signal is not present and the state of the switch concatenation network port is not online, according to default
The passive optical network port or the switch concatenation network port are switched to current first line of a couplet port or holding by priority rule, acquiescence
Former first line of a couplet port.
Optionally, the switching method further includes:
If the passive optical network port is switched to current first line of a couplet port, in the switch concatenation network port and
Isolation is set between the first user port, at the same cancel the passive optical network port and the switch concatenation network port it
Between isolation to set the switch concatenation network port to second user port.
In addition, to achieve the above object, the present invention also provides a kind of switchings for the first line of a couplet port in polymorphic network
Device, the polymorphic network include:Passive optical network and switch concatenation network, which is characterized in that the switching device packet
It includes:
Acquisition module, the state of detection signal and the switch concatenation network port for obtaining passive optical network port;
First handover module, for according to the state of the detection signal, the switch concatenation network port and default
Priority rule switches current first line of a couplet port or keeps former first line of a couplet port.
Optionally, first handover module includes:
Determination unit determines current net for the state according to the detection signal, the switch concatenation network port
Network is passive optical network and/or switch concatenation network;
Switch unit, for according to current network and default priority rule, switching current first line of a couplet port or keeping the former first line of a couplet
Port.
Optionally, the determination unit includes:
First determination subelement, for being when the state of the detection signal presence and the switch concatenation network port
When not online, determine that current network is passive optical network;
Second determination subelement, when the detection signal be not present and the state of the switch concatenation network port be
When line, determine that current network is switch concatenation network;
Third determination subelement, when the state of the detection signal presence and the switch concatenation network port is online
When, determine that current network is that the passive optical network and the switch concatenation network are parallel.
Optionally, the switch unit includes:
First switch unit cuts the passive optical network port if being the passive optical network for current network
It is changed to current first line of a couplet port;
Second switch unit networks the switch-level if being the switch concatenation network for current network
Network port is switched to current first line of a couplet port;
Third switch unit, if being that the passive optical network and the switch concatenation network are parallel for current network,
The passive optical network port or the switch concatenation network port are then switched to by current first line of a couplet port according to default priority rule
Or keep former first line of a couplet port.
Optionally, the switching device further includes:
Second handover module, for being not present and the state of the switch concatenation network port is when the detection signal
When not online, according to default priority rule, the passive optical network port or the switch concatenation network port are switched to by acquiescence
Current first line of a couplet port keeps former first line of a couplet port.
Optionally, which is characterized in that the switching device further includes:
User port setup module, if for the passive optical network port to be switched to current first line of a couplet port, in institute
It states and isolation is set between the switch concatenation network port and the first user port, while cancelling the passive optical network port and institute
The isolation between the switch concatenation network port is stated to set the switch concatenation network port to second user port.
The present invention provides a kind of switching method for first line of a couplet port in polymorphic network, and the switching method passes through acquisition
The state of the detection signal and the switch concatenation network port of passive optical network port;According to the detection signal, the exchange
The state of machine cascade network port and default priority rule switch current first line of a couplet port or keep former first line of a couplet port.By above-mentioned
Scheme, the present invention provide a kind of switch-level networking with passive optical network port, for being used in switch concatenation network
Network port and a kind of switching method of first line of a couplet port.With realize in the case where passive optical network port is online using passive
Optical network port is as current first line of a couplet port;When the switch concatenation network port is online, switch concatenation network-side is switched to
Mouth is used as current first line of a couplet port.This ensure that equipment can normally make under switch concatenation network or passive optical network
With the wasting of resources caused by reduction network upgrade.
Description of the drawings
Fig. 1 is flow signal of the present invention for the switching method first embodiment of the first line of a couplet port in polymorphic network
Figure;
Fig. 2 is in Fig. 1 according to the detection signal, the state of the switch concatenation network port and default preferential rule
Then, the refinement flow diagram for the step of switching current first line of a couplet port or keeping former first line of a couplet port;
Fig. 3 is flow signal of the present invention for the switching method second embodiment of the first line of a couplet port in polymorphic network
Figure;
Fig. 4 is that function module of the present invention for the switching device first embodiment of the first line of a couplet port in polymorphic network is shown
It is intended to;
Fig. 5 is the refinement high-level schematic functional block diagram of determination unit;
Fig. 6 is that function module of the present invention for the switching device second embodiment of the first line of a couplet port in polymorphic network is shown
It is intended to;
When Fig. 7 is adaptive model, the selection flow chart of current first line of a couplet port;
When Fig. 8 is order configuration mode, the selection flow chart of current first line of a couplet port.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of switching method and device for the first line of a couplet port in polymorphic network.
Referring to Fig.1, Fig. 1 is stream of the present invention for the switching method first embodiment of the first line of a couplet port in polymorphic network
Journey schematic diagram;
In first embodiment, the switching method of the first line of a couplet port being used in polymorphic network includes:
Step S10 obtains the state of the detection signal and the switch concatenation network port of passive optical network port.
Specifically, whether the detection signal, that is, S/D signals for detecting passive optical network port first, judge the S/D signals
In the presence of by judging that S/D signals whether there is to judge the state of passive optical network port.And detect switch concatenation network-side
Whether mouth is online.
Step S20 detects signal, the state of the switch concatenation network port and default priority rule according to described,
Switch current first line of a couplet port or keeps former first line of a couplet port.
Specifically, this method can be arranged excellent with passive optical network port or the switch concatenation network port according to actual needs
First priority principle.For example, provided with it is preferential with passive optical network port when, though that is, the state of switch concatenation port whether
Online, as long as passive optical network port online all must be with passive optical network port for current first line of a couplet port.In specific embodiment
Can also be preferably according to actual needs principle with the switch concatenation network port, and though that is, the state of passive optical network mouth whether
Online, it is necessary to which it is current first line of a couplet port that the switch concatenation network port, which is arranged,.
Implementation of the invention for ease of description, the present embodiment is preferably principle with passive optical network port,
The current first line of a couplet port of manual setting, this method whether is needed also to support two patterns according to actual conditions, adaptively
Pattern and order configuration mode.
Adaptive model is chosen in the present embodiment to describe.In specific embodiment, can also choose order configuration mode is
Embodiment is described.The switch concatenation network port can be configured to by command mode in the order configuration mode
Isolation is arranged between the switch concatenation network port and the first user port, and cancels passive optical network port for user port
Isolation between the switch concatenation network port, and corresponding flag bit is set, to have indicated the switch concatenation network port
It is set as user port.At this moment passive optical network port acquiescence is switched to current first line of a couplet port.As shown in figure 8, being configured in order
When the current first line of a couplet port of mode setting, first determine whether that S/D signals whether there is, if S/D signals exist, by passive optical network end
Mouth is set as current first line of a couplet port, if being not present, judges whether to set gigabit port to user port, if so, by nothing
Source optical network port is set as current first line of a couplet port.Otherwise judge whether gigabit port is online, if online, gigabit port is set
It is set to current first line of a couplet port, otherwise sets passive optical network port to current first line of a couplet port.
In adaptive model, a process is opened, is scanned respectively to obtain passive optical network port i.e. PON mouthfuls within every two seconds
The state of the network port, that is, GE mouthfuls of the S/D signals and switch concatenation of middle optical module.Then according to the Different Results got come
It is current first line of a couplet port that passive optical network port or gigabit port, which is arranged,.
It whether there is according to the S/D signals of the PON mouths got and GE mouthfuls of state be that online (LINK UP) does not still exist
Line (LINK DOWN) is switched to current first line of a couplet port then according to the preset priority rule by described PON mouthfuls or GE mouthful
Or keep former first line of a couplet port.As shown in fig. 7, when current first line of a couplet port is arranged in adaptive model, whether S/D signals are first determined whether
In the presence of if the presence of S/D signals, sets passive optical network port to current first line of a couplet port, if being not present, judges gigabit port
It is whether online, if online, setting gigabit port to current first line of a couplet port, passive optical network port being otherwise set as current
First line of a couplet port.
The present embodiment provides a kind of switching methods for first line of a couplet port in polymorphic network, and the switching method is by obtaining
Take the state of the detection signal and the switch concatenation network port of passive optical network port;According to the detection signal, the friendship
Change planes cascade network port state and default priority rule, switch current first line of a couplet port or keep former first line of a couplet port.By upper
Scheme is stated, the present invention provides a kind of with passive optical network port, the switch concatenation for being used in switch concatenation network
The network port and a kind of switching method of first line of a couplet port.Switch-level is used in the case of switch concatenation network to realize
Join the network port as current first line of a couplet port;When network is updated to passive optical network, passive optical network port conduct is switched to
Current first line of a couplet port.This ensure that equipment can normal use under switch concatenation network or passive optical network.With
Reduce the wasting of resources caused by network upgrade.
With reference to Fig. 2, Fig. 2 is in Fig. 1 according to the detection signal, the state of the switch concatenation network port and default
Priority rule, the refinement flow diagram for the step of switching current first line of a couplet port or keeping former first line of a couplet port;
In the present embodiment implemented based on above-mentioned first embodiment, in the present embodiment, the step S20 includes:
Step S21 determines that current network is according to the state of the detection signal and the switch concatenation network port
Passive optical network and/or switch concatenation network.
Specifically, according to the S/D signals and GE mouthfuls of the state, determine that current network is PON network, switch-level
Networking network or PON network and switch concatenation network are parallel.
In the present embodiment, the step S21 includes:
Step S211, when the detection signal exists and the state of the switch concatenation network port is not online,
Determine that current network is passive optical network;
Specifically, if scanning exists to the S/D signals and GE mouthfuls of state is LINK DOWN, it is determined that current net
Network is PON network.
Step S212, when the detection signal is not present and the state of the switch concatenation network port is online,
Determine that current network is switch concatenation network;
Specifically, if scanning is not present to the S/D signals and GE mouthfuls of state is LINK UP, it is determined that current net
Network is switch concatenation network.
Step S213, when the detection signal exists and the state of the switch concatenation network port is online, really
It is that the passive optical network and the switch concatenation network are parallel to determine current network.
Specifically, if scanning exists to the S/D signals and GE mouthfuls of state is LINK UP, it is determined that current network
It is parallel for PON network and switch concatenation network.
Step S22 switches current first line of a couplet port or keeps former first line of a couplet port according to current network and default priority rule.
Specifically, it is PON network or switch concatenation network according to determining current network, PON mouthfuls or GE mouthfuls is switched
For current first line of a couplet port or keep former first line of a couplet port.If it is determined that current network is that PON network and switch concatenation network are parallel, then
According to pre-set PON mouthfuls of priority principle, it is switched to current first line of a couplet port by PON mouthfuls or keeps former first line of a couplet port.
In the present embodiment, step S22 further includes:
The passive optical network port is switched to currently by step S221 if current network is the passive optical network
First line of a couplet port;
Specifically, if it is determined that current network is PON network, then removes the mac address table of current first line of a couplet port, and GE is arranged
The port isolation of mouth and user port, current first line of a couplet port is set as by PON mouthfuls.
Step S222 cuts the switch concatenation network port if current network is the switch concatenation network
It is changed to current first line of a couplet port;
Specifically, if it is determined that current network is switch concatenation network, removes the mac address table of current first line of a couplet port,
The PON mouthfuls of port isolation states with user port are set, cancels user port and GE mouthfuls of port isolation, is set as current by GE mouthfuls
First line of a couplet port.
Step S223, if current network is that the passive optical network and the switch concatenation network are parallel, according to pre-
If the passive optical network port or the switch concatenation network port are switched to current first line of a couplet port or keep former by priority rule
First line of a couplet port.
Specifically, if it is determined that current network is that PON network and switch concatenation network are parallel, then according to pre-set
PON priority rules remove the mac address table of current first line of a couplet port, and the port isolation of GE mouthfuls of setting and user port, acquiescence will
PON mouthfuls are set as current first line of a couplet port.
In the present embodiment, the switching method further includes:
Step S30, when the detection signal is not present and the state of the switch concatenation network port is not online,
According to default priority rule, the passive optical network port or the switch concatenation network port are switched to current first line of a couplet end by acquiescence
Mouth keeps former first line of a couplet port.
Specifically, if scanning is not present to the S/D signals and GE mouthfuls of state is LINK DOWN, according to default
With PON mouthfuls for preferential principle, by PON mouthfuls be set as current first line of a couplet port or keep PON mouthful for original first line of a couplet port.
It is stream of the present invention for the switching method second embodiment of the first line of a couplet port in polymorphic network with reference to Fig. 3, Fig. 3
Journey schematic diagram;
Based on first embodiment implement this implementation in, in order to use passive optical network port as current first line of a couplet port
When, gigabit port will not be vacant, and resource is allowed to be fully utilized, which includes:
Step S40 networks if the passive optical network port is switched to current first line of a couplet port in the switch-level
Isolation is set between network port and the first user port, while cancelling the passive optical network port and networking with the switch-level
Isolation between network port is to set the switch concatenation network port to second user port.
Specifically, however, it is determined that current network is PON network, then is switched to current first line of a couplet port by PON mouthfuls, removes the former first line of a couplet
The mac address table of port, the port isolation of GE mouthfuls of setting and user port, while cancelling the port isolation of GE mouthfuls and PON mouthfuls, it will
GE mouthfuls are set as another user port to use.
The present invention further provides a kind of switching devices for the first line of a couplet port in polymorphic network.
It is work(of the present invention for the switching device first embodiment of the first line of a couplet port in polymorphic network with reference to Fig. 4, Fig. 4
It can module diagram;
In the present embodiment, the switching device of the first line of a couplet port being used in polymorphic network includes:
Acquisition module 100, the shape of detection signal and the switch concatenation network port for obtaining passive optical network port
State;
Specifically, whether the detection signal, that is, S/D signals for detecting passive optical network port first, judge the S/D signals
In the presence of by judging that S/D signals whether there is to judge the state of passive optical network port.And detect switch concatenation network-side
Whether mouth is online.
First handover module 200, for according to the state of the detection signal, the switch concatenation network port and pre-
If priority rule, switches current first line of a couplet port or keep former first line of a couplet port.
Specifically, this method can be arranged excellent with passive optical network port or the switch concatenation network port according to actual needs
First priority principle.For example, provided with it is preferential with passive optical network port when, though that is, the state of switch concatenation port whether
Online, as long as passive optical network port online all must be with passive optical network port for current first line of a couplet port.In specific embodiment
Can also be preferably according to actual needs principle with the switch concatenation network port, and though that is, the state of passive optical network mouth whether
Online, it is necessary to which it is current first line of a couplet port that the switch concatenation network port, which is arranged,.
Implementation of the invention for ease of description, the present embodiment is preferably principle with passive optical network port,
The current first line of a couplet port of manual setting, this method whether is needed also to support two patterns according to actual conditions, adaptively
Pattern and order configuration mode.
Adaptive model is chosen in the present embodiment to describe.In specific embodiment, can also choose order configuration mode is
Embodiment is described.The switch concatenation network port can be configured to by command mode in the order configuration mode
User port is arranged between the switch concatenation network port and user port and is isolated, and corresponding flag bit is arranged, to indicate
The switch concatenation network port has been set to user port.At this moment passive optical network port acquiescence is switched to current first line of a couplet port.
As shown in figure 8, when current first line of a couplet port is arranged in order configuration mode, first determine whether that S/D signals whether there is, if S/D signals
In the presence of then setting passive optical network port to current first line of a couplet port, if being not present, judge whether to set gigabit port to
User port, if so, setting passive optical network port to current first line of a couplet port.Otherwise judge whether gigabit port is online,
If online, set gigabit port to current first line of a couplet port, otherwise set passive optical network port to current first line of a couplet port.
In adaptive model, a process is opened, is scanned respectively to obtain passive optical network port i.e. PON mouthfuls within every two seconds
The state of the network port, that is, GE mouthfuls of the S/D signals and switch concatenation of middle optical module.Then according to the Different Results got come
It is current first line of a couplet port that passive optical network port or gigabit port, which is arranged,.
It whether there is according to the S/D signals of the PON mouths got and GE mouthfuls of state be that online (LINK UP) does not still exist
Line (LINK DOWN) is switched to current first line of a couplet port then according to the preset priority rule by described PON mouthfuls or GE mouthful
Or keep former first line of a couplet port.As shown in fig. 7, when current first line of a couplet port is arranged in adaptive model, whether S/D signals are first determined whether
In the presence of if the presence of S/D signals, sets passive optical network port to current first line of a couplet port, if being not present, judges gigabit port
It is whether online, if online, setting gigabit port to current first line of a couplet port, passive optical network port being otherwise set as current
First line of a couplet port.
The present embodiment provides a kind of switching devices for first line of a couplet port in polymorphic network, and the switching device is by obtaining
Take the state of the detection signal and the switch concatenation network port of passive optical network port;According to the detection signal, the friendship
Change planes cascade network port state and default priority rule, switch current first line of a couplet port or keep former first line of a couplet port.By upper
Scheme is stated, the present invention provides a kind of with passive optical network port, the switch concatenation for being used in switch concatenation network
The network port and a kind of switching method of first line of a couplet port.Switch-level is used in the case of switch concatenation network to realize
Join the network port as current first line of a couplet port;When network is updated to passive optical network, passive optical network port conduct is switched to
Current first line of a couplet port.This ensure that equipment can normal use under switch concatenation network or passive optical network.With
Reduce the wasting of resources caused by network upgrade.
It is the refinement high-level schematic functional block diagram of determination unit with reference to Fig. 5, Fig. 5;
In the present embodiment implemented based on above-mentioned first embodiment, in the present embodiment, first handover module 200 wraps
It includes:
Determination unit 210, for the state according to the detection signal, the switch concatenation network port, determination is worked as
Preceding network is passive optical network and/or switch concatenation network.
Specifically, according to the S/D signals and GE mouthfuls of the state, determine that current network is PON network, switch-level
Networking network or PON network and switch concatenation network are parallel.
Switch unit 220, for according to current network and default priority rule, switching current first line of a couplet port or keeping in original
Join port.
In the present embodiment, the determination unit 210 includes:
First determination subelement 211, for the shape when the detection signal presence and the switch concatenation network port
When state is not online, determine that current network is passive optical network;
Specifically, if scanning exists to the S/D signals and GE mouthfuls of state is LINK DOWN, it is determined that current net
Network is PON network.
Second determination subelement 212, when the detection signal is not present and the state of the switch concatenation network port
When being online, determine that current network is switch concatenation network;
Specifically, if scanning is not present to the S/D signals and GE mouthfuls of state is LINK UP, it is determined that current net
Network is switch concatenation network.
Third determination subelement 213, when the state of the detection signal presence and the switch concatenation network port is
When online, determine that current network is that the passive optical network and the switch concatenation network are parallel.
Specifically, if scanning exists to the S/D signals and GE mouthfuls of state is LINK UP, it is determined that current network
It is parallel for PON network and switch concatenation network.
The switch unit 220 includes:
First switch unit 221, if being the passive optical network for current network, by the passive optical network port
It is switched to current first line of a couplet port;
Specifically, if it is determined that current network is PON network, then removes the mac address table of current first line of a couplet port, and GE is arranged
The port isolation of mouth and user port, current first line of a couplet port is set as by PON mouthfuls.
Second switch unit 222, if being the switch concatenation network for current network, by the switch concatenation
The network port is switched to current first line of a couplet port;
Specifically, if it is determined that current network is switch concatenation network, removes the mac address table of current first line of a couplet port,
The PON mouthfuls of port isolation states with user port are set, cancels user port and GE mouthfuls of port isolation, is set as current by GE mouthfuls
First line of a couplet port.
Third switch unit 223, if for current network be the passive optical network and the switch concatenation network simultaneously
The passive optical network port or the switch concatenation network port are then switched to current first line of a couplet end by row according to default priority rule
Mouth keeps former first line of a couplet port.
Specifically, if it is determined that current network is that PON network and switch concatenation network are parallel, then according to pre-set
PON priority rules remove the mac address table of current first line of a couplet port, and the port isolation of GE mouthfuls of setting and user port, acquiescence will
PON mouthfuls are set as current first line of a couplet port.
In the present embodiment, the switching device further includes:
Second handover module 300, for being not present and the shape of the switch concatenation network port when the detection signal
When state is not online, according to default priority rule, acquiescence cuts the passive optical network port or the switch concatenation network port
It is changed to current first line of a couplet port or keeps former first line of a couplet port.
Specifically, if scanning is not present to the S/D signals and GE mouthfuls of state is LINK DOWN, according to default
With PON mouthfuls for preferential principle, by PON mouthfuls be set as current first line of a couplet port or keep PON mouthful for original first line of a couplet port.
It is work(of the present invention for the switching device second embodiment of the first line of a couplet port in polymorphic network with reference to Fig. 6, Fig. 6
It can module diagram;
Based on first embodiment implement this implementation in, in order to use passive optical network port as current first line of a couplet port
When, gigabit port will not be vacant, and resource is allowed to be fully utilized, and the switching device further includes:
User port setup module 400, if for the passive optical network port to be switched to current first line of a couplet port,
Between the switch concatenation network port and the first user port be arranged isolation, while cancel the passive optical network port with
Isolation between the switch concatenation network port is to set the switch concatenation network port to second user port.
Specifically, however, it is determined that current network is PON network, then is switched to current first line of a couplet port by PON mouthfuls, removes the former first line of a couplet
The mac address table of port, the port isolation of GE mouthfuls of setting and user port, while cancelling the port isolation of GE mouthfuls and PON mouthfuls, it will
GE mouthfuls are set as another user port to use.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, clothes
Be engaged in device, air conditioner or the network equipment etc.) method that executes each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (12)
1. a kind of switching method for the first line of a couplet port in polymorphic network, which is characterized in that the polymorphic network includes:
Passive optical network and switch concatenation network, the switching method include the following steps:
Obtain the state of the detection signal and the switch concatenation network port of passive optical network port;
According to the detection signal, the state of the switch concatenation network port and default priority rule, the current first line of a couplet is set
Port.
2. switching method as described in claim 1, which is characterized in that described according to the detection signal, the switch-level
Join the state and preset rules of the network port, the step of current first line of a couplet port is arranged includes:
According to it is described detection signal, the switch concatenation network port state, determine current network be passive optical network and/
Or switch concatenation network;
According to current network and default priority rule, current first line of a couplet port is set.
3. switching method as claimed in claim 2, which is characterized in that described according to the detection signal, the switch-level
The state for joining the network port determines that the step of current network is passive optical network and/or switch concatenation network includes:
When the detection signal exists and the state of the switch concatenation network port is not online, determine that current network is
Passive optical network;
When the detection signal is not present and the state of the switch concatenation network port is online, determine that current network is
Switch concatenation network;
When the detection signal exists and the state of the switch concatenation network port is online, determine current network for institute
It states passive optical network and the switch concatenation network is parallel.
4. switching method as claimed in claim 3, which is characterized in that it is described according to current network and default priority rule, if
The step of setting current first line of a couplet port include:
If current network is the passive optical network, it sets the passive optical network port to current first line of a couplet port;
If current network is the switch concatenation network, it sets the switch concatenation network port to current first line of a couplet end
Mouthful;
It, will according to priority rule is preset if current network is that the passive optical network and the switch concatenation network are parallel
The passive optical network port or the switch concatenation network port are set as current first line of a couplet port.
5. switching method as described in claim 1, which is characterized in that the switching method further includes:
When the detection signal is not present and the state of the switch concatenation network port is not online, according to default preferential
Rule sets the passive optical network port or the switch concatenation network port to current first line of a couplet port.
6. the switching method as described in claim 1-5 any one, which is characterized in that the switching method further includes:
If setting the passive optical network port to current first line of a couplet port, in the switch concatenation network port and first
Isolation is set between user port, while being cancelled between the passive optical network port and the switch concatenation network port
Isolation, sets the switch concatenation network port to second user port.
7. a kind of switching device for the first line of a couplet port in polymorphic network, the polymorphic network include:Passive optical network
With switch concatenation network, which is characterized in that the switching device includes:
Acquisition module, the state of detection signal and the switch concatenation network port for obtaining passive optical network port;
First handover module, for according to the state of the detection signal, the switch concatenation network port and default preferential
Rule switches current first line of a couplet port or keeps former first line of a couplet port.
8. switching device as claimed in claim 7, which is characterized in that first handover module includes:
Determination unit determines that current network is for the state according to the detection signal, the switch concatenation network port
Passive optical network and/or switch concatenation network;
Switch unit, for according to current network and default priority rule, switching current first line of a couplet port or keeping former first line of a couplet port.
9. switching device as claimed in claim 8, which is characterized in that the determination unit includes:
First determination subelement, for being not exist when the state of the detection signal presence and the switch concatenation network port
When line, determine that current network is passive optical network;
Second determination subelement, when the detection signal is not present and the state of the switch concatenation network port is online
When, determine that current network is switch concatenation network;
Third determination subelement, when the detection signal exists and the state of the switch concatenation network port is online,
Determine that current network is that the passive optical network and the switch concatenation network are parallel.
10. switching device as claimed in claim 9, which is characterized in that the switch unit includes:
The passive optical network port is switched to by the first switch unit if being the passive optical network for current network
Current first line of a couplet port;
Second switch unit, if being the switch concatenation network for current network, by the switch concatenation network-side
Mouth is switched to current first line of a couplet port;
Third switch unit, if being that the passive optical network and the switch concatenation network are parallel for current network, root
The passive optical network port or the switch concatenation network port are switched to current first line of a couplet port or guarantor according to default priority rule
Hold former first line of a couplet port.
11. switching device as claimed in claim 7, which is characterized in that the switching device further includes:
Second handover module, for when the detection signal be not present and the state of the switch concatenation network port be do not exist
When line, according to default priority rule, the passive optical network port or the switch concatenation network port are switched to currently by acquiescence
First line of a couplet port keeps former first line of a couplet port.
12. the switching device as described in claim 7-11 any one, which is characterized in that the switching device further includes:
User port setup module, if for the passive optical network port to be switched to current first line of a couplet port, in the friendship
It changes planes and isolation is set between cascade network port and the first user port, while cancelling the passive optical network port and the friendship
The isolation changed planes between cascade network port is to set the switch concatenation network port to second user port.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710176219.0A CN108632175B (en) | 2017-03-22 | 2017-03-22 | Switching method and device for uplink port in multi-form network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710176219.0A CN108632175B (en) | 2017-03-22 | 2017-03-22 | Switching method and device for uplink port in multi-form network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108632175A true CN108632175A (en) | 2018-10-09 |
CN108632175B CN108632175B (en) | 2022-03-01 |
Family
ID=63707157
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710176219.0A Active CN108632175B (en) | 2017-03-22 | 2017-03-22 | Switching method and device for uplink port in multi-form network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108632175B (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1859811A (en) * | 2006-03-15 | 2006-11-08 | 华为技术有限公司 | Passive optical network system and its service protective method |
CN101051885A (en) * | 2007-05-17 | 2007-10-10 | 中兴通讯股份有限公司 | Protecting method and device for cut-in device up connection service |
CN101420639A (en) * | 2008-05-06 | 2009-04-29 | 上海未来宽带技术及应用工程研究中心有限公司 | Optical network unit equipment configured with PON port and GE port, network system and implementing method |
CN101436945A (en) * | 2008-12-25 | 2009-05-20 | 中兴通讯股份有限公司 | Method, system and apparatus for protecting multicast business fault |
WO2009127128A1 (en) * | 2008-04-16 | 2009-10-22 | 中兴通讯股份有限公司 | Method for avoiding downstream data flooding in ethernet passive optical network |
CN101867411A (en) * | 2010-06-17 | 2010-10-20 | 中兴通讯股份有限公司 | Method, system and device for realizing passive optical network optical fiber protection |
CN101997630A (en) * | 2009-08-29 | 2011-03-30 | 中兴通讯股份有限公司 | Method for protecting time division multiplexing service |
CN104518829A (en) * | 2013-09-29 | 2015-04-15 | 中国移动通信集团公司 | Optical splitter and ring-saped passive optical network |
CN104883337A (en) * | 2014-02-27 | 2015-09-02 | 中兴通讯股份有限公司 | Ring network user safety realizing method and apparatus |
WO2016050868A2 (en) * | 2014-09-30 | 2016-04-07 | Rockley Photonics Limited | Optoelectronic switch |
WO2016110151A1 (en) * | 2015-01-06 | 2016-07-14 | 烽火通信科技股份有限公司 | Method and device for detecting link loopback of pon system |
CN106375248A (en) * | 2016-11-18 | 2017-02-01 | 成都英德思网络技术有限公司 | Ethernet switch and communication method supporting network backup |
-
2017
- 2017-03-22 CN CN201710176219.0A patent/CN108632175B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1859811A (en) * | 2006-03-15 | 2006-11-08 | 华为技术有限公司 | Passive optical network system and its service protective method |
CN101051885A (en) * | 2007-05-17 | 2007-10-10 | 中兴通讯股份有限公司 | Protecting method and device for cut-in device up connection service |
WO2009127128A1 (en) * | 2008-04-16 | 2009-10-22 | 中兴通讯股份有限公司 | Method for avoiding downstream data flooding in ethernet passive optical network |
CN101420639A (en) * | 2008-05-06 | 2009-04-29 | 上海未来宽带技术及应用工程研究中心有限公司 | Optical network unit equipment configured with PON port and GE port, network system and implementing method |
CN101436945A (en) * | 2008-12-25 | 2009-05-20 | 中兴通讯股份有限公司 | Method, system and apparatus for protecting multicast business fault |
CN101997630A (en) * | 2009-08-29 | 2011-03-30 | 中兴通讯股份有限公司 | Method for protecting time division multiplexing service |
CN101867411A (en) * | 2010-06-17 | 2010-10-20 | 中兴通讯股份有限公司 | Method, system and device for realizing passive optical network optical fiber protection |
CN104518829A (en) * | 2013-09-29 | 2015-04-15 | 中国移动通信集团公司 | Optical splitter and ring-saped passive optical network |
CN104883337A (en) * | 2014-02-27 | 2015-09-02 | 中兴通讯股份有限公司 | Ring network user safety realizing method and apparatus |
WO2016050868A2 (en) * | 2014-09-30 | 2016-04-07 | Rockley Photonics Limited | Optoelectronic switch |
WO2016110151A1 (en) * | 2015-01-06 | 2016-07-14 | 烽火通信科技股份有限公司 | Method and device for detecting link loopback of pon system |
CN106375248A (en) * | 2016-11-18 | 2017-02-01 | 成都英德思网络技术有限公司 | Ethernet switch and communication method supporting network backup |
Also Published As
Publication number | Publication date |
---|---|
CN108632175B (en) | 2022-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104254070B (en) | WiFi cut-in method, intelligent terminal and routing device | |
CN104185305B (en) | It is a kind of to apply networking methods and mobile terminal with priority | |
CN107347205B (en) | A kind of network slice selection method, apparatus and system | |
EP3029989A1 (en) | Wlan user roaming | |
CN106332201A (en) | Wireless hotspot switching method and mobile terminal | |
CN107396409A (en) | Wireless terminal frequency band switching method and wireless router | |
CN106131899A (en) | Networking control method and terminal unit | |
CN105049373B (en) | MLAG switch protecting methods based on APS | |
CN105933236A (en) | Method and device for updating SDN (Software Defined Network) flow table | |
CN104540157B (en) | A kind of incoming telephone signal changing method, device and terminal | |
CN101965012A (en) | Load balancing method and device | |
CN107820289A (en) | A kind of WIFI network switching method, device, terminal and medium | |
CN105284150A (en) | Service offloading method, control network element, gateway router, and user plane entity | |
CN109287001A (en) | Link connection method and relevant apparatus | |
CN106330728B (en) | Method, the equipment of standby Designated Router and Designated Router troubleshooting are waited in election | |
CN105307224A (en) | Method and device for intelligently switching terminal between access points and terminal | |
CN105337801B (en) | A kind of method for test examples design based on state machine suitable for switch protocol | |
CN105246078B (en) | The control method and device of radio reception device | |
CN107548101B (en) | Message processing method and device, AP and computer storage medium | |
CN103763738A (en) | Method, system and device for segregating services | |
CN108632175A (en) | Switching method and device for first line of a couplet port in polymorphic network | |
CN103067298A (en) | Network flow allocation method and system | |
CN103765819B (en) | A kind of data configuration method and network management server | |
CN105763483A (en) | Message sending method and message sending device | |
CN103856526B (en) | Method and its terminal device that terminal device passes through PC connections 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 |