CN109151620A - Aggregation group port switching method and device and Optical Line Terminal (OLT) equipment - Google Patents

Aggregation group port switching method and device and Optical Line Terminal (OLT) equipment Download PDF

Info

Publication number
CN109151620A
CN109151620A CN201710509797.1A CN201710509797A CN109151620A CN 109151620 A CN109151620 A CN 109151620A CN 201710509797 A CN201710509797 A CN 201710509797A CN 109151620 A CN109151620 A CN 109151620A
Authority
CN
China
Prior art keywords
aggregation group
processing unit
group member
network processing
member port
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
Application number
CN201710509797.1A
Other languages
Chinese (zh)
Other versions
CN109151620B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201710509797.1A priority Critical patent/CN109151620B/en
Publication of CN109151620A publication Critical patent/CN109151620A/en
Application granted granted Critical
Publication of CN109151620B publication Critical patent/CN109151620B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering

Landscapes

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

Abstract

The invention provides a method and a device for switching ports of an aggregation group and Optical Line Terminal (OLT) equipment, wherein the method comprises the following steps: a network processor receives a control message sent by a CPU, wherein the message header of the control message carries port information of an aggregation group member to be switched; the network processor switches the ports of the aggregation group members according to the information of the ports of the aggregation group members, and solves the problem of long port switching time caused by process communication between CPUs in the related art by using a general hardware resource mode of the network processor, thereby improving the switching rate of the ports of the aggregation group members.

Description

