CONTROLLABLE MULTIPLEXER FOR A DIGITAL SWITCH

Abstract: The invention relates to a multiplexer for a digital switch, arranged to be included in a switch network whose data flow is organised in frames containing a number of time slots, said time slots including data time slots, which shall be directed through the switch from first to second sets of terminal units (4 and 6, respectively), such as subscriber connections, trunk connections, processors, etc. The multiplexer (12, 18) is controlled by a processor (34) for controllable multiplexing, i.e. mapping, of a number of transmission links (8) from each of a corresponding number of the terminal units (4) of said first set to a transmission link (10) leading to the switch, as well as of a transmission link (14) leading from the switch to a number of transmission links (16) leading to each of a corresponding number of terminal units (6) of said second set. The mapping is performed on the data time slots. All data time slots arriving from the terminal units (4) of said first set are to be sent forward via first buffer means (20) to the switch (2) in an order which is determined by a first control memory (22) for the mapping, and all data time slots arriving from the switch (2) are to be sent forward via second buffer means (24) toward the terminal units (6) of said second set in an order which is determined by a second control memory (22) for the mapping. Said buffer means (20, 24) are implemented as fifos, one for each of the links (8 and 16, respectively) from and to the terminal units (2 and 6, respectively).

Description: CONTROLLABLE MULTIPLEXER FOR A DIGITAL SWITCH TECHNICAL BACKGROUND. The present invention relates to a multiplexer for a digital switch, which is arranged to be included in a switch network, the data flow of which is organized into frames containing a number of time slots including data time slots, which shall be connected through the switch from first to second sets of terminal units, such as subscriber connections, trunk connections, processors, etc. , wherein the multiplexer is controlled by a processor for controllable multiplexing, i.e. mapping, of a number of transmission links from each of a corresponding number of the terminal unit of said first set to a transmission link leading to the switch, as well as of a transmission link leading from the switch to a number of transmission links to each of a corresponding number of terminal units of said second set, said mapping being performed on the data time slots, wherein all data time slots arriving from the terminal units of said first set are to be sent via first buffer means to the switch in an order determined by a first mapping control memory, and all data time slots arriving from the switch are to be sent via second buffer means toward the terminal units of said second set in an order which is determined by a second mapping control memory. More particularly, the switch can be a time-space switch of a kind described in more detail in Swedish patent application 9103719-2. Therein it is additionally disclosed that on the transmission links there also occur, besides the data time slots, control time slots containing packet data for controlling the switch. When several transmission links are mapped together it is important that this occurs with little delay, and that time slot integrity is retained, that is, the time slots arrive in a correct order. A certain delay is required, however, to avoid risking that data is read before having been written, since time slot integrity is then lost. Therefore, it is important that time slot integrity can easily be checked, which is difficult if the buffers required for the mapping function are realized with usual memories. STATE OF THE ART. WO 84/00836, US 4612636, US 4809166, and EP 0169551 describe the general state of the art without stating anything which can be considered to anticipate the present invention as it is described below. STATEMENT OF THE INVENTION. The object of the invention is to solve the above mentioned problem which, in a multiplexer of the kind defined by way of introduction, has been achieved according to the invention by implementing said buffer means as fifos, one fifo for each of said links leading from or to the terminal units. Preferably, said fifos are implemented to be able to produce indications for "fifo full" and "fifo empty", meaning that the mapping is not carried through correctly, a map control function being implemented and connected for making changes in the contents of the control memories at the appearance of such indications. Advantageously, a frame position adjustment means can be provided to execute frame position adjustment locally within the multiplexer based upon said indications so as to obtain smallest possible read out delay from the fifos. DESCRIPTION OF DRAWINGS. The invention shall now be described in more detail below with reference to the embodiment shown on the attached drawings. On the drawings Figure 1 is a block diagram showing principles of a digital time-space switch and its connections. Figure 2 is a schematic block diagram of a programmable multiplexer according to the invention, with appurtenant processor, Figure 3 is a flowchart illustrating the way of operation of a map control function for the mapping included in the multiplexer according to Figure 2, Figure 4a shows a somewhat more detailed section of Figure 2 Figures 4b and 5 are state diagrams illustrating frame position adjustment in the direction terminal unit to switch core, and in the direction switch core to terminal unit, in the multiplexer according to Figure 2. PREFERRED EMBODIMENTS. Referring to Figure 1, a digital time-space switch contains a switch core 2, and is provided to be included in a switch network, not shown, the data flow of which being organized into frames containing a number of time slots, including i.a. data time slots. The data time slots contain data to be switched through the switch from first to the second sets 4 and 6, respectively, of terminal units, such as subscriber lines, trunk lines, processors, etc. One, several, or all of the terminal units 4 can be specifically related to a corresponding one of the terminal units 6, in particular be physically located at the same place, for example on the same circuit board. A terminal unit 4 and a terminal unit 6 can thus e.g. form input and output, respectively, of an apparatus (for example telephone set) . The term "terminal unit" will also be used henceforth. A controllable multiplexer is arranged for controllable multiplexing, mapping, of a number of transmission links 8 from each of a corresponding number of the terminal units of the first set 4 to a transmission link 10 leading to the switch core 2, by means of a first multiplexer stage 12. In a similar way the multiplexer is arranged for mapping a transmission link 14 leading from the switch core 2 to a number of transmission links 16 each leading to a corresponding terminal unit of the second set 6, by means of a second multiplexer stage 18. More particularly, the mapping is performed on the data time slots. Referring to Figure 2 all data time slots arriving from the terminal units of the first set 4 are to be sent further via first buffer means 20 and a mux 21 toward the switch core 2 in an order specified by a first mapping control memory 22 which controls the mux 21. All data time slots which arrive from the switch core 2 shall be sent further via second buffer means 24 and a mux 25 toward the terminal units of the second set 6 in an order specified by a second mapping control memory 26 which controls the mux 25. In accordance with one of the characterizing features of the invention the buffer means 20 and 24 consist of fifos, one for each of the links 8 and 16, respectively. This is indicated in Figure 2 by a link designated 8n from a terminal unit 4n being received by a fifo 2On, and by a link designated 16n leading to a terminal unit 6n from a fifo 24n. A more detailed discussion below of one aspect of the way of operation of the controllable multiplexer is based on the above indicated relationship between the two terminal units 4n and 6n. In a way known per se the fifos 20 and 24 are implemented to be able to produce indications for "fifo full" and "fifo empty". These indications mean in the present case that the mapping is not carried through correctly, and are received, according to another one of the features of the invention, by a map control function 28, this being shown by arrows 30 for the fifo 20n and arrows 32 for the fifo 24n. The map control function 28 is implemented and connected for carrying out changes in the control memories 22 and 26 at the appearance of such indications. For controlling the multiplexer a processor 34 is provided, which has access to a data base 35 containing information regarding the way of operation of the multiplexer. The processor 34 orders changes in the control memories 22 and 26. The way of operation of the map control function 28 appears from the flowchart in Figure 3. In a first step 28.1 the state of a current fifo 20 or 24 is investigated. If no indication for fifo full or fifo empty is obtained according to the above, the process is restarted according to arrow 28.11. If, on the other hand, such an indication occurs, a test is made in step 28.2 with respect to the correctness of the mapping information in the control memory 22 or 26, respectively, by comparison with the mapping information of the data base 35. If this is not the case, correct values for the mapping information are written in step 28.3 by the processor 34 via the map control function 28 into the control τ ories 22 and 26, respectively. According to arrow 28.31 and step 28.2 a new astigation of the mapping information of the control nory is thereafter made. If it is now correct a new test is also done on the state of the current fifo in step 28.4. If no indication "fifo full" or "fifo empty" is now obtained the process starts again from the beginning as indicated by arrow 28.41. If such an indication on the other hand remains it is a sign of the mapping information of the data base 35 being erroneous, and an error signal is sent to the part of the system which has responsibility for the mapping information, for further measures in step 28.5. After this action new mapping information is written into the data base 35 in step 28.6. The process thereafter according to arrow 28.61 returns to step 28.3 with accompanying renewed test of the mapping information according to steps 28.2 and 28.4. In an embodiment of the map control function 28 presently preferred, said map control function is implemented by a processor with appurtenant software which forms a state machine according to Figure 3. The concept state machine is well known to the man of the art, who also understands how to realize the functions according to Figure 3 by means of a suitable logic combination of gates and clocked flip-flops included in the machine. A more detailed description is therefore not required here. Preferably the indications "fifo full" and "fifo empty" are also used by frame position adjustment functions 36 and 38 likwise controlled by the processor as indicated with arrows 40 and 42, respectively. More particularly, the frame position adjustment functions 36 and 38 are arranged and implemented to perform frame position adjustment locally within the multiplexer so as to obtain smallest possible readout delay from fifos 20 and 24, respectively. There can be a common frame position adjustment function 36 for all fifos 20, and a common frame position adjustment function 38 for all fifos 24, or also every fifo can have its own. The later alternative is indicated in Figure 2 by the frame position adjustment function for the fifo 2On having been designated 36n, and that for the fifo 24n having been designated 38n. In order for a receiver of a link to be able to control the frame position there is a time slot in the frame for frame position adjustment, henceforth and in Figure 2 also called FAC = Frame Alignment Control. Every fifo has, besides a time slot counter, a register keeping such a time slot. This time slot is used to transmit frame phasing information over a link, for example from switch core to multiplexer, from multiplexer to multiplexer or from multiplexer to terminal units. The function of being able to affect frame position is needed for several reasons. In the multiplexer the function is necessary in order to obtain a shift between frames coming in and going out. This is needed for the mapping function. A description follows below of how to effect frame position adjustment on the various interconnections to and from the multiplexer. Since the frame positions on the various links depend on each other, the order is important. Frame position for outgoing link 16 to terminal units 6 is set so that mapping can occur between the switch core and the terminal units. The shift between frames from the switch core and frames towards terminal units can be made sufficient, calculated for the current mapping, or automatically adjuste . The description below is for application of automatic adjustment. Figure 4a illustrates the situation for frame position adjustment between multiplexer and terminal units 4n,6n in more detail. In association with fifo 2On a FAC register 51 of the kind mentioned above is shown. In the same way there is shown in association with the fifo 24n a FAC register 52, as well as a time slot counter 53 counting time slots in frames toward terminal units. At the terminal unit 4n a time slot counter 54 is indicated, which counts time slots in frames directed to the multiplexer. The parameter controlling the frame position between terminal units and multiplexer is the shift necessary for mapping between terminal units 4,6 and switch core 2. Frame position adjustment will now be explained more closely below with reference to Figures 4a, 4b and 5. For frame position adjustment between the terminal units 4n and the multiplexer stage 12 the multiplexer calculates a FAC value (the register 52) and sends this on the link 16n to the terminal units 4n,6n. The terminal unit changes position of the frames directed to the multiplexer, that is, the time relationship between frame start for the frame carrying on the link 16n data to the terminal unit, and frame start of the frame carrying on the link 8n data from the terminal unit. When the terminal unit has changed position of the frames directed to the multiplexer this is confirmed by the FAC time-slot of this frame taking the same value as the FAC time-slot of the frame directed from the multiplexer to the terminal unit. Figure 4b shows a state diagram for frame position adjustment in the direction from terminal unit to switch core. The frame position adjustment function 36n works with the following signals: Input signals: a from mux 21 based on contents of the memory 22 - read out fifo 2On to the switch core, b from link 8n based on the arrival of a data time-slot on the link = write into fifo 2On from terminal unit 4n, c from link 10 based on frame start on this link = frame sync on link to switch core, d from fifo 2On = fifo empty e from fifo 2On = fifo full f from flop-flop that stores whether fifo 2On has been empty some time during the frame, g = the result of comparison between FAC from register 52 directed to terminal units 4n,6n and confirmed FAC in register 51 directed from terminal unit. Output signal: h = FAC value sent from register 52 to terminal unit. In Figure 4b the state 36.1 signifies that the frame from the terminal unit 4n arrives at the right instant in fifo 2On. According to state change arrows 36.11 and 36.12 the result of simultaneous appearance of signals a and d, that is fifo 2On not empty, and signals b and e, that is fifo not full, does not result in any state change. Simultaneous appearance of signals a and d result in a change to state 36.2 according to arrow 36.13. This state is distinguished by the frame from terminal unit 4n arriving too late in fifo 2On. The action taken is to reduce FAC. This is effected by reducing the FAC value sent from register 52 to terminal unit 6n. Now g is waited for. This is indicated by arrow 36.21, state 36.3 and arrow 36.31, and has the result that state 36.1 is reached. Simultaneous appearance of either the signals b and e or the signals f and c implies a change according to arrow 36.14 or arrow 36.15, respectively, to state 36.4. This state is distinguished by the frame from the terminal unit 4n arriving too early in fifo 2On. The action needed is to increase the FAC. This is effected by increasing the FAC value sent on the link 16n to terminal unit 6n. Now g is waited for. This is indicated by means of arrow 36.41, state 36.5 and arrow 36.51, and has the result that state 36.1 is reached. Figure 5 shows a state diagram for frame position adjustment in the direction from switch core to link. The frame position adjustment function 38n works with the following input signals: i from link 16n based on a data time slot being sent to terminal unit 6n = readout fifo 24n to terminal unit 6n, j from mux 25 based on a data time slot arriving on link 14 = write into fifo 24n from switch core, k from link 16n due to a frame sync being sent on link to terminal unit 6n = frame sync on link to terminal unit 6n, 1 from fifo 24n = fifo empty m from fifo 24n = fifo full n from flip-flop which stores whether the fifo has been empty some time during the frame = fifo not empty during entire frame. In Figure 5 state 38.1 indicates that the frame directed to the terminal unit 6n leaves fifo 24n at the right instant. If this state is active during an entire frame the control is ideal. According to state change arrows 38.11 and 38.12 simultaneous appearance of the signals i and ϊ, that is fifo 24n not empty, and the signals j and m, that is fifo not full, results in no state change. Simultaneous appearance of the signals i and 1 implies a change to state 38.2 according to arrow 38.13. This state is distinguished by the frame directed to the terminal unit 6n leaving the fifo 24n too early. The action taken is to stop the time slot counter 53 for link 16n to terminal unit 6n, resulting in the frame being sent a time slot later to terminal unit 6n, and according to arrow 38.21 return to state 38.1 upon signal j, that is, when writing into the fifo 24n from the switch core occurs. Simultaneous appearance of either the signals j and m, or the signals n and k implies according to arrows 38.14 or 38.15, respectively, a change to state 38.3. This state is distinguished by the fifo 24n being unnecessarily full, and frames directed to the terminal unit 6n leaving the fifo 24n to late. When the frame synchronization signal is sent to terminal unit 6n, a change to state 38.4 occurs according to arrow 38.31, and loading the time-slot counter 53 for the link 16n with 1 instead of 0. This shortens the current frame by one time slot by virtue of the fact that one time slot fewer will be sent to the terminal unit 6 before the next frame sync occurs. Arrow 38.41 indicates that the measure in state 38.4 lead back to state 38.1 without any special conditions. In one embodiment of the control arrangements 36 and 38, presently preferred, these are implemented as state machines. Such a state machine is a well known concept for the man of the art, who also knows how to realize the functions according to Figure 4 and 5 by means of a suitable logical combination of gates and clocked flip-flops included in the machine. A more detailed description is therefore not required here. Further, it should be added that the control information of the switch is sent the same way as the data which is switched through the switch. More detailed information about this as well as the way of operation and implementation of such switch and the multiplexer can be obtained from si ultanously filed Swedish patent application 9103719-2.

