Let $M,B$ be $R$-modules, and suppose we're given an n-extension $E\_1\to\dots\to E\_n$ of $B$ by $M$, that is, an exact sequence $$0\to M\to E\_1\to\dots\to E\_n \to B\to 0.$$


A morphism of $n$-extensions of $Y$ by $X$ is defined to be a hammock 


$$\begin{matrix}
&&A\_1&\to&A\_2&\to&A\_3&\to&\ldots&\to &A\_{n-2}&\to &A\_{n-1}&\to& A\_{n}&&\\
&\nearrow&\downarrow&&\downarrow&&\downarrow&&&&\downarrow&&\downarrow&&\downarrow&\searrow&\\
X&&\downarrow&&\downarrow&&\downarrow&&&&\downarrow&&\downarrow&&\downarrow&&Y\\
&\searrow&\downarrow&&\downarrow&&\downarrow&&&&\downarrow&&\downarrow&&\downarrow&\nearrow&\\
&&B\_1&\to&B\_2&\to&B\_3&\to&\ldots&\to &B\_{n-2}&\to &B\_{n-1}&\to& B\_{n}&&\end{matrix}$$


This detetermines a category $n\operatorname{-ext}(Y,X)$. Further, we're given an almost-monoidal sum on this category given by taking the direct sum of exact sequences, then composing the first and last maps with the diagonal and codiagonal respectively. Taking connected components, we're left with a set $ext^n(Y,X)$, and the sum reduces to an actual sum on the connected components, which turns $ext^n(Y,X)$ into an abelian group (and therefore an $R$-module). 


It's well known that these functors, called Yoneda's Ext functors are isomorphic to the Ext functors $\pi\_n(\underline{\operatorname{Hom}}(sM,sN))$ where $\underline{\operatorname{Hom}}(sM,sN)$ is the homotopy function complex between the constant simplicial $R$-modules $sM$ and $sN$ (obtained by means of cofibrant replacement of $sM$ in the projective model structure, fibrant replacement of $sN$ in the injective model structure, or by any form of Dwyer-Kan simplicial localization (specifically the hammock localization)). 


In a [recent answer](https://mathoverflow.net/questions/45534/formally-smooth-morphisms-the-cotangent-complex-andre-quillen-cohomology-and-r/45987#45987), Charles Rezk mentioned that we can compute this in the case $n=1$ as $\pi\_0(\underline{\operatorname{Hom}}(sM,sN[1]))$, where $sN[1]$ is the simplicial $R$-module with homotopy concentrated in degree $n$ equal to $N$. That is, these are exactly the maps $M\to N[1]$ in the derived category. 


It was also mentioned that for the case $n=1$, there exists a universal exact sequence in the derived category: $$0\to N\to C\to N[1]\to 0$$ where $C$ is weakly contractible such that every extension of $N$ by $M$ arises as $$N\to M\times^h\_{N[1]} C\to QM,$$ which is $\pi\_0$-short exact. (And QM is a cofibrant replacement of $M$, for obvious reasons).


Questions:


Why can we get $\pi\_1$ of the function complex by looking at maps into $N[1]$? At least on the face of it, it seems like we would want to look at maps into $N[-1]$, that is, look at maps into the "loop space", not the "suspension" (scare quotes because these are the loop and suspension functors in $sR\operatorname{-Mod}$, not in $sSet$.


What is this this "universal extension" $$0\to N\to C\to N[1]\to 0$$ at the level of simplicial modules?


Is there a similar "universal extension" for $n>1$? If so, what does it (one of its representatives) look like at the level of simplicial modules?


Given an $n$-extension $\sigma$ of $B$ by $M$, how can we produce a morphism in the derived category $B\to M[n]$ that generates an $n$-extension in the same connected component of $n\operatorname{-ext}(B,M)$?


Lastly, since Yoneda's construction of Ext looks suspiciously like Dwyer and Kan's hammock localization, and there is homotopy theory involved in the other construction, I was wondering if there was any connection between the two. That is, I was wondering if there is another construction of Ext using DK-localization directly that shows why Yoneda's construction works.



Simplicial "universal extensions", the hammock localization, and Ext
For your first question: 



> 
> Given an $n$-extension $\sigma$ of $B$ by $M$, how can we produce a morphism in the 
>  derived category $M\to N[n]$ that generates an n-extension in the same connected 
>  component 
>  of $n{-}ext(B,M)$?
> 
> 
> 


Do you mean a morphism $B\to M[n]$? In which case, isn't this a the standard construction? Let $E$ be the extension of $B$ by $M$, let $P$ be a projective resolution of $B$, and cover the identity map of $B$ by a map of chain complexes $P\to E$. The resulting map $P\_n\to M$ can be thought of as a morphism $B\to M[n]$ in the derived category, and it's the one that represents the corresponding component of $n{-}ext(B,M)$.


As for your second question, there's certainly some connection. What you've described is a category $C=n{-}ext(X,Y)$, whose objects are $n$-extensions of $Y$ by $X$. Let $W=C$, and perform the hammock construction $L\_H(C,W)$ of the pair $(C,W)$; then $L\_H(C,W)$ is a simplicially eniched category, which represents an $\infty$-groupoid since you inverted everything. The ext group is the set of equivalence classes of objects in $L\_H(C,W)$.


Dwyer and Kan showed that if $C=W$, then the simplicial category $L\_H(C,W)$ and the simplicial nerve $NC$ of $C$ represent the same $\infty$-groupoid. So $\mathrm{Ext}^n(X,Y)=\pi\_0 (NC)$.


What is the homotopy type of $NC$? It is supposed to be equivalent to the space of maps $\mathrm{map}(X,Y[n])$ in the $\infty$-category associated to the derived category.
I'm unaware of a reference where this is proved, however. 


But take a look at Stefan Schwede's very nice paper on [An exact sequence interpretation of the Lie bracket in Hochschild cohomology](http://www.math.uni-bonn.de/~schwede/Ext-Crelle.pdf), which shows that $\pi\_1(NC)=\mathrm{Ext}^{n-1}(X,Y)$, and gets some interesting results from that. (He's looking at $A$-bimodule extensions of $A$ by $A$ (i.e., Hochschild cohomology), and he extracts the Gerstenhaber-algebra structure on the ext-groups by means of homotopical constructions involving the $NC$.