Aggregation group port switching method, device and optical line terminal OLT equipment
Technical field
The present invention relates to the communications fields, whole in particular to a kind of aggregation group port switching method, device and optical link Hold OLT device.
Background technique
Network processing unit is a kind of programming device, specific application in the various tasks of communication network, such as Message processing, Protocal analysis, route querying, QoS etc..Using more kernel parallel processor architectures, piece inner treater is roughly divided into core by task Processor and forwarding engine.There is specialized hardware coprocessor, specialized hardware is used to the general utility functions module for requiring high speed processing It realizes to improve system performance.It can also be interconnected between multiple network processing units, constitute network processing unit cluster, it is more big to support The network processes of type high speed.
Trunking is that multiple port trunkings are formed to a convergence group together, to realize load in each member port Share, while also providing higher connection reliability.Port trunking can configure on the port in group, make flow can be with Carry out load balancing automatically on these ports.In order to reduce losing for during adding or deleting aggregation group member port network packet Lose quantity, it would be desirable to the shortening port switching time as far as possible.
Conventional polymeric group port switching uses centralized processing mode, communicates using between plate, sends messages to master by line card Plate is controlled, processing result is handed down to line card again and handled by master control borad.
Conventional polymeric group port switching step are as follows: for port status change notification to master control borad, master control borad issues processing message To line card, line card central processor CPU retransmits instruction and gives network processing unit protocol layer, and protocol layer configuration port information is handed down to Network processing unit bottom, bottom call microcode to carry out the read-write of hardware port information table, just calculate to this and complete port status Switching.How to simplify the above process, reduce each step call duration time, will control switching time becomes at developing network within ms Manage one of the technical problem of device.
Lead to port switching time longer problem, not yet proposition solution party for process communication between CPU in the related technology Case.
Summary of the invention
The embodiment of the invention provides a kind of aggregation group port switching method, device and optical line terminal OLT equipment, so that Process communication causes the port switching time longer between solving the problems, such as CPU in the related technology less.
According to one embodiment of present invention, a kind of aggregation group port switching method is provided, comprising:
Network processing unit receives the control message that CPU is sent, wherein carries in the heading of the control message to be cut The aggregation group member port information changed;
The network processing unit switches over processing to aggregation group member port according to the aggregation group member port information.
Optionally, the network processing unit cuts aggregation group member port according to the aggregation group member port information Changing processing includes:
The network processing unit is added or deletes to aggregation group member port according to the aggregation group member port information It removes.
Optionally, the network processing unit adds aggregation group member port according to the aggregation group member port information Add or delete and includes:
The network processing unit is by corresponding micro code program according to the aggregation group member port information searching hardware list;
Corresponding aggregation group member port is added or deleted in the hardware list.
Optionally, the method also includes:
While adding or deleting corresponding aggregation group member port in the hardware list, the association of the network processing unit View layer is configured according to the heading information of the control message, and it is corresponding to add or delete the aggregation group member port information Software register list item.
Optionally, the network processing unit receives the control message that the CPU is sent and includes:
The control message includes that unicast inserts packet voice and broadcasts slotting packet voice, when the heading of the control message carries Aggregation group member port information when being the network processing unit port, the network processing unit receives the list that the CPU is sent Broadcast slotting packet voice;
When the aggregation group member port information that the heading of the control message carries is the non-network processing unit port When, the network processing unit receives the broadcast that the CPU is sent and inserts packet voice, and described broadcast is inserted packet voice by micro code program It is broadcasted, wherein the network processing unit for broadcasting slotting packet voice for corresponding ports is handled by micro code program.
According to another embodiment of the invention, a kind of aggregation group port switching method is additionally provided, comprising:
Whether CPU poll aggregation group member port state changes;
When the aggregation group member port state changes, the CPU sends control message to network processing unit, In, to be switched aggregation group member port information, the aggregation group member port are carried in the heading of the control message Information switches over processing to aggregation group member port for the network processing unit.
Optionally, the CPU includes: to network processing unit transmission control message
The CPU reports mechanism to send control message to the network processing unit using interruption.
Optionally, the CPU includes: to network processing unit transmission control message
The control message includes that unicast inserts packet voice and broadcasts slotting packet voice, when the heading of the control message carries Aggregation group member port information be the network processing unit port when, the CPU to the network processing unit send unicast insert Packet voice;
When the aggregation group member port information that the heading of the control message carries is the non-network processing unit port When, the CPU, which sends to broadcast to the network processing unit, inserts packet voice, and it is logical with then network processing unit that packet voice is inserted in the broadcast It crosses micro code program to be broadcasted, the network processing unit of corresponding ports is handled by micro code program.
According to still another embodiment of the invention, a kind of aggregation group port switching device is additionally provided, is applied at network Manage device, comprising:
Receiving module, for receiving the control message of CPU transmission, wherein carried in the heading of the control message To be switched aggregation group member port information;
Hand-off process module, for switching over place to aggregation group member port according to the aggregation group member port information Reason.
Optionally, the hand-off process module, is also used to
The network processing unit is added or deletes to aggregation group member port according to the aggregation group member port information It removes.
Optionally, the hand-off process module, is also used to
By corresponding micro code program according to the aggregation group member port information searching hardware list;
Corresponding aggregation group member port is added or deleted in the hardware list.
Optionally, described device further include:
Module is added or deleted, for adding or deleting the same of corresponding aggregation group member port in the hardware list When, it is configured by protocol layer according to the heading information of the control message, adds or deletes the polymerization group membership end Message ceases corresponding software register list item.
Optionally, the receiving module, is also used to
The control message includes that unicast inserts packet voice and broadcasts slotting packet voice, when the heading of the control message carries Aggregation group member port information when being the network processing unit port, receive the unicast that the CPU is sent and insert packet voice;
When the aggregation group member port information that the heading of the control message carries is the non-network processing unit port When, it receives the broadcast that the CPU is sent and inserts packet voice, the broadcast is inserted by packet voice by micro code program and is broadcasted, wherein The network processing unit that slotting packet voice is broadcasted for corresponding ports is handled by micro code program.
According to still another embodiment of the invention, a kind of aggregation group port switching device is additionally provided, CPU, packet are applied to It includes:
Whether poller module changes for poll aggregation group member port state;
Sending module, for sending and controlling to network processing unit when the aggregation group member port state changes Message, wherein to be switched aggregation group member port information, the polymerization composition are carried in the heading of the control message Member's port information switches over processing to aggregation group member port for the network processing unit.
Optionally, the sending module is also used to report mechanism to send control report to the network processing unit using interruption Text.
Optionally, the sending module, is also used to
The control message includes that unicast inserts packet voice and broadcasts slotting packet voice, when the heading of the control message carries Aggregation group member port information be the network processing unit port when, to the network processing unit send unicast insert packet voice;
When the aggregation group member port information that the heading of the control message carries is the non-network processing unit port When, it sends to broadcast to the network processing unit and inserts packet voice, the broadcast inserts packet voice and passes through microcode with then network processing unit Program broadcast is gone out, and the network processing unit of corresponding ports is handled by micro code program.
According to still another embodiment of the invention, a kind of optical line terminal OLT equipment, including first line of a couplet card, institute are additionally provided Stating first line of a couplet card includes CPU and network processing unit, wherein
Whether the CPU changes for poll aggregation group member port state;When the aggregation group member port shape When state changes, control message is sent to network processing unit, wherein is carried in the heading of the control message to be switched Aggregation group member port information;
Network processing unit forms polymerization according to the aggregation group member port information for receiving the control message Member port switches over processing.
Optionally, the network processing unit further include:
Microcode module, for being added in the hardware list according to the aggregation group member port information searching hardware list Or delete corresponding aggregation group member port.
Optionally, the network processing unit is also used to add or delete corresponding polymerization group membership in the hardware list While port, is configured by protocol layer according to the heading information of the control message, add or delete the polymerization The corresponding software register list item of group membership's port information.
According to still another embodiment of the invention, a kind of storage medium is additionally provided, the storage medium includes storage Program, wherein described program executes method described in any of the above embodiments when running.
According to still another embodiment of the invention, a kind of processor is additionally provided, the processor is used to run program, In, described program executes method described in any of the above embodiments when running.
Through the invention, network processing unit receives the control message that CPU is sent, wherein the heading of the control message In carry to be switched aggregation group member port information;The network processing unit is according to the aggregation group member port information pair Aggregation group member port switches over processing, using the typical hardware resource mode of network processing unit, solves in the related technology Process communication leads to port switching time longer problem between CPU, improves the switching rate of aggregation group member port.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart one of aggregation group port switching method according to an embodiment of the present invention;
Fig. 2 is the flowchart 2 of aggregation group port switching method according to an embodiment of the present invention;
Fig. 3 is the flow chart one that CPU according to an embodiment of the present invention issues control message;
Fig. 4 is the flowchart 2 that CPU according to an embodiment of the present invention issues control message;
Fig. 5 is the network topological diagram of line card main control card logical connection according to an embodiment of the present invention;
Fig. 6 is the schematic diagram of control message format according to an embodiment of the present invention;
Fig. 7 is the tabular schematic diagram of SG hardware according to an embodiment of the present invention;
Fig. 8 is the structural block diagram one of aggregation group port switching device according to an embodiment of the present invention;
Fig. 9 is the structural block diagram two of aggregation group port switching device according to an embodiment of the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment 1
A kind of aggregation group port switching method is provided in the present embodiment, and Fig. 1 is polymerization according to an embodiment of the present invention The flow chart one of group port switching method, as shown in Figure 1, the process includes the following steps:
Step S102, network processing unit receive the control message that CPU is sent, wherein in the heading of the control message Carry to be switched aggregation group member port information;
Step S104, the network processing unit carry out aggregation group member port according to the aggregation group member port information Hand-off process.
Through the above steps, network processing unit receives the control message that CPU is sent, wherein the message of the control message To be switched aggregation group member port information is carried in head;The network processing unit is according to the aggregation group member port information Processing is switched over to aggregation group member port, using the typical hardware resource mode of network processing unit, solves the relevant technologies Process communication leads to port switching time longer problem between middle CPU, improves the switching rate of aggregation group member port.
Optionally, the network processing unit cuts aggregation group member port according to the aggregation group member port information Changing processing may include: that the network processing unit adds aggregation group member port according to the aggregation group member port information Add or deletes.
Optionally, the network processing unit adds aggregation group member port according to the aggregation group member port information Adding or deleting may include: that the network processing unit is looked by corresponding micro code program according to the aggregation group member port information Look for hardware list;Corresponding aggregation group member port is added or deleted in the hardware list.
Optionally, the method also includes: corresponding aggregation group member port is added or deleted in the hardware list Meanwhile the protocol layer of the network processing unit is configured according to the heading information of the control message, adds or deletes institute State the corresponding software register list item of aggregation group member port information.
Optionally, it may include: the control message packet that the network processing unit, which receives the control message that the CPU is sent, It includes unicast to insert packet voice and broadcast slotting packet voice, when the aggregation group member port information that the heading of the control message carries is When the network processing unit port, the network processing unit receives the unicast that the CPU is sent and inserts packet voice;
When the aggregation group member port information that the heading of the control message carries is the non-network processing unit port When, the network processing unit receives the broadcast that the CPU is sent and inserts packet voice, and described broadcast is inserted packet voice by micro code program It is broadcasted, wherein the network processing unit for broadcasting slotting packet voice for corresponding ports is handled by micro code program.
Embodiment 2
According to another embodiment of the invention, a kind of aggregation group port switching method is additionally provided, Fig. 2 is according to this hair The flowchart 2 of the aggregation group port switching method of bright embodiment, as shown in Fig. 2, the process includes the following steps:
Whether step S202, CPU poll aggregation group member port state changes;
Step S204, when the aggregation group member port state changes, the CPU sends to network processing unit and controls Message processed, wherein carry to be switched aggregation group member port information, the aggregation group in the heading of the control message Member port information switches over processing to aggregation group member port for the network processing unit.
Through the above steps, when aggregation group member port state changes, control message is sent to network processing unit, Wherein, to be switched aggregation group member port information is carried in the heading of the control message;The network processing unit root Processing is switched over to aggregation group member port according to the aggregation group member port information, utilizes the typical hardware of network processing unit Resource mode, process communication causes the port switching time longer between solving the problems, such as CPU in the related technology, improves aggregation group The switching rate of member port.
Optionally, it may include: the CPU using in interruption that the CPU, which sends control message to the network processing unit, Report mechanism sends control message to the network processing unit.
Optionally, it includes that unicast is inserted that the CPU, which may include: the control message to network processing unit transmission control message, Packet voice is inserted in packet voice and broadcast, when the aggregation group member port information that the heading of the control message carries is the network When processor port, the CPU sends unicast to the network processing unit and inserts packet voice;
When the aggregation group member port information that the heading of the control message carries is the non-network processing unit port When, the CPU, which sends to broadcast to the network processing unit, inserts packet voice, and it is logical with then network processing unit that packet voice is inserted in the broadcast It crosses micro code program to be broadcasted, the network processing unit of corresponding ports is handled by micro code program.
Using the typical hardware resource mode of network processing unit, a kind of aggregation group member port switching rate that promoted is provided Method, process communication leads to port switching time longer problem between improving traditional CPU.The embodiment of the present invention is using distributed With interior transmission communication mode, mechanism is reported using the interruption of this plate CPU, this plate CPU sends control message, control to network processing unit Comprising aggregation group member port information to be deleted or to be added in message processed, network processing unit is real according to control message port information Existing aggregation group member port adds or deletes.Fig. 3 is the flow chart that CPU according to an embodiment of the present invention issues control message One, as shown in Figure 3, the specific steps are as follows:
Step S302, when CPU detects that aggregation group member port state becomes down from up or becomes up from down, CPU sends control message to network processing unit NP, and header carries aggregation group member port information to be added or to be deleted;
Step S304, control message enter the microcode module of network processing unit;
Step S306, corresponding micro code program look into hardware list according to port information etc., and hit of tabling look-up adds in hardware list Add or delete corresponding aggregation group member port, the microcode of miss does not operate;
Step S308, while network processing unit protocol layer receives after controlling message, is configured, is added according to heading information Add or delete corresponding software register list item.
For aggregation group when receiving network flow, deleted port no longer receives stream, realizes the fast convergence of aggregation group;Just The port of addition will receive stream, realize that the quick load of aggregation group is shared.The triggering factors that aggregation group port is switched fast have two It is a: interruption and port polling.But the Plug Action for only responding optical fiber is interrupted, so the worst performance being switched fast depends on end The period of mouth poll and thread priority.
Fig. 4 is the flowchart 2 that CPU according to an embodiment of the present invention issues control message, as shown in figure 4, specific steps are such as Under:
Control message is divided into unicast control message and Broadcasting Control message.When the port information that header carries is Home Network When network processor port, this plate CPU sends unicast and inserts packet voice for microcode processing;When the port information that header carries is non- When present networks processor port, this plate CPU, which sends to broadcast, inserts packet voice, and microcode goes out this message broadcasting, the net of corresponding ports Network processor microcode is handled, and processing information is returned.
Polling mode is regardless of port information is either with or without update, and the transmission request of CPU all timings is inquired, it is possible to be looked into More new information is ask, but most times are to return to empty information.Regardless of query result, CPU will be when next Between point continue next round inquiry.As can be seen that the port polling CPU response time is long, low efficiency, poll port thread is excellent First grade is turned up to greatest extent, polling cycle set as far as possible it is short after, performance of handoffs is likely to reach ms rank.
Step S402, CPU interruption starts, and sends control message;
Step S404 judges whether aggregation group port switching executes step in the case where the judgment result is yes to type of message Rapid S406, it is no to then follow the steps S408;
Step S406, judges whether microcode looks into middle hardware list port information, executes step S410, no to then follow the steps S412;
Step S408, other microcode process flows;
Step S410, microcode add/delete aggregation group port;
Step S412, microcode dropping packets.
Interrupt mode is interrupted using this plate CPU inserts packet, and microcode is directly handled, and it is as follows to omit intermediate steps: network processing unit Protocol layer, which issues, is configured to bottom, and bottom receives configuration information and enters microcode processing.Such mode can will control switching time Within ms.
Traditional port switching is given port status change notification using communication mechanism between plate using centralized distribution scheme Master control borad, master control borad hand over processing message to be handed down to line card, and line card CPU is performed corresponding processing further according to type of message, efficiency ratio It is relatively low;And interrupt mode carries out port switching and does not need by master control borad issuing message, using with interior transmission mode, directly by line Card CPU is interrupted to give out a contract for a project and be handled according to port status variation, is greatly improved port switching efficiency.
Stabilization (preventing from shaking) operation is also added into it is important that interrupting and realization port being reported to be switched fast.Institute Call link shake, it will be appreciated that cause port status to continue to become in up- > down, down- > up to repeat fast insert-pull fiber port During change.It is switched fast because link shake in port can trigger, the polymerization of network processing unit add-back or deletion is formed Mistake is deleted or is added again for member port, and network processing unit is not responding to shake, and will not delete or add again the member port, There is also lead to member port configuration information mistake for the port that the port that should be added in this way is deleted, and should delete.
The anti-fluttering method that port is switched fast is when generation for the first time is shaken in port, and network processing unit will just correspond to Aggregation group member port add or delete, and the time is recorded, if CPU detects port status again at the appointed time This variation is then ignored in variation, then triggers interrupt operation again if more than the stipulated time, is can effectively avoid in the short time of port in this way Repeat configuration error.
In addition, the method superiority that this plate CPU implement of interruption function port is switched fast is also embodied in: CPU is only needed to network Processor sends specific control message, and network processor microcode carries out hardware table item resource read-write behaviour according to control message type Make, is done directly port and cuts fastly.Compared with tradition switching, communication between plates step is omitted.
The response time of the embodiment of the present invention is made of two parts: CPU to microcode handles the time, and network processing unit read-write is soft The part table time.The former is hardware pipeline, and microcode module is very efficient to the processing of message.Microcode is needed not move through directly to be read It writes, so speed is also quickly.Therefore the response time of the method for the present invention is than the response time that process is cut in general port fastly smaller It is more.
From the foregoing, it will be observed that the method for the present invention uses distribution with interior transmission mode, aggregation group port switching can be effectively reduced Average response time, and do not need special hardware search hardware, provided by hardware common to general networking processor Source can be realized.
The embodiment of the present invention is described in further detail combined with specific embodiments below.
In an EPON network, an OLT includes main control card, first line of a couplet card, pon card and onu.First line of a couplet card and pon card system Referred to as line card only considers the line card of one piece of network processing unit here.Fig. 5 is line card master control card logic according to an embodiment of the present invention The network topological diagram of connection, as shown in figure 5, uplink and downlink flow direction is opposite.
Aggregation group function only realizes that pon card is without this function on first line of a couplet card.First line of a couplet card CPU detects member port state It changes to generate to interrupt and report, call Port interrupts processing function to carry out unicast or broadcast and insert packet.Fig. 6 is according to the present invention The schematic diagram of the control message format of embodiment, as shown in fig. 6, packet format is divided into two parts: control type of message and port letter Breath.Control type of message is appointed as polymerization group membership and updates, and port information includes effective marker position valid, aggregation group ID, port Value portId, port operation: addition/deletion, MAC Address mac_addr, vlan value vlanId etc..Microcode section receives slotting packet, SG hardware list is searched, Fig. 7 is the tabular schematic diagram of SG hardware according to an embodiment of the present invention, as shown in fig. 7, SG sheet format, It is to table look-up key value with aggregation group ID number, the contents in table corresponding member port information of ID number thus.Look into corresponding to for middle SG table Port addition/deletion from aggregation group, do not look into middle SG table then by this packet loss.In addition, in order to keep hardware list and soft The consistency of part cache table content, CPU issue control message to the protocol layer of network processing unit, and protocol layer carries out buffer to ports letter The update of breath.
Without loss of generality, what consideration line card CPU was got is the information of non-plate aggregation port.Treatment process is as follows: this Line card CPU interruption reports, and Port interrupts processing function is called to carry out broadcasting slotting packet.The microcode of network processing unit receives slotting packet, sentences Disconnected is not the port of this line card, this packet broadcast is gone out, and the corresponding first line of a couplet card in distal end completes aggregation port more after receiving this broadcast packet New operation, and send a notification message.The microcode of network processing unit updates SG hardware list according to notification message.
The embodiment of the present invention, using distribution with interior transmission mode, line card sending port change information is to master control borad, master control Message is handed down to line card again after being disposed by plate, and line card CPU issues aggregation port and updates information to protocol layer, then by protocol layer Aggregation port information is configured to these steps of network processing unit, greatly shortens the response time that aggregation port is switched fast, Packet loss quantity is reduced as far as possible.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 3
Additionally provide a kind of aggregation group port switching device in the present embodiment, the device for realizing above-described embodiment and Preferred embodiment, the descriptions that have already been made will not be repeated.As used below, predetermined function may be implemented in term " module " The combination of the software and/or hardware of energy.It is hard although device described in following embodiment is preferably realized with software The realization of the combination of part or software and hardware is also that may and be contemplated.
Fig. 8 is the structural block diagram one of aggregation group port switching device according to an embodiment of the present invention, as shown in figure 8, the dress It sets and includes:
Receiving module 82, for receiving the control message of CPU transmission, wherein carried in the heading of the control message There is to be switched aggregation group member port information;
Hand-off process module 84, for being switched over according to the aggregation group member port information to aggregation group member port Processing.
Optionally, the hand-off process module 84, is also used to
The network processing unit is added or deletes to aggregation group member port according to the aggregation group member port information It removes.
Optionally, the hand-off process module 84, is also used to
By corresponding micro code program according to the aggregation group member port information searching hardware list;
Corresponding aggregation group member port is added or deleted in the hardware list.
Optionally, described device further include:
Module is added or deleted, for adding or deleting the same of corresponding aggregation group member port in the hardware list When, it is configured by protocol layer according to the heading information of the control message, adds or deletes the polymerization group membership end Message ceases corresponding software register list item.
Optionally, the receiving module 82, is also used to
The control message includes that unicast inserts packet voice and broadcasts slotting packet voice, when the heading of the control message carries Aggregation group member port information when being the network processing unit port, receive the unicast that the CPU is sent and insert packet voice;
When the aggregation group member port information that the heading of the control message carries is the non-network processing unit port When, it receives the broadcast that the CPU is sent and inserts packet voice, the broadcast is inserted by packet voice by micro code program and is broadcasted, wherein The network processing unit that slotting packet voice is broadcasted for corresponding ports is handled by micro code program.
Embodiment 4
According to still another embodiment of the invention, a kind of aggregation group port switching device is additionally provided, CPU, Fig. 9 are applied to It is the structural block diagram two of aggregation group port switching device according to an embodiment of the present invention, as shown in figure 9, the device includes:
Whether poller module 92 changes for poll aggregation group member port state;
Sending module 94, for sending and controlling to network processing unit when the aggregation group member port state changes Message processed, wherein carry to be switched aggregation group member port information, the aggregation group in the heading of the control message Member port information switches over processing to aggregation group member port for the network processing unit.
Optionally, the sending module 94 is also used to report mechanism to send control to the network processing unit using interruption Message.
Optionally, the sending module 94, is also used to
The control message includes that unicast inserts packet voice and broadcasts slotting packet voice, when the heading of the control message carries Aggregation group member port information be the network processing unit port when, to the network processing unit send unicast insert packet voice;
When the aggregation group member port information that the heading of the control message carries is the non-network processing unit port When, it sends to broadcast to the network processing unit and inserts packet voice, the broadcast inserts packet voice and passes through microcode with then network processing unit Program broadcast is gone out, and the network processing unit of corresponding ports is handled by micro code program.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any Combined form is located in different processors.
Embodiment 5
According to still another embodiment of the invention, a kind of optical line terminal OLT equipment, including first line of a couplet card, institute are additionally provided Stating first line of a couplet card includes CPU and network processing unit, wherein
Whether the CPU changes for poll aggregation group member port state;When the aggregation group member port shape When state changes, control message is sent to network processing unit, wherein is carried in the heading of the control message to be switched Aggregation group member port information;
Network processing unit forms polymerization according to the aggregation group member port information for receiving the control message Member port switches over processing.
Optionally, the network processing unit further include:
Microcode module, for being added in the hardware list according to the aggregation group member port information searching hardware list Or delete corresponding aggregation group member port.
Optionally, the network processing unit is also used to add or delete corresponding polymerization group membership in the hardware list While port, is configured by protocol layer according to the heading information of the control message, add or delete the polymerization The corresponding software register list item of group membership's port information.
Embodiment 6
The embodiments of the present invention also provide a kind of storage medium, which includes the program of storage, wherein above-mentioned Program executes method described in any of the above embodiments when running.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store the journey for executing following steps Sequence code:
S11 receives the control message that CPU is sent, wherein to be switched gather is carried in the heading of the control message It is combined member's port information;
S12 switches over processing to aggregation group member port according to the aggregation group member port information.
Optionally, storage medium is also configured to store the program code for executing following steps:
Whether S21, poll aggregation group member port state change;
S21 sends control message to network processing unit when the aggregation group member port state changes, wherein To be switched aggregation group member port information, the aggregation group member port information are carried in the heading of the control message Processing is switched over to aggregation group member port for the network processing unit.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read- Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard The various media that can store program code such as disk, magnetic or disk.
The embodiments of the present invention also provide a kind of processor, the processor is for running program, wherein program operation Step in Shi Zhihang any of the above-described method.
Optionally, in the present embodiment, above procedure is for executing following steps:
S31 receives the control message that CPU is sent, wherein to be switched gather is carried in the heading of the control message It is combined member's port information;
S32 switches over processing to aggregation group member port according to the aggregation group member port information.
Optionally, above procedure is also used to execute following steps:
Whether S41, poll aggregation group member port state change;
S41 sends control message to network processing unit when the aggregation group member port state changes, wherein To be switched aggregation group member port information, the aggregation group member port information are carried in the heading of the control message Processing is switched over to aggregation group member port for the network processing unit.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment Example, details are not described herein for the present embodiment.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in two computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein Out or the step of description, perhaps they are fabricated to each integrated circuit modules or by two of which module or Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.It is all within principle of the invention, it is made it is any modification, etc. With replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (15)

