I have to draw this one where we can see the one wire are of one color and the other are of other color joining at the square shape box, each wire has a name associate to it and then repeats(repeated part is not written or lablelled in pic).
I thought of using sinusoidal functions as the wires eventhough they didn't look the same, I guess.
This is my MWE:
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}[
xscale=1,yscale=2,
every plot/.append style={samples=100,domain=1.5:13.3},
rotate=90]
\begin{scope}[blue]
\draw plot(\x,{sin(\x r) - 5});
\draw plot(\x,{cos((\x+pi/2) r) - 2.5});
\draw plot(\x,{sin(\x r)});
\draw plot(\x,{cos((\x+pi/2) r) + 2.5});
\draw plot(\x,{sin(\x r) + 5});
\draw plot(\x,{cos((\x+pi/2) r) + 7.5});
\end{scope}
\draw [-,>=stealth] (1*pi/2,{sin(1*pi/2 r)}) -- node[above] {A} (1*pi/2,{cos((1*pi/2+pi/2) r)+2.5});
\draw [-,>=stealth] (3*pi/2,{sin(3*pi/2 r)}) -- node[above] {B} (3*pi/2,{cos((3*pi/2+pi/2) r)-2.5});
\end{tikzpicture}
\end{document}
My knowledge is very limited not only I was not able to color the segments differently but also not able to make box and may be writing is just choosing the proper coordinate to write I guess. I have no idea can I get such curves shown in the pic because they are different from the one with sinusoidal func. I still facing this how do we achieve this in TikZ.

bluebyred, the corresponding element will turn red. I just don't know which colors you want to change. – Nov 03 '18 at 20:08\node[draw,fill=white,minimum size=1cm,red] ...., if you want to shade the node\node[draw,fill=white,minimum size=1cm,fill=red!30]...and if only the text should be red\node[draw,fill=white,minimum size=1cm,text=red]....etc. – Nov 03 '18 at 23:50xscale=0.7, say, to the options of thetikzpictureto shrink it in one direction (note that there is arotate=-90in addition). I'd also like to kindly ask you to post additional requests in form of a new question, asking questions is free, after all. – Nov 05 '18 at 14:46