Claims: CLAIMS . 1. A multiplexer for a digital switch, arranged to be included in a switch network whose data flow is organized in frames containing a number of time slots, said time slots including data time slots, which shall be directed through the switch (2) from first to second sets of terminal units (4 and 6, respectively) , such as subscriber connections, trunk connections, processors, etc. , wherein the multiplexer (12,18) is controlled by a processor (34) for controllable multiplexing, i.e. mapping, of a number of transmission links (8) from each of a corresponding number of the terminal units (4) of said first set to a transmission link (10) leading to the switch, as well as of a transmission link (14) leading from the switch to a number of transmission links (16) to each of a corresponding number of terminal units (6) of said second set, said mapping being performed on the data time slots, wherein all data time slots arriving from the terminal units (4) of said first set are to be sent forward via first buffer means (20) to the switch (2) in an order which is determined by a first control memory (22) for the mapping, and all data time slots arriving from the switch (2) are to be sent forward via second buffer means (24) toward the terminal units (6) of said second set in an order which is determined by a second control memory (22) for the mapping, characterized in that said buffer means (20,24) are implemented as fifos, one for each of the links (8 and 16, respectively) from and to the terminal units (2 and 6, respectively) . 2. A multiplexer according to claim 1, characterized in that the said fifos are of a kind implemented to be able to produce indications for "fifo full" and "fifo empty", meaning that the mapping is not carried through correctly, a map control function (28) being implemented and connected for making changes in the contents of the control memories (22, 26) at the appearance of such indications. 3. -Multiplexer according to claim 2, characterized in that the map control function (28) includes functions for checking mapping information in the control memories (22,26) against mapping information written in a memory (35) belonging to the processor (34) , and the map control function (28) is implemented, at appearance of disagreement, to write correct values into the control memories. 4. A multiplexer according to claim 2 or 3, characterized by frame position adjustment functions (36,38) connected for receiving said indications and, at appearance thereof, arranged to perform frame position adjustment locally within the multiplexer, so as to achieve smallest possible delay of the data flow through the multiplexer.

Inventors: ABEFELT ERIK OSCAR, BJENNE ANDERS KARL, LUNDH PETER CARL BIRGER, ABEFELT, ERIK, OSCAR, BJENNE, ANDERS, KARL, LUNDH, PETER, CARL, BIRGER
Applicants: ERICSSON TELEFON AB L M, TELEFONAKTIEBOLAGET L.M. ERICSSON
Application year: 1992
Main classification: H04L12
IPC codes: H04J3, H04L7, H04Q11