1. a kind of aggregation group port switching method characterized by comprising
Network processing unit receives the control message that CPU is sent, wherein carries in the heading of the control message to be switched Aggregation group member port information;
The network processing unit switches over processing to aggregation group member port according to the aggregation group member port information.
2. the method according to claim 1, wherein the network processing unit is according to the aggregation group member port Information switches over processing to aggregation group member port
The network processing unit is added or deletes to aggregation group member port according to the aggregation group member port information.
3. according to the method described in claim 2, it is characterized in that, the network processing unit is according to the aggregation group member port Information is added or deletes to aggregation group member port
The network processing unit is by corresponding micro code program according to the aggregation group member port information searching hardware list;
Corresponding aggregation group member port is added or deleted in the hardware list.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
While adding or deleting corresponding aggregation group member port in the hardware list, the protocol layer of the network processing unit It is configured according to the heading information of the control message, it is corresponding soft to add or delete the aggregation group member port information Part table list item.
5. method according to claim 1 to 4, which is characterized in that the network processing unit receives the CPU The control message of transmission includes:
The control message includes that unicast inserts packet voice and broadcasts slotting packet voice, when what the heading of the control message carried gathers When to be combined member's port information be the network processing unit port, the network processing unit receives the unicast that the CPU is sent and inserts Packet voice;
When the aggregation group member port information that the heading of the control message carries is the non-network processing unit port, institute It states network processing unit and receives the slotting packet voice of broadcast that the CPU is sent, described broadcast is inserted by packet voice broadcast by micro code program It goes out, wherein the network processing unit for broadcasting slotting packet voice for corresponding ports is handled by micro code program.
6. a kind of aggregation group port switching method characterized by comprising
Whether central processor CPU poll aggregation group member port state changes;
When the aggregation group member port state changes, the CPU sends control message to network processing unit, wherein To be switched aggregation group member port information, the aggregation group member port information are carried in the heading of the control message Processing is switched over to aggregation group member port for the network processing unit.
7. according to the method described in claim 6, it is characterized in that, the CPU sends control message to the network processing unit Include:
The CPU reports mechanism to send control message to the network processing unit using interruption.
8. method according to claim 7 or 8, which is characterized in that the CPU sends control message packet to network processing unit It includes:
The control message includes that unicast inserts packet voice and broadcasts slotting packet voice, when what the heading of the control message carried gathers Be combined member's port information be the network processing unit port when, the CPU to the network processing unit send unicast insert packet report Text;
When the aggregation group member port information that the heading of the control message carries is the non-network processing unit port, institute It states CPU and sends the slotting packet voice of broadcast to the network processing unit, the slotting packet voice of the broadcast then network processing unit passes through micro- Coded program is broadcasted, and the network processing unit of corresponding ports is handled by micro code program.
9. a kind of aggregation group port switching device is applied to network processing unit characterized by comprising
Receiving module, for receiving the control message of CPU transmission, wherein carried in the heading of the control message to be cut The aggregation group member port information changed;
Hand-off process module, for switching over processing to aggregation group member port according to the aggregation group member port information.
10. a kind of aggregation group port switching device is applied to CPU characterized by comprising
Whether poller module changes for poll aggregation group member port state;
Sending module, for sending control message to network processing unit when the aggregation group member port state changes, Wherein, to be switched aggregation group member port information, the polymerization group membership end are carried in the heading of the control message Message breath switches over processing to aggregation group member port for the network processing unit.
11. a kind of optical line terminal OLT equipment, including first line of a couplet card, which is characterized in that the first line of a couplet card includes central processing unit CPU and network processing unit, wherein
Whether the CPU changes for poll aggregation group member port state;When the aggregation group member port state is sent out When changing, control message is sent to network processing unit, wherein to be switched gather is carried in the heading of the control message It is combined member's port information;
Network processing unit, for receiving the control message, according to the aggregation group member port information to polymerization group membership end Mouth switches over processing.
12. equipment according to claim 11, which is characterized in that the network processing unit further include:
Microcode module, for adding or deleting in the hardware list according to the aggregation group member port information searching hardware list Except corresponding aggregation group member port.
13. equipment according to claim 12, which is characterized in that
The network processing unit, while being also used to add or delete corresponding aggregation group member port in the hardware list, It is configured by protocol layer according to the heading information of the control message, adds or deletes the aggregation group member port letter Cease corresponding software register list item.
14. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein when described program is run Method described in any one of perform claim requirement 1 to 5,6 to 8.
15. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run Benefit require any one of 1 to 5,6 to 8 described in method.
CN201710509797.1A 2017-06-28 2017-06-28 Aggregation group port switching method and device and Optical Line Terminal (OLT) equipment Active CN109151620B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710509797.1A CN109151620B (en) 2017-06-28 2017-06-28 Aggregation group port switching method and device and Optical Line Terminal (OLT) equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710509797.1A CN109151620B (en) 2017-06-28 2017-06-28 Aggregation group port switching method and device and Optical Line Terminal (OLT) equipment

Publications (2)

Publication Number Publication Date
CN109151620A true CN109151620A (en) 2019-01-04
CN109151620B CN109151620B (en) 2022-05-13

Family

ID=64803202

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710509797.1A Active CN109151620B (en) 2017-06-28 2017-06-28 Aggregation group port switching method and device and Optical Line Terminal (OLT) equipment

Country Status (1)

Country Link
CN (1) CN109151620B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112583709A (en) * 2019-09-27 2021-03-30 深圳市中兴微电子技术有限公司 Link aggregation routing method, system, switching equipment and medium
CN115347942A (en) * 2022-08-31 2022-11-15 杭州云合智网技术有限公司 Optical fiber channel anti-jitter implementation method, device, equipment and storage medium
WO2023065750A1 (en) * 2021-10-21 2023-04-27 华为技术有限公司 State synchronization method and apparatus, and device
CN116366536A (en) * 2019-02-18 2023-06-30 中兴通讯股份有限公司 Link aggregation port switching method, network equipment and computer storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413053A (en) * 2011-12-12 2012-04-11 盛科网络(苏州)有限公司 Method and device for realizing load balance of trunk port
CN102857419A (en) * 2012-10-12 2013-01-02 华为技术有限公司 Method and device for processing fault of link aggregation port
CN103236975A (en) * 2013-05-09 2013-08-07 杭州华三通信技术有限公司 Message forwarding method and message forwarding device
CN104038447A (en) * 2014-05-28 2014-09-10 杭州华三通信技术有限公司 Message transmission method and device
CN104468203A (en) * 2014-11-26 2015-03-25 上海斐讯数据通信技术有限公司 Allocating method of fault switching of ports in switch aggregation group
CN104982010A (en) * 2013-02-04 2015-10-14 戴尔产品有限公司 Systems and methods for layer-2 traffic polarization during failures in a virtual link trunking domain
US20170134267A1 (en) * 2005-05-06 2017-05-11 Orckit Ip, Llc Tunnel provisioning with link aggregation
CN106789264A (en) * 2016-12-26 2017-05-31 北京东土军悦科技有限公司 The method and apparatus that a kind of link aggregation group passage is switched fast

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170134267A1 (en) * 2005-05-06 2017-05-11 Orckit Ip, Llc Tunnel provisioning with link aggregation
CN102413053A (en) * 2011-12-12 2012-04-11 盛科网络(苏州)有限公司 Method and device for realizing load balance of trunk port
CN102857419A (en) * 2012-10-12 2013-01-02 华为技术有限公司 Method and device for processing fault of link aggregation port
CN104982010A (en) * 2013-02-04 2015-10-14 戴尔产品有限公司 Systems and methods for layer-2 traffic polarization during failures in a virtual link trunking domain
CN103236975A (en) * 2013-05-09 2013-08-07 杭州华三通信技术有限公司 Message forwarding method and message forwarding device
CN104038447A (en) * 2014-05-28 2014-09-10 杭州华三通信技术有限公司 Message transmission method and device
CN104468203A (en) * 2014-11-26 2015-03-25 上海斐讯数据通信技术有限公司 Allocating method of fault switching of ports in switch aggregation group
CN106789264A (en) * 2016-12-26 2017-05-31 北京东土军悦科技有限公司 The method and apparatus that a kind of link aggregation group passage is switched fast

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116366536A (en) * 2019-02-18 2023-06-30 中兴通讯股份有限公司 Link aggregation port switching method, network equipment and computer storage medium
CN112583709A (en) * 2019-09-27 2021-03-30 深圳市中兴微电子技术有限公司 Link aggregation routing method, system, switching equipment and medium
CN112583709B (en) * 2019-09-27 2024-05-28 深圳市中兴微电子技术有限公司 Routing method, system, switching equipment and medium for link aggregation
WO2023065750A1 (en) * 2021-10-21 2023-04-27 华为技术有限公司 State synchronization method and apparatus, and device
CN115347942A (en) * 2022-08-31 2022-11-15 杭州云合智网技术有限公司 Optical fiber channel anti-jitter implementation method, device, equipment and storage medium
CN115347942B (en) * 2022-08-31 2024-05-07 云合智网(上海)技术有限公司 Method, device, equipment and storage medium for realizing anti-jitter of optical fiber path

Also Published As

Publication number Publication date
CN109151620B (en) 2022-05-13

Similar Documents

Publication Publication Date Title
CA2963580C (en) Data forwarding method, device, and system in software-defined networking
EP3176979A1 (en) Information processing method and device
CN109151620A (en) Aggregation group port switching method and device and Optical Line Terminal (OLT) equipment
KR101473783B1 (en) Method and apparatus for control of dynamic service chaining by using tunneling
US20160080483A1 (en) Method for setting gateway device identity, and management gateway device
CN103685009B (en) Data packet processing method and system as well as controller
US9479384B2 (en) Data stream scheduling method, device, and system
CN105337853A (en) Instance establishing method and apparatus in software defined network (SDN)
CN108028801B (en) SDN-based ARP implementation method and device
CN110798412B (en) Multicast service processing method and device, cloud platform, equipment and readable storage medium
CN105122747A (en) Control device and control method in software defined network (sdn)
EP3713160A1 (en) Packet transmission method and apparatus
CN105635000B (en) A kind of message storage forwarding method and circuit and equipment
CN114285787B (en) Cross-user plane forwarding method, system and computer readable storage medium
JP6480452B2 (en) Packet processing method and apparatus
CN105141512A (en) Unified network configuration and control method supporting packet/circuit mixed exchange network
WO2013013642A1 (en) Method for processing inter-loop service and crossing node
CN113938955B (en) Data transmission method, device, equipment and system
CN102223311A (en) Queue scheduling method and device
CN103684838B (en) A method, an apparatus, a system for configuring a network strategy of a virtual machine
CN110620811B (en) ONU management method and system under vOLT cluster architecture
US20220166721A1 (en) Traffic balancing method, network device, and electronic device
CN105656814A (en) SDN (Software-Defined Network) forwarding system and method
CN106686739B (en) Wireless network resource management method based on software defined network and oriented to data flow
CN110635945B (en) Data processing method supporting time trigger mechanism and SDN network system